From c98c05b996c0bed40cc13d19dd84e90bc49ffd12 Mon Sep 17 00:00:00 2001
From: Houjie <714924425@qq.com>
Date: 星期一, 18 八月 2025 11:38:33 +0800
Subject: [PATCH] 安灯模块,安灯工单,安灯人、响应人、处理人, 字典翻译
---
src/views/mes/modules/MesProductionOrderModal.vue | 82 +++++++++++++++++++++--------------------
1 files changed, 42 insertions(+), 40 deletions(-)
diff --git a/src/views/mes/modules/MesProductionOrderModal.vue b/src/views/mes/modules/MesProductionOrderModal.vue
index a21838d..4623da5 100644
--- a/src/views/mes/modules/MesProductionOrderModal.vue
+++ b/src/views/mes/modules/MesProductionOrderModal.vue
@@ -8,53 +8,55 @@
:okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="鍏抽棴">
- <mes-production-order-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></mes-production-order-form>
+ <mes-production-order-form ref="realForm" @ok="submitCallback"
+ :disabled="disableSubmit"></mes-production-order-form>
</j-modal>
</template>
<script>
- import MesProductionOrderForm from './MesProductionOrderForm'
- export default {
- name: 'MesProductionOrderModal',
- components: {
- MesProductionOrderForm
+import MesProductionOrderForm from './MesProductionOrderForm'
+
+export default {
+ name: 'MesProductionOrderModal',
+ components: {
+ MesProductionOrderForm
+ },
+ data() {
+ return {
+ title: '',
+ width: 1200,
+ visible: false,
+ disableSubmit: false
+ }
+ },
+ methods: {
+ add() {
+ this.visible = true
+ this.$nextTick(() => {
+ this.$refs.realForm.add()
+ })
},
- data () {
- return {
- title:'',
- width:896,
- visible: false,
- disableSubmit: false
- }
+ edit(record) {
+ this.visible = true
+ this.$nextTick(() => {
+ this.$refs.realForm.edit(record)
+ })
},
- methods: {
- add () {
- this.visible=true
- this.$nextTick(()=>{
- this.$refs.realForm.add();
- })
- },
- edit (record) {
- this.visible=true
- this.$nextTick(()=>{
- this.$refs.realForm.edit(record);
- })
- },
- close () {
- this.$emit('close');
- this.visible = false;
- },
- handleOk () {
- this.$refs.realForm.submitForm();
- },
- submitCallback(){
- this.$emit('ok');
- this.visible = false;
- },
- handleCancel () {
- this.close()
- }
+ close() {
+ this.$emit('close')
+ this.visible = false
+ },
+ handleOk() {
+ this.$refs.realForm.submitForm()
+ },
+ submitCallback() {
+ this.$emit('ok')
+ this.visible = false
+ },
+ handleCancel() {
+ this.close()
}
}
+}
</script>
\ No newline at end of file
--
Gitblit v1.9.3