| | |
| | | :permission="permissionList" |
| | | :before-open="beforeOpen" |
| | | :page.sync="page" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | |
| | | menu: false, |
| | | column:[ |
| | | { |
| | | label: "品种名", |
| | | prop :"strainName", |
| | | label: "品种", |
| | | prop :"strainId", |
| | | search:true, |
| | | hide:true, |
| | | display:true, |
| | | type:"select", |
| | | dicUrl:'api/strain/strain-tree', |
| | | props:{ |
| | | label:"strainName", |
| | | value:"id" |
| | | } |
| | | }, |
| | | { |
| | | label: "品种", |
| | | prop :"strainName" |
| | | }, |
| | | { |
| | | label: "损耗数量", |
| | |
| | | data:[], |
| | | }; |
| | | }, |
| | | mounted(){ |
| | | this.initData(); |
| | | }, |
| | | |
| | | methods: { |
| | | initData(){ |
| | | getInventoryPage(this.page.currentPage,this.page.pageSize).then((res)=>{ |
| | | if(res.data.code == 200){ |
| | | this.data = res.data.data.records |
| | | this.page.total = res.data.data.total |
| | | } |
| | | }) |
| | | }, |
| | | currentChange(currentPage) { |
| | | this.page.currentPage = currentPage; |
| | | }, |
| | |
| | | this.loading = false; |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | searchReset() { |
| | | this.query = {}; |
| | | this.onLoad(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | :permission="permissionList" |
| | | :before-open="beforeOpen" |
| | | :page.sync="page" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | |
| | | column:[ |
| | | { |
| | | label: "品种", |
| | | prop :"strainName", |
| | | prop :"strainId", |
| | | search:true, |
| | | hide:true, |
| | | display:true, |
| | | type:"select", |
| | | dicUrl:'api/strain/strain-tree', |
| | | props:{ |
| | | label:"strainName", |
| | | value:"id" |
| | | } |
| | | }, |
| | | { |
| | | label: "品种", |
| | | prop :"strainName" |
| | | }, |
| | | { |
| | | label: "出库数量", |
| | | prop :"saleNum", |
| | | }, |
| | | { |
| | | label: "出库去向", |
| | | prop :"district", |
| | | label:"销售地", |
| | | prop:"saleDestination2" |
| | | }, |
| | | { |
| | | label: "备注", |
| | |
| | | data:[], |
| | | }; |
| | | }, |
| | | mounted(){ |
| | | this.initData(); |
| | | }, |
| | | methods: { |
| | | initData(){ |
| | | getPage(this.page.currentPage,this.page.pageSize).then((res)=>{ |
| | | if(res.data.code == 200){ |
| | | this.data = res.data.data.records |
| | | this.page.total = res.data.data.total |
| | | } |
| | | }) |
| | | }, |
| | | currentChange(currentPage) { |
| | | currentChange(currentPage) { |
| | | this.page.currentPage = currentPage; |
| | | }, |
| | | sizeChange(pageSize) { |
| | |
| | | this.loading = false; |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | searchReset() { |
| | | this.query = {}; |
| | | this.onLoad(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | :permission="permissionList" |
| | | :before-open="beforeOpen" |
| | | :page.sync="page" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | |
| | | column:[ |
| | | { |
| | | label: "品种", |
| | | prop :"strainName", |
| | | prop :"strainId", |
| | | search:true, |
| | | hide:true, |
| | | display:false, |
| | | type:"select", |
| | | dicUrl:'api/strain/strain-tree', |
| | | props:{ |
| | | label:"strainName", |
| | | value:"id" |
| | | } |
| | | }, |
| | | { |
| | | label: "品种", |
| | | prop :"strainName" |
| | | }, |
| | | { |
| | | label: "销售数量", |
| | | prop :"saleNum", |
| | | }, |
| | | { |
| | | label: "销售地", |
| | | prop :"district", |
| | | label:"销售地", |
| | | prop:"saleDestination2" |
| | | }, |
| | | { |
| | | label: "销售价格", |
| | |
| | | data:[], |
| | | }; |
| | | }, |
| | | mounted(){ |
| | | this.initData(); |
| | | }, |
| | | methods: { |
| | | initData(){ |
| | | getPage(this.page.currentPage,this.page.pageSize).then((res)=>{ |
| | | if(res.data.code == 200){ |
| | | this.data = res.data.data.records |
| | | this.page.total = res.data.data.total |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | currentChange(currentPage) { |
| | | this.page.currentPage = currentPage; |
| | | }, |
| | |
| | | this.loading = false; |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | searchReset() { |
| | | this.query = {}; |
| | | this.onLoad(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | } |
| | | } |
| | | </script> |