Commit ec993848 by chenwq

判断膜卷号是否开启

1 parent 5af91801
...@@ -369,6 +369,7 @@ export default { ...@@ -369,6 +369,7 @@ export default {
item.id = this.detailInfo.id item.id = this.detailInfo.id
for (let j = 0; j < item.goodsWarehousingList.length; j++) { for (let j = 0; j < item.goodsWarehousingList.length; j++) {
let subItem = item.goodsWarehousingList[j] let subItem = item.goodsWarehousingList[j]
if (this.manageMode) {
// 校验:膜卷号必填 // 校验:膜卷号必填
if (!subItem.filmRollList || (subItem.filmRollList && subItem.filmRollList.length == 0)) { if (!subItem.filmRollList || (subItem.filmRollList && subItem.filmRollList.length == 0)) {
this.$message({ this.$message({
...@@ -387,6 +388,7 @@ export default { ...@@ -387,6 +388,7 @@ export default {
}) })
return true return true
} }
}
subItem.increaseStockNum = subItem.increaseStockNum * (item.stockNum / item.purchaseNumber) subItem.increaseStockNum = subItem.increaseStockNum * (item.stockNum / item.purchaseNumber)
} }
params.id = this.detailInfo.orderDeliveryId params.id = this.detailInfo.orderDeliveryId
......
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
validator: (rule, value, callback, source) => { validator: (rule, value, callback, source) => {
let idx = Object.keys(source)[0].split('.')[1] let idx = Object.keys(source)[0].split('.')[1]
let target = this.formdata.tableData[idx] || {} let target = this.formdata.tableData[idx] || {}
if (!this.goodsTypeList.includes(target.goodsTypeName)) { if (!this.goodsTypeList.includes(target.goodsTypeName) || !this.manageMode) {
return callback() return callback()
} }
if (!target.filmRollList) { if (!target.filmRollList) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!