|
@@ -235,10 +235,12 @@
|
|
|
<el-radio
|
|
|
:label="1"
|
|
|
v-model="items.choice"
|
|
|
+ @click.native="elRadio(indexs)"
|
|
|
>按楼栋</el-radio>
|
|
|
<el-radio
|
|
|
:label="2"
|
|
|
v-model="items.choice"
|
|
|
+ @click.native="elRadios(indexs)"
|
|
|
>按房间</el-radio>
|
|
|
</div>
|
|
|
<div
|
|
@@ -643,6 +645,16 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
|
+ elRadio (indexs) {
|
|
|
+ this.houseInformation[indexs].billingRules = '';
|
|
|
+ this.houseInformation[indexs].billing = [];
|
|
|
+ },
|
|
|
+ elRadios (indexs) {
|
|
|
+ this.houseInformation[indexs].billingRules = '';
|
|
|
+ this.houseInformation[indexs].billing = [];
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
uploadsuccess (response, file, fileList) {
|
|
|
this.$refs.uploaduserlogo.clearFiles();
|
|
|
if (0 === response.status) {
|
|
@@ -671,7 +683,7 @@ export default {
|
|
|
if (data.length == 0) {
|
|
|
this.houseInformation[index].billingRules = '';
|
|
|
this.houseInformation[index].billing = [];
|
|
|
- this.communityId = '';
|
|
|
+ // this.communityId = '';
|
|
|
return;
|
|
|
}
|
|
|
this.shareScope = [];
|
|
@@ -807,7 +819,7 @@ export default {
|
|
|
this.communityIdTree = Array.from(new Set(this.communityIdTree))
|
|
|
this.shareScopeID[index] = this.shareScope;
|
|
|
this.communityId[index] = this.communityIdTree
|
|
|
-
|
|
|
+ this.communityRules(index);
|
|
|
|
|
|
// 判断点击是否为单元
|
|
|
|
|
@@ -822,13 +834,19 @@ export default {
|
|
|
this.$http.get('/czc-charge/scChargeStrategy/list', { communityId: this.communityId[index][0] }).then(({ status, data, msg }) => {
|
|
|
if (status == 0) {
|
|
|
this.houseInformation[index].billing = [];
|
|
|
- this.houseInformation[index].billingRules = ''
|
|
|
- data.map((item, indexs) => {
|
|
|
- this.houseInformation[index].billing.push({
|
|
|
- name: item.chargeName,
|
|
|
- value: item.id
|
|
|
+ // this.houseInformation[index].billingRules = ''
|
|
|
+ if (data.length == 0) {
|
|
|
+ this.houseInformation[index].billing = [];
|
|
|
+ this.houseInformation[index].billingRules = ''
|
|
|
+ } else {
|
|
|
+ data.map((item, indexs) => {
|
|
|
+ this.houseInformation[index].billing.push({
|
|
|
+ name: item.chargeName,
|
|
|
+ value: item.id
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
})
|
|
@@ -837,14 +855,21 @@ export default {
|
|
|
RescommunityRules (index, communityId) {
|
|
|
this.$http.get('/czc-charge/scChargeStrategy/list', { communityId: communityId }).then(({ status, data, msg }) => {
|
|
|
if (status == 0) {
|
|
|
- data.map((item, indexs) => {
|
|
|
+ this.houseInformation[index].billing = [];
|
|
|
+ // this.houseInformation[index].billingRules = ''
|
|
|
+ if (data.length == 0) {
|
|
|
this.houseInformation[index].billing = [];
|
|
|
this.houseInformation[index].billingRules = ''
|
|
|
- this.houseInformation[index].billing.push({
|
|
|
- name: item.chargeName,
|
|
|
- value: item.id
|
|
|
+ } else {
|
|
|
+ data.map((item, indexs) => {
|
|
|
+ //
|
|
|
+ this.houseInformation[index].billing.push({
|
|
|
+ name: item.chargeName,
|
|
|
+ value: item.id
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
+ }
|
|
|
+
|
|
|
console.log('this.houseInformation[index]', this.houseInformation[index])
|
|
|
|
|
|
}
|