| | |
| | | // 获取产品信息 |
| | | export const getMaterialList = (data) => { |
| | | return request({ |
| | | url: "/api-s/v1/material/getMaterialList", |
| | | url: "/api-outsourcing/v1/order/materialSearch", |
| | | method: "post", |
| | | IsHeader: true, |
| | | data |
| | |
| | | props: { |
| | | pageSizes: { |
| | | type: Array, |
| | | default: () => [5, 10, 20, 30, 40] |
| | | default: () => [10, 20, 30, 40] |
| | | }, |
| | | layout: { |
| | | type: String, |
| | |
| | | for (let i in arr) { |
| | | let item = { |
| | | outsourcingOrderNumber: this.editRow.infomation.outsourcingOrderNumber, |
| | | materialNumber: arr[i].id, |
| | | materialNumber: arr[i].number, |
| | | materialName: arr[i].name, |
| | | amount: 1, |
| | | unit: arr[i].unit ? arr[i].unit : 1, |
| | |
| | | specs: arr[i].specs ? arr[i].specs : "" |
| | | } |
| | | console.log(arr, "8989") |
| | | isPush = this.getIsPush(this.productTableList.tableInfomation, arr[i].id) |
| | | isPush = this.getIsPush(this.productTableList.tableInfomation, arr[i].number) |
| | | if (isPush) { |
| | | this.productTableList.tableInfomation.splice(this.productTableList.tableInfomation.length, 0, item) |
| | | } |
| | |
| | | <PagerView |
| | | class="page" |
| | | :pager-options="pagerOptions" |
| | | :pagerCount="pagerCount" |
| | | layout="total, sizes, prev, pager, next" |
| | | v-on="pagerEvents" |
| | | /> |
| | |
| | | }, |
| | | { |
| | | label: "产品编码", |
| | | prop: "id", |
| | | prop: "number", |
| | | isShowColumn: true, |
| | | default: true |
| | | }, |