| | |
| | | :placeholder="'请输入位置/产品'" |
| | | :amount-view="false" |
| | | :search-task-map="searchTaskMap" |
| | | :show-sreen="false" |
| | | :screen-array="screenArray" |
| | | @addCommonClick="addProductClick" |
| | | @searchClick="getList" |
| | | @discardBtnClick="discardBtnClick" |
| | | @delSelectClick="delSelectClick" |
| | | @switchKeywords="switchKeywords" |
| | | /> |
| | | </div> |
| | | <div class="content_wrap"> |
| | |
| | | data() { |
| | | return { |
| | | datas: [], |
| | | // datas: [{ |
| | | // label: '一级 1', |
| | | // children: [{ |
| | | // label: '二级 1-1', |
| | | // children: [{ |
| | | // label: '三级 1-1-1' |
| | | // }] |
| | | // }] |
| | | // }, { |
| | | // label: '一级 2', |
| | | // children: [{ |
| | | // label: '二级 2-1', |
| | | // children: [{ |
| | | // label: '三级 2-1-1' |
| | | // }] |
| | | // }, { |
| | | // label: '二级 2-2', |
| | | // children: [{ |
| | | // label: '三级 2-2-1' |
| | | // }] |
| | | // }] |
| | | // }, { |
| | | // label: '一级 3', |
| | | // children: [{ |
| | | // label: '二级 3-1', |
| | | // children: [{ |
| | | // label: '三级 3-1-1' |
| | | // }] |
| | | // }, { |
| | | // label: '二级 3-2', |
| | | // children: [{ |
| | | // label: '三级 3-2-1' |
| | | // }] |
| | | // }] |
| | | // }], |
| | | defaultProps: { |
| | | children: "children", |
| | | label: "jointName" |
| | |
| | | unit: "", |
| | | reorderId: 0, |
| | | searchTaskMap: [], |
| | | type: "bh" |
| | | type: "bh", |
| | | screenArray: [{ id: "0", type: "bh", title: "重新订购" }] |
| | | } |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | this.searchTaskMap = [{ type: this.type, title: "重新订购" }] |
| | | this.searchTaskMap = [{ id: "0", type: this.type, title: "重新订购" }] |
| | | this.getData() |
| | | this.getLocationList() |
| | | }, |
| | |
| | | delSelectClick() { |
| | | this.type = "" |
| | | this.getData() |
| | | }, |
| | | switchKeywords(item) { |
| | | console.log(item, "switchKeywords") |
| | | this.type = item?.length > 0 ? "bh" : "" |
| | | this.getData() |
| | | } |
| | | } |
| | | } |