| | |
| | | <el-table-column prop="productName" label="产品大类" min-width="160" /> |
| | | <el-table-column prop="model" label="型号名称" min-width="200" /> |
| | | <el-table-column prop="unit" label="单位" min-width="160" /> |
| | | <el-table-column prop="materialCode" label="料号" min-width="100" /> |
| | | </el-table> |
| | | |
| | | <div class="mt-3 flex justify-end"> |
| | |
| | | prop: "model", |
| | | }, |
| | | { |
| | | label: "料号", |
| | | prop: "materialCode", |
| | | }, |
| | | { |
| | | label: "BOM编号", |
| | | prop: "bomNo", |
| | | }, |
| | |
| | | processRouteCode: row.processRouteCode || '', |
| | | productName: row.productName || '', |
| | | model: row.model || '', |
| | | materialCode: row.materialCode || '', |
| | | bomNo: row.bomNo || '', |
| | | description: row.description || '', |
| | | type: 'route', |
| | |
| | | </div> |
| | | <div class="info-item"> |
| | | <div class="info-label-wrapper"> |
| | | <span class="info-label">料号</span> |
| | | </div> |
| | | <div class="info-value-wrapper"> |
| | | <span class="info-value">{{ routeInfo.materialCode || '-' }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="info-item"> |
| | | <div class="info-label-wrapper"> |
| | | <span class="info-label">BOM编号</span> |
| | | </div> |
| | | <div class="info-value-wrapper"> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="产品名称" prop="productName" min-width="160" /> |
| | | <el-table-column label="规格名称" prop="model" min-width="140" /> |
| | | <el-table-column label="料号" prop="materialCode" min-width="140" /> |
| | | <el-table-column label="单位" prop="unit" width="100" /> |
| | | <el-table-column label="是否质检" prop="isQuality" width="100"> |
| | | <template #default="scope"> |
| | |
| | | processRouteCode: '', |
| | | productName: '', |
| | | model: '', |
| | | materialCode: '', |
| | | bomNo: '', |
| | | description: '' |
| | | }); |
| | |
| | | processRouteCode: route.query.processRouteCode || '', |
| | | productName: route.query.productName || '', |
| | | model: route.query.model || '', |
| | | materialCode: route.query.materialCode || '', |
| | | bomNo: route.query.bomNo || '', |
| | | description: route.query.description || '' |
| | | }; |
| | |
| | | </el-form-item> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="materialCode" |
| | | label="料号" /> |
| | | <el-table-column prop="processName" |
| | | label="消耗工序"> |
| | | <template #default="{ row, $index }"> |
| | |
| | | prop="productName" /> |
| | | <el-table-column label="规格型号" |
| | | prop="model" /> |
| | | <el-table-column label="料号" |
| | | prop="materialCode" /> |
| | | </el-table> |
| | | <product-select-dialog v-if="dataValue.showProductDialog" |
| | | v-model:model-value="dataValue.showProductDialog" |
| | |
| | | const routeProductModelName = computed( |
| | | () => route.query.productModelName || "" |
| | | ); |
| | | const routeMaterialCode = computed(() => route.query.materialCode || ""); |
| | | const routeOrderId = computed(() => route.query.orderId); |
| | | const pageType = computed(() => route.query.type); |
| | | const isOrderPage = computed( |
| | |
| | | { |
| | | productName: "", |
| | | model: "", |
| | | materialCode: "", |
| | | bomNo: "", |
| | | }, |
| | | ]); |
| | |
| | | if (isTopLevel) { |
| | | if ( |
| | | productData.productName === tableData[0].productName && |
| | | productData.model === tableData[0].model |
| | | productData.model === tableData[0].model && |
| | | productData.materialCode === tableData[0].materialCode |
| | | ) { |
| | | // 查找是否已经有其他顶层行已经是这个产品 |
| | | const hasOther = dataValue.dataList.some( |
| | |
| | | if (item.tempId === dataValue.currentRowName) { |
| | | item.productName = productData.productName; |
| | | item.model = productData.model; |
| | | item.materialCode = productData.materialCode; |
| | | item.productModelId = productData.id; |
| | | item.unit = productData.unit || ""; |
| | | return; |
| | |
| | | if (item.tempId === tempId) { |
| | | item.productName = productData.productName; |
| | | item.model = productData.model; |
| | | item.materialCode = productData.materialCode; |
| | | item.productModelId = productData.id; |
| | | item.unit = productData.unit || ""; |
| | | return true; |
| | |
| | | // 从路由参数回显数据 |
| | | tableData[0].productName = routeProductName.value as string; |
| | | tableData[0].model = routeProductModelName.value as string; |
| | | tableData[0].materialCode = routeMaterialCode.value as string; |
| | | tableData[0].bomNo = routeBomNo.value as string; |
| | | |
| | | // 订单情况下禁用编辑 |
| | |
| | | minWidth: 140 |
| | | }, |
| | | { |
| | | label: "料号", |
| | | prop: "materialCode", |
| | | minWidth: 100 |
| | | }, |
| | | { |
| | | label: "版本号", |
| | | prop: "version", |
| | | width: 100 |
| | |
| | | id: row.id, |
| | | bomNo: row.bomNo || '', |
| | | productName: row.productName || '', |
| | | materialCode: row.materialCode || '', |
| | | productModelName: row.productModelName || '' |
| | | } |
| | | }); |
| | |
| | | prop: "productModelName", |
| | | minWidth: 100, |
| | | }, |
| | | { |
| | | label: "料号", |
| | | prop: "materialCode", |
| | | minWidth: 100, |
| | | }, |
| | | { |
| | | label: "单位", |
| | | prop: "unit", |
| | |
| | | <span class="mr12">生产批号:{{ header.lotNo || "-" }}</span> |
| | | <span class="mr12">产品名称:{{ header.productCategory || "-" }}</span> |
| | | <span class="mr12">规格:{{ header.specificationModel || "-" }}</span> |
| | | <span class="mr12">料号:{{ header.materialCode || "-" }}</span> |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | |
| | | lotNo: route.query.lotNo, |
| | | productCategory: route.query.productCategory, |
| | | specificationModel: route.query.specificationModel, |
| | | materialCode: route.query.materialCode, |
| | | })); |
| | | |
| | | // 工序数据(接口替换) |
| | |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | label="料号" |
| | | prop="materialCode" |
| | | > |
| | | <el-input v-model="formState.materialCode" disabled /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | label="单位" |
| | | prop="unit" |
| | | > |
| | |
| | | routeId: undefined, |
| | | productName: "", |
| | | productModelName: "", |
| | | materialCode: "", |
| | | unit: "", |
| | | priority: undefined, |
| | | quantity: 0, |
| | |
| | | productName: "", |
| | | productModelName: "", |
| | | unit: "", |
| | | materialCode: "", |
| | | priority: priority_type.value && priority_type.value.length > 0 ? priority_type.value[2].value : undefined, |
| | | quantity: '', |
| | | lotNo: "", |
| | |
| | | formState.value.productModelName = product.model; |
| | | formState.value.productModelId = product.id; |
| | | formState.value.unit = product.unit; |
| | | formState.value.materialCode = product.materialCode || ""; |
| | | showProductSelectDialog.value = false; |
| | | fetchRouteOptions( product.id); |
| | | // 触发表单验证更新 |
| | |
| | | width: '120px', |
| | | }, |
| | | { |
| | | label: "料号", |
| | | prop: "materialCode", |
| | | width: '120px', |
| | | }, |
| | | { |
| | | label: "工艺路线编号", |
| | | prop: "processRouteCode", |
| | | width: '200px', |
| | |
| | | processRouteCode: data.processRouteCode || "", |
| | | productName: data.productName || "", |
| | | model: data.model || "", |
| | | materialCode: data.materialCode || "", |
| | | bomNo: data.bomNo || "", |
| | | description: data.description || "", |
| | | orderId, |
| | |
| | | bomNo: row.bomNo || "", |
| | | productName: row.productCategory || "", |
| | | productModelName: row.specificationModel || "", |
| | | materialCode: row.materialCode || "", |
| | | orderId: row.id, |
| | | type: "order", |
| | | }, |
| | |
| | | lotNo: row.lotNo || "", |
| | | productCategory: row.productCategory || "", |
| | | specificationModel: row.specificationModel || "", |
| | | materialCode: row.materialCode || "", |
| | | }, |
| | | }); |
| | | }; |
| | |
| | | prop: 'model', |
| | | }, |
| | | { |
| | | label: '投入料号', |
| | | prop: 'materialCode', |
| | | }, |
| | | { |
| | | label: '投入数量', |
| | | prop: 'quantity', |
| | | }, |
| | |
| | | <el-descriptions-item label="工单编号">{{ row.workOrderNo || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="产品名称">{{ row.productName || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="产品规格型号">{{ row.productModelName || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="料号">{{ row.materialCode || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="产出数量">{{ row.quantity || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="报废数量">{{ row.scrapQty || '-' }}</el-descriptions-item> |
| | | <el-descriptions-item label="单位">{{ row.unit || '-' }}</el-descriptions-item> |
| | |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "料号", |
| | | prop: "materialCode", |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "产出数量", |
| | | prop: "quantity", |
| | | width: 120, |
| | |
| | | <span class="info-label">产品规格</span> |
| | | <span class="info-value">{{ transferCardRowData.model }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <span class="info-label">料号</span> |
| | | <span class="info-value">{{ transferCardRowData.materialCode }}</span> |
| | | </div> |
| | | <!-- <div class="info-item"> |
| | | <span class="info-label">工单状态</span> |
| | | <span class="info-value">{{ |
| | |
| | | prop: "model", |
| | | }, |
| | | { |
| | | label: "料号", |
| | | prop: "materialCode", |
| | | }, |
| | | { |
| | | label: "单位", |
| | | prop: "unit", |
| | | }, |