|
@@ -5,7 +5,7 @@
|
|
|
<view class="top-row">
|
|
<view class="top-row">
|
|
|
<view class="info-item">
|
|
<view class="info-item">
|
|
|
<image class="logo" :src="customInfo.smallAvatar"/>
|
|
<image class="logo" :src="customInfo.smallAvatar"/>
|
|
|
- <text class="name">{{ customInfo.name || "" }}{{device}} </text>
|
|
|
|
|
|
|
+ <text class="name">{{ customInfo.name || "" }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<DateSelect class="bar" top="0" @selectDateFn="selectDateFn" defaultShowName='时间' />
|
|
<DateSelect class="bar" top="0" @selectDateFn="selectDateFn" defaultShowName='时间' />
|
|
|
</view>
|
|
</view>
|
|
@@ -31,20 +31,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<view class="btn-view">
|
|
<view class="btn-view">
|
|
|
- <button :class="['admin-button-com', 'blue']" @click="isModelFun">创建账单</button>
|
|
|
|
|
|
|
+ <button :class="['admin-button-com', 'blue']" @click="createOrder">创建账单</button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <modal-module :show="isModel" @click="confirmData" :title="'确认金额'" color="#333" :size="32" padding="30upx 30upx" >
|
|
|
|
|
- <template slot="customContent">
|
|
|
|
|
- <view class="select-cmd_bx">
|
|
|
|
|
- <view class="num_bx">
|
|
|
|
|
- <view class="flex">金额:{{selectTotalAmount}}</view>
|
|
|
|
|
- <view class="flex">实收:<input @focus="modifyPrice = null" v-model="modifyPrice" type="digit"/></view>
|
|
|
|
|
- <view class="flex">优惠:{{(selectTotalAmount - modifyPrice).toFixed(2)}}</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </template>
|
|
|
|
|
- </modal-module>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -121,6 +110,13 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ createOrder(){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ let price = parseFloat(that.modifyPrice)
|
|
|
|
|
+ that.$util.confirmModal({content:'总金额'+price+'元,确认提交?'},() => {
|
|
|
|
|
+ that.confirmData()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
payWayChange(e){
|
|
payWayChange(e){
|
|
|
let index = e.detail.value
|
|
let index = e.detail.value
|
|
|
this.payWayindex = index
|
|
this.payWayindex = index
|
|
@@ -184,19 +180,15 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- confirmData(val) {
|
|
|
|
|
- if (val.index === 0) {
|
|
|
|
|
- this.isModel = false;
|
|
|
|
|
- } else {
|
|
|
|
|
- let ids = this.selectList.map(ele => {
|
|
|
|
|
- return {id:ele.id};
|
|
|
|
|
- });
|
|
|
|
|
- let parameter = {
|
|
|
|
|
- id:JSON.stringify(ids),
|
|
|
|
|
- customId:this.customInfo.id
|
|
|
|
|
- }
|
|
|
|
|
- this.paySuccess(parameter)
|
|
|
|
|
|
|
+ confirmData() {
|
|
|
|
|
+ let ids = this.selectList.map(ele => {
|
|
|
|
|
+ return {id:ele.id};
|
|
|
|
|
+ });
|
|
|
|
|
+ let parameter = {
|
|
|
|
|
+ id:JSON.stringify(ids),
|
|
|
|
|
+ customId:this.customInfo.id
|
|
|
}
|
|
}
|
|
|
|
|
+ this.paySuccess(parameter)
|
|
|
},
|
|
},
|
|
|
batchEvent() {
|
|
batchEvent() {
|
|
|
try {
|
|
try {
|
|
@@ -289,6 +281,7 @@ export default {
|
|
|
padding-bottom: 100upx;
|
|
padding-bottom: 100upx;
|
|
|
}
|
|
}
|
|
|
.ios-bar-view {
|
|
.ios-bar-view {
|
|
|
|
|
+ bottom: 0;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
align-items: center;
|