2
3
Quellcode durchsuchen

信息变更修改

huahaiyan vor 6 Jahren
Ursprung
Commit
593545b372

+ 24 - 12
src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/auditoperation.vue

@@ -861,7 +861,6 @@
       this.infoId = this.serviceId
       this.initDatas()
       this.auditget()
-      this.GetItemsDatas()
       this.getDictOptions()
       this.getfilelist1()
       this.getbusList1()
@@ -890,6 +889,30 @@
               this.LinkCityAry.push(this.formData.LinkProvince)
               this.LinkCityAry.push(this.formData.LinkCity)
               this.LinkCityAry.push(this.formData.LinkStreet)
+              this.GetItemsDatas()
+            })
+            .catch(err => {
+              console.error(err);
+            });
+        }
+      },
+      GetItemsDatas() {
+        if (this.MInfoId) {
+          api.getEntityThen(this.MInfoId, this.$axios)
+            .then(res => {
+              this.InfoData = []
+              this.infochangedata = res.data.items
+              if (this.infochangedata) {
+                for (var i = 0; i < this.infochangedata.length; i++) {
+                  if (this.infochangedata[i].SelectItem != "Province" && this.infochangedata[i].SelectItem !=
+                    "City" && this.infochangedata[i].SelectItem != "Street" && this.infochangedata[i]
+                    .SelectItem != "LinkProvince" && this.infochangedata[i].SelectItem != "LinkCity" && this
+                    .infochangedata[i].SelectItem != "LinkStreet") {
+                    this.InfoData.push(this.infochangedata[i])
+                  }
+                }
+              }
+              console.log("-this.InfoData---",this.InfoData)
             })
             .catch(err => {
               console.error(err);
@@ -1098,17 +1121,6 @@
         }
 
       },
-      GetItemsDatas() {
-        if (this.infoId) {
-          api.getEntityThen(this.infoId, this.$axios)
-            .then(res => {
-              this.infochangedata = res.data.items;
-            })
-            .catch(err => {
-              console.error(err);
-            });
-        }
-      },
       getDictOptions() {
         let params = {
           status: this.formData.Status,

+ 2 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/operation.vue

@@ -14,11 +14,11 @@
           <el-button type="primary" size="mini" style="margin-left: 8px" @click="itemsshow">查看变更项</el-button>
           <el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批流程</el-button>
           <el-button type="primary" size="mini" style="margin-left: 8px"
-            v-if="(InfoStatus == 0 || InfoStatus == '' || InfoStatus == -2) && !butnab" @click="saveinfochange">保存
+            v-if="(InfoStatus == 0 || InfoStatus == '' || InfoStatus == -1|| InfoStatus == -2) && !butnab" @click="saveinfochange">保存
           </el-button>
           <!-- <el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批历史</el-button> -->
           <el-button type="primary" size="mini" @click="submitInfoChange"
-            v-if="(InfoStatus == 0 || InfoStatus == '' || InfoStatus == -2) && !butnab">提交申请
+            v-if="(InfoStatus == 0 || InfoStatus == '' || InfoStatus == -1 || InfoStatus == -2) && !butnab">提交申请
           </el-button>
           <router-link :to="'/oilsupplier/infochangech'">
             <el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>