|
|
@@ -73,7 +73,7 @@
|
|
|
<input @blur="sendCostBlur" type="number" placeholder="留空表示免运费" @input="countAllPrices" v-model="form.sendCost" placeholder-class="tui-placeholder"/>
|
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false">
|
|
|
- <view class="tui-title">付款方式</view>
|
|
|
+ <view class="tui-title">结算类型</view>
|
|
|
<button @tap="form.debt = 1" class="admin-button-com mini-btn" :class="form.debt == 1 ? 'blue' : 'default'">
|
|
|
欠款
|
|
|
</button>
|
|
|
@@ -82,6 +82,21 @@
|
|
|
</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :arrow="true" v-if="form.debt == 0">
|
|
|
+ <div class="tui-title">付款方式</div>
|
|
|
+ <picker
|
|
|
+ mode="selector"
|
|
|
+ :value="form.payWay"
|
|
|
+ :range="payWayList"
|
|
|
+ range-key="name"
|
|
|
+ @change="payWayChange"
|
|
|
+ class="tui-input"
|
|
|
+ >
|
|
|
+ <input v-model="form.payWay" name="payWay" type="text" hidden />
|
|
|
+ <div>{{payWayList[payWayindex].name}}</div>
|
|
|
+ </picker>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" >
|
|
|
<view class="tui-title">总金额</view>
|
|
|
<text style="color: #3385FF" v-if="form.sendType == 1">{{ (allPrice + Number(form.sendCost)).toFixed(2) }}</text>
|
|
|
@@ -89,7 +104,8 @@
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" >
|
|
|
- <view class="tui-title">实收金额</view>
|
|
|
+ <view v-if="form.debt == 1" class="tui-title">应收金额</view>
|
|
|
+ <view v-else class="tui-title">实收金额</view>
|
|
|
<input style="border: 1px solid #eee;color: #3385FF;width: calc(100%);height:70rpx;" type="number" @focus="modifyPrice=''" v-model="modifyPrice" placeholder-class="tui-placeholder"/>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
@@ -99,7 +115,8 @@
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false">
|
|
|
- <textarea style="height: 100rpx" v-model="form.remark" placeholder="备注"/>
|
|
|
+ <view class="tui-title">备注</view>
|
|
|
+ <textarea style="height: 100rpx" v-model="form.remark" placeholder="选填"/>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
</view>
|
|
|
@@ -157,6 +174,8 @@ export default {
|
|
|
return {
|
|
|
autoLoad: false,
|
|
|
isBilling: true,
|
|
|
+ payWayList:[{name:"微信",id:0},{name:"支付宝",id:1},{name:"现金",id:4},{name:"银行卡",id:5}],
|
|
|
+ payWayindex:0,
|
|
|
form: {
|
|
|
debt: 1, //付款方式 1欠款订单 0正常订单
|
|
|
shopId: "",
|
|
|
@@ -174,7 +193,8 @@ export default {
|
|
|
sendCost: "",
|
|
|
customId: "",
|
|
|
product: "",
|
|
|
- remark:""
|
|
|
+ remark:"",
|
|
|
+ payWay:0
|
|
|
},
|
|
|
money: "",
|
|
|
modifyPrice: 0,
|
|
|
@@ -211,11 +231,18 @@ export default {
|
|
|
init () {
|
|
|
this._getDet();
|
|
|
},
|
|
|
+ payWayChange(e){
|
|
|
+ let index = e.detail.value
|
|
|
+ this.payWayindex = index
|
|
|
+ this.form.payWay = this.payWayList[index].id
|
|
|
+ },
|
|
|
countAllPrices (e) {
|
|
|
this.allPrices = this.allPrices + Number(this.form.sendCost);
|
|
|
let allPrices = this.allPrice.toFixed(2)
|
|
|
this.modifyPrice = (Number(allPrices) + Number(this.form.sendCost)).toFixed(2);
|
|
|
-
|
|
|
+ },
|
|
|
+ setPayWay(payWay){
|
|
|
+ this.form.payWay = payWay
|
|
|
},
|
|
|
courier (type) {
|
|
|
this.form.sendType = type;
|