|
@@ -253,6 +253,7 @@
|
|
|
<el-input v-model="defaultList.item" placeholder="请输入要搜索的衣服类型" style="width: 300px" clearable>
|
|
|
<el-button slot="append" icon="el-icon-search" @click="searchCloth('item', 'clothItems')"></el-button>
|
|
|
</el-input>
|
|
|
+ <el-button type="primary" @click="changeClothActiveTab(0)" style="margin-left: 10px">上一步</el-button>
|
|
|
</div>
|
|
|
<div style="margin-left: 40px">
|
|
|
<div class="horizontal-view" style="margin-left: 15px">
|
|
@@ -272,6 +273,7 @@
|
|
|
<el-input v-model="defaultList.color" placeholder="请输入要搜索的衣服颜色" style="width: 300px" clearable>
|
|
|
<el-button slot="append" icon="el-icon-search" @click="searchCloth('color', 'clothColors')"></el-button>
|
|
|
</el-input>
|
|
|
+ <el-button type="primary" @click="changeClothActiveTab(1)" style="margin-left: 10px" v-if="!isUpdateClothItem">上一步</el-button>
|
|
|
</div>
|
|
|
<div style="margin-left: 40px; display: flex; flex-wrap: wrap">
|
|
|
<template v-for="(item, index) in clothColors">
|
|
@@ -292,6 +294,7 @@
|
|
|
<el-input v-model="defaultList.brand" placeholder="请输入要搜索的衣服品牌" style="width: 300px" clearable>
|
|
|
<el-button slot="append" icon="el-icon-search" @click="searchCloth('brand', 'clothBrands')"></el-button>
|
|
|
</el-input>
|
|
|
+ <el-button type="primary" @click="changeClothActiveTab(2)" style="margin-left: 10px" v-if="!isUpdateClothItem">上一步</el-button>
|
|
|
</div>
|
|
|
<div style="margin-left: 40px">
|
|
|
<el-tag :key="item.id" type="info" v-for="item in clothBrands" style="margin-top: 15px; margin-left: 15px" size="medium" @click="onClothBrandSelect(item.id)">
|
|
@@ -306,6 +309,7 @@
|
|
|
<el-input v-model="defaultList.flaw" placeholder="请输入要搜索的衣服瑕疵" style="width: 300px" clearable>
|
|
|
<el-button slot="append" icon="el-icon-search" @click="searchCloth('flaw', 'clothFlaws')"></el-button>
|
|
|
</el-input>
|
|
|
+ <el-button type="primary" @click="changeClothActiveTab(3)" style="margin-left: 10px" v-if="!isUpdateClothItem">上一步</el-button>
|
|
|
</div>
|
|
|
<el-tag :key="item.id" :type="item.isSelect ? 'success' : 'info'" v-for="(item, index) in clothFlaws" style="margin-top: 15px; margin-left: 15px" size="medium" @click="onClothFlawSelect(index)">
|
|
|
{{ item.name }}
|
|
@@ -330,9 +334,10 @@
|
|
|
<el-col :span="8">
|
|
|
<div>选择附件</div>
|
|
|
<div style="margin-left: 15px; margin-top: 10px">
|
|
|
- <el-input v-model="defaultList.adjunct" placeholder="请输入要搜索的衣服附件" style="width: 300px" clearable>
|
|
|
+ <el-input v-model="defaultList.adjunct" placeholder="请输入要搜索的衣服附件" style="width: 200px" clearable>
|
|
|
<el-button slot="append" icon="el-icon-search" @click="searchCloth('adjunct', 'clothAdjuncts')"></el-button>
|
|
|
</el-input>
|
|
|
+ <el-button type="primary" @click="changeClothActiveTab(4)" style="margin-left: 10px" v-if="!isUpdateClothItem">上一步</el-button>
|
|
|
</div>
|
|
|
<el-tag :key="item.id" type="info" v-for="item in clothAdjuncts" style="margin-top: 15px; margin-left: 15px" @click="onClothAdjunctSelect(item)">
|
|
|
{{ item.name }}
|
|
@@ -952,6 +957,33 @@ export default {
|
|
|
this.addClothActiveTab = 1
|
|
|
})
|
|
|
},
|
|
|
+ changeClothActiveTab(index) {
|
|
|
+ this.addClothActiveTab = index
|
|
|
+ switch (index) {
|
|
|
+ case 0:
|
|
|
+ this.form.clothTypeKeys = []
|
|
|
+ this.form.orderClothTypeDTOS = []
|
|
|
+ this.form.clothWashModeId = ''
|
|
|
+ this.form.clothWashModeName = ''
|
|
|
+ break
|
|
|
+ case 1:
|
|
|
+ this.clothColors.forEach((item) => {
|
|
|
+ item.isSelect = false
|
|
|
+ })
|
|
|
+ this.form.orderClothColorDTOS = []
|
|
|
+ break
|
|
|
+ case 2:
|
|
|
+ this.form.clothBrandId = ''
|
|
|
+ this.form.clothBrandName = ''
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ this.form.orderClothFlawDTOS = []
|
|
|
+ break
|
|
|
+ case 4:
|
|
|
+
|
|
|
+ break
|
|
|
+ }
|
|
|
+ },
|
|
|
onClothItemSelect(index) {
|
|
|
this.form.orderClothTypeDTOS = []
|
|
|
for (let i = 0; i < this.form.clothTypeKeys.length; i++) {
|