feat(钢卷类型异常): 添加原料类型缺失标签页并修复单位显示

- 新增原料类型缺失标签页及相关查询功能
- 将实测长度单位从mm修正为m
- 添加原料类型缺失列表的查询方法
This commit is contained in:
2026-04-27 14:37:52 +08:00
parent 9e03dbe9de
commit 3c5c71408b

View File

@@ -3,6 +3,7 @@
<div style="display: flex; align-items: center; justify-content: flex-start; gap: 10px;"> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 10px;">
<el-radio-group v-model="activeTab" @change="handleRefresh"> <el-radio-group v-model="activeTab" @change="handleRefresh">
<el-radio-button label="missing">类型缺失</el-radio-button> <el-radio-button label="missing">类型缺失</el-radio-button>
<el-radio-button label="rawMaterialMissing">原料类型缺失</el-radio-button>
<el-radio-button label="mismatch">匹配异常</el-radio-button> <el-radio-button label="mismatch">匹配异常</el-radio-button>
</el-radio-group> </el-radio-group>
@@ -130,7 +131,7 @@
<el-form-item label="净重" prop="netWeight"> <el-form-item label="净重" prop="netWeight">
<el-input v-model="form.netWeight" placeholder="请输入净重" /> <el-input v-model="form.netWeight" placeholder="请输入净重" />
</el-form-item> </el-form-item>
<el-form-item label="实测长度(mm)" prop="actualLength"> <el-form-item label="实测长度(m)" prop="actualLength">
<el-input-number :controls="false" v-model="form.actualLength" placeholder="请输入实测长度" type="number" <el-input-number :controls="false" v-model="form.actualLength" placeholder="请输入实测长度" type="number"
:step="0.01" /> :step="0.01" />
</el-form-item> </el-form-item>
@@ -164,7 +165,7 @@
</template> </template>
<script> <script>
import { listTypeErrorCoil, getMaterialCoilTrace, getMaterialCoil, updateMaterialCoilSimple, listMismatchedItemCoil, fixMismatchedItemCoil } from "@/api/wms/coil"; import { listTypeErrorCoil, getMaterialCoilTrace, getMaterialCoil, updateMaterialCoilSimple, listMismatchedItemCoil, fixMismatchedItemCoil, listMaterialCoil } from "@/api/wms/coil";
import WarehouseSelect from "@/components/KLPService/WarehouseSelect"; import WarehouseSelect from "@/components/KLPService/WarehouseSelect";
import ProductSelect from "@/components/KLPService/ProductSelect"; import ProductSelect from "@/components/KLPService/ProductSelect";
import RawMaterialSelect from "@/components/KLPService/RawMaterialSelect"; import RawMaterialSelect from "@/components/KLPService/RawMaterialSelect";
@@ -247,7 +248,7 @@ export default {
{ label: '厂家', prop: 'itemManufacturer' }, { label: '厂家', prop: 'itemManufacturer' },
{ label: '调制度', prop: 'temperGrade' }, { label: '调制度', prop: 'temperGrade' },
{ label: '镀层种类', prop: 'coatingType' }, { label: '镀层种类', prop: 'coatingType' },
{ label: '实测长度(mm)', prop: 'actualLength' }, { label: '实测长度(m)', prop: 'actualLength' },
{ label: '实测宽度(mm)', prop: 'actualWidth' }, { label: '实测宽度(mm)', prop: 'actualWidth' },
{ label: '实测厚度(mm)', prop: 'actualThickness' }, { label: '实测厚度(mm)', prop: 'actualThickness' },
{ label: '钢卷表面处理', prop: 'coilSurfaceTreatment' }, { label: '钢卷表面处理', prop: 'coilSurfaceTreatment' },
@@ -309,6 +310,9 @@ export default {
this.getList(); this.getList();
} else if (this.activeTab === 'mismatch') { } else if (this.activeTab === 'mismatch') {
this.getListMismatched(); this.getListMismatched();
} else if (this.activeTab === 'rawMaterialMissing') {
// this.getListRawMaterialMissing();
this.getListRawMaterialMissing();
} }
}, },
/** 查询类型不匹配的钢卷列表 */ /** 查询类型不匹配的钢卷列表 */
@@ -329,6 +333,15 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
// 查询原料类型缺失的钢卷列表
getListRawMaterialMissing() {
this.loading = true;
listMaterialCoil({ ...this.queryParams, dataType: 1, status: 0, onlyEmptyPackingStatus: true }).then(response => {
this.materialCoilList = response.rows || [];
this.total = response.total || 0;
this.loading = false;
});
},
/** 修复原料材质与钢卷类型不匹配的钢卷 */ /** 修复原料材质与钢卷类型不匹配的钢卷 */
handleFixType(row) { handleFixType(row) {
this.buttonLoading = true; this.buttonLoading = true;