Commit 4bc4910f by chenwq

feat(交付管理): 添加膜卷号显示与校验功能

在交付详情和新增页面添加膜卷号显示列,并实现膜卷号的必填校验和数量匹配校验
1 parent 8e92bbcd
......@@ -385,6 +385,7 @@ export default {
for (let j = 0; j < item.goodsWarehousingList.length; j++) {
let subItem = item.goodsWarehousingList[j]
if (this.manageMode) {
if (this.membraneTypeList.includes(item.goodsType)) {
// 校验:膜卷号必填
if (!subItem.filmRollList || (subItem.filmRollList && subItem.filmRollList.length == 0)) {
this.$message({
......@@ -404,6 +405,7 @@ export default {
return true
}
}
}
subItem.increaseStockNum = subItem.increaseStockNum * (item.stockNum / item.purchaseNumber)
}
params.id = this.detailInfo.orderDeliveryId
......
......@@ -45,6 +45,15 @@
scope.scope.alternateUnits).toFixed(2) : parseFloat(scope.scope.increaseStockNum).toFixed(2)) +
(membraneTypeList.includes(scope.scope.goodsType) ? '卷' : '件') : '-' }}</span>
</template>
<template slot="film" slot-scope="scope">
<div v-if="manageMode && membraneTypeList.includes(scope.scope.goodsType)">
<el-button v-if="!scope.scope.filmRollList" type="text">--</el-button>
<div v-else>
<span class="film-txt">{{ scope.scope.filmRollList.join(',') }}</span>
</div>
</div>
<div v-else>--</div>
</template>
</GLTable>
</el-form>
<div v-else class="message">
......@@ -105,6 +114,11 @@ export default {
addHtml: 'increaseStockNum'
},
{
label: '膜卷号',
prop: 'filmRollList',
addHtml: 'film'
},
{
label: '入库仓库',
prop: 'yqMerchantName'
},
......@@ -124,15 +138,23 @@ export default {
}
]
},
manageMode: false,
tableData: [],
detailInfo: {}
}
},
created() { },
created() {
this.getManageMode()
},
methods: {
handleDetailClose() {
this.dialogShow = false
},
getManageMode() {
this.$apis.purchaseShopping.getManageMode({}).then(res => {
this.manageMode = res
})
},
getDetail() {
this.$apis.delivery.getDeliveryDetail({ id: this.id }).then(res => {
const { data } = res
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!