zh пре 2 година
родитељ
комит
989fde1303

+ 12 - 2
src/views/commercialEngineering/components/base.vue

@@ -343,7 +343,7 @@
             </el-select>
           </div>
         </el-col>
-        <el-col v-if="['frock', 'cross'].includes(pageType)" :xs="24" :sm="24" :lg="24" class="item">
+        <el-col v-if="['frock', 'home'].includes(pageType)" :xs="24" :sm="24" :lg="24" class="item">
           <div class="label">项目性质*:</div>
           <div class="value">
             {{ pageType === 'frock' ? '工程': '家装' }}
@@ -519,6 +519,17 @@ export default {
         if (this.module === 'examine' && !this.formData.loginStatus) {
           this.formData.loginStatus = 'OK'
         }
+
+        if (this.formData.homeProjectNameRadio === 'SELF') {
+          this.formData.homeProjectNameArea2 = this.formData.homeProjectNameArea
+        }
+        if (this.formData.homeProjectNameRadio === 'VILLA') {
+          this.formData.homeProjectNameNumber3 = this.formData.homeProjectNameNumber
+          this.formData.homeProjectNameArea3 = this.formData.homeProjectNameArea
+        }
+        this.formData.homeProjectNameArea = ''
+        this.formData.homeProjectNameSeat = ''
+        this.formData.homeProjectNameNumber = ''
         await this.getCallbackPosition(0, this.formData.provinceId, 'province', 'id')
         await this.getCallbackPosition(this.formData.provinceId, this.formData.cityId, 'city', 'id')
         await this.getCallbackPosition(this.formData.cityId, this.formData.areaId, 'area', 'id')
@@ -536,7 +547,6 @@ export default {
         this.formData.customerName = this.customerName
       }
     }
-
   },
   methods: {
     // 获取省市区街道

+ 2 - 1
src/views/commercialEngineering/components/operate.vue

@@ -375,10 +375,11 @@ export default {
         },
         examine: () => {
           params = {
+            isSuccess: this.formData.isSuccess,
             remark: this.formData.remark,
             ids: [this.detailId]
           }
-          this.handleInterface(examineUpdate)
+          this.handleInterface(examineUpdate(params), '审核成功')
         },
         delete: () => {
           const ids = this.tableData.map(k => k.id)

+ 2 - 2
src/views/commercialEngineering/homeDecoration/examine.vue

@@ -18,7 +18,7 @@ import Model from '../components/model.vue'
 import Examine from '../components/examine.vue'
 
 import Mixin from '../mixin'
-import { examineLoginFrock } from '@/api/homeDecoration'
+import { examineLoginHomeDecoration } from '@/api/homeDecoration'
 export default {
   components: {
     Base,
@@ -51,7 +51,7 @@ export default {
         params.drawUpload = params.fileList[0].url
       }
 
-      examineLoginFrock(params).then(res => {
+      examineLoginHomeDecoration(params).then(res => {
         this.commonFn('审核成功')
       })
     },