| | |
| | | @keyup.enter="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="产品规格:"> |
| | | <el-input v-model="searchForm.productSpec" |
| | | <el-input v-model="searchForm.specification" |
| | | placeholder="请输入" |
| | | clearable |
| | | style="width: 160px;" |
| | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="产品规格"> |
| | | <div class="info-display">{{ mergeForm.productSpec || '-' }}</div> |
| | | <div class="info-display">{{ mergeForm.specification || '-' }}</div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | |
| | | placeholder="请输入产品名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="产品规格" |
| | | prop="productSpec"> |
| | | <el-input v-model="form.productSpec" |
| | | prop="specification"> |
| | | <el-input v-model="form.specification" |
| | | placeholder="请输入产品规格" /> |
| | | </el-form-item> |
| | | <el-form-item label="物料编码" |
| | |
| | | }, |
| | | { |
| | | label: "产品规格", |
| | | prop: "productSpec", |
| | | prop: "specification", |
| | | width: "150px", |
| | | className: "spec-cell", |
| | | }, |
| | |
| | | // 设置表单数据 |
| | | mergeForm.materialCode = row.materialCode; |
| | | mergeForm.productName = row.productName || ""; |
| | | mergeForm.productSpec = row.productSpec || ""; |
| | | mergeForm.specification = row.specification || ""; |
| | | mergeForm.length = row.length || 0; |
| | | mergeForm.width = row.width || 0; |
| | | mergeForm.height = row.height || 0; |
| | |
| | | const mergeForm = reactive({ |
| | | materialCode: "", |
| | | productName: "", |
| | | productSpec: "", |
| | | specification: "", |
| | | length: 0, |
| | | width: 0, |
| | | height: 0, |
| | |
| | | applyNo: "", |
| | | customerName: "", |
| | | productName: "", |
| | | productSpec: "", |
| | | specification: "", |
| | | materialCode: "", |
| | | quantity: 0, |
| | | volume: 0, |
| | |
| | | { required: true, message: "请输入客户名称", trigger: "blur" }, |
| | | ], |
| | | productName: [{ required: true, message: "请输入产品名称", trigger: "blur" }], |
| | | productSpec: [{ required: true, message: "请输入产品规格", trigger: "blur" }], |
| | | specification: [ |
| | | { required: true, message: "请输入产品规格", trigger: "blur" }, |
| | | ], |
| | | materialCode: [ |
| | | { required: true, message: "请输入物料编码", trigger: "blur" }, |
| | | ], |
| | |
| | | searchForm: { |
| | | customerName: "", |
| | | productName: "", |
| | | productSpec: "", |
| | | specification: "", |
| | | materialCode: "", |
| | | applyNo: "", |
| | | dateRange: [], |
| | |
| | | Object.assign(searchForm.value, { |
| | | customerName: "", |
| | | productName: "", |
| | | productSpec: "", |
| | | specification: "", |
| | | materialCode: "", |
| | | applyNo: "", |
| | | dateRange: [], |
| | |
| | | const firstRow = selectedRows.value[0]; |
| | | mergeForm.materialCode = selectedserialNo.value; |
| | | mergeForm.productName = firstRow.productName || ""; |
| | | mergeForm.productSpec = firstRow.productSpec || ""; |
| | | mergeForm.specification = firstRow.specification || ""; |
| | | mergeForm.length = firstRow.length || 0; |
| | | mergeForm.width = firstRow.width || 0; |
| | | mergeForm.height = firstRow.height || 0; |
| | |
| | | applyNo: "", |
| | | customerName: "", |
| | | productName: "", |
| | | productSpec: "", |
| | | specification: "", |
| | | materialCode: "", |
| | | quantity: 0, |
| | | volume: 0, |
| | |
| | | applyNo: row.applyNo || "", |
| | | customerName: row.customerName || "", |
| | | productName: row.productName || "", |
| | | productSpec: row.productSpec || "", |
| | | specification: row.specification || "", |
| | | materialCode: row.materialCode || "", |
| | | quantity: row.quantity || 0, |
| | | volume: row.volume || 0, |