| | |
| | | <!-- |
| | | * @Date: 2025-06-17 11:44:52 |
| | | * @LastEditors: gaoshp |
| | | * @LastEditTime: 2025-06-17 19:33:51 |
| | | * @LastEditTime: 2025-08-06 20:34:14 |
| | | * @FilePath: /mdmweb/src/views/basesetting/produceplan.vue |
| | | --> |
| | | <template> |
| | |
| | | @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" @row-del="rowDel" |
| | | @row-save="save" |
| | | @row-update="rowUpdate"> |
| | | <!-- |
| | | <template #menu-left> |
| | | <el-button type="primary" plain @click="importAction">导入 |
| | | </el-button> |
| | | </template> |
| | | --> |
| | | <!-- <template #menu="scope"> |
| | | <el-button type="primary" text size="default" v-if="permission.flow_model_update" |
| | | @click.stop="handleAction(scope.row, scope.index)">审批 |
| | |
| | | dialogWidth: 500, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: '程序名称', |
| | | prop: 'programName', |
| | | type: 'input', |
| | | search: false, |
| | | searchRange: true, |
| | | searchSpan: 8, |
| | | hide: true, |
| | | span: 24, |
| | | rules: [{ required: true, message: '请输入程序名称', trigger: 'blur' }], |
| | | }, |
| | | // { |
| | | // label: '程序名称', |
| | | // prop: 'programName', |
| | | // type: 'input', |
| | | // search: false, |
| | | // searchRange: true, |
| | | // searchSpan: 8, |
| | | // hide: true, |
| | | // span: 24, |
| | | // rules: [{ required: true, message: '请输入程序名称', trigger: 'blur' }], |
| | | // }, |
| | | { |
| | | label: '人员名称', |
| | | prop: 'name', |
| | |
| | | // prop: 'index', |
| | | // type: 'index', |
| | | // }, |
| | | { |
| | | label: '图号', |
| | | prop: 'drawingNo', |
| | | type: 'input', |
| | | display: true, |
| | | span: 24, |
| | | rules: [{ required: true, message: '请输入图号', trigger: 'blur' }], |
| | | }, |
| | | { |
| | | label: '专业组长', |
| | | prop: 'teamLeaderId', |
| | |
| | | }, |
| | | rules: [{ required: true, message: '请输入审核(高师)', trigger: 'blur' }], |
| | | }, |
| | | |
| | | |
| | | // Add more columns as needed |
| | | ], |
| | |
| | | }, |
| | | rowUpdate (row, index, done, loading) { |
| | | console.log('rowUpdate', row); |
| | | |
| | | update(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | |
| | | save (row, done, loading) { |
| | | console.log('save', row); |
| | | save(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!', |
| | | }); |
| | | done(); |
| | | (res) => { |
| | | if(res.data.code !== 200) { |
| | | this.$message.error(res.data.msg); |
| | | loading() |
| | | //done();//关闭窗口 |
| | | return; |
| | | } |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!', |
| | | }); |
| | | done(); |
| | | }, |
| | | error => { |
| | | loading(); |
| | | window.console.log(error); |
| | | |
| | | loading(); |
| | | window.console.log(error); |
| | | } |
| | | ); |
| | | } |