|
@@ -20,7 +20,7 @@
|
|
|
>
|
|
|
<zj-form-module title="基本项" label-width="150px" :form-data="formData" :form-items="items" />
|
|
|
<zj-form-module
|
|
|
- v-if="!($route.name == 'website-refund-config' && formType == 0)"
|
|
|
+ v-if="isDefaultDisabledShow"
|
|
|
title="销售价格倍率"
|
|
|
label-width="150px"
|
|
|
:form-data="formData"
|
|
@@ -122,6 +122,30 @@ export default {
|
|
|
]
|
|
|
]
|
|
|
},
|
|
|
+ isDefaultDisabledShow() {
|
|
|
+ return this.formData.isDefault || this.formType !== 0
|
|
|
+ },
|
|
|
+ isDefaultDisabled() {
|
|
|
+ return (
|
|
|
+ this.formData.isDefault &&
|
|
|
+ this.$route.name == 'center-parts-config' &&
|
|
|
+ (this.formType == 1 || this.formType == 0)
|
|
|
+ )
|
|
|
+ },
|
|
|
+ websiteRefundConfigDisabled() {
|
|
|
+ return (
|
|
|
+ !this.formData.isDefault &&
|
|
|
+ this.$route.name == 'website-refund-config' &&
|
|
|
+ (this.formType == 1 || this.formType == 0)
|
|
|
+ )
|
|
|
+ },
|
|
|
+ centerPartsConfigDisabled() {
|
|
|
+ return (
|
|
|
+ !this.formData.isDefault &&
|
|
|
+ this.$route.name == 'center-parts-config' &&
|
|
|
+ (this.formType == 1 || this.formType == 0)
|
|
|
+ )
|
|
|
+ },
|
|
|
items() {
|
|
|
return [
|
|
|
{
|
|
@@ -132,7 +156,7 @@ export default {
|
|
|
attributes: {
|
|
|
clearable: true,
|
|
|
filterable: true,
|
|
|
- disabled: this.formType === 2,
|
|
|
+ disabled: !(this.isDefaultDisabled || this.websiteRefundConfigDisabled || this.centerPartsConfigDisabled),
|
|
|
placeholder: '请输入'
|
|
|
},
|
|
|
formItemAttributes: {
|
|
@@ -170,7 +194,7 @@ export default {
|
|
|
name: 'el-input',
|
|
|
md: 8,
|
|
|
attributes: {
|
|
|
- disabled: this.formType === 2,
|
|
|
+ disabled: !(this.isDefaultDisabled || this.websiteRefundConfigDisabled || this.centerPartsConfigDisabled),
|
|
|
placeholder: '请输入',
|
|
|
type: 'number',
|
|
|
min: 1
|
|
@@ -204,7 +228,7 @@ export default {
|
|
|
name: 'el-input',
|
|
|
md: 8,
|
|
|
attributes: {
|
|
|
- disabled: this.formType === 2,
|
|
|
+ disabled: !(this.isDefaultDisabled || this.websiteRefundConfigDisabled || this.centerPartsConfigDisabled),
|
|
|
placeholder: '请输入',
|
|
|
type: 'number',
|
|
|
min: 1
|
|
@@ -235,7 +259,7 @@ export default {
|
|
|
name: 'el-input',
|
|
|
md: 8,
|
|
|
attributes: {
|
|
|
- disabled: this.formType === 2,
|
|
|
+ disabled: !(this.isDefaultDisabled || this.websiteRefundConfigDisabled || this.centerPartsConfigDisabled),
|
|
|
placeholder: '请输入',
|
|
|
type: 'number',
|
|
|
min: 1
|
|
@@ -267,7 +291,7 @@ export default {
|
|
|
name: 'el-input',
|
|
|
md: 8,
|
|
|
attributes: {
|
|
|
- disabled: !this.formData.isDefault,
|
|
|
+ disabled: !this.isDefaultDisabled,
|
|
|
placeholder: '请输入',
|
|
|
type: 'number',
|
|
|
min: 1
|
|
@@ -295,7 +319,7 @@ export default {
|
|
|
name: 'el-input',
|
|
|
md: 8,
|
|
|
attributes: {
|
|
|
- disabled: !this.formData.isDefault,
|
|
|
+ disabled: !this.isDefaultDisabled,
|
|
|
placeholder: '请输入',
|
|
|
type: 'number',
|
|
|
min: 1
|
|
@@ -323,7 +347,7 @@ export default {
|
|
|
name: 'el-input',
|
|
|
md: 8,
|
|
|
attributes: {
|
|
|
- disabled: !this.formData.isDefault,
|
|
|
+ disabled: !this.isDefaultDisabled,
|
|
|
placeholder: '请输入',
|
|
|
type: 'number',
|
|
|
min: 1
|