| | |
| | | import DetailSupplier from "@/views/purchaseManage/purchase/DetailSupplier" |
| | | import AddPurchase from "@/views/purchaseManage/purchase/components/AddPurchase" |
| | | import { getDataByType } from "@/api/data" |
| | | import { getSupplierList } from "@/api/supplierManage/supplier" |
| | | export default { |
| | | name: "SupplierManage", |
| | | props: {}, |
| | |
| | | editConfig: { |
| | | visible: false, |
| | | title: "创建", |
| | | infomation: {} |
| | | infomation: { |
| | | supplierList:[] |
| | | } |
| | | }, |
| | | purchaseStatusList: getDataByType("purchaseStatus"), |
| | | tableColumn: [ |
| | |
| | | created() { |
| | | this.setTable() |
| | | this.getData() |
| | | this.getSupplierData() |
| | | }, |
| | | methods: { |
| | | getpurchaseStatus(val) { |
| | |
| | | console.log(err) |
| | | }) |
| | | }, |
| | | // 获取供应商数据 |
| | | async getSupplierData() { |
| | | await getSupplierList({ |
| | | // [val]: content, |
| | | page:1, |
| | | pageSize: 10 |
| | | }) |
| | | .then((res) => { |
| | | if (res.data.code == 200) { |
| | | this.editConfig.infomation.supplierList=res.data.data.list |
| | | |
| | | } |
| | | }) |
| | | }, |
| | | // 搜索 |
| | | onFilterSearch(searchText){ |
| | | this.search = searchText ?? '' |