From 6a3da83a4cc9db5f612b1aa218f3053da4b44ba2 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Fri, 10 Jan 2025 08:55:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E4=BB=B6=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/part/partAccept.js | 46 ++ src/api/part/partArrived.js | 55 ++ src/views/material/part/partAccept/detail.vue | 558 ++++++++++++++++++ src/views/material/part/partAccept/index.vue | 500 ++++++++++++++++ .../part/partArrived/component/addTools.vue | 126 ++-- .../part/partArrived/component/home.vue | 61 +- .../part/partArrived/component/queryTools.vue | 39 +- 7 files changed, 1249 insertions(+), 136 deletions(-) create mode 100644 src/api/part/partAccept.js create mode 100644 src/api/part/partArrived.js create mode 100644 src/views/material/part/partAccept/detail.vue create mode 100644 src/views/material/part/partAccept/index.vue diff --git a/src/api/part/partAccept.js b/src/api/part/partAccept.js new file mode 100644 index 00000000..3fff2c29 --- /dev/null +++ b/src/api/part/partAccept.js @@ -0,0 +1,46 @@ +import request from '@/utils/request' + +//获取配件类型下拉框-三级 +export function getPartType(query) { + return request({ + url: '/material/part_accept/partTypeThree', + method: 'get', + params: query, + }) +} + + // 配件入库API + export function partTypeWarehouse(data) { + return request({ + url: '/material/part_accept/partTypeWarehouse', + method: 'post', + data: data, + }) +} + + // 配件驳回API + export function partTypeReject(data) { + return request({ + url: '/material/part_accept/partTypeReject', + method: 'post', + data: data, + }) +} + + // 外层配件入库API + export function passAll(data) { + return request({ + url: '/material/part_accept/passAll', + method: 'post', + data: data + }) +} + + // 外层配件驳回API + export function rejectAll(data) { + return request({ + url: '/material/part_accept/rejectAll', + method: 'post', + data: data , + }) +} \ No newline at end of file diff --git a/src/api/part/partArrived.js b/src/api/part/partArrived.js new file mode 100644 index 00000000..51852876 --- /dev/null +++ b/src/api/part/partArrived.js @@ -0,0 +1,55 @@ +import request from '@/utils/request' + +//获取配件类型树 +export function getTypeTree(query) { + return request({ + url: '/material/part_arrived/typeTree', + method: 'get', + params: query, + }) +} + +// 配件新购到货-新增 +export function addPartInfo(data) { + return request({ + url: '/material/part_arrived', + method: 'post', + data: data, + }) +} + + //配件新购到货-列表 + export function getListNewBuy(query) { + return request({ + url: '/material/part_arrived/list', + method: 'get', + params: query, + }) + } + +//配件新购到货-列表详情 +export function getPartTypeCheckInfo(query) { + return request({ + url: '/material/part_arrived/getInfo', + method: 'get', + params: query, + }) +} + +// 配件新购到货-编辑 +export function updatePartInfo(data) { + return request({ + url: '/material/part_arrived', + method: 'put', + data: data, + }) +} + +// 配件新购到货--删除 +export function deletePartInfo(data) { + return request({ + url: '/material/part_arrived/delete' , + method: 'post', + data: data, + }) +} \ No newline at end of file diff --git a/src/views/material/part/partAccept/detail.vue b/src/views/material/part/partAccept/detail.vue new file mode 100644 index 00000000..b1c23059 --- /dev/null +++ b/src/views/material/part/partAccept/detail.vue @@ -0,0 +1,558 @@ + + + + diff --git a/src/views/material/part/partAccept/index.vue b/src/views/material/part/partAccept/index.vue new file mode 100644 index 00000000..f6329c95 --- /dev/null +++ b/src/views/material/part/partAccept/index.vue @@ -0,0 +1,500 @@ + + + + diff --git a/src/views/material/part/partArrived/component/addTools.vue b/src/views/material/part/partArrived/component/addTools.vue index 100b83c4..07bb1266 100644 --- a/src/views/material/part/partArrived/component/addTools.vue +++ b/src/views/material/part/partArrived/component/addTools.vue @@ -108,14 +108,14 @@ /> @@ -124,8 +124,8 @@ @@ -139,7 +139,7 @@ v-model="scope.row.purchaseTaxPrice" controls-position="right" style="width: 100%" @blur="scope.row.purchaseTaxPrice = scope.row.purchaseTaxPrice>0? scope.row.purchaseTaxPrice:0" - :min="0" :step="1" :disabled="scope.row.status!=1&&scope.row.status!=12" + :min="0" :step="1" :disabled="scope.row.status!=0" @change="purchaseTaxPriceChange(scope.row,scope.$index)" > @@ -159,18 +159,6 @@ > - - - @@ -201,7 +189,7 @@ @@ -215,7 +203,7 @@