¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: æå(å¼åç») lzhe@yxqiche.com |
| | | * @Date: 2025-05-28 12:03:55 |
| | | * @LastEditors: æå(å¼åç») lzhe@yxqiche.com |
| | | * @LastEditTime: 2025-06-13 14:50:38 |
| | | * @FilePath: /mdmweb/src/views/flowmgr/taskassign.vue |
| | | * @Description: è¿æ¯é»è®¤è®¾ç½®,请设置`customMade`, æå¼koroFileHeaderæ¥çé
ç½® è¿è¡è®¾ç½®: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | | <template> |
| | | <basic-container> |
| | | <avue-form ref="form" :option="attachOption" v-model="attachForm" @submit="formSubmit"></avue-form> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | var that = this; |
| | | return { |
| | | form: {}, |
| | | machineCodeList: [], |
| | | attachOption: { |
| | | labelWidth: 160, |
| | | submitBtn: true, |
| | | emptyBtn: false, |
| | | tip: false, |
| | | column: [ |
| | | { |
| | | label: 'å¾å·', |
| | | prop: 'drawingNo', |
| | | type: 'input', |
| | | span: 12, |
| | | dataType: 'string', |
| | | }, |
| | | { |
| | | label: 'å¾å·ç次', |
| | | prop: 'drawingNoEdition', |
| | | type: 'input', |
| | | span: 12, |
| | | dataType: 'string', |
| | | }, |
| | | { |
| | | label: '产ååå·', |
| | | prop: 'productType', |
| | | type: 'input', |
| | | span: 12, |
| | | dataType: 'string', |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: 'è¯·éæ©æµç¨ç±»å', |
| | | // trigger: 'blur', |
| | | // }, |
| | | // ], |
| | | }, |
| | | { |
| | | label: 'å·¥åºå·', |
| | | prop: 'processNo', |
| | | type: 'input', |
| | | span: 12, |
| | | dataType: 'string', |
| | | }, |
| | | { |
| | | label: 'å·¥åºåç§°', |
| | | prop: 'processName', |
| | | type: 'input', |
| | | span: 12, |
| | | dataType: 'string', |
| | | }, |
| | | { |
| | | label: 'å·¥èºç次', |
| | | prop: 'craftEdition', |
| | | type: 'input', |
| | | span: 12, |
| | | dataType: 'string', |
| | | }, |
| | | { |
| | | label: 'å å·¥æºåº', |
| | | prop: 'machineCode', |
| | | type: 'select', |
| | | dicUrl: `/blade-mdm/machine/page`, |
| | | dicFormatter: function(res) { |
| | | that.machineCodeList = res.data.records; |
| | | return res.data.records; |
| | | }, |
| | | props: { |
| | | label: 'name', |
| | | value: 'code', |
| | | }, |
| | | span: 12 |
| | | }, |
| | | { |
| | | label: '计åé宿¶é´ï¼å¤©ï¼', |
| | | prop: 'planLockDays', |
| | | type: 'input', |
| | | span: 12, |
| | | dataType: 'string', |
| | | }, |
| | | { |
| | | label: '计åå¼å·¥æ¶é´', |
| | | prop: 'planStartTime', |
| | | type: 'date', |
| | | format: "YYYY-MM-DD", |
| | | valueFormat: "YYYY-MM-DD", |
| | | span: 12, |
| | | dataType: 'string', |
| | | }, |
| | | ], |
| | | }, |
| | | attachForm: {}, |
| | | }; |
| | | }, |
| | | methods: { |
| | | formSubmit(form,done) { |
| | | var form = {...form}; |
| | | this.machineCodeList.forEach(item=> { |
| | | if(form.machineCode == item.code) { |
| | | form.machineMode = item.name; |
| | | } |
| | | }) |
| | | form.producePlanId = "1932411828915224578"; |
| | | axios({ |
| | | url: '/blade-mdm/flow/dispatch/start', |
| | | method: 'post', |
| | | data: form, |
| | | }).then( |
| | | res => { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: 'æä½æå!', |
| | | }); |
| | | this.$refs.form.resetForm(); |
| | | done(); |
| | | }, |
| | | error => { |
| | | window.console.log(error); |
| | | done(); |
| | | } |
| | | ); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | |
| | | </style> |