|
@@ -19,7 +19,7 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
<el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
<el-form-item label="订单类型:">
|
|
<el-form-item label="订单类型:">
|
|
|
- <el-select v-model="form.orderType" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select v-model="form.orderType" placeholder="请选择" @change="chooseType">
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in typeList"
|
|
v-for="item in typeList"
|
|
|
:key="item.id"
|
|
:key="item.id"
|
|
@@ -157,7 +157,8 @@
|
|
|
form: {
|
|
form: {
|
|
|
productInfoList: [],
|
|
productInfoList: [],
|
|
|
deliveryRequirements:1,
|
|
deliveryRequirements:1,
|
|
|
- orderType:1
|
|
|
|
|
|
|
+ orderType:1,
|
|
|
|
|
+ orderLibraryType:2
|
|
|
},
|
|
},
|
|
|
// 表单验证规则
|
|
// 表单验证规则
|
|
|
rules: {
|
|
rules: {
|
|
@@ -234,6 +235,15 @@
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ // 选择订单类型
|
|
|
|
|
+ chooseType(val){
|
|
|
|
|
+ if(val==2){
|
|
|
|
|
+ this.$set(this.form,'orderLibraryType',1)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.$set(this.form,'orderLibraryType',2)
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
async getSaleCode () {
|
|
async getSaleCode () {
|
|
|
const res = await getCode('sale_order');
|
|
const res = await getCode('sale_order');
|