|
@@ -54,7 +54,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="" v-if="isBilling">
|
|
<view class="" v-if="isBilling">
|
|
|
- <tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="pageTo({ url: '/admin/custom/selectCustom',query: {style:2}})">
|
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="selectCustom">
|
|
|
<view class="tui-title">客户</view>
|
|
<view class="tui-title">客户</view>
|
|
|
<view class="tui-input" v-if="form.customId" >{{ form.customName }}</view>
|
|
<view class="tui-input" v-if="form.customId" >{{ form.customName }}</view>
|
|
|
<view class="tui-placeholder" style="width: 100%" v-else >请选择客户</view>
|
|
<view class="tui-placeholder" style="width: 100%" v-else >请选择客户</view>
|
|
@@ -62,26 +62,20 @@
|
|
|
|
|
|
|
|
<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>
|
|
|
- <button @tap="courier(2)" class="admin-button-com mini-btn" :class="form.sendType == 2 ? 'blue' : 'default'">
|
|
|
|
|
- 自取
|
|
|
|
|
- </button>
|
|
|
|
|
- <button @click="courier(1)" class="admin-button-com mini-btn" :class="form.sendType == 1 ? 'blue' : 'default'">
|
|
|
|
|
- 配送
|
|
|
|
|
- </button>
|
|
|
|
|
|
|
+ <button @tap="courier(2)" class="admin-button-com mini-btn" :class="form.sendType == 2 ? 'blue' : 'default'">自取</button>
|
|
|
|
|
+ <button @click="courier(1)" class="admin-button-com mini-btn" :class="form.sendType == 1 ? 'blue' : 'default'">配送</button>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" :arrow="false">
|
|
|
|
|
+ <view class="tui-title">结算类型</view>
|
|
|
|
|
+ <button v-if="form.sendType == 2" @tap="form.debt = 1" class="admin-button-com mini-btn" :class="form.debt == 1 ? 'blue' : 'default'">欠款</button>
|
|
|
|
|
+ <button v-if="form.sendType == 2" @click="form.debt = 0" class="admin-button-com mini-btn" :class="form.debt == 0 ? 'blue' : 'default'">已收款</button>
|
|
|
|
|
+ <button v-if="form.sendType == 1" class="admin-button-com mini-btn" :class="form.sendType == 1 ? 'blue' : 'default'">待收款</button>
|
|
|
|
|
+ </tui-list-cell>
|
|
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" v-show="form.sendType == 1" >
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" v-show="form.sendType == 1" >
|
|
|
<view class="tui-title">运费</view>
|
|
<view class="tui-title">运费</view>
|
|
|
<input @blur="sendCostBlur" type="number" placeholder="留空表示免运费" @input="countAllPrices" v-model="form.sendCost" placeholder-class="tui-placeholder"/>
|
|
<input @blur="sendCostBlur" type="number" placeholder="留空表示免运费" @input="countAllPrices" v-model="form.sendCost" placeholder-class="tui-placeholder"/>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
- <tui-list-cell class="line-cell" :hover="false" :arrow="false">
|
|
|
|
|
- <view class="tui-title">结算类型</view>
|
|
|
|
|
- <button @tap="form.debt = 1" class="admin-button-com mini-btn" :class="form.debt == 1 ? 'blue' : 'default'">
|
|
|
|
|
- 欠款
|
|
|
|
|
- </button>
|
|
|
|
|
- <button @click="form.debt = 0" class="admin-button-com mini-btn" :class="form.debt == 0 ? 'blue' : 'default'">
|
|
|
|
|
- 已收款
|
|
|
|
|
- </button>
|
|
|
|
|
- </tui-list-cell>
|
|
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :arrow="true" v-if="form.debt == 0">
|
|
<tui-list-cell class="line-cell" :arrow="true" v-if="form.debt == 0">
|
|
|
<div class="tui-title">付款方式</div>
|
|
<div class="tui-title">付款方式</div>
|
|
@@ -175,6 +169,7 @@ export default {
|
|
|
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,
|
|
|
form: {
|
|
form: {
|
|
|
|
|
+ id:0,
|
|
|
debt: 1, //付款方式 1欠款订单 0正常订单
|
|
debt: 1, //付款方式 1欠款订单 0正常订单
|
|
|
shopId: "",
|
|
shopId: "",
|
|
|
shopName: "",
|
|
shopName: "",
|
|
@@ -214,7 +209,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.modifyPrice = this.allPrice.toFixed(2);
|
|
this.modifyPrice = this.allPrice.toFixed(2);
|
|
|
this.courier(2);
|
|
this.courier(2);
|
|
|
-
|
|
|
|
|
if(option.customId){
|
|
if(option.customId){
|
|
|
this.form.customId = option.customId
|
|
this.form.customId = option.customId
|
|
|
}
|
|
}
|
|
@@ -238,6 +232,13 @@ export default {
|
|
|
...mapActions(["initMerchantInfo"]),
|
|
...mapActions(["initMerchantInfo"]),
|
|
|
init () {
|
|
init () {
|
|
|
this._getDet();
|
|
this._getDet();
|
|
|
|
|
+ },
|
|
|
|
|
+ selectCustom(){
|
|
|
|
|
+ if (!this.$util.isEmpty(this.option.orderId)){
|
|
|
|
|
+ this.$msg('客户不能修改');
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.$util.pageTo({ url: '/admin/custom/selectCustom',query: {style:2}})
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
payWayChange(e){
|
|
payWayChange(e){
|
|
|
let index = e.detail.value
|
|
let index = e.detail.value
|
|
@@ -256,7 +257,7 @@ export default {
|
|
|
this.form.sendType = type;
|
|
this.form.sendType = type;
|
|
|
if (type === 2) {
|
|
if (type === 2) {
|
|
|
this.form.sendCost = "";
|
|
this.form.sendCost = "";
|
|
|
- } else {
|
|
|
|
|
|
|
+ } else if(type == 1){
|
|
|
this.form.sendCost = this.money;
|
|
this.form.sendCost = this.money;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -332,10 +333,11 @@ export default {
|
|
|
title: "提示",
|
|
title: "提示",
|
|
|
content: "确认打印订单?",
|
|
content: "确认打印订单?",
|
|
|
cancelText: "不需要",
|
|
cancelText: "不需要",
|
|
|
- confirmText: "确认",
|
|
|
|
|
|
|
+ confirmText: "打印",
|
|
|
confirmColor: '#39B54A',
|
|
confirmColor: '#39B54A',
|
|
|
cancelColor: '#777777',
|
|
cancelColor: '#777777',
|
|
|
success: function (res) {
|
|
success: function (res) {
|
|
|
|
|
+ self.form.id = self.option.orderId
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
self.form.needPrint = 1
|
|
self.form.needPrint = 1
|
|
|
self.formSubmit();
|
|
self.formSubmit();
|