|
@@ -41,9 +41,9 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" v-if="siteid === 'HY'">
|
|
|
- <el-form-item label="商品大类" prop="tags">
|
|
|
- <el-select v-model="form.tags" style="width:100%">
|
|
|
- <el-option v-for="item in tagList" :key="item.index" :value="item.tag" :label="item.tag"></el-option>
|
|
|
+ <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.value" :label="item.remarks"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -373,7 +373,8 @@ export default {
|
|
|
"prodline": "",
|
|
|
"device": "",
|
|
|
"packqty":'1',
|
|
|
- "tags":''
|
|
|
+ "tags":'',
|
|
|
+ "categories":""
|
|
|
},
|
|
|
rules:{
|
|
|
itemno: [
|
|
@@ -397,7 +398,7 @@ export default {
|
|
|
tradefields: [
|
|
|
{ required: true,message:'请选择领域', trigger:'change'}
|
|
|
],
|
|
|
- tags: [
|
|
|
+ categories: [
|
|
|
{ required: true,message:'请选择商品大类', trigger:'change'}
|
|
|
],
|
|
|
},
|
|
@@ -414,7 +415,7 @@ export default {
|
|
|
actuatortype:[], // 执行器类型
|
|
|
actuatorbrand:[],// 执行器品牌
|
|
|
connectionmode:[],// 连接形式
|
|
|
- tagList:[],//商品大类
|
|
|
+ categoriesList:[],//商品大类
|
|
|
siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid
|
|
|
}
|
|
|
},
|
|
@@ -437,7 +438,7 @@ export default {
|
|
|
this.actuatortypeData()
|
|
|
this.actuatorbrandData()
|
|
|
this.connectionmodeData()
|
|
|
- this.getTagList()
|
|
|
+ this.getCategoriesList()
|
|
|
},
|
|
|
// 查询领域
|
|
|
async fieldData () {
|
|
@@ -535,7 +536,14 @@ export default {
|
|
|
ownerid:res.data.itemid,
|
|
|
usetype:'default'
|
|
|
}
|
|
|
- this.setTag(res.data.itemid,res.data.rowindex)
|
|
|
+ /* this.setTag(res.data.itemid,res.data.rowindex)*/
|
|
|
+ this.$refs['form'].resetFields();
|
|
|
+ this.$refs['upload'].toUpload()
|
|
|
+ this.$emit('onSuccess')
|
|
|
+ this.refresh()
|
|
|
+ this.dialogFormVisible = false
|
|
|
+ this.$store.dispatch('changeDetailDrawer',true)
|
|
|
+ this.$router.push({path:'/productmagDetail',query:{id:res.data.itemid,rowindex:res.data.rowindex}})
|
|
|
})
|
|
|
})
|
|
|
|
|
@@ -585,7 +593,8 @@ export default {
|
|
|
"width": '', //可选
|
|
|
"length": '', //可选
|
|
|
"packqty":'1',
|
|
|
- "tags":''
|
|
|
+ "tags":'',
|
|
|
+ "categories":""
|
|
|
}
|
|
|
},
|
|
|
unitChange () {
|
|
@@ -646,7 +655,8 @@ export default {
|
|
|
"specalnote": "",
|
|
|
"prodline": "",
|
|
|
"device": "",
|
|
|
- "packqty":"1"
|
|
|
+ "packqty":"1",
|
|
|
+ "categories":""
|
|
|
}
|
|
|
},
|
|
|
itemnoChange(){
|
|
@@ -657,17 +667,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
/*获取可选商品大类*/
|
|
|
- async getTagList () {
|
|
|
- let res = await this.$api.requested({
|
|
|
- "id": 20221013104401,
|
|
|
- "content": {
|
|
|
- "isExport":1,
|
|
|
- "pageNumber":1,
|
|
|
- "pageSize":100,
|
|
|
- "sys_systemtagid":22,
|
|
|
- }
|
|
|
- })
|
|
|
- this.tagList = res.data
|
|
|
+ async getCategoriesList () {
|
|
|
+ let res = await this.$store.dispatch('optiontypeselect','categories')
|
|
|
+ this.categoriesList= res.data
|
|
|
},
|
|
|
hasDisabledTag (item) {
|
|
|
let arr = []
|