|
|
|
@ -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 => { |
|
|
|
|