|
@@ -324,15 +324,19 @@ export default {
|
|
|
// pay_list[0].companyName = company ? company.company : ''
|
|
|
// }
|
|
|
|
|
|
- this.loading = false
|
|
|
+ let pay_rate = [{ companyNo: '', rate: '', isEdit: true }]
|
|
|
+ if (pay_list.length > 0) {
|
|
|
+ pay_rate = pay_list.filter(({ companyNo }) => companyNo !== 'KH' && companyNo !== 'GYS')
|
|
|
+ }
|
|
|
|
|
|
+ this.loading = false
|
|
|
this.ruleForm = {
|
|
|
pay_name: pay_title || '',
|
|
|
platform_name: platform_name || '',
|
|
|
platform_type: String(platform_type) ? String(platform_type) : '0',
|
|
|
use_type: String(use_type) ? String(use_type) : '1',
|
|
|
is_pay: String(is_select_pay_rate) ? String(is_select_pay_rate) : '',
|
|
|
- pay_rate: pay_list.length !== 0 ? [pay_list[pay_list.length - 1]] : [{ companyNo: '', rate: '', isEdit: true }]
|
|
|
+ pay_rate
|
|
|
}
|
|
|
},
|
|
|
handleEdit(index) {
|
|
@@ -429,14 +433,10 @@ export default {
|
|
|
companyName: label
|
|
|
}
|
|
|
|
|
|
- console.log(companyInfo)
|
|
|
-
|
|
|
this.$set(this.ruleForm.pay_rate, index, {
|
|
|
...this.ruleForm.pay_rate[index],
|
|
|
...companyInfo
|
|
|
})
|
|
|
-
|
|
|
- console.log(this.ruleForm)
|
|
|
},
|
|
|
handleRateChange(rate, index) {
|
|
|
this.$set(this.ruleForm.pay_rate, index, {
|