调整订单修改

This commit is contained in:
huangdeliang 2021-04-17 18:00:45 +08:00
parent 437ad87adc
commit ef882b2154
3 changed files with 44 additions and 27 deletions

View File

@ -19,7 +19,7 @@ stdiet:
# 开发环境配置
server:
# 服务器的HTTP端口默认为8080
port: 8091
port: 8090
servlet:
# 应用的访问路径
context-path: /
@ -186,5 +186,6 @@ aliyun:
lucene:
index:
nutritionQuestion: D:\develop\LuceneIndex\nutritionQuestion
# nutritionQuestion: D:\develop\LuceneIndex\nutritionQuestion
nutritionQuestion: /Users/wonder/Documents/Workspaces/java/ShengtangManage/running/uploadPath/nutritionQuestion

View File

@ -53,8 +53,12 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="收款账号" prop="accountId">
<el-select v-model="form.accountId" placeholder="请选择">
<el-form-item label="进粉渠道" prop="accountId">
<el-select
v-model="form.accountId"
placeholder="请选择"
@change="handleOnChanelIdChange"
>
<el-option
v-for="dict in accountIdOptions"
:key="dict.dictValue"
@ -157,10 +161,7 @@
</el-col>
<el-col :span="8" v-show="orderRateOptionsShow">
<el-form-item label="拆分比例" prop="nutritionistRate">
<el-select
v-model="form.nutritionistRate"
placeholder="请选择"
>
<el-select v-model="form.nutritionistRate" placeholder="请选择">
<el-option
v-for="dict in orderRateOptions"
:key="dict.dictValue"
@ -672,12 +673,15 @@ export default {
handleOrderTypeChange() {
// console.log(this.form.orderTypeList);
},
handleOnChanelIdChange(val) {
this.initPlanningAndOperation();
},
},
watch: {
//
"form.accountId": function (newVal, oldVal) {
this.initPlanningAndOperation();
},
// "form.accountId": function (newVal, oldVal) {
// this.initPlanningAndOperation();
// },
"form.orderTypeList": function (newVal, oldVal) {
//
if (newVal[1] == 1) {
@ -701,7 +705,7 @@ export default {
this.form.onSaleId = parseInt(this.onSaleIdOptions[1].dictValue);
this.form.serveTimeId = 7;
this.form.conditioningProjectId = 12;
}else{
} else {
this.form.onSaleId = null;
this.form.serveTimeId = 90;
this.afterNutiShow = true;

View File

@ -11,7 +11,11 @@
<el-form ref="form" :model="form" :rules="rules" label-width="90px">
<el-col :span="16">
<el-form-item label="订单类型" prop="orderTypeName">
<el-input v-model="form.orderTypeName" placeholder="" :disabled="true"/>
<el-input
v-model="form.orderTypeName"
placeholder=""
:disabled="true"
/>
</el-form-item>
</el-col>
<el-col :span="8">
@ -32,8 +36,12 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="收款账号" prop="accountId">
<el-select v-model="form.accountId" placeholder="请选择">
<el-form-item label="进粉渠道" prop="accountId">
<el-select
v-model="form.accountId"
placeholder="请选择"
@change="handleOnChannelIdChange"
>
<el-option
v-for="dict in accountIdOptions"
:key="dict.dictValue"
@ -389,7 +397,7 @@ export default {
//
afterSaleNutriAssShow: true,
//
planOperatorShow: true
planOperatorShow: true,
};
},
created() {
@ -571,9 +579,9 @@ export default {
this.resetForm("form");
// console.log("--"+obj.orderType);
this.onSaleShow = this.form.orderType == "2";
this.afterSaleNutriAssShow = this.form.orderType != "2" && this.form.afterSaleCommissOrder == 0;
this.afterSaleNutriAssShow =
this.form.orderType != "2" && this.form.afterSaleCommissOrder == 0;
this.planOperatorShow = this.form.afterSaleCommissOrder == 0;
},
handleOnClosed() {
this.reset();
@ -609,13 +617,17 @@ export default {
};
}
},
},
watch: {
//
"form.accountId": function (newVal, oldVal) {
// console.log("updte");
handleOnChannelIdChange(val) {
console.log(val);
this.initPlanningAndOperation();
},
},
watch: {
//
// "form.accountId": function (newVal, oldVal) {
// // console.log("updte");
// this.initPlanningAndOperation();
// },
},
};
</script>