| src/views/productionManagement/productionRecords/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/productionManagement/productionReporting/components/Detail.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/productionManagement/workOrder/components/ProductionRecordForm.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/productionManagement/workOrder/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/productionManagement/productionRecords/index.vue
@@ -83,10 +83,10 @@ const { proxy } = getCurrentInstance(); const { parameter_tyep } = proxy.useDict("parameter_tyep"); /** 系统内置参数「投入重量/数量」,不可编辑、删除(兼容旧名「投入重量」) */ /** 系统内置参数「投入重量/数量」,不可编辑、删除 */ const isLockedParam = (row) => { const name = String(row?.parameterItem ?? "").trim(); return name === "投入重量/数量" || name === "投入重量"; return name === "投入重量/数量"; }; const tableColumn = ref([ src/views/productionManagement/productionReporting/components/Detail.vue
@@ -71,7 +71,7 @@ <el-descriptions-item v-for="item in (otherData.rows || [])" :key="item.parameterItem" :label="item.parameterItem === '投入重量' ? '投入重量/数量' : item.parameterItem" :label="item.parameterItem" > {{ item.value || '-' }} </el-descriptions-item> src/views/productionManagement/workOrder/components/ProductionRecordForm.vue
@@ -41,10 +41,10 @@ const INPUT_WEIGHT_PARAM_ITEM = "投入重量/数量"; /** 参数项展示名(兼容库内旧名「投入重量」) */ /** 参数项展示名 */ const displayParameterItem = (name) => { const trimmed = String(name ?? "").trim(); if (trimmed === "投入重量") return INPUT_WEIGHT_PARAM_ITEM; if (trimmed === "投入重量/数量") return INPUT_WEIGHT_PARAM_ITEM; return trimmed; }; @@ -82,13 +82,16 @@ const isInputWeightItem = (item) => { const name = String(item?.parameterItem ?? "").trim(); return (name === "投入重量" || name.includes(INPUT_WEIGHT_PARAM_ITEM)) && normalizeUnit(item?.unit) === "kg"; const unit = normalizeUnit(item?.unit); return name.includes(INPUT_WEIGHT_PARAM_ITEM) && (unit === "kg" || unit.startsWith("kg/")); }; const isBlankCoeffItem = (item) => String(item?.parameterItem ?? "").includes("生坯系数") && normalizeUnit(item?.unit) === "g"; const isBlankCoeffItem = (item) => { const unit = normalizeUnit(item?.unit); return String(item?.parameterItem ?? "").includes("生坯系数") && (unit === "g" || unit.startsWith("g/")); }; /** 投入重量/数量(KG) = 本次生产数量 × 生坯系数(g) / 1000 */ const syncFormingInputWeight = () => { src/views/productionManagement/workOrder/index.vue
@@ -595,9 +595,9 @@ return; } reportForm.quantity = intValue; return; } else { reportForm.quantity = num; } reportForm.quantity = num; if (isFormingProcess.value) { nextTick(() => { productionRecordFormRef.value?.syncInputWeight?.(); @@ -900,12 +900,12 @@ return; } if (quantity > reportForm.planQuantity) { ElMessageBox.alert("本次生产数量不能超过待生产数量", "提示", { confirmButtonText: "确定", }); return; } // if (quantity > reportForm.planQuantity) { // ElMessageBox.alert("本次生产数量不能超过待生产数量", "提示", { // confirmButtonText: "确定", // }); // return; // } const submitData = { ...reportForm,