提交 e83741cb authored 作者: 吴德鹏's avatar 吴德鹏

优化商品管理

上级 0e9ea380
......@@ -463,18 +463,50 @@
供应商:
<i-input v-model="q.supplier" @on-enter="query" placeholder="供应商" style="width:160px">
</i-input>
</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span>
创建人:
<i-select v-model="q.creator" @on-enter="query"
placeholder="创建人" style="width:160px">
<i-option v-for="(el,i) in creatorList" :key='i'
:value="el.userId">{{el.userName}}
</i-option>
</i-select>
</span>
&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;<br/>
&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span>
一级分类:
<i-select v-model="q.itemCategory" @on-enter="query"
placeholder="一级分类" style="width:160px">
placeholder="一级分类" style="width:160px" @on-change="changeGoodstype">
<i-option v-for="(el,i) in Goodstype" :key='i'
:value="el.goodstypeId">{{el.goodstypeTitle}}
</i-option>
</i-select>
</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span>
二级分类:
<i-select placeholder="二级分类" style="width:160px" v-model="q.itemCategorytwo"
@on-enter="query"
@on-change="changeGoodstype2">
<i-option v-for="(el,i) in Goodstype2" :key='i'
:value="el.goodstwotypeId">{{el.goodstwotypeTitle}}
</i-option>
</i-select>
</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span>
三级分类:
<i-select placeholder="请选择" @on-enter="query" v-model="q.itemDescritionId"
style="width:160px">
<i-option v-for="(el,i) in Goodstype3" :key='i'
:value="el.descripitionId">{{el.descripitionName}}
</i-option>
</i-select>
</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span>
......@@ -485,16 +517,7 @@
</i-select>
</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span>
创建人:
<i-select v-model="q.creator" @on-enter="query"
placeholder="创建人" style="width:160px">
<i-option v-for="(el,i) in creatorList" :key='i'
:value="el.userId">{{el.userName}}
</i-option>
</i-select>
</span>
&nbsp;&nbsp;&nbsp;
</div>
......
......@@ -325,7 +325,12 @@ let vm = new Vue({
},
//获取二级分类
changeGoodstype(e) {
let url = "../tbcfstationitem/queryByItemType?typeId=" + this.tbCfStationItem.itemCategory;
let url;
if (e != null) {
url = "../tbcfstationitem/queryByItemType?typeId=" + e;
} else {
url = "../tbcfstationitem/queryByItemType?typeId=" + this.tbCfStationItem.itemCategory;
}
// console.log('url',url)
let that = this;
Ajax.request({
......@@ -345,8 +350,13 @@ let vm = new Vue({
}
});
},
changeGoodstype2() {
let url = "../tbcfstationitem/queryByItemTypeTwo?typeTwoId=" + this.tbCfStationItem.itemCategorytwo;
changeGoodstype2(e) {
let url;
if (e != null) {
url = "../tbcfstationitem/queryByItemTypeTwo?typeTwoId=" + e;
} else {
url = "../tbcfstationitem/queryByItemTypeTwo?typeTwoId=" + this.tbCfStationItem.itemCategorytwo;
}
let that = this;
Ajax.request({
url: url,
......@@ -607,7 +617,9 @@ let vm = new Vue({
'code': vm.q.code.trim(),
'status': vm.q.status.trim(),
'supplier': vm.q.supplier.trim(),
'itemCategory': vm.q.itemCategory.trim(),
'itemCategory': vm.q.itemCategory,
'typeTwo': vm.q.itemCategorytwo,
'typeThree': vm.q.itemDescritionId,
'creator': vm.q.creator.trim(),
},
page: page
......@@ -999,7 +1011,7 @@ let vm = new Vue({
this.Goodstype = res.list;
})
$.get('../tbcfexpresstemplate/queryAll', res => {
console.log('国家',JSON.parse(res))
console.log('国家', JSON.parse(res))
vm.templateList = JSON.parse(res).list;
})
$.get('../tbcfstationitem/queryCreator', res => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论