From fbbef11a37d59a753d9a656bb69937de9625f3d4 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 5 Jan 2024 21:12:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/modules/client.js | 54 ----- apis/modules/goods.js | 24 +++ components/order/order.vue | 159 ++++++++++++++ config/request.js | 2 +- other/addGoods/addGoods.vue | 264 ++++++++++++++++++++++++ other/goods/goods.vue | 201 ++++++++++++++++++ other/supplierDetail/supplierDetail.vue | 4 +- pages.json | 16 ++ pages/person/person.vue | 2 +- pages/supplier/supplier.vue | 27 ++- 10 files changed, 689 insertions(+), 64 deletions(-) delete mode 100644 apis/modules/client.js create mode 100644 apis/modules/goods.js create mode 100644 components/order/order.vue create mode 100644 other/addGoods/addGoods.vue create mode 100644 other/goods/goods.vue diff --git a/apis/modules/client.js b/apis/modules/client.js deleted file mode 100644 index 560370c..0000000 --- a/apis/modules/client.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/apis/request.js' -const { get, post } = request - -export const queryCustomer = (data) => { - return post('nakadai/nakadai/customer/queryCustomer', data) -} - -export const list = (data) => { - return post('nakadai/nakadai/applets/customer/getCustomerListBasedOnBusinessManagerId', data) -} - -export const all = (data) => { - return post('nakadai/nakadai/applets/customer/customerList', data) -} - -export const queryCustomerDetails = (data) => { - return get('nakadai/nakadai/customer/queryCustomerDetails', data) -} - -export const querySchool = (data) => { - return get('nakadai/nakadai/school/querySchool', data) -} - -export const queryIndustryClass = (data) => { - return get('nakadai/nakadai/hrIndustryClass/queryIndustryClass', data) -} - -export const queryIndustry = (data) => { - return get('nakadai/nakadai/hrIndustry/queryIndustry', data) -} - -export const queryCustomerIsExists = (data) => { - return get('nakadai/nakadai/customer/queryCustomerIsExists', data) -} - -export const addCustomer = (data) => { - return post('nakadai/nakadai/customer/addCustomer', data) -} - -export const updateCustomer = (data) => { - return post('nakadai/nakadai/customer/updateCustomer', data) -} - -export const getProductsSubscribedByCustomers = (data) => { - return get('nakadai/nakadai/customer/getProductsSubscribedByCustomers', data) -} - -export const getTeamsByAccountId = (data) => { - return post('nakadai/nakadai/applets/customer/getTeamsByAccountId', data) -} - -export const getTheBusinessManagerIdsUnderTheTeam = id => { - return post(`nakadai/nakadai/applets/customer/getTheBusinessManagerIdsUnderTheTeam?id=${id}`) -} \ No newline at end of file diff --git a/apis/modules/goods.js b/apis/modules/goods.js new file mode 100644 index 0000000..21ef90c --- /dev/null +++ b/apis/modules/goods.js @@ -0,0 +1,24 @@ +import request from '@/apis/request.js' +const { get, post } = request + +export const batchDelete = (data) => { + return post('nakadai/prod/batchDelete', data) +} +export const info = (data) => { + return get('nakadai/prod/info', data) +} +export const page = (data) => { + return get('nakadai/prod/page', data) +} +export const prodStatus = (prodId, prodStatus) => { + return post(`nakadai/prod/prodStatus?prodId=${prodId}&prodStatus=${prodStatus}`) +} +export const save = (data) => { + return post('nakadai/prod/save', data) +} +export const update = (data) => { + return post('nakadai/prod/update', data) +} +export const categoryList = (data) => { + return get('nakadai/category/list', data) +} \ No newline at end of file diff --git a/components/order/order.vue b/components/order/order.vue new file mode 100644 index 0000000..54831ff --- /dev/null +++ b/components/order/order.vue @@ -0,0 +1,159 @@ + + + + + \ No newline at end of file diff --git a/config/request.js b/config/request.js index aea2d7a..d57d2ba 100644 --- a/config/request.js +++ b/config/request.js @@ -5,7 +5,7 @@ */ export default { - // baseURL: 'http://192.168.31.217:10010/', + // baseURL: 'http://192.168.31.51:10010/', baseURL: 'http://124.71.79.122/', headers: { 'Content-Type': 'application/json;charset=UTF-8' diff --git a/other/addGoods/addGoods.vue b/other/addGoods/addGoods.vue new file mode 100644 index 0000000..7d8ca3a --- /dev/null +++ b/other/addGoods/addGoods.vue @@ -0,0 +1,264 @@ + + + + + diff --git a/other/goods/goods.vue b/other/goods/goods.vue new file mode 100644 index 0000000..586d390 --- /dev/null +++ b/other/goods/goods.vue @@ -0,0 +1,201 @@ + + + + + diff --git a/other/supplierDetail/supplierDetail.vue b/other/supplierDetail/supplierDetail.vue index 2bae3e8..0d5054c 100644 --- a/other/supplierDetail/supplierDetail.vue +++ b/other/supplierDetail/supplierDetail.vue @@ -60,11 +60,11 @@ 联系我们 - 地址:{{ form.address }} + 地址:{{ form.address || '' }} - 联系电话:{{ form.phone }} + 联系电话:{{ form.phone || '' }} diff --git a/pages.json b/pages.json index 3b23ca0..e3fd1b3 100644 --- a/pages.json +++ b/pages.json @@ -68,6 +68,22 @@ "navigationBarTitleText" : "已报名活动", "enablePullDownRefresh" : true } + }, + { + "path" : "goods/goods", + "style" : + { + "navigationBarTitleText" : "商品管理", + "enablePullDownRefresh" : true + } + }, + { + "path" : "addGoods/addGoods", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh" : false + } } ] }, diff --git a/pages/person/person.vue b/pages/person/person.vue index 6b03008..3c09b78 100644 --- a/pages/person/person.vue +++ b/pages/person/person.vue @@ -108,7 +108,7 @@ {{ platformName }}认证 -
  • +
  • 商品管理
  • diff --git a/pages/supplier/supplier.vue b/pages/supplier/supplier.vue index 48f710b..26f7335 100644 --- a/pages/supplier/supplier.vue +++ b/pages/supplier/supplier.vue @@ -15,8 +15,9 @@ {{ item.companyName }}
    - {{ item.briefIntroduction }} + {{ item.briefIntroduction }} {{ item.province }}-{{ item.city }} + 我想采购 @@ -40,6 +41,8 @@ + + @@ -181,6 +184,13 @@ this.curTab = tab.id this.initList() }, + // 我想采购 + toOrder(row) { + // console.log(33, this.$refs.order.popup) + const el = this.$refs.order + el.getGoods() + el.$refs.popup.open() + } } } @@ -222,6 +232,7 @@ } } .info { + position: relative; padding: 12rpx 0; } .line { @@ -251,11 +262,15 @@ text-overflow: ellipsis; overflow: hidden; } - .toggle { - margin-left: 10rpx; - white-space: nowrap; - font-size: 24rpx; - color: #0e92ef; + .order { + position: absolute; + top: 14rpx; + right: 0; + padding: 8rpx 28rpx; + font-size: 28rpx; + color: #fff; + background-color: $uni-primary; + border-radius: 20px; } }