|
@@ -8,7 +8,16 @@
|
|
|
size="80%">
|
|
|
<div slot="title">
|
|
|
<div class="flex-align-center">
|
|
|
- <p><span style="font-size:14px">合计:</span><span style="color:red;font-size:16px;"><b>¥ {{tool.formatAmount(data.amount,2)}}</b></span></p>
|
|
|
+ <p ><span style="font-size:14px">订单合计:</span><span style="color:red;font-size:16px;"><b>¥ {{tool.formatAmount(data.amount,2)}}</b></span></p>
|
|
|
+ <!-- <label style="font-size:14px;margin-left:10px" for="">备注:</label>
|
|
|
+ <input class="order__note__input" v-model="defaultData.remarks" type="text" placeholder="请输入订单备注"> -->
|
|
|
+<!-- <p>运费:{{data.amount > data.freefreightamount >= 0?'当前订单免运费':`订单满${data.freefreightamount}元免运费,当前还差${data.freefreightamount - data.amount}元`}}</p>-->
|
|
|
+ </div>
|
|
|
+ <div class="flex-align-center">
|
|
|
+<!-- <p ><span style="font-size:14px">订单合计:</span><span style="color:red;font-size:16px;"><b>¥ {{tool.formatAmount(data.amount,2)}}</b></span></p>-->
|
|
|
+ <!-- <label style="font-size:14px;margin-left:10px" for="">备注:</label>
|
|
|
+ <input class="order__note__input" v-model="defaultData.remarks" type="text" placeholder="请输入订单备注"> -->
|
|
|
+ <p style="font-size: 13px !important;color: #8888;font-weight: normal">{{data.amount > freefreightamount?'当前订单免运费':`订单满${freefreightamount}元免运费,当前还差${freefreightamount - data.amount}元`}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="drawer__panel">
|
|
@@ -251,10 +260,20 @@ export default {
|
|
|
},
|
|
|
agnetInfo:{},
|
|
|
total:0,
|
|
|
- setcol:24
|
|
|
+ setcol:24,
|
|
|
+ freefreightamount:''
|
|
|
}
|
|
|
},
|
|
|
+ created () {
|
|
|
+ this.queryBasicInfo()
|
|
|
+ },
|
|
|
methods:{
|
|
|
+ async queryBasicInfo () {
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "id":20220920084001,"content":{},
|
|
|
+ })
|
|
|
+ this.freefreightamount = res.data.freefreightamount
|
|
|
+ },
|
|
|
onShow () {
|
|
|
this.queryAgentiInfo()
|
|
|
this.defaultData.freightstatus = this.data.freightstatus
|
|
@@ -287,12 +306,13 @@ export default {
|
|
|
"sys_enterpriseid":this.agnetInfo.sys_enterpriseid,
|
|
|
"where":{
|
|
|
"condition":"",
|
|
|
- "workaddress":0
|
|
|
+ "workaddress":1
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
this.receiveAddresslist = res.data
|
|
|
- this.defaultData.re_info = res.data[0]
|
|
|
+ this.defaultData.re_info = res.data[0] ? res.data[0] : {}
|
|
|
+ console.log(res.data,this.defaultData.re_info)
|
|
|
},
|
|
|
|
|
|
// 账号信息
|
|
@@ -369,6 +389,7 @@ export default {
|
|
|
},
|
|
|
onDelSuccess () {
|
|
|
this.$refs.addpro.listData()
|
|
|
+ this.$emit('onSuccess')
|
|
|
},
|
|
|
addMoreProduct () {
|
|
|
this.setcol === 12?this.setcol = 24 : this.setcol = 12
|
|
@@ -394,6 +415,7 @@ export default {
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
this.setcol = 24
|
|
|
this.$refs['prolist'].listData()
|
|
|
+ this.$emit('onSuccess')
|
|
|
})
|
|
|
}
|
|
|
},
|