调整订单修改

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: server:
# 服务器的HTTP端口默认为8080 # 服务器的HTTP端口默认为8080
port: 8091 port: 8090
servlet: servlet:
# 应用的访问路径 # 应用的访问路径
context-path: / context-path: /
@ -186,5 +186,6 @@ aliyun:
lucene: lucene:
index: 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-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="收款账号" prop="accountId"> <el-form-item label="进粉渠道" prop="accountId">
<el-select v-model="form.accountId" placeholder="请选择"> <el-select
v-model="form.accountId"
placeholder="请选择"
@change="handleOnChanelIdChange"
>
<el-option <el-option
v-for="dict in accountIdOptions" v-for="dict in accountIdOptions"
:key="dict.dictValue" :key="dict.dictValue"
@ -157,10 +161,7 @@
</el-col> </el-col>
<el-col :span="8" v-show="orderRateOptionsShow"> <el-col :span="8" v-show="orderRateOptionsShow">
<el-form-item label="拆分比例" prop="nutritionistRate"> <el-form-item label="拆分比例" prop="nutritionistRate">
<el-select <el-select v-model="form.nutritionistRate" placeholder="请选择">
v-model="form.nutritionistRate"
placeholder="请选择"
>
<el-option <el-option
v-for="dict in orderRateOptions" v-for="dict in orderRateOptions"
:key="dict.dictValue" :key="dict.dictValue"
@ -672,12 +673,15 @@ export default {
handleOrderTypeChange() { handleOrderTypeChange() {
// console.log(this.form.orderTypeList); // console.log(this.form.orderTypeList);
}, },
handleOnChanelIdChange(val) {
this.initPlanningAndOperation();
},
}, },
watch: { watch: {
// //
"form.accountId": function (newVal, oldVal) { // "form.accountId": function (newVal, oldVal) {
this.initPlanningAndOperation(); // this.initPlanningAndOperation();
}, // },
"form.orderTypeList": function (newVal, oldVal) { "form.orderTypeList": function (newVal, oldVal) {
// //
if (newVal[1] == 1) { if (newVal[1] == 1) {
@ -697,11 +701,11 @@ export default {
} }
// //
if (newVal[0] == 2) { if (newVal[0] == 2) {
this.afterNutiShow = false; this.afterNutiShow = false;
this.form.onSaleId = parseInt(this.onSaleIdOptions[1].dictValue); this.form.onSaleId = parseInt(this.onSaleIdOptions[1].dictValue);
this.form.serveTimeId = 7; this.form.serveTimeId = 7;
this.form.conditioningProjectId = 12; this.form.conditioningProjectId = 12;
}else{ } else {
this.form.onSaleId = null; this.form.onSaleId = null;
this.form.serveTimeId = 90; this.form.serveTimeId = 90;
this.afterNutiShow = true; this.afterNutiShow = true;

View File

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