pull/17/head^2
xiaozhiyong 2 years ago
parent 2bbf28b9c1
commit 7a74234022
  1. 22
      src/views/order/components/billOfLading.vue

@ -77,7 +77,11 @@
</el-form-item>
</div>
</div>
<div v-show="item.deliveryStatus == 'SUBMITED'" style="text-align: right; color: #409eff" @click="billAdd(item, index)">
<div
v-show="item.deliveryStatus == 'SUBMITED'"
style="text-align: right; color: #409eff; cursor: pointer"
@click="billAdd(item, index)"
>
我来修改/锁定
</div>
<div class="billBottom-body-bottom">
@ -143,6 +147,7 @@
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogDelivery = false"> </el-button>
<el-button type="primary" @click="billdelivery()"> </el-button>
</span>
</el-dialog>
@ -219,6 +224,21 @@ export default {
created() {},
methods: {
billdelivery() {
this.deliveryQuantity
let percentage103 = (this.billAddData.preDeliveryQuantity * 10000 * 1.03) / 10000
if (this.deliveryQuantity > percentage103) {
this.$confirm('实际提货量超出预约提货量103%, 是否确认?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.realBilldelivery()
})
return
}
this.realBilldelivery()
},
realBilldelivery() {
this.billAddData.deliveryStatus = 'COMPLETE'
this.billAddData.accDeliveryQuantity = this.deliveryQuantity
order.update(this.billAddData).then(res => {

Loading…
Cancel
Save