|
|
@@ -44,7 +44,7 @@
|
|
|
</a-form-item>
|
|
|
</template>
|
|
|
|
|
|
- <a-form-item label='请输入“企业→平台”的服务费率'>
|
|
|
+ <a-form-item :label=serviceRateName>
|
|
|
<a-input-number :min='0.01' :max='99.99'
|
|
|
v-decorator="[ 'serviceRate', {rules: [{ required: true, message: '请输入“企业→平台”的服务费率!' }]}]"
|
|
|
:formatter='value => `${value}%`' :parser="value => value.replace('%', '')" :precision='2'
|
|
|
@@ -106,6 +106,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ serviceRateName:"请输入平台服务费率",
|
|
|
subcontractorList: [],
|
|
|
hlwCpSettingList: [],
|
|
|
cpSubcontractorList: [],
|
|
|
@@ -254,6 +255,11 @@ export default {
|
|
|
changeIsThroughPlatform(e) {
|
|
|
this.model.isThroughPlatform = e.target.value
|
|
|
this.isSwitch = e.target.value
|
|
|
+ if(this.isSwitch=='1'){
|
|
|
+ this.serviceRateName="请输入平台服务费率"
|
|
|
+ }else{
|
|
|
+ this.serviceRateName="请输入服务商服务费率"
|
|
|
+ }
|
|
|
},
|
|
|
changePlatform(e) {
|
|
|
this.model.cpId = e.target.value
|
|
|
@@ -272,6 +278,11 @@ export default {
|
|
|
this.initialIsThroughPlatformValue = res.result.isThroughPlatform.length == 1 ? res.result.isThroughPlatform : '1'
|
|
|
this.model.isThroughPlatform = this.initialIsThroughPlatformValue
|
|
|
this.isSwitch = this.initialIsThroughPlatformValue
|
|
|
+ if(this.isSwitch=='1'){
|
|
|
+ this.serviceRateName="请输入平台服务费率"
|
|
|
+ }else{
|
|
|
+ this.serviceRateName="请输入服务商服务费率"
|
|
|
+ }
|
|
|
//通过平台
|
|
|
if (this.isThroughPlatform.indexOf('1') != -1) {
|
|
|
this.hlwCpSettingList = res.result.hlwCpSettingList
|