|
@@ -63,18 +63,18 @@
|
|
|
></el-input>
|
|
|
<span>天零时起,按商家提交订单时间顺序,自动生成预留单</span>
|
|
|
</div>
|
|
|
- <!-- <div style="margin: 40px 0 30px">-->
|
|
|
- <!-- <h4>广州自动预留配置</h4>-->
|
|
|
- <!-- <div>预留单自动生成时间,从订单审单后,第</div>-->
|
|
|
- <!-- <el-input-->
|
|
|
- <!-- v-model="thirdForm.input2.dictValue"-->
|
|
|
- <!-- type="number"-->
|
|
|
- <!-- @mousewheel.native.prevent-->
|
|
|
- <!-- size="small"-->
|
|
|
- <!-- style="width: 150px; margin-top: 20px; margin-right: 10px"-->
|
|
|
- <!-- ></el-input>-->
|
|
|
- <!-- <span>天零时起,按商家提交订单时间顺序,自动生成预留单</span>-->
|
|
|
- <!-- </div>-->
|
|
|
+ <div style="margin: 40px 0 30px">
|
|
|
+ <h4>广州自动预留配置</h4>
|
|
|
+ <div>预留单自动生成时间,从订单审单后,第</div>
|
|
|
+ <el-input
|
|
|
+ v-model="thirdForm.input2.dictValue"
|
|
|
+ type="number"
|
|
|
+ @mousewheel.native.prevent
|
|
|
+ size="small"
|
|
|
+ style="width: 150px; margin-top: 20px; margin-right: 10px"
|
|
|
+ ></el-input>
|
|
|
+ <span>天零时起,按商家提交订单时间顺序,自动生成预留单</span>
|
|
|
+ </div>
|
|
|
<el-button type="primary" size="small" @click="submitForm('third')"
|
|
|
>确 定</el-button
|
|
|
>
|
|
@@ -445,7 +445,7 @@ export default {
|
|
|
},
|
|
|
thirdForm: {
|
|
|
input1: {},
|
|
|
- // input2: {},
|
|
|
+ input2: {},
|
|
|
},
|
|
|
fourthForm: {
|
|
|
input1: {},
|
|
@@ -566,22 +566,11 @@ export default {
|
|
|
|
|
|
changeType(val) {
|
|
|
if (this.formType === "receipt") return;
|
|
|
+ console.log(val);
|
|
|
this.getDetail(val);
|
|
|
},
|
|
|
-
|
|
|
- getDetail(type) {
|
|
|
- console.log(type, "type");
|
|
|
- const MAP = {
|
|
|
- first: "ORDER_TIME_LIMIT",
|
|
|
- second: "ENGIN_TWO_PWD",
|
|
|
- third: "RESERVED_DAY",
|
|
|
- fourth: "STOCK_ORDER",
|
|
|
- fifth: "PRINT_PASSWORD",
|
|
|
- sixth: "MACHINE_TYPE",
|
|
|
- seventh: "SIGN_TYPE",
|
|
|
- eigth: "POWER_CATEGORY",
|
|
|
- };
|
|
|
- getDictList({ sysDictEnum: MAP[type] }).then((res) => {
|
|
|
+ getDictList(type) {
|
|
|
+ getDictList({ sysDictEnum: type }).then((res) => {
|
|
|
console.log(res, "99");
|
|
|
let data = res.data.map((item) => {
|
|
|
return {
|
|
@@ -614,6 +603,25 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ getDetail(type) {
|
|
|
+ const MAP = {
|
|
|
+ first: "ORDER_TIME_LIMIT",
|
|
|
+ second: "ENGIN_TWO_PWD",
|
|
|
+ third: ["GUANG_ZHOU_RESERVED_DAY", "FO_SHAN_RESERVED_DAY"],
|
|
|
+ fourth: "STOCK_ORDER",
|
|
|
+ fifth: "PRINT_PASSWORD",
|
|
|
+ sixth: "MACHINE_TYPE",
|
|
|
+ seventh: "SIGN_TYPE",
|
|
|
+ eigth: "POWER_CATEGORY",
|
|
|
+ };
|
|
|
+ if (type === "third") {
|
|
|
+ MAP[type].forEach((e) => {
|
|
|
+ this.getDictList(e);
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.getDictList(MAP[type]);
|
|
|
+ },
|
|
|
|
|
|
submitForm(type) {
|
|
|
let list = [];
|