|
@@ -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)
|
|
|
}
|