| | |
| | | width="180" |
| | | sortable |
| | | /> |
| | | <el-table-column prop="type" label="煤料类型"> |
| | | <template #default="scope"> |
| | | {{scope.row.type === 1 ? '成品' : '原料'}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="coal" label="煤种" sortable /> |
| | | <el-table-column prop="unit" label="单位" width="70" /> |
| | | <el-table-column |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="煤料类型" prop="type"> |
| | | <el-select |
| | | v-model="mergeForm.type" |
| | | placeholder="请选择煤料类型" |
| | | :disabled="operationType === 'view'" |
| | | > |
| | | <el-option |
| | | :label="item.label" |
| | | v-for="item in typeList" |
| | | :key="item.value" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-divider></el-divider> |
| | | <el-row> |
| | |
| | | // 合并弹框 |
| | | const mergeVisible = ref(false); |
| | | const operationType = ref(""); |
| | | const typeList = ref([ |
| | | { |
| | | label: "成品", |
| | | value: 1, |
| | | }, |
| | | { |
| | | label: "原料", |
| | | value: 2, |
| | | }, |
| | | ]); |
| | | const data = reactive({ |
| | | form: { |
| | | supplierName: "", |
| | |
| | | "数据?" |
| | | ) |
| | | .then((res) => { |
| | | console.log(res); |
| | | if (res) { |
| | | ElMessage.success("正在导出数据,请稍候..."); |
| | | exportData(config.api, config.name); |
| | |
| | | const mergeRows = (type, row) => { |
| | | getDropdownData(); |
| | | coalPlanListOptions(); |
| | | if (type === "edit") { |
| | | if (type === "edit" || type === "view") { |
| | | mergeVisible.value = true; |
| | | } |
| | | } |
| | | operationType.value = type; |
| | | if (type !== "merge") { |
| | | mergeForm.value = { ...row }; |