fix:采购入库、供应商退货、生产领料、生产退料和产品入库的单位名称问题解决

This commit is contained in:
zhangxuanming 2025-02-08 10:56:06 +08:00
parent cda33a6177
commit bcbd1ee603
6 changed files with 28 additions and 23 deletions

View File

@ -11,11 +11,11 @@
<template v-slot="scope">
<el-radio v-model="selectedId" :label="scope.row.lineId" @change="handleRowChange(scope.row)">{{""}}</el-radio>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="物料编码" width="120px" align="center" prop="itemCode" />
<el-table-column label="物料名称" width="150px" align="center" prop="itemName" />
<el-table-column label="规格型号" align="center" prop="specification" />
<el-table-column label="单位" align="center" prop="unitOfMeasure" />
<el-table-column label="单位" align="center" prop="unitName" />
<el-table-column label="到货数量" align="center" prop="quantityArrival" />
<el-table-column label="是否检验" align="center" prop="iqcCheck">
<template slot-scope="scope">
@ -26,7 +26,7 @@
<el-table-column label="检验单号" align="center" prop="iqcCode" />
<el-table-column label="备注" align="center" prop="remark" />
</el-table>
<pagination
v-show="total>0"
:total="total"
@ -40,7 +40,7 @@
</div>
</el-dialog>
</template>
<script>
import { listArrivalnoticeline} from "@/api/mes/wm/arrivalnoticeline";
export default {
@ -130,4 +130,3 @@
}
};
</script>

View File

@ -1,5 +1,5 @@
<template>
<div class="app-container">
<div class="app-container">
<el-row v-if="optType != 'view'" :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
@ -41,7 +41,7 @@
<el-table-column label="产品物料编码" width="120px" align="center" prop="itemCode" />
<el-table-column label="产品物料名称" width="120px" align="center" prop="itemName" :show-overflow-tooltip="true"/>
<el-table-column label="规格型号" align="center" prop="specification" :show-overflow-tooltip="true"/>
<el-table-column label="单位" align="center" prop="unitOfMeasure" />
<el-table-column label="单位" align="center" prop="unitName" />
<el-table-column label="领料数量" align="center" prop="quantityIssued" />
<el-table-column label="批次号" align="center" prop="batchCode" />
<el-table-column label="仓库名称" align="center" prop="warehouseName" />
@ -69,7 +69,7 @@
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
@ -110,8 +110,8 @@
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="单位" prop="unitOfMeasure">
<el-input v-model="form.unitOfMeasure" readonly="readonly" />
<el-form-item label="单位" prop="unitName">
<el-input v-model="form.unitName" readonly="readonly" />
</el-form-item>
</el-col>
<el-col :span="8">
@ -350,7 +350,7 @@ export default {
this.form.itemCode = obj.itemCode;
this.form.itemName = obj.itemName;
this.form.specification = obj.specification;
this.form.unitOfMeasure = obj.unitOfMeasure;
this.form.unitOfMeasure = obj.unitOfMeasure;
this.form.batchCode = obj.batchCode;
this.form.warehouseId = obj.warehouseId;
this.form.warehouseCode = obj.warehouseCode;
@ -363,6 +363,7 @@ export default {
this.form.areaName = obj.areaName;
this.form.quantityIssued = obj.quantityOnhand;
this.form.quantityMax = obj.quantityOnhand;
this.form.unitName = obj.unitName
}
},
/** 导出按钮操作 */

View File

@ -30,7 +30,7 @@
<el-table-column label="物料编码" align="center" width="120px" prop="itemCode" />
<el-table-column label="物料名称" align="center" prop="itemName" :show-overflow-tooltip="true"/>
<el-table-column label="规格型号" align="center" prop="specification" :show-overflow-tooltip="true"/>
<el-table-column label="单位" align="center" prop="unitOfMeasure" />
<el-table-column label="单位" align="center" prop="unitName" />
<el-table-column label="入库数量" align="center" prop="quantityRecived" />
<el-table-column label="批次号" align="center" prop="batchCode" />
<el-table-column label="仓库" align="center" prop="warehouseName" />
@ -84,8 +84,8 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="单位" prop="unitOfMeasure">
<el-input v-model="form.unitOfMeasure" readonly="readonly" />
<el-form-item label="单位" prop="unitName">
<el-input v-model="form.unitName" readonly="readonly" />
</el-form-item>
</el-col>
</el-row>
@ -378,6 +378,7 @@ export default {
this.form.itemName = obj.itemName;
this.form.specification = obj.specification;
this.form.unitOfMeasure = obj.unitOfMeasure;
this.form.unitName = obj.unitName
}
},
//
@ -393,6 +394,7 @@ export default {
this.form.specification = obj.specification;
this.form.unitOfMeasure = obj.unitOfMeasure;
this.form.quantityRecived = obj.quantityQuanlified;
this.form.unitName = obj.unitName
}
},
//IQC

View File

@ -43,7 +43,7 @@
<el-table-column label="产品物料编码" width="120px" align="center" prop="itemCode" />
<el-table-column label="产品物料名称" width="150px" align="center" prop="itemName" :show-overflow-tooltip="true"/>
<el-table-column label="规格型号" width="120px" align="center" prop="specification" :show-overflow-tooltip="true"/>
<el-table-column label="单位" align="center" prop="unitOfMeasure" />
<el-table-column label="单位" align="center" prop="unitName" />
<el-table-column label="入库数量" align="center" prop="quantityRecived" />
<el-table-column label="批次号" align="center" prop="batchCode" />
<el-table-column label="仓库名称" align="center" prop="warehouseName" />
@ -97,8 +97,8 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="单位" prop="unitOfMeasure">
<el-input v-model="form.unitOfMeasure" placeholder="请输入单位" />
<el-form-item label="单位" prop="unitName">
<el-input v-model="form.unitName" placeholder="请输入单位" />
</el-form-item>
</el-col>
</el-row>
@ -388,6 +388,7 @@ export default {
this.form.batchCode = obj.batchCode;
this.form.quantityRecived = obj.quantityOnhand;
this.form.quantityMax = obj.quantityOnhand;
this.form.unitName = obj.unitName
}
},
//

View File

@ -41,7 +41,7 @@
<el-table-column label="物料编码" width="120px" align="center" prop="itemCode" />
<el-table-column label="物料名称" width="150px" align="center" prop="itemName" />
<el-table-column label="规格型号" align="center" prop="specification" :show-overflow-tooltip="true"/>
<el-table-column label="单位" align="center" prop="unitOfMeasure" />
<el-table-column label="单位" align="center" prop="unitName" />
<el-table-column label="退料数量" align="center" prop="quantityRt" />
<el-table-column label="领料批次号" width="120px" align="center" prop="batchCode" />
<el-table-column label="仓库名称" width="100px" align="center" prop="warehouseName" />
@ -95,8 +95,8 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="单位" prop="unitOfMeasure">
<el-input v-model="form.unitOfMeasure" readonly="readonly" placeholder="请输入单位" />
<el-form-item label="单位" prop="unitName">
<el-input v-model="form.unitName" readonly="readonly" placeholder="请输入单位" />
</el-form-item>
</el-col>
</el-row>
@ -378,6 +378,7 @@ export default {
this.form.batchCode = obj.batchCode;
this.form.quantityRt = obj.quantityOnhand;
this.form.quantityMax = obj.quantityOnhand;
this.form.unitName = obj.unitName
}
},
//

View File

@ -30,7 +30,7 @@
<el-table-column label="物料编码" width="120px" align="center" prop="itemCode" />
<el-table-column label="物料名称" width="150px" align="center" prop="itemName" :show-overflow-tooltip="true"/>
<el-table-column label="规格型号" align="center" prop="specification" :show-overflow-tooltip="true"/>
<el-table-column label="单位" align="center" prop="unitOfMeasure" />
<el-table-column label="单位" align="center" prop="unitName" />
<el-table-column label="退货数量" align="center" prop="quantityRted" />
<el-table-column label="批次号" align="center" prop="batchCode" />
<el-table-column label="仓库" align="center" prop="warehouseName" />
@ -97,8 +97,8 @@
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="单位" prop="unitOfMeasure">
<el-input v-model="form.unitOfMeasure" readonly="readonly" />
<el-form-item label="单位" prop="unitName">
<el-input v-model="form.unitName" readonly="readonly" />
</el-form-item>
</el-col>
<el-col :span="8">
@ -355,6 +355,7 @@ export default {
this.form.areaName = obj.areaName;
this.form.quantityRted = obj.quantityOnhand;
this.form.quantityMax = obj.quantityOnhand;
this.form.unitName = obj.unitName
}
},
}