|
@@ -39,12 +39,10 @@
|
|
|
placeholder="请选择计费规则"
|
|
|
>
|
|
|
<el-option
|
|
|
- label="房东"
|
|
|
- value="1"
|
|
|
- ></el-option>
|
|
|
- <el-option
|
|
|
- label="二房东"
|
|
|
- value="2"
|
|
|
+ v-for="(item,index) in billing"
|
|
|
+ :key="index"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.label"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -80,6 +78,8 @@ export default {
|
|
|
desc: ''
|
|
|
},
|
|
|
id: '',
|
|
|
+ communityId: '',
|
|
|
+ billing: [],
|
|
|
rules: {
|
|
|
radio: [
|
|
|
{ required: true, message: '请选择审核方式', trigger: 'change' }
|
|
@@ -134,12 +134,25 @@ export default {
|
|
|
this.formData.measureArea = this.params.row.area;
|
|
|
this.formData.Rule = '';
|
|
|
}
|
|
|
+ },
|
|
|
+ communityRules () {
|
|
|
+ this.$http.get('/czc-charge/scChargeStrategy/list', { communityId: this.communityId }).then(({ status, data, msg }) => {
|
|
|
+ if (status == 0) {
|
|
|
+ data.map((item, index) => {
|
|
|
+ this.billing.push({
|
|
|
+ name: item.chargeName,
|
|
|
+ label: item.id
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
- console.log('444', this.params)
|
|
|
+ this.communityId = this.params.communityId;
|
|
|
this.id = this.params.row.id;
|
|
|
this.formData.measureArea = this.params.row.area;
|
|
|
+ this.communityRules();
|
|
|
}
|
|
|
|
|
|
}
|