uu
This commit is contained in:
parent
565f82069d
commit
e736a46267
@ -30,12 +30,14 @@
|
||||
<view class="edm-input-item">
|
||||
<tpx-text-item label="是否需要代垫运费">
|
||||
<template v-slot:right>
|
||||
<u-switch v-model="modelInfo.blPrepareInFreight" activeValue="1" inactiveValue="0" active-color="#B12D29" size="34"></u-switch>
|
||||
<u-switch v-model="modelInfo.blPrepareInFreight" @change="handleDDianSwitch"
|
||||
activeValue="1" inactiveValue="0" active-color="#B12D29" size="34"
|
||||
></u-switch>
|
||||
</template>
|
||||
</tpx-text-item>
|
||||
</view>
|
||||
|
||||
<view v-if="modelInfo.blPrepareInFreight" class="edm-input-item">
|
||||
<view v-if="modelInfo.blPrepareInFreight == '1'" class="edm-input-item">
|
||||
<tpx-text-item label="代垫预估">
|
||||
<template v-slot:right>
|
||||
<tpx-input v-model:value="modelInfo.prepareInEstFee" _digit="5" inputAlign="right" suffix="CNY"></tpx-input>
|
||||
@ -98,7 +100,14 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
handleDDianSwitch(val){
|
||||
// if(val==1) {
|
||||
// // 开启代垫运费,需要往 modelInfo.feeItems同步数据
|
||||
// let curItem = modelInfo.feeItems?.filter(t=> t.val == '1002')[0]
|
||||
// if(!curItem) {
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -248,7 +248,10 @@
|
||||
</template>
|
||||
<template v-slot:footer>
|
||||
<view class="pos-rlt blcok-white" style="border-radius: 0;margin-top: 0;">
|
||||
<u-row>
|
||||
<view v-if="submitParam.lockFlag == 'T'">
|
||||
<view class="clr-prm font-weight font-30" style="padding: 20rpx 0;">{{submitParam.lockReason}}</view>
|
||||
</view>
|
||||
<u-row v-else>
|
||||
<u-button @click="handleSave()" size="large" shape="circle"
|
||||
custom-style="width: 260rpx;height:80rpx;font-size: 30rpx;" :plain="true" type="primary">保存</u-button>
|
||||
|
||||
@ -404,6 +407,11 @@
|
||||
let data = res.data || {}
|
||||
data.goodsPics = (data.goodsPics && data.goodsPics.split(",")) || []
|
||||
this.submitParam = res.data
|
||||
if(res.data.lockFlag == 'T') {
|
||||
setTimeout(()=> {
|
||||
this.showToast(res.data.lockReason)
|
||||
}, 500)
|
||||
}
|
||||
// 复制场景 清除billCode orderSn
|
||||
if(this.queryOption.copyBillCode) {
|
||||
delete this.submitParam.billCode
|
||||
|
||||
Loading…
Reference in New Issue
Block a user