|
|
@ -55,25 +55,25 @@ |
|
|
<view class="content-box" style="margin-bottom:110rpx;"> |
|
|
<view class="content-box" style="margin-bottom:110rpx;"> |
|
|
<!-- 账号权限是否可以维护成本价格(主账号和被授权的账号可以维护),参数名:shop_admin_cost,维护在用户表中,存在前后端缓存里,把备注栏挪出来,谁都可以备注 --> |
|
|
<!-- 账号权限是否可以维护成本价格(主账号和被授权的账号可以维护),参数名:shop_admin_cost,维护在用户表中,存在前后端缓存里,把备注栏挪出来,谁都可以备注 --> |
|
|
<view class="price-box-list"> |
|
|
<view class="price-box-list"> |
|
|
<view class="content-list"> |
|
|
<view class="content-list" v-if='type==0'> |
|
|
<view class="list-name">应付金额</view> |
|
|
<view class="list-name">应付金额</view> |
|
|
<view class="list-val"> |
|
|
<view class="list-val"> |
|
|
<input type="text" v-model="shouldPay"> |
|
|
<input type="text" v-model="shouldPay"> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="content-list"> |
|
|
<view class="content-list" v-if='type==0'> |
|
|
<view class="list-name">已付金额</view> |
|
|
<view class="list-name">已付金额</view> |
|
|
<view class="list-val"> |
|
|
<view class="list-val"> |
|
|
<input type="text" v-model="alreadyPay" @blur="changePay"> |
|
|
<input type="text" v-model="alreadyPay" @blur="changePay"> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="content-list"> |
|
|
<view class="content-list" v-if='type==0'> |
|
|
<view class="list-name">欠款</view> |
|
|
<view class="list-name">欠款</view> |
|
|
<view class="list-val"> |
|
|
<view class="list-val"> |
|
|
<input type="text" v-model="noPay" disabled> |
|
|
<input type="text" v-model="noPay" disabled> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="content-list"> |
|
|
<view class="content-list" v-if='type==0'> |
|
|
<view class="list-name">其他费用</view> |
|
|
<view class="list-name">其他费用</view> |
|
|
<view class="list-val"> |
|
|
<view class="list-val"> |
|
|
<input type="text" v-model="otherPay"> |
|
|
<input type="text" v-model="otherPay"> |
|
|
@ -189,7 +189,8 @@ |
|
|
columns: [], |
|
|
columns: [], |
|
|
keyList: [], |
|
|
keyList: [], |
|
|
temporaryList: [], |
|
|
temporaryList: [], |
|
|
zNum: 0 |
|
|
zNum: 0, |
|
|
|
|
|
type:'' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
filters: { |
|
|
filters: { |
|
|
@ -269,6 +270,7 @@ |
|
|
that.totalAmount += value.productCount |
|
|
that.totalAmount += value.productCount |
|
|
}) |
|
|
}) |
|
|
this.noPay = this.shouldPay |
|
|
this.noPay = this.shouldPay |
|
|
|
|
|
this.type = uni.getStorageSync('type') |
|
|
}, |
|
|
}, |
|
|
onLoad() { |
|
|
onLoad() { |
|
|
|
|
|
|
|
|
@ -523,6 +525,13 @@ |
|
|
title: "信息填写完成后入库!", |
|
|
title: "信息填写完成后入库!", |
|
|
icon: 'none' |
|
|
icon: 'none' |
|
|
}) |
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
if(type==0 && this.shouldPay == 0){ |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: "管理员必须维护价格!", |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
let that = this; |
|
|
let that = this; |
|
|
let purchase = { |
|
|
let purchase = { |
|
|
|