|
@@ -3,7 +3,9 @@
|
|
|
<Form ref="formValidate" :model="formValidate" :rules="ruleInline" inline>
|
|
<Form ref="formValidate" :model="formValidate" :rules="ruleInline" inline>
|
|
|
<FormItem label="选择类型:" class="form-item" label-position="right" :label-width="100">
|
|
<FormItem label="选择类型:" class="form-item" label-position="right" :label-width="100">
|
|
|
<RadioGroup v-model="formValidate.gender">
|
|
<RadioGroup v-model="formValidate.gender">
|
|
|
- <Radio :label="item.key" v-for="(item, index) in radioList" :key="index">{{ item.title }}</Radio>
|
|
|
|
|
|
|
+ <Radio :label="1" v-if="virtualType !== 3">发货</Radio>
|
|
|
|
|
+ <Radio :label="2" v-if="virtualType !== 3">送货</Radio>
|
|
|
|
|
+ <Radio :label="3">虚拟</Radio>
|
|
|
</RadioGroup>
|
|
</RadioGroup>
|
|
|
</FormItem>
|
|
</FormItem>
|
|
|
<FormItem
|
|
<FormItem
|
|
@@ -113,6 +115,10 @@ export default {
|
|
|
type: String | Number,
|
|
type: String | Number,
|
|
|
default: '',
|
|
default: '',
|
|
|
},
|
|
},
|
|
|
|
|
+ virtualType: {
|
|
|
|
|
+ type: Number,
|
|
|
|
|
+ default: 0,
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
'formValidate.shipStatus': {
|
|
'formValidate.shipStatus': {
|
|
@@ -134,6 +140,13 @@ export default {
|
|
|
},
|
|
},
|
|
|
deep: true,
|
|
deep: true,
|
|
|
},
|
|
},
|
|
|
|
|
+ virtualType: {
|
|
|
|
|
+ handler(nVal, oVal) {
|
|
|
|
|
+ console.log(nVal);
|
|
|
|
|
+ if (nVal == 3) this.formValidate.gender = 3;
|
|
|
|
|
+ },
|
|
|
|
|
+ immediate: true,
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|