|
|
@ -77,7 +77,11 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</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> |
|
|
|
<div class="billBottom-body-bottom"> |
|
|
|
<div class="billBottom-body-bottom"> |
|
|
@ -143,6 +147,7 @@ |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogDelivery = false">取 消</el-button> |
|
|
|
<el-button @click="dialogDelivery = false">取 消</el-button> |
|
|
|
|
|
|
|
|
|
|
|
<el-button type="primary" @click="billdelivery()">确 定</el-button> |
|
|
|
<el-button type="primary" @click="billdelivery()">确 定</el-button> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
@ -219,6 +224,21 @@ export default { |
|
|
|
created() {}, |
|
|
|
created() {}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
billdelivery() { |
|
|
|
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.deliveryStatus = 'COMPLETE' |
|
|
|
this.billAddData.accDeliveryQuantity = this.deliveryQuantity |
|
|
|
this.billAddData.accDeliveryQuantity = this.deliveryQuantity |
|
|
|
order.update(this.billAddData).then(res => { |
|
|
|
order.update(this.billAddData).then(res => { |
|
|
|