LAPTOP-FO2T5SIU\35838 8 months ago
parent
commit
9c67783695

+ 1 - 0
src/views/customerManagement/intentionalDeposit/addIntentionalDeposit.vue

@@ -33,6 +33,7 @@
                     popper-class="statistic_base"
                     placeholder=""
                     filterable
+                    clearable
                   >
                     <el-option
                       v-for="item in dc_data.PAYMENT_METHODS"

+ 3 - 2
src/views/customerManagement/numberManagement/addCustomer.vue

@@ -81,6 +81,7 @@
                         v-model="item.relationship"
                         placeholder="与1的关系"
                         filterable
+                        clearable
                         :popper-append-to-body="false"
                         popper-class="statistic_base"
                       >
@@ -171,8 +172,8 @@ export default {
                 this.form = res.data
                 this.form.findids = [res.data.groupId, res.data.discId]
                 this.$set(this.form, 'dynamicItem', [])
-                const json = JSON.parse(res.data.buyerJson)
-                if (json) {
+                if (res.data.buyerJson) {
+                    const json = JSON.parse(res.data.buyerJson)
                     json.forEach(item => {
                         const data = {
                             name: item.name,

+ 10 - 1
src/views/customerManagement/numberManagement/index.vue

@@ -313,9 +313,12 @@ export default {
         handleAdd() {
             this.dialogAddVisible = true
             this.dialogAddTitle = '新增'
+            const data = {
+                isView: false
+            }
             // 新vue时调用的方法
             this.$nextTick(() => {
-                this.$refs.addCustomer.initData()
+                this.$refs.addCustomer.initData(data)
             })
         },
         batchImport() {
@@ -345,6 +348,11 @@ export default {
                             type: 'success',
                             message: '删除成功!'
                         })
+                    } else {
+                        this.$message({
+                            type: 'error',
+                            message: res.data.msg
+                        })
                     }
                 }).catch((err) => {
                     this.$message({
@@ -363,6 +371,7 @@ export default {
         handleEdit: function(val) {
             this.dialogAddVisible = true
             this.dialogAddTitle = '修改'
+            val.isView = false
             // 新vue时调用的方法
             this.$nextTick(() => {
                 this.$refs.addCustomer.initData(val)

+ 1 - 0
src/views/customerManagement/subscribe/addSubscribe.vue

@@ -33,6 +33,7 @@
                     popper-class="statistic_base"
                     placeholder=""
                     filterable
+                    clearable
                   >
                     <el-option
                       v-for="item in dc_data.PAYMENT_METHODS"

+ 1 - 0
src/views/parkAssets/parkBuild/index.vue

@@ -206,6 +206,7 @@
                       popper-class="statistic_base"
                       placeholder=""
                       filterable
+                      clearable
                       :disabled="isView"
                     >
                       <el-option

+ 7 - 0
src/views/parkAssets/parkFloorDisc/index.vue

@@ -113,6 +113,7 @@
                       v-model="groupForm.nature"
                       placeholder=""
                       filterable
+                      clearable
                       :disabled="isView"
                       :popper-append-to-body="false"
                       popper-class="statistic_base"
@@ -143,6 +144,7 @@
                       v-model="groupForm.companyId"
                       placeholder=""
                       filterable
+                      clearable
                       :disabled="isView"
                       :popper-append-to-body="false"
                       popper-class="statistic_base"
@@ -243,6 +245,7 @@
                       v-model="groupForm.areaStatus"
                       placeholder=""
                       filterable
+                      clearable
                       :popper-append-to-body="false"
                       popper-class="statistic_base"
                     >
@@ -266,6 +269,7 @@
                       v-model="groupForm.saleStatus"
                       placeholder=""
                       filterable
+                      clearable
                       :popper-append-to-body="false"
                       popper-class="statistic_base"
                     >
@@ -287,6 +291,7 @@
                       v-model="groupForm.regionalismCode"
                       placeholder=""
                       filterable
+                      clearable
                       :popper-append-to-body="false"
                       popper-class="statistic_base"
                     >
@@ -352,6 +357,7 @@
                       v-model="formLP.groupId"
                       placeholder=""
                       filterable
+                      clearable
                       :popper-append-to-body="false"
                       popper-class="statistic_base"
                     >
@@ -423,6 +429,7 @@
                       v-model="formLP.paymentMethods"
                       placeholder=""
                       filterable
+                      clearable
                       :popper-append-to-body="false"
                       popper-class="statistic_base"
                     >

+ 11 - 4
src/views/parkAssets/parkRoom/index.vue

@@ -204,6 +204,7 @@
                       :disabled="isView"
                       style="width: 100%;"
                       :options="options"
+                      clearable
                       @change="buildChange"
                     />
                   </el-form-item>
@@ -290,6 +291,7 @@
                       popper-class="statistic_base"
                       placeholder=""
                       filterable
+                      clearable
                       :disabled="isView"
                     >
                       <el-option
@@ -318,6 +320,7 @@
                       v-model="houseForm.decorationSituation"
                       placeholder=""
                       filterable
+                      clearable
                       :disabled="isView"
                       :popper-append-to-body="false"
                       popper-class="statistic_base"
@@ -343,12 +346,12 @@
               <el-row>
                 <el-col :span="2" class="col-txt"><span>户型</span></el-col>
                 <el-col :span="10" class="col-input">
-                  <el-form-item :disabled="isView">
+                  <el-form-item>
                     <el-select
                       v-model="houseForm.houseTypeId"
                       placeholder=""
                       filterable
-                      :disabled="isView"
+                      clearable
                       :popper-append-to-body="false"
                       popper-class="statistic_base"
                       @change="houseTypeChange"
@@ -382,7 +385,7 @@
                       :on-exceed="handleExceed"
                       disabled
                     >
-<!--                      <i class="el-icon-plus" />-->
+                      <!--                      <i class="el-icon-plus" />-->
                       <div slot="tip" class="el-upload__tip">
                         只能上传jpg/png文件,限制上传9张
                       </div>
@@ -410,6 +413,7 @@
                       placeholder="请选择"
                       size="small"
                       :disabled="isView"
+                      clearable
                       :popper-append-to-body="false"
                       popper-class="statistic_base"
                     >
@@ -479,6 +483,7 @@ export default {
             },
             options: [],
             houseForm: {
+                houseTypeId: null
             },
             DeptTree: [],
             urlStr: 'add',
@@ -627,6 +632,7 @@ export default {
             this.urlStr = 'add'
             this.dialogVisible = true
             this.fileList = []
+            this.houseTypeOption = []
             this.dialogTitle = '新增房间'
         },
         handleEdit: function(val) {
@@ -634,6 +640,7 @@ export default {
             this.urlStr = 'edit'
             this.houseForm = val
             this.fileList = []
+            this.houseTypeOption = []
             this.dialogVisible = true
             this.dialogTitle = '编辑房间'
             this.loadingFlag = true
@@ -867,11 +874,11 @@ export default {
             })
         },
         houseTypeChange(val) {
+            this.fileList = []
             const obj = this.houseTypeOption.find(item =>
                 item.value === val
             )
             if (obj !== undefined) {
-                this.fileList = []
                 const files = JSON.parse(obj.files)
                 files.forEach(v => {
                     if (v) {