From df52ea8f2d3144154772dd99085c060cd6fbc8a4 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Tue, 23 Feb 2021 15:09:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Eglobal=EF=BC=8C=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E8=81=8C=E4=BD=8D=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stdiet-ui/src/App.vue | 9 +- stdiet-ui/src/api/custom/global.js | 8 + stdiet-ui/src/api/custom/order.js | 51 +- .../src/components/ContractAdd/index.vue | 143 ++-- stdiet-ui/src/components/OrderAdd/index.vue | 149 ++-- stdiet-ui/src/components/OrderEdit/index.vue | 62 +- stdiet-ui/src/layout/components/Navbar.vue | 95 +-- stdiet-ui/src/store/actions.js | 7 + stdiet-ui/src/store/getters.js | 15 +- stdiet-ui/src/store/index.js | 4 +- stdiet-ui/src/store/modules/global.js | 8 +- .../views/custom/commision/config/index.vue | 639 +++++++++------- .../views/custom/commision/detail/index.vue | 351 +++++---- .../custom/commision/detail_day/index.vue | 513 +++++++------ stdiet-ui/src/views/custom/contract/index.vue | 702 +++++++++-------- stdiet-ui/src/views/custom/customer/index.vue | 75 +- .../src/views/custom/fanStatistics/index.vue | 711 ++++++++++-------- stdiet-ui/src/views/custom/order/index.vue | 65 +- .../src/views/custom/recipesPlan/index.vue | 63 +- .../src/views/custom/wxDistribution/index.vue | 475 +++++++----- 20 files changed, 2333 insertions(+), 1812 deletions(-) create mode 100644 stdiet-ui/src/api/custom/global.js create mode 100644 stdiet-ui/src/store/actions.js diff --git a/stdiet-ui/src/App.vue b/stdiet-ui/src/App.vue index f5a9a4b68..7d0b8915e 100644 --- a/stdiet-ui/src/App.vue +++ b/stdiet-ui/src/App.vue @@ -5,15 +5,8 @@ diff --git a/stdiet-ui/src/api/custom/global.js b/stdiet-ui/src/api/custom/global.js new file mode 100644 index 000000000..b7c0da11c --- /dev/null +++ b/stdiet-ui/src/api/custom/global.js @@ -0,0 +1,8 @@ +import request from "@/utils/request"; + +export function getOptions() { + return request({ + url: "/custom/post/options", + method: "get" + }); +} diff --git a/stdiet-ui/src/api/custom/order.js b/stdiet-ui/src/api/custom/order.js index d3735c9f6..b8af48fc1 100644 --- a/stdiet-ui/src/api/custom/order.js +++ b/stdiet-ui/src/api/custom/order.js @@ -1,69 +1,62 @@ -import request from '@/utils/request' +import request from "@/utils/request"; // 查询销售订单列表 export function listOrder(params) { return request({ - url: '/custom/order/list', - method: 'get', + url: "/custom/order/list", + method: "get", params: params - }) + }); } // 查询销售订单详细 export function getOrder(orderId) { return request({ - url: '/custom/order/' + orderId, - method: 'get' - }) + url: "/custom/order/" + orderId, + method: "get" + }); } // 新增销售订单 export function addOrder(data) { return request({ - url: '/custom/order', - method: 'post', + url: "/custom/order", + method: "post", data: data - }) + }); } // 修改销售订单 export function updateOrder(data) { return request({ - url: '/custom/order', - method: 'put', + url: "/custom/order", + method: "put", data: data - }) + }); } // 删除销售订单 export function delOrder(orderId) { return request({ - url: '/custom/order/' + orderId, - method: 'delete' - }) + url: "/custom/order/" + orderId, + method: "delete" + }); } // 导出销售订单 export function exportOrder(query) { return request({ - url: '/custom/order/export', - method: 'get', + url: "/custom/order/export", + method: "get", params: query - }) -} - -export function getOptions() { - return request({ - url: '/custom/post/options', - method: 'get' - }) + }); } // 查询销售订单详细 export function getInfoDetail(query) { return request({ - url: '/custom/order/getInfoDetail', - method: 'get', + url: "/custom/order/getInfoDetail", + method: "get", params: query - }) + }); } diff --git a/stdiet-ui/src/components/ContractAdd/index.vue b/stdiet-ui/src/components/ContractAdd/index.vue index 763d095c6..ce6b97c33 100644 --- a/stdiet-ui/src/components/ContractAdd/index.vue +++ b/stdiet-ui/src/components/ContractAdd/index.vue @@ -3,28 +3,51 @@ - - + + - - + + - - + + - - + + @@ -38,7 +61,11 @@ - +