Przeglądaj źródła

修改销售出库、采购申请的请核问题

caojunjie 4 lat temu
rodzic
commit
0cdbfdfb44

+ 0 - 2
src/views/index.vue

@@ -607,7 +607,6 @@ export default {
     firstinventory(fId) {
       console.log(this.warehouse)
       information(fId).then((response) => {
-        console.log(response)
         this.chart = response.data
         if (this.chart.whouseList.length !== 0) {
           for (let index of this.chart.corpsListWhouse) {
@@ -711,7 +710,6 @@ export default {
     getList() {
       this.loading = true
       listCorps(this.queryParams).then((response) => {
-        console.log(response)
         if (response.rows.length > 0) {
           this.tableDataTwo = response.rows.slice(0,10)
         }

+ 4 - 23
src/views/purchaseIssue/index.vue

@@ -754,31 +754,10 @@ export default {
   activated() {
     if(this.$route.query.list){
       this.pendingPage = JSON.parse(this.$route.query.list)
-    }
-    if (this.$route.query.open === 'true'){
-      this.contentList = []
-      this.contentButton = this.$options.data().contentButton
-      let data = {
-        tableName: this.purchaseList.tableName,
-        userId: Cookies.get('userName')
-      }
-      this.$refs.avatar.form = {}
-      this.getRow(data)
-
-      this.contentOption.forEach(item => {
-        if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'fBillno') {
-          item.disabled = true
-        } else {
-          item.disabled = false
-        }
-      })
-      this.contentButton.forEach(item => item.disabled = false)
-      this.contentStyle.forEach(item => item.disabled = false)
-      this.$router.push({ query: {} })
+      this.homePage()
     }
   },
   created() {
-    this.homePage()
     //获取登陆人
     queryUserVal().then((response) => {
       this.lander = response.user.userName
@@ -1136,6 +1115,7 @@ export default {
           console.log(this.pendingPage.name)
           if (this.pendingPage.name) {
             this.contentButton.push(JSON.parse(this.$route.query.list))
+            if (JSON.parse(this.$route.query.list)) this.$router.push({ query: {} })
           }
           let data = {
             actId: 550,
@@ -1216,7 +1196,8 @@ export default {
     },
     //查看
     viewMethod(scope,res,i) {
-      this.form = this.$refs.avatar.form
+      console.log(res)
+      if (this.form.length !== undefined) this.form = this.$refs.avatar.form
       if(res){
         this.contentButton.forEach(item => {
           item.disabled = false

+ 2 - 21
src/views/purchaseRequest/index.vue

@@ -792,30 +792,10 @@ export default {
   activated(){
     if(this.$route.query.list){
       this.pendingPage = JSON.parse(this.$route.query.list)
-    }
-    if (this.$route.query.open === 'true'){
-      this.contentList = []
-      let data = {
-        tableName: this.purchaseList.tableName,
-        userId: Cookies.get('userName')
-      }
-      this.$refs.avatar.form = {}
-      this.getRow(data)
-      this.contentOption.forEach(item => {
-        if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'createBy' || item.label == 'fBillno') {
-          item.disabled = true
-        } else {
-          item.disabled = false
-        }
-      })
-      this.contentButton.forEach(item => item.disabled = false)
-      this.contentStyle.forEach(item => item.disabled = false)
-      this.$refs.avatar.form.createBy = Cookies.get('userName')
-      this.$router.push({ query: {} })
+      this.homePage()
     }
   },
   created() {
-    this.homePage()
     //获取登陆人
     queryUserVal().then((response) => {
       this.lander = response.user.userName
@@ -1090,6 +1070,7 @@ export default {
           console.log(this.$route.query.list)
           if (this.pendingPage.name) {
             this.contentButton.push(JSON.parse(this.$route.query.list))
+            if (JSON.parse(this.$route.query.list)) this.$router.push({ query: {} })
           }
           let data = {
             actId: 520,