siontion 3 months ago
commit addf781c80

@ -317,7 +317,7 @@ const openDispatching = () => {
fuid.value = []
multipleSelection.value.filter((item) => {
fuid.value.push(item.dispatchId)
fuid.value.push(item.id)
})
ElMessageBox.confirm('是否批量删除?', '提示', {

@ -202,12 +202,7 @@
v-loading="subFormLoading"
label-width="0"
>
<el-table
:data="formData.matItemDOList"
class="hl-table"
:stripe="true"
:show-overflow-tooltip="true"
>
<el-table :data="formData.matItemDOList" class="hl-table" :stripe="true">
<el-table-column type="index" label="序号" min-width="80" align="center" fixed />
<el-table-column prop="projectSubCode" min-width="180" align="center">
<template #header> <span class="hl-table_header">*</span> 物料编码</template>
@ -438,10 +433,6 @@
:rules="subFormRules.storageOkQty"
class="mb-0px!"
>
<!-- <el-input
v-model="scope.row.storageOkQty"
v-bind:disabled="activetype == 'review' || activetype == 'Check'"
/> -->
<el-input-number
min="0"
:max="scope.row.preAmount * queryovertaskratio"
@ -815,6 +806,8 @@ const getList = async (arrMat) => {
(listItem) => listItem.projectSubCode === item.projectSubCode
)
if (!exists) {
item.storageOkQty = undefined
formData.value.matItemDOList.push(item)
}
})
@ -825,6 +818,7 @@ const getList2 = async (arrMat) => {
(listItem) => listItem.projectSubCode === item.projectSubCode
)
if (!exists) {
item.storageOkQty = undefined
formData.value.matItemDOList.push(item)
}
})
@ -979,7 +973,20 @@ const deleteFormData = async () => {
/** 提交表单 */
const emit = defineEmits(['success']) // success
const stockamount = ref(false)
const saveFormData = async (active, status, type) => {
stockamount.value = false
if (formData.value.matItemDOList.length > 0) {
formData.value.matItemDOList.forEach((item) => {
if (item.stockQuantity < item.storageOkQty) {
stockamount.value = true
}
})
}
if (stockamount.value) {
message.alertWarning('领料数量不能大于库存数量')
return
}
if (active === 'SUBMIT') {
//
if (formData.value.matItemDOList.length === 0) {

Loading…
Cancel
Save