230320a303 10 mēneši atpakaļ
vecāks
revīzija
9f67c20b64

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/index.html


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/css/chunk-d43c9a16.52d28dda.css


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.a69e6fa2.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/chunk-231c7e9d.9357eb0f.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/chunk-d43c9a16.d75e53f9.js


+ 34 - 6
src/views/room/components/popup/IndexEdit.vue

@@ -274,7 +274,7 @@ export default {
       if (str === 'edit') {
         params = {...this.$refs.ruleForm.baseForm, ...params}
       }
-      if (!params.custom_tag) params.custom_tag = '洪楼房源'
+      // if (!params.custom_tag) params.custom_tag = '洪楼房源'
       if (params.estate_id) {
         this.estate_id = params.estate_id
         this.formData = [
@@ -284,7 +284,7 @@ export default {
               { keyRO: params.estate_name, valRO: params.estate_id }
             ]
           },
-          // { label: `面积产品户型`, label2: `快捷选择工具`, class: 'c-3', key: `HT`, type: 'select', options: this.roomAreaList, changeHandle: this.htChange,},
+          { label: `面积产品户型`, label2: `快捷选择工具`, key: `HT`, type: 'select', options: this.roomAreaList, changeHandle: this.htChange,},
           
           { label: '房源标题', key: 'title', rules: 1},
           { label: '户型图', key: 'house_img', class: 'c-3', type: 'uploads' },
@@ -337,7 +337,7 @@ export default {
               { keyRO: params.sale_name, valRO: params.sale_id }
             ]
           },
-          { label: '销售状态', key: 'is_sold', class: 'c-3', type: 'select', options: this.$dictData.sys_yesno },
+          // { label: '销售状态', key: 'is_sold', class: 'c-3', type: 'select', options: this.$dictData.sys_yesno },
           { label: '(对外展示)房源简介', key: 'introduce', type: 'textarea' },
           { label: '备注', key: 'remarked', type: 'textarea' },
         ]
@@ -351,6 +351,8 @@ export default {
       params.pri_image = this.IMadd(params.pri_image)
       this.setDefaultValue(params)
     },
+
+
     estateChange (estate_id, op, cur) {
       if (estate_id) {
         this.estate_id = estate_id
@@ -359,8 +361,7 @@ export default {
           const htObj = arrToObj(this.$dictData.house_type)
           const ptObj = arrToObj(this.$dictData.product_type)
           list.map(item => {
-            item.key = `${item.area}㎡-${ptObj[item.product_type]}-${htObj[item.house_type]}`
-            item.key2 = `${htObj[item.house_type]}`
+            item.key = `${ptObj[item.product_type]}-${htObj[item.house_type]}-${item.area}㎡`
             item.val = item.id
           })
           this.roomAreaList = [...list]
@@ -388,10 +389,15 @@ export default {
           this.cObj.product_type = ra.product_type
           this.cObj.house_type = ra.house_type
           this.cObj.area = ra.area
-          this.cObj.house_img = ra.pri_image
+          this.cObj.house_img = ra.pri_image + '_adm0'
           this.cObj.HT = val
           this.cObj.title = `${ra.key}(${arrToObj(this.$dictData.area_type)[this.cObj.area_type]})`
+          
           this.getDef('edit')
+          const hType = ra.house_type ? ra.house_type.split('') : []
+          this.diyFormObj.hType1 = hType[0]
+          this.diyFormObj.hType2= hType[1]
+          this.diyFormObj.hType3 = hType[2]
         }
         return
       })
@@ -428,6 +434,8 @@ export default {
               this.$msg('请输入楼层')
               return
             }
+            
+            if (this.cObj.product_type) newForm.product_type = this.cObj.product_type
             if (this.cObj.video) newForm.video = this.cObj.video
             // newForm.longitude = this.cObj.longitude
             // newForm.latitude = this.cObj.latitude
@@ -444,6 +452,16 @@ export default {
             this.$api.house[apiStr](newForm).then(data => {
               this.$msgs(newForm.id ? '编辑成功' : '新增成功')
               this.productData = []
+              this.diyFormObj = {
+                addr1: '',
+                addr2: '',
+                addr3: '',
+                hType1: '',
+                hType2: '',
+                hType3: '',
+                sRate1: '',
+                sRate2: '',
+              }
               this.$emit('close', newForm)
             })
           }
@@ -451,6 +469,16 @@ export default {
       } else {
         this.$emit('close')
         this.productData = []
+        this.diyFormObj = {
+          addr1: '',
+          addr2: '',
+          addr3: '',
+          hType1: '',
+          hType2: '',
+          hType3: '',
+          sRate1: '',
+          sRate2: '',
+        }
         this.setDefaultValue()
       }
     },

+ 1 - 0
src/views/room/components/searchForm/Index.vue

@@ -31,6 +31,7 @@ export default {
       let params = { ...this.$refs.ruleForm.baseForm }
       this.searchData = [
         { label: '标题', key: 'title' },
+        { label: '房号', key: 'house_no' },
         { label: '所属楼盘', key: 'estate_id', type: 'selectRemote',
           remoteParams: { skey: 'estate_name', api: `house.admestatelist?estate_tag=二手`, opKey: 'estate_name', opVal: 'id' }
         },

+ 2 - 0
src/views/room/index.vue

@@ -73,6 +73,8 @@ export default {
         { label: '面积㎡', prop: 'area' },
         { label: '所属区域', prop: 'area_type', type: 'flag', flags: arrToObj(this.$dictData.area_type) },
         { label: '状态', prop: 'hide_status', type: 'tag', tags: arrToObj(this.$dictData.hide_status), tagTypeObj: {'1': 'success', '2': 'danger'} },
+        { label: '已售', prop: 'is_sold', type: 'tag', tags: arrToObj(this.$dictData.sys_yesno), tagTypeObj: {'1': 'success', '2': 'danger'} },
+        { label: '售出', prop: 'sold_platform' },
         { label: '更新时间', prop: 'update_at' },
         { label: '创建人', prop: 'sale_name' },
         { label: '创建时间', prop: 'create_at' },

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels