| | |
| | | import purchaseRouter from "./purchase/index.js" |
| | | import productRouter from "./product/index.js" |
| | | import {getMenuTreeByRole} from "@/api/menus/index" |
| | | import store from '@/store/index.js'; // 替换为实际的存储实例路径 |
| | | import store from '@/store/index.js'; |
| | | |
| | | Vue.use(Router) |
| | | const login = (resolve) => require(["@/views/other/login/index"], resolve) |
| | |
| | | async enableClick(row, value) { |
| | | let status = value === "启用" ? 1 : 0 |
| | | await changeSupplierStatus({ |
| | | id: row.ID, |
| | | id:Number(row.id), |
| | | status: status |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | |
| | | this.selValueList = list |
| | | }, |
| | | tableRowClick(row) { |
| | | console.log(row) |
| | | this.productPagerOptions.currPage = 1 |
| | | this.selectRow = row |
| | | this.supplierId = row.id |
| | |
| | | }, |
| | | // 详情 |
| | | async selCommonClick(row) { |
| | | await getPurchaseList({ pageSize: 10, page: 1, supplierId: row.ID }).then((res) => { |
| | | await getPurchaseList({ pageSize: 10, page: 1, supplierId: Number(row.id) }).then((res) => { |
| | | this.commonDetail.productListInfo = res.data.list |
| | | }) |
| | | this.commonDetail.visible = true |