Kaynağa Gözat

临时保存

yuhan 1 yıl önce
ebeveyn
işleme
bdd4c99d23

+ 26 - 1
itdmWeb/src/views/module-iTDM/weituo/modules/ItdmWeituoInfoForm.vue

@@ -19,7 +19,7 @@
 
 <script>
 
-import { httpAction, getAction } from '@api/manage'
+import { httpAction, getAction, postAction  } from '@api/manage'
 import { validateDuplicateValue } from '@/utils/util'
 import Step1 from './step/Step1'
 import Step2 from './step/Step2'
@@ -142,6 +142,31 @@ export default {
       })
     },
 
+    // 临时保存
+    temporarySave(){
+      console.log(this.currentTab)
+      // this.confirmLoading = true
+      // this.weituomodel = JSON.parse(sessionStorage.getItem('data'))
+      // console.log(!sessionStorage.getItem('yangpin'))
+      // if(sessionStorage.getItem('yangpin')){
+      //   this.weituomodel.yangpins = JSON.parse(sessionStorage.getItem('yangpin'))
+      // }
+      // if(sessionStorage.getItem('yangpinkz')){
+      //   this.weituomodel.pinShiYans = JSON.parse(sessionStorage.getItem('yangpinkz'))
+      // }
+      // console.log(this.weituomodel)
+      // postAction('/weituo/itdmWeituoInfo/staging', this.weituomodel ).then((res) => {
+      //   if (res.success) {
+      //     this.$message.success(res.message)
+      //     this.$emit('ok')
+      //   } else {
+      //     this.$message.warning(res.message)
+      //   }
+      // }).finally(() => {
+      //   that.confirmLoading = false
+      // })
+    },
+
     handleCategoryChange(value, backObj) {
       this.model = Object.assign(this.model, backObj)
     }

+ 3 - 2
itdmWeb/src/views/module-iTDM/weituo/modules/ItdmWeituoInfoModal.vue

@@ -66,8 +66,9 @@
         this.visible = false;
       },
       handleOk () {
-        console.log(1111)
-        // this.$refs.realForm.submitForm();
+        // console.log(this.$refs.realForm.$refs.)
+        // console.log(this.$refs.realForm.currentTab)
+        // this.$refs.realForm.temporarySave();
       },
       submitCallback(){
         this.$emit('ok');

+ 5 - 1
itdmWeb/src/views/module-iTDM/weituo/modules/step/Step1.vue

@@ -180,7 +180,7 @@ export default {
     // 选择委托单位
     handleSelect(item) {
       console.log(item)
-      
+
       var v = this.restaurants.find(i => i.id === item)
       // var v = this.restaurants.find(i => i.weituiClient === item)
       if(v){
@@ -226,6 +226,10 @@ export default {
 
         }
       })
+    },
+    // 临时保存
+    temporarySave(){
+      console.log('step1')
     }
   }
 

+ 4 - 0
itdmWeb/src/views/module-iTDM/weituo/modules/step/Step2.vue

@@ -233,6 +233,10 @@ export default {
       sessionStorage.setItem('yangpin', JSON.stringify(this.model.data))
 
       this.$emit('prevStep')
+    },
+    // 临时保存
+    temporarySave(){
+      console.log('step2')
     }
 
   }

+ 5 - 1
itdmWeb/src/views/module-iTDM/weituo/modules/step/Step3.vue

@@ -32,7 +32,7 @@
             <a-select-option v-for="(item, index) in yijuLists" :key="index">
               {{ item.name }}
             </a-select-option>
-          </a-select>    
+          </a-select>
         </a-form-model-item>
       </template>
 
@@ -267,6 +267,10 @@ export default {
       sessionStorage.setItem('yangpinkz', JSON.stringify(this.model.list))
 
       this.$emit('prevStep')
+    },
+    // 临时保存
+    temporarySave(){
+      console.log('step3')
     }
 
   }