| | |
| | | <el-table-column prop="product" |
| | | label="产品名称" /> |
| | | <el-table-column prop="specification" |
| | | label="尺寸" /> |
| | | label="规格型号" /> |
| | | <el-table-column prop="unit" |
| | | label="单位" /> |
| | | <el-table-column prop="unitPrice" |
| | |
| | | <el-table-column prop="productCategory" |
| | | label="产品名称" /> |
| | | <el-table-column prop="specificationModel" |
| | | label="尺寸" /> |
| | | label="规格型号" /> |
| | | <el-table-column prop="unit" |
| | | label="单位" /> |
| | | <el-table-column prop="quantity" |
| | |
| | | label="产品名称" |
| | | show-overflow-tooltip /> |
| | | <el-table-column prop="specificationModel" |
| | | label="尺寸" |
| | | label="规格型号" |
| | | show-overflow-tooltip /> |
| | | <el-table-column prop="deliveryQuantity" |
| | | label="发货数量" |
| | |
| | | formRef.value.clearValidate(); |
| | | } |
| | | }); |
| | | // 确保选项加载完成后再匹配值类型 |
| | | // 确保选项加载完成 |
| | | getProductOptions().then(() => { |
| | | // 确保值类型匹配(如果选项已加载) |
| | | if (productOptions.value.length > 0 && form.value.approveDeptId) { |
| | | const matchedOption = productOptions.value.find( |
| | | opt => |
| | | opt.deptId == form.value.approveDeptId || |
| | | String(opt.deptId) === String(form.value.approveDeptId) |
| | | ); |
| | | if (matchedOption) { |
| | | form.value.approveDeptId = matchedOption.deptId; |
| | | } |
| | | } |
| | | // 再次清除验证,确保选项加载后值匹配正确 |
| | | nextTick(() => { |
| | | if (formRef.value) { |