| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {getList, getDetail, add, update, remove} from "@/api/soldrecord/soldrecord"; |
| | | import {getList, getDetail, add, update, remove,getListbg} from "@/api/soldrecord/soldrecord"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | |
| | | { |
| | | label: "农资类型", |
| | | prop: "stype", |
| | | addDisplay: false, |
| | | searchLabelWidth: 80, |
| | | searchSpan: 4, |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=stockType", |
| | | props: { |
| | |
| | | value: "dictKey" |
| | | }, |
| | | dataType: "number", |
| | | search: true, |
| | | }, |
| | | { |
| | | label: "厂家名称", |
| | | prop: "factoryName", |
| | | addDisplay: false, |
| | | }, |
| | | { |
| | | label: "出库类型", |
| | | prop: "dic3", |
| | | addDisplay: false, |
| | | }, |
| | | { |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | var datas = this.$route.query.stockId; |
| | | params.stockId1=datas; |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | var datas = this.$route.query; |
| | | console.log(datas) |
| | | params.stockId1=datas.stockId1; |
| | | getListbg(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |