From a61e43fba19089bfd29db6e54575a338a70f4d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B5=A9=E7=8E=AE?= Date: Sun, 18 Jul 2021 00:23:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E8=B7=AF=E7=BC=96=E6=8E=92=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ranger.js | 16 ++ src/components/table/table.vue | 7 +- src/pages/ranger/basic/line/Assemble/add.vue | 57 ------ .../ranger/basic/line/Assemble/addItem.vue | 88 +++++++++ .../ranger/basic/line/Assemble/addPlace.vue | 84 +++++++++ .../ranger/basic/line/Assemble/addUnit.vue | 75 ++++++++ .../ranger/basic/line/Assemble/index.vue | 167 ++++++++++++++++-- .../ranger/basic/line/Assemble/setOrder.vue | 58 ++++++ 8 files changed, 476 insertions(+), 76 deletions(-) delete mode 100644 src/pages/ranger/basic/line/Assemble/add.vue create mode 100644 src/pages/ranger/basic/line/Assemble/addItem.vue create mode 100644 src/pages/ranger/basic/line/Assemble/addPlace.vue create mode 100644 src/pages/ranger/basic/line/Assemble/addUnit.vue create mode 100644 src/pages/ranger/basic/line/Assemble/setOrder.vue diff --git a/src/api/ranger.js b/src/api/ranger.js index de90978..0e27543 100644 --- a/src/api/ranger.js +++ b/src/api/ranger.js @@ -145,3 +145,19 @@ export function getRouteAssemblesApi(data) { export function getRouteAssemblesListApi(data) { return getReq(`/ranger/inspection/api/v1/route/assembles/assembleList`, data); } + +export function addRouteAssemblesListApi(data) { + return postReq(`/ranger/inspection/api/v1/route/assembles`, data); +} + +export function getPllaceListApi(data) { + return postReq('/ranger/inspection/api/v1/place/page', data); +} + +export function updateRouteAssemblesApi(data) { + return putReq('/ranger/inspection/api/v1/route/assembles', data); +} + +export function setRouteAssemblesOrderApi(data) { + return putReq('/ranger/inspection/api/v1/route/assembles/assembleOrder', data); +} diff --git a/src/components/table/table.vue b/src/components/table/table.vue index dc767b2..349c327 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -16,7 +16,7 @@ 更多查询 重置 - 查询 + 查询 @@ -246,6 +246,11 @@ export default { this.getData(); }, + resetGetData() { + this.initQuery = { ...initQuery }; + this.getData(); + }, + refreshView() { this.data = [...this.data]; }, diff --git a/src/pages/ranger/basic/line/Assemble/add.vue b/src/pages/ranger/basic/line/Assemble/add.vue deleted file mode 100644 index ca83d06..0000000 --- a/src/pages/ranger/basic/line/Assemble/add.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - diff --git a/src/pages/ranger/basic/line/Assemble/addItem.vue b/src/pages/ranger/basic/line/Assemble/addItem.vue new file mode 100644 index 0000000..806aa7d --- /dev/null +++ b/src/pages/ranger/basic/line/Assemble/addItem.vue @@ -0,0 +1,88 @@ + + + + diff --git a/src/pages/ranger/basic/line/Assemble/addPlace.vue b/src/pages/ranger/basic/line/Assemble/addPlace.vue new file mode 100644 index 0000000..8fa5af4 --- /dev/null +++ b/src/pages/ranger/basic/line/Assemble/addPlace.vue @@ -0,0 +1,84 @@ + + + diff --git a/src/pages/ranger/basic/line/Assemble/addUnit.vue b/src/pages/ranger/basic/line/Assemble/addUnit.vue new file mode 100644 index 0000000..6adadeb --- /dev/null +++ b/src/pages/ranger/basic/line/Assemble/addUnit.vue @@ -0,0 +1,75 @@ + + + diff --git a/src/pages/ranger/basic/line/Assemble/index.vue b/src/pages/ranger/basic/line/Assemble/index.vue index 3742e54..c9f1498 100644 --- a/src/pages/ranger/basic/line/Assemble/index.vue +++ b/src/pages/ranger/basic/line/Assemble/index.vue @@ -4,7 +4,6 @@ url="/ranger/inspection/api/v1/route/assembles" rowKey="assembleId" :formatData="formatData" - addBtn ref="assembleTable" :scroll="scroll" :otherQuery="getDefaultQuery()" @@ -13,36 +12,44 @@ noPadding :width="400" > + - - + + - + - + - + - + + @@ -50,35 +57,88 @@ -- GitLab