|
@@ -14,7 +14,7 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="商品大类" prop="categories">
|
|
|
<el-select v-model="form.categories" style="width:100%">
|
|
|
- <el-option v-for="item in categoriesList" :key="item.index" :value="item.tag" :label="item.tag"></el-option>
|
|
|
+ <el-option v-for="item in categoriesList" :key="item.index" :value="item.value" :label="item.remarks"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -112,22 +112,12 @@ export default {
|
|
|
},
|
|
|
/*获取可选商品大类*/
|
|
|
async getCategoriesList () {
|
|
|
- let res = await this.$api.requested({
|
|
|
- "id": 20221013104401,
|
|
|
- "content": {
|
|
|
- "isExport":1,
|
|
|
- "pageNumber":1,
|
|
|
- "pageSize":100,
|
|
|
- "sys_systemtagid":22,
|
|
|
- }
|
|
|
- })
|
|
|
+ const res = await this.$store.dispatch('optiontypeselect','categories')
|
|
|
this.categoriesList = res.data
|
|
|
},
|
|
|
validateInput(value1,value2){
|
|
|
- console.log(value1,value2)
|
|
|
if (value1 && value2 !== ''){
|
|
|
if (value1 > value2){
|
|
|
- console.log('3333')
|
|
|
this.errorMessage = '不合法'
|
|
|
return false
|
|
|
}
|