Преглед на файлове

fix: 审核员可以多次对项目进项审核,限制SAVE状态不显示

Howie преди 1 година
родител
ревизия
93bfed7e92

+ 3 - 3
src/views/commercialEngineering/components/base.vue

@@ -631,7 +631,7 @@ export default {
         await this.getCallbackPosition(this.formData.provinceId, this.formData.cityId, 'city', 'lbsId')
         await this.getCallbackPosition(this.formData.cityId, this.formData.areaId, 'area', 'lbsId')
          const temp = this.areaList.find(k => this.formData.cityId == k.value)
-         if(temp &&!Object.keys(this.specialCity).includes(temp.parentLbsId)){
+         if(!temp && !temp?.parentLbsId && !Object.keys(this.specialCity).includes(temp?.parentLbsId)){
         await this.getCallbackPosition(this.formData.areaId, this.formData.streetId, 'street', 'lbsId')
       }
       }
@@ -774,7 +774,7 @@ export default {
       const temps =   this.areaList.filter(k=>{
           return k.lbsId === value
         })
-      if (value && this.areaList.length && Object.keys(this.specialCity).includes(temps[0].parentLbsId)) {
+      if (value && this.areaList.length && temps.length && temps[0]?.parentLbsId  && Object.keys(this.specialCity).includes(temps[0]?.parentLbsId)) {
         this.streetList = temps
         this.formData.streetId = value
         this.handleArea(value, 'street')
@@ -898,7 +898,7 @@ export default {
       await this.getCallbackPosition(this.formData.provinceId, city, 'city')
       await this.getCallbackPosition(this.formData.cityId, area, 'area')
       const temp = this.areaList.find(k => this.formData.cityId == k.value)
-      if( temp && !Object.keys(this.specialCity).includes(temp.parentLbsId)){
+      if( !temp && !temp?.parentLbsId && !Object.keys(this.specialCity).includes(temp?.parentLbsId)){
         await this.getCallbackPosition(this.formData.areaId, street, 'street')
       }
     },

+ 1 - 1
src/views/commercialEngineering/crossDistrict/crossDistrictkList.vue

@@ -217,7 +217,7 @@ export default {
                 申请修改
               </el-button>
             ) : null}
-            {this.isTradeExaminer  ? (
+            {this.isTradeExaminer && row.orderStatus !== 'SAVE' ? (
               <el-button
                 size='mini'
                 type='text'

+ 1 - 1
src/views/commercialEngineering/frock/frockList.vue

@@ -216,7 +216,7 @@ export default {
                 申请修改
               </el-button>
             ) : null}
-            {this.isTradeExaminer  ? (
+            {this.isTradeExaminer && row.orderStatus !== 'SAVE'  ? (
               <el-button
                 size='mini'
                 type='text'

+ 1 - 1
src/views/commercialEngineering/homeDecoration/homeDecorationList.vue

@@ -223,7 +223,7 @@ export default {
                 申请修改
               </el-button>
             ) : null}
-            {this.isTradeExaminer ? (
+            {this.isTradeExaminer && row.orderStatus !== 'SAVE' ? (
               <el-button
                 size='mini'
                 type='text'