|
@@ -43,7 +43,8 @@ import {
|
|
|
partsRefundConfigAdd,
|
|
|
partsRefundConfigEdit,
|
|
|
partsRefundConfigBatchDel,
|
|
|
- partsRefundConfigDetail
|
|
|
+ partsRefundConfigDetail,
|
|
|
+ partsRefundConfigGetDefault
|
|
|
} from '@/api/parts-config'
|
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
|
import { required, requiredValueMin } from '@/components/template/rules_verify.js'
|
|
@@ -95,6 +96,22 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ this.optionsEvensAuth('defaultConfig', {
|
|
|
+ click: () => {
|
|
|
+ getWebsit({ type: 'C', status: true, queryPartsWebsit: true }).then(res => {
|
|
|
+ this.websitList = res.data
|
|
|
+ this.formType = this.$route.name == 'website-refund-config' ? 2 : 1
|
|
|
+ partsRefundConfigGetDefault().then(res => {
|
|
|
+ this.formData = res.data
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.formBool = true
|
|
|
+ })
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
]
|
|
|
]
|
|
|
]
|
|
@@ -116,6 +133,12 @@ export default {
|
|
|
label: '配置网点',
|
|
|
prop: 'websitId',
|
|
|
rules: this.formData.isDefault ? [] : [...required]
|
|
|
+ },
|
|
|
+ events: {
|
|
|
+ change: val => {
|
|
|
+ var data = this.websitList.find(item => item.websitId === val)
|
|
|
+ this.formData.websitName = data?.websitName || ''
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
{
|