| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getProductList } from "@/api/productManage/product" |
| | | import { getProductList,getSupplierByNumber} from "@/api/productManage/product" |
| | | import pageMixin from "@/components/makepager/pager/mixin/pageMixin" |
| | | import DetailSupplier from "@/views/supplierManage/supplier/DetailSupplier" |
| | | export default { |
| | |
| | | { label: "采购价格", prop: "purchasePrice", min: 130 }, |
| | | { label: "供货天数", prop: "deliveryTime", min: 130 }, |
| | | { label: "物流时长(天)", prop: "shippingDuration", min: 130 } |
| | | ] |
| | | ], |
| | | thatNumber:'' |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | console.log(val, content) |
| | | await getProductList({ |
| | | number: this.editConfig.infomation.number, |
| | | supplierId: this.editConfig.infomation.supplierId, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | |
| | | this.pagerOptions.totalCount = res.data.total |
| | | }) |
| | | }, |
| | | // 单条供应商数据-详情 |
| | | async getSupplierByNumber() { |
| | | await getSupplierByNumber( |
| | | this.thatNumber |
| | | ).then((res) => { |
| | | this.commonDetail.infomation = { ...res.data.res } |
| | | }) |
| | | }, |
| | | handleClose() { |
| | | this.editConfig.visible = false |
| | | }, |
| | | selCommonClick(row) { |
| | | console.log(row) |
| | | async selCommonClick(row) { |
| | | this.thatNumber=row.supplier.number |
| | | await this.getSupplierByNumber() |
| | | this.commonDetail.visible = true |
| | | this.commonDetail.infomation = { ...row.supplier } |
| | | } |
| | | } |
| | | } |