diff --git a/src/views/order/components/billOfLading.vue b/src/views/order/components/billOfLading.vue index 40f4e7a..e3fbe44 100644 --- a/src/views/order/components/billOfLading.vue +++ b/src/views/order/components/billOfLading.vue @@ -77,7 +77,11 @@ -
+
我来修改/锁定
@@ -143,6 +147,7 @@ 取 消 + 确 定 @@ -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 => {