|
@@ -42,7 +42,7 @@
|
|
|
<view class="module-com input-line-wrap">
|
|
<view class="module-com input-line-wrap">
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false">
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false">
|
|
|
<view class="tui-title ">客户</view>
|
|
<view class="tui-title ">客户</view>
|
|
|
- <view class="tui-input" v-if="clientInfo.id">{{ clientInfo.name }}</view>
|
|
|
|
|
|
|
+ <view class="tui-input" v-if="customId>0">{{ customName }}</view>
|
|
|
<view class="tui-placeholder" style="width: 100%" v-else>游客</view>
|
|
<view class="tui-placeholder" style="width: 100%" v-else>游客</view>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
@@ -50,6 +50,7 @@
|
|
|
<view class="tui-title">结账方式</view>
|
|
<view class="tui-title">结账方式</view>
|
|
|
<button @tap="hasPay = 1" class="admin-button-com middle" :class="hasPay == 1 ? 'blue' : 'default'">线下</button>
|
|
<button @tap="hasPay = 1" class="admin-button-com middle" :class="hasPay == 1 ? 'blue' : 'default'">线下</button>
|
|
|
<button @click="hasPay = 2" class="admin-button-com middle" :class="hasPay == 2 ? 'blue' : 'default'">赊账</button>
|
|
<button @click="hasPay = 2" class="admin-button-com middle" :class="hasPay == 2 ? 'blue' : 'default'">赊账</button>
|
|
|
|
|
+ <button @click="hasPay = 4" class="admin-button-com middle" :class="hasPay == 4 ? 'blue' : 'default'">余额</button>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :arrow="true" v-if="hasPay == 1">
|
|
<tui-list-cell class="line-cell" :arrow="true" v-if="hasPay == 1">
|
|
@@ -138,14 +139,15 @@ export default {
|
|
|
freight:'',
|
|
freight:'',
|
|
|
modifyPrice:0,
|
|
modifyPrice:0,
|
|
|
payWay:0,
|
|
payWay:0,
|
|
|
- clientInfo: '',
|
|
|
|
|
showCustomer: false,
|
|
showCustomer: false,
|
|
|
sendType:1,
|
|
sendType:1,
|
|
|
discountIndex:0,
|
|
discountIndex:0,
|
|
|
discount:['打折','95折','9折','85折','8折','75折','7折','65折','6折'],
|
|
discount:['打折','95折','9折','85折','8折','75折','7折','65折','6折'],
|
|
|
payWayList:[{name:"线下微信",id:0},{name:"线下支付宝",id:1},{name:"现金",id:4},{name:"银行卡",id:5}],
|
|
payWayList:[{name:"线下微信",id:0},{name:"线下支付宝",id:1},{name:"现金",id:4},{name:"银行卡",id:5}],
|
|
|
payWayindex:0,
|
|
payWayindex:0,
|
|
|
- hasPay:1
|
|
|
|
|
|
|
+ hasPay:1,
|
|
|
|
|
+ customId:0,
|
|
|
|
|
+ customName:''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -160,7 +162,10 @@ export default {
|
|
|
title: this.getMerchantInfo.name
|
|
title: this.getMerchantInfo.name
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- this.modifyPrice = this.allPrice.toFixed(2);
|
|
|
|
|
|
|
+ this.modifyPrice = this.allPrice.toFixed(2)
|
|
|
|
|
+
|
|
|
|
|
+ this.customId = this.option.customId ? this.option.customId : 0
|
|
|
|
|
+ this.customName = this.option.customName ? this.option.customName : ''
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapGetters(["getMerchantInfo", "getLoginInfo","getDictionariesInfo"])
|
|
...mapGetters(["getMerchantInfo", "getLoginInfo","getDictionariesInfo"])
|
|
@@ -212,9 +217,6 @@ export default {
|
|
|
let allPrices = this.allPrice.toFixed(2)
|
|
let allPrices = this.allPrice.toFixed(2)
|
|
|
this.modifyPrice = (Number(allPrices) + Number(this.freight) + Number(this.packingMoney)).toFixed(2);
|
|
this.modifyPrice = (Number(allPrices) + Number(this.freight) + Number(this.packingMoney)).toFixed(2);
|
|
|
},
|
|
},
|
|
|
- changeCustomerFn(info) {
|
|
|
|
|
- this.clientInfo = info;
|
|
|
|
|
- },
|
|
|
|
|
affirmFormSubmit(){
|
|
affirmFormSubmit(){
|
|
|
|
|
|
|
|
if(this.$util.isEmpty(this.selectList)){
|
|
if(this.$util.isEmpty(this.selectList)){
|
|
@@ -236,7 +238,7 @@ export default {
|
|
|
orderType:2,//开单类型,1商品开单 2花材开单
|
|
orderType:2,//开单类型,1商品开单 2花材开单
|
|
|
packingFee:packingFee,
|
|
packingFee:packingFee,
|
|
|
sendCost:this.freight,
|
|
sendCost:this.freight,
|
|
|
- customId:this.clientInfo.id,
|
|
|
|
|
|
|
+ customId:this.customId,
|
|
|
payWay:this.payWay,
|
|
payWay:this.payWay,
|
|
|
sendType:this.sendType,
|
|
sendType:this.sendType,
|
|
|
modifyPrice: this.modifyPrice,
|
|
modifyPrice: this.modifyPrice,
|