From a93cb5b7ade46f1489f3b3b2167e5d3115daf9df Mon Sep 17 00:00:00 2001 From: wangzhenglan Date: Wed, 14 Sep 2022 16:34:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E4=BE=9B=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/supplier.js | 34 +++ src/components/Prouduct/ProuductAdd.vue | 2 +- src/components/Supplier/SupplyAdd.vue | 266 ++++++++++-------------- src/components/Supplier/SupplyList.vue | 78 +++++-- src/router/index.js | 2 - 5 files changed, 206 insertions(+), 176 deletions(-) diff --git a/src/api/supplier.js b/src/api/supplier.js index e04db3d..378623c 100644 --- a/src/api/supplier.js +++ b/src/api/supplier.js @@ -111,4 +111,38 @@ export function selectSupplierList(data) { method:'get', params:data }) + } + + + export function SureOrder(data){ + return axios({ + url:'/Supply/SureOrder', + method:'post', + params:data + }) + } + + + export function onAddSupply(data){ + return axios({ + url:'/Supply/onAddSupply', + method:'post', + params:data + }) + } + + + export function goodsNum() { + return axios({ + url: '/Supply/goodsNum', + method: 'get' + }) + } + + + export function supplierNames() { + return axios({ + url: '/Supply/supplierNames', + method: 'get' + }) } \ No newline at end of file diff --git a/src/components/Prouduct/ProuductAdd.vue b/src/components/Prouduct/ProuductAdd.vue index a314551..687007a 100644 --- a/src/components/Prouduct/ProuductAdd.vue +++ b/src/components/Prouduct/ProuductAdd.vue @@ -57,7 +57,7 @@ - + {{item}} diff --git a/src/components/Supplier/SupplyAdd.vue b/src/components/Supplier/SupplyAdd.vue index 87ea791..0799c98 100644 --- a/src/components/Supplier/SupplyAdd.vue +++ b/src/components/Supplier/SupplyAdd.vue @@ -1,32 +1,39 @@ diff --git a/src/router/index.js b/src/router/index.js index 7c860fa..616d735 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -81,11 +81,9 @@ const routes = [ // component: () => import(/* webpackChunkName: "about" */ '../views/Text.vue') // } ] - const router = new VueRouter({ mode: 'history', base: process.env.BASE_URL, routes }) - export default router