This commit is contained in:
sw 2024-11-20 09:54:59 +08:00
parent 7f94d5a7d9
commit 7741e57329
2 changed files with 19 additions and 17 deletions

View File

@ -23,7 +23,8 @@ export default {
}
},
props: {
deptId: Number
deptId: Number,
status: Boolean
},
created() {
console.log("deptId",this.deptId)
@ -31,9 +32,16 @@ export default {
},
methods: {
getList() {
console.log(this.status)
if(this.status){
getYearListApi().then(res => {
this.tableData = res.data.records
})
}else {
getYearListApi({deptId : this.deptId}).then(res => {
this.tableData = res.data.records
})
}
},
onSubmit() {
console.log('表单提交', this.form);

View File

@ -273,7 +273,7 @@
<el-col :span="20">
<el-form-item label="计费方式" prop="turnoverType">
<span v-if="isTopDept ">
<el-radio-group :disabled="isTopDept" v-model="ruleForm.turnoverType" @input="changeTheBillingRule">
<el-radio-group :disabled="isTopDept" v-model="ruleForm.turnoverType" @input="changeTheBillingRule()">
<el-radio v-if="ruleForm.turnoverType=='1'" label=1>无限制</el-radio>
<el-radio v-if="ruleForm.turnoverType=='5'" label=5>年付费</el-radio>
<!-- <el-radio v-if="ruleForm.turnoverType=='2'" label=2>时间限制</el-radio>-->
@ -282,7 +282,7 @@
</el-radio-group>
</span>
<span v-else>
<el-radio-group :disabled="isTopDept" v-model="ruleForm.turnoverType" @input="changeTheBillingRule">
<el-radio-group :disabled="isTopDept" v-model="ruleForm.turnoverType" @input="changeTheBillingRule()">
<el-radio label=5>年付费</el-radio>
<el-radio label=3>预付费</el-radio>
<el-radio label=4>后付费</el-radio>
@ -305,7 +305,7 @@
<afterff :deptId="queryParams.deptId"></afterff>
</template>
<template v-if="ruleForm.turnoverType === '5'">
<yearff :deptId="queryParams.deptId"></yearff>
<yearff :deptId="queryParams.deptId" :status="queryParams.status"></yearff>
</template>
<template v-if="ruleForm.turnoverType === '6'">
<el-col :span="10">
@ -856,9 +856,7 @@ export default {
rates:0,
storeNum:0,
prepaidAmount:0,
stauts:false,
},
filterText:'',
xtitle:'',
@ -1346,8 +1344,6 @@ export default {
this.ruleForm.turnoverType = this.oldValue
});
}
},
//
rateClearing () {
@ -1588,7 +1584,8 @@ export default {
},
//
//
append(data) {
append(status,data) {
this.ruleForm.status=true,
console.log('新增树',data)
//
this.cleanRuleForm()
@ -1680,9 +1677,6 @@ export default {
this.isTopDept = false
console.log( this.ruleForm.parentId ,111)
})
},
//
appedit(id,label) {
@ -1784,7 +1778,7 @@ export default {
{!isAdd && this.isAgencyAdd ?
< img alt="" src="https://www.youkerr.com/add" style=" width: 20px;height: 20px; " on-click={() => this.append(data)}/>
< img alt="" src="https://www.youkerr.com/add" style=" width: 20px;height: 20px; " on-click={() => this.append('add',data)}/>
: null
}
{node.level !== 1 && this.isAgencyDelete ?