| | |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column type="index" label="序号" width="60" /> |
| | | <el-table-column prop="productName" label="产品大类" min-width="160" /> |
| | | <el-table-column prop="drawingNumber" label="图纸编号" min-width="160" /> |
| | | <el-table-column prop="model" label="型号名称" min-width="200" /> |
| | | <el-table-column prop="unit" label="单位" min-width="160" /> |
| | | </el-table> |
| | |
| | | |
| | | const tableColumn = ref([ |
| | | { label: "产品名称", prop: "productName", width: 180 }, |
| | | { label: "产品图纸编号", prop: "drawingNumber", width: 150 }, |
| | | { label: "规格名称", prop: "model", width: 150 }, |
| | | { label: "单位", prop: "unit", width: 80 }, |
| | | { label: "工序名称", prop: "processId", width: 180 }, |
| | |
| | | prop: "productName", |
| | | }, |
| | | { |
| | | label: "产品图纸编号", |
| | | prop: "drawingNumber", |
| | | }, |
| | | { |
| | | label: "规格名称", |
| | | prop: "model", |
| | | }, |
| | |
| | | query: { |
| | | id: row.id, |
| | | processRouteCode: row.processRouteCode || '', |
| | | drawingNumber: row.drawingNumber || "", |
| | | productName: row.productName || '', |
| | | model: row.model || '', |
| | | bomNo: row.bomNo || '', |
| | |
| | | </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.drawingNumber || '-' }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="info-item"> |
| | | <div class="info-label-wrapper"> |
| | | <span class="info-label">规格名称</span> |
| | | </div> |
| | | <div class="info-value-wrapper"> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="产品名称" prop="productName" min-width="160" /> |
| | | <el-table-column label="图纸编号" prop="drawingNumber" min-width="160" /> |
| | | <el-table-column label="规格名称" prop="model" min-width="140" /> |
| | | <el-table-column label="单位" prop="unit" width="100" /> |
| | | <el-table-column label="是否质检" prop="isQuality" width="100"> |
| | |
| | | <div class="card-content"> |
| | | <div v-if="item.productName" class="product-info"> |
| | | <div class="product-name">{{ item.productName }}</div> |
| | | <div class="product-model">{{ item.drawingNumber || '-' }}</div> |
| | | <div v-if="item.model" class="product-model"> |
| | | {{ item.model }} |
| | | <!-- <span v-if="item.unit" class="product-unit">{{ item.unit }}</span> --> |
| | |
| | | const routeInfo = ref({ |
| | | processRouteCode: '', |
| | | productName: '', |
| | | drawingNumber: '', |
| | | model: '', |
| | | bomNo: '', |
| | | description: '' |
| | |
| | | .then(res => { |
| | | tableData.value = res.data || []; |
| | | tableLoading.value = false; |
| | | routeInfo.value = tableData.value[0] || {} |
| | | // 列表加载完成后初始化拖拽排序 |
| | | nextTick(() => { |
| | | initSortable(); |
| | |
| | | routeInfo.value = { |
| | | processRouteCode: route.query.processRouteCode || '', |
| | | productName: route.query.productName || '', |
| | | drawingNumber: route.query.drawingNumber || '', |
| | | model: route.query.model || '', |
| | | bomNo: route.query.bomNo || '', |
| | | description: route.query.description || '' |
| | |
| | | style="width: 100%"> |
| | | <el-table-column prop="productName" |
| | | label="产品" /> |
| | | <el-table-column prop="drawingNumber" |
| | | label="产品图纸编号" /> |
| | | <el-table-column prop="model" |
| | | label="规格"> |
| | | <template #default="{ row, $index }"> |
| | |
| | | prop="bomNo" /> |
| | | <el-table-column label="产品名称" |
| | | prop="productName" /> |
| | | <el-table-column label="产品图纸编号" |
| | | prop="drawingNumber" /> |
| | | <el-table-column label="规格型号" |
| | | prop="model" /> |
| | | </el-table> |
| | |
| | | // 从路由参数获取产品信息 |
| | | const routeBomNo = computed(() => route.query.bomNo || ""); |
| | | const routeProductName = computed(() => route.query.productName || ""); |
| | | const routeDrawingNumber = computed(() => route.query.drawingNumber || ""); |
| | | const routeProductModelName = computed( |
| | | () => route.query.productModelName || "" |
| | | ); |
| | |
| | | const tableData = reactive([ |
| | | { |
| | | productName: "", |
| | | drawingNumber: "", |
| | | model: "", |
| | | bomNo: "", |
| | | }, |
| | |
| | | dataValue.dataList.map(item => { |
| | | if (item.tempId === dataValue.currentRowName) { |
| | | item.productName = productData.productName; |
| | | item.drawingNumber = productData.drawingNumber || ""; |
| | | item.model = productData.model; |
| | | item.productModelId = productData.id; |
| | | item.unit = productData.unit || ""; |
| | |
| | | const childItem = (item: any, tempId: any, productData: any) => { |
| | | if (item.tempId === tempId) { |
| | | item.productName = productData.productName; |
| | | item.drawingNumber = productData.drawingNumber || ""; |
| | | item.model = productData.model; |
| | | item.productModelId = productData.id; |
| | | item.unit = productData.unit || ""; |
| | |
| | | onMounted(async () => { |
| | | // 从路由参数回显数据 |
| | | tableData[0].productName = routeProductName.value as string; |
| | | tableData[0].drawingNumber = routeDrawingNumber.value as string; |
| | | tableData[0].model = routeProductModelName.value as string; |
| | | tableData[0].bomNo = routeBomNo.value as string; |
| | | |
| | |
| | | <el-table-column prop="productName" |
| | | label="产品" |
| | | width="150" /> |
| | | <el-table-column prop="drawingNumber" |
| | | label="图纸编号" |
| | | width="150" /> |
| | | <el-table-column prop="model" |
| | | label="规格" |
| | | width="150"> |
| | |
| | | minWidth: 160 |
| | | }, |
| | | { |
| | | label: "产品图纸编号", |
| | | prop: "drawingNumber", |
| | | minWidth: 160 |
| | | }, |
| | | { |
| | | label: "规格型号", |
| | | prop: "productModelName", |
| | | minWidth: 140 |
| | |
| | | path: '/productionManagement/productStructureDetail', |
| | | query: { |
| | | id: row.id, |
| | | drawingNumber: row.drawingNumber || "", |
| | | bomNo: row.bomNo || '', |
| | | productName: row.productName || '', |
| | | productModelName: row.productModelName || '' |
| | |
| | | prop: "productName", |
| | | minWidth: 100, |
| | | }, |
| | | { |
| | | label: "产品图纸编号", |
| | | prop: "drawingNumber", |
| | | minWidth: 100, |
| | | }, |
| | | { |
| | | label: "规格型号", |
| | | prop: "productModelName", |
| | |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | label="图纸编号" |
| | | prop="drawingNumber" |
| | | > |
| | | <el-input v-model="formState.drawingNumber" disabled /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | label="规格" |
| | | prop="productModelName" |
| | | > |
| | |
| | | productName: "", |
| | | productModelName: "", |
| | | unit: "", |
| | | drawingNumber: "", |
| | | quantity: 0, |
| | | }); |
| | | |
| | |
| | | productModelId: undefined, |
| | | routeId: undefined, |
| | | productName: "", |
| | | drawingNumber: "", |
| | | productModelName: "", |
| | | quantity: '', |
| | | }; |
| | |
| | | const product = products[0]; |
| | | formState.value.productId = product.productId; |
| | | formState.value.productName = product.productName; |
| | | formState.value.drawingNumber = product.drawingNumber; |
| | | formState.value.productModelName = product.model; |
| | | formState.value.productModelId = product.id; |
| | | formState.value.unit = product.unit; |
| | |
| | | width: '120px', |
| | | }, |
| | | { |
| | | label: "图纸编号", |
| | | prop: "drawingNumber", |
| | | width: '160px', |
| | | }, |
| | | { |
| | | label: "规格", |
| | | prop: "specificationModel", |
| | | width: '120px', |
| | |
| | | id: data.id, |
| | | processRouteCode: data.processRouteCode || "", |
| | | productName: data.productName || "", |
| | | drawingNumber: data.drawingNumber || "", |
| | | model: data.model || "", |
| | | bomNo: data.bomNo || "", |
| | | description: data.description || "", |
| | |
| | | query: { |
| | | id: row.id, |
| | | bomNo: row.bomNo || "", |
| | | drawingNumber: row.drawingNumber || "", |
| | | productName: row.productCategory || "", |
| | | productModelName: row.specificationModel || "", |
| | | orderId: row.id, |
| | |
| | | prop: 'productName', |
| | | }, |
| | | { |
| | | label: '投入产品图纸编号', |
| | | prop: 'drawingNumber', |
| | | }, |
| | | { |
| | | label: '投入产品型号', |
| | | prop: 'model', |
| | | }, |
| | |
| | | width: 120, |
| | | }, |
| | | { |
| | | label: "产品图纸编号", |
| | | prop: "drawingNumber", |
| | | width: 160, |
| | | }, |
| | | { |
| | | label: "产品规格型号", |
| | | prop: "productModelName", |
| | | width: 120, |
| | |
| | | width: "140", |
| | | }, |
| | | { |
| | | label: "图纸编号", |
| | | prop: "drawingNumber", |
| | | }, |
| | | { |
| | | label: "规格", |
| | | prop: "model", |
| | | }, |