物料需求计划 子项目编号

物料需求计划 子项目编号
pull/4/head
siontion 8 months ago
parent 40cbd7dc84
commit b49866f95f

@ -142,8 +142,8 @@
<template #header><span class="hl-table_header">*</span>子项目编号</template>
<template #default="{ row, $index }">
<el-form-item :prop="`${$index}.projectSubId`" :rules="subFormRules.projectSubId" class="mb-0px!">
<el-select class="!w-265px" v-model="row.projectSubId" filterable clearable>
<el-option v-for="dict in formData.projectOrderSubs" :key="dict.projectSubId" :label="dict.projectSubCode" :value="dict.projectSubId" />
<el-select class="!w-265px" v-model="row.projectSubId" clearable>
<el-option v-for="dict in formData.projectPlanSubs" :key="dict.projectSubId" :label="dict.projectSubCode" :value="dict.projectSubId" />
</el-select>
</el-form-item>
</template>

@ -878,6 +878,16 @@ const handleSelectedMaterial = (currentIndex: number, newValue: any) => {
formData.value.matItemDOList[currentIndex].matSpec = newValue?.spec
formData.value.matItemDOList[currentIndex].matType = newValue?.materialType
formData.value.matItemDOList[currentIndex].matUnit = newValue?.unit
formData.value.matItemDOList[currentIndex].rgId = ''
formData.value.matItemDOList[currentIndex].pnId = ''
formData.value.matItemDOList[currentIndex].pnlist = pnList.value.filter(
(pn) =>
pn.wh_id == formData.value.whId &&
matLastData.value.filter((mat) => mat.matId == newValue?.id && mat.pnId == pn.id).length > 0
)
}
</script>
<style>

Loading…
Cancel
Save