Compare commits
No commits in common. "686371be13480121339644edc0ee615ff8145824" and "954d6c81265856bfa05ec6474dd7d5cc12afc0af" have entirely different histories.
686371be13
...
954d6c8126
@ -156,16 +156,18 @@ ref="subOutSourceMatFormRef" :model="formData.matItemDOList" :rules="subOutSourc
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="purchaseAmount" label="采购数量" min-width="180" align="center" />
|
|
||||||
<el-table-column prop="matType" label="物料类型" min-width="120" align="center">
|
<el-table-column prop="matType" label="物料类型" min-width="120" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<dict-tag :type="DICT_TYPE.HELI_MATERIAL_TYPE" :value="scope.row.matType" />
|
<dict-tag :type="DICT_TYPE.HELI_MATERIAL_TYPE" :value="scope.row.matType" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="matSpec" label="规格/型号" min-width="120" align="center" />
|
<el-table-column prop="matSpec" label="规格/型号" min-width="120" align="center" />
|
||||||
|
<el-table-column label="系统单位" align="center" prop="matUnit" width="100px">
|
||||||
|
<template #default="scope">
|
||||||
|
<dict-tag :type="DICT_TYPE.HELI_MATERIAL_UNIT" :value="scope.row.matUnit" min-width="100" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="purchaseAmount" label="采购数量" min-width="180" align="center" />
|
||||||
<!-- <el-table-column prop="matRest" label="库存数量" min-width="180" align="center" /> -->
|
<!-- <el-table-column prop="matRest" label="库存数量" min-width="180" align="center" /> -->
|
||||||
<el-table-column prop="currentCount" min-width="180" align="center">
|
<el-table-column prop="currentCount" min-width="180" align="center">
|
||||||
<template #header><span class="hl-table_header">*</span>本次到货数量</template>
|
<template #header><span class="hl-table_header">*</span>本次到货数量</template>
|
||||||
@ -221,6 +223,11 @@ v-for="dict in formData.projectPlanSubs" :key="dict.projectSubId"
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column prop="unqualifiedContent" label="不合格内容" min-width="180" align="center">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-input v-model="scope.row.unqualifiedContent" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="repairable" min-width="260" align="center" label="修复判断">
|
<el-table-column prop="repairable" min-width="260" align="center" label="修复判断">
|
||||||
<template #header><span class="hl-table_header">*</span>修复判断</template>
|
<template #header><span class="hl-table_header">*</span>修复判断</template>
|
||||||
<template #default="{ row, $index }">
|
<template #default="{ row, $index }">
|
||||||
@ -235,11 +242,6 @@ v-for="dict in getIntDictOptions(DICT_TYPE.HELI_OUTSOURCE_STOCK_REPAIR)"
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="unqualifiedContent" label="不合格内容" min-width="180" align="center">
|
|
||||||
<template #default="scope">
|
|
||||||
<el-input v-model="scope.row.unqualifiedContent" />
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="reason" min-width="180" label="原因分析" align="center">
|
<el-table-column prop="reason" min-width="180" label="原因分析" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-input v-model="scope.row.reason" />
|
<el-input v-model="scope.row.reason" />
|
||||||
@ -250,11 +252,6 @@ v-for="dict in getIntDictOptions(DICT_TYPE.HELI_OUTSOURCE_STOCK_REPAIR)"
|
|||||||
<el-input v-model="scope.row.remark" />
|
<el-input v-model="scope.row.remark" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="系统单位" align="center" prop="matUnit" width="100px">
|
|
||||||
<template #default="scope">
|
|
||||||
<dict-tag :type="DICT_TYPE.HELI_MATERIAL_UNIT" :value="scope.row.matUnit" min-width="100" />
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -264,7 +264,7 @@
|
|||||||
<el-table-column prop="matType" label="物料类型" min-width="120" align="center">
|
<el-table-column prop="matType" label="物料类型" min-width="120" align="center">
|
||||||
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<dict-tag :type="DICT_TYPE.HELI_MATERIAL_TYPE" :value="scope.row.matType" v-if="typeof scope.row.matUnit === 'number'"/>
|
<dict-tag :type="DICT_TYPE.HELI_MATERIAL_TYPE" :value="scope.row.matType" v-if="typeof scope.row.matType === 'number' ? true : false" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="matSpec" label="规格/型号" min-width="120" align="center" />
|
<el-table-column prop="matSpec" label="规格/型号" min-width="120" align="center" />
|
||||||
@ -318,7 +318,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="matUnit" label="系统单位" min-width="100" align="center">
|
<el-table-column prop="matUnit" label="系统单位" min-width="100" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<dict-tag :type="DICT_TYPE.HELI_MATERIAL_UNIT" :value="scope.row.matUnit" v-if="typeof scope.row.matUnit === 'number'"/>
|
<dict-tag :type="DICT_TYPE.HELI_MATERIAL_UNIT" :value="scope.row.matUnit" v-if="scope.row.matUnit==null ? true : false" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="description" min-width="180" label="备注" align="center">
|
<el-table-column prop="description" min-width="180" label="备注" align="center">
|
||||||
@ -760,8 +760,6 @@ const handleSelectedMaterialPlanMat = (arr) => {
|
|||||||
arr.forEach((item) => {
|
arr.forEach((item) => {
|
||||||
if (!existingMatIds.has(item.matId)) {
|
if (!existingMatIds.has(item.matId)) {
|
||||||
item.description = '';
|
item.description = '';
|
||||||
item.matType=Number(item.matType)
|
|
||||||
item.matUnit=Number(item.matUnit)
|
|
||||||
formData.value.matItemDOList.push(item);
|
formData.value.matItemDOList.push(item);
|
||||||
existingMatIds.add(item.matId); // 将新添加的 matId 加入 Set
|
existingMatIds.add(item.matId); // 将新添加的 matId 加入 Set
|
||||||
}
|
}
|
||||||
|
@ -453,8 +453,9 @@ const getList = async (arrMat) => {
|
|||||||
row.pnlist = pnList.value.filter((pn) => pn.rg_id == row.rgId)
|
row.pnlist = pnList.value.filter((pn) => pn.rg_id == row.rgId)
|
||||||
if (row.pnlist.length == 1) {
|
if (row.pnlist.length == 1) {
|
||||||
row.pnId = row.pnlist[0].id
|
row.pnId = row.pnlist[0].id
|
||||||
}else if (pnList.value.length == 0) {
|
}else if (row.pnlist.length == 0) {
|
||||||
flag=false
|
flag=false
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
row.pnId=''
|
row.pnId=''
|
||||||
}
|
}
|
||||||
@ -462,10 +463,10 @@ const getList = async (arrMat) => {
|
|||||||
formData.value.matItemDOList.push(row)
|
formData.value.matItemDOList.push(row)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!flag){
|
||||||
|
message.error("该"+whName+"没有配置入库库位,请确认!")
|
||||||
|
}
|
||||||
})
|
})
|
||||||
if (!flag){
|
|
||||||
message.error("该"+whName+"没有配置入库库位,请确认!")
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user