From 0609ad2318e9d20dfa1d1eebe3c24242717cd112 Mon Sep 17 00:00:00 2001 From: payne <bzrlw2012@163.com> Date: 周三, 24 4月 2024 13:06:46 +0800 Subject: [PATCH] 新增实体 --- iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabForm.vue | 63 +++++++++++++++++++++---------- 1 files changed, 43 insertions(+), 20 deletions(-) diff --git a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabForm.vue b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabForm.vue index 19b9116..7e52bb9 100644 --- a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabForm.vue +++ b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabForm.vue @@ -1,32 +1,27 @@ <template> - <a-modal - title="鏂板鐗╂枡淇℃伅" - :width="900" - :visible="visible" - :confirmLoading="confirmLoading" - @ok="handleSubmit" - @cancel="handleCancel" - > + <a-modal title="鏂板鐗╂枡淇℃伅" :width="900" :visible="visible" :confirmLoading="confirmLoading" @ok="handleSubmit" + @cancel="handleCancel"> <a-spin :spinning="confirmLoading"> - <!-- tab --> - <a-tabs default-active-key="1" @change="callback"> + <!-- tab @change="callback"--> + <a-tabs default-active-key="1"> <a-tab-pane key="1" tab="鍩烘湰淇℃伅"> - <add-form ref="addForm" @ok="handleOk" /> + <add-form ref="addForm" @ok="handleOk" /> </a-tab-pane> <a-tab-pane key="2" tab="鎺у埗灞炴��" force-render> - Content of Tab Pane 2 + <add-control-rule ref="WmsControlRule" @ok="handleOk" /> </a-tab-pane> <a-tab-pane key="3" tab="鎵规灞炴��"> - Content of Tab Pane 3 + 闇�姹傚緟瀹� </a-tab-pane> <a-tab-pane key="4" tab="鏇夸唬鍝佺鐞�"> - Content of Tab Pane 4 + <add-form-sub ref="addFormWmsSubstituteGood" @ok="handleOk" /> </a-tab-pane> <a-tab-pane key="5" tab="瀹㈡埛"> - Content of Tab Pane 5 + <add-form-base-customer ref="addFormBaseCustomer" @ok="handleOk" /> </a-tab-pane> + <a-tab-pane key="7" tab="鍖呰鍏崇郴"> - Content of Tab Pane 6 + <add-form-container-packaging ref="addFormContainerPackaging" @ok="handleOk" /> </a-tab-pane> </a-tabs> @@ -37,13 +32,18 @@ <script> import { WmsMaterialAdd, GetAreas, GetStations } from '@/api/modular/main/WmsMaterialManage' import addForm from './tabItem/addForm.vue' +import addFormBaseCustomer from './tabItem/addFormBaseCustomer/addFormBaseCustomer.vue' +import addFormContainerPackaging from './tabItem/WmsContainerPackaging/addFormContainerPackaging.vue' +import addFormSub from './tabItem/WmsSubstituteGood/addFormWmsSubstituteGood.vue' +import addControlRule from './tabItem/WmsControlRule/index.vue' export default { components: { - // STable, addForm, - // editForm, - // excelForm + addFormBaseCustomer, + addFormContainerPackaging, + addFormSub, + addControlRule }, data() { return { @@ -67,6 +67,9 @@ } }, methods: { + handleOk() { + + }, // 鍒濆鍖栨柟娉� add(record) { this.visible = true @@ -116,7 +119,27 @@ }) values.stationNameParameter = values.stationNameParameterArr.join(',') } - WmsMaterialAdd(values) + console.log(6666666666666) + console.log() + console.log(6666666666666 + '鎺у埗灞炴��') + console.log(this.$refs.WmsControlRule.selectedRows) + var ControlRuleld = this.$refs.WmsControlRule.selectedRows[0].id; + + console.log(6666666666666 + '鏇夸唬鍝�') + console.log(this.$refs.addFormWmsSubstituteGood.list) + + console.log(6666666666666 + '瀹㈡埛妗f闆嗗悎') + console.log(this.$refs.addFormBaseCustomer.list) + + var param = { + value1: values, + ControlRuleld: ControlRuleld, //鎺у埗灞炴�� + BaseCustomerList: this.$refs.addFormBaseCustomer.list, //瀹㈡埛妗f闆嗗悎 + SubstituteGoodLis: this.$refs.addFormWmsSubstituteGood.list, //鏇夸唬鍝� + value5: {}, + value6: {}, + } + WmsMaterialAdd(param) .then(res => { if (res.success) { this.$message.success('鏂板鎴愬姛') -- Gitblit v1.9.3