From 9f7c29a2d9a6af471346b4a25bc85e5c47353749 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Mon, 11 Nov 2024 12:12:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=A2=86=E6=96=99=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ma/partType.js | 17 + src/components/pageHeaderApply/index.vue | 30 + .../lease/apply/component/addToolsApply.vue | 885 +++++++ .../lease/apply/component/homeApply.vue | 937 +++++++ .../lease/apply/component/queryToolsApply.vue | 404 +++ src/views/material/lease/apply/index.vue | 87 + src/views/material/ma/partType/index.vue | 15 +- src/views/material/ma/type/index.vue | 2298 +++++++++-------- .../purchase/goodsArrived/component/home.vue | 1652 ++++++------ 9 files changed, 4358 insertions(+), 1967 deletions(-) create mode 100644 src/components/pageHeaderApply/index.vue create mode 100644 src/views/material/lease/apply/component/addToolsApply.vue create mode 100644 src/views/material/lease/apply/component/homeApply.vue create mode 100644 src/views/material/lease/apply/component/queryToolsApply.vue create mode 100644 src/views/material/lease/apply/index.vue diff --git a/src/api/ma/partType.js b/src/api/ma/partType.js index 219eb964..046f87e4 100644 --- a/src/api/ma/partType.js +++ b/src/api/ma/partType.js @@ -61,4 +61,21 @@ export function addMaType(data) { method: 'post', data: data, }) +} + +// 配件类型管理--修改 +export function updateMaType(data) { + return request({ + url: '/material/ma_part_type', + method: 'put', + data: data, + }) +} + +// 配件类型管理--删除 +export function delMaType(id) { + return request({ + url: '/material/ma_part_type/' + id, + method: 'delete', + }) } \ No newline at end of file diff --git a/src/components/pageHeaderApply/index.vue b/src/components/pageHeaderApply/index.vue new file mode 100644 index 00000000..4b8f677c --- /dev/null +++ b/src/components/pageHeaderApply/index.vue @@ -0,0 +1,30 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/views/material/lease/apply/component/addToolsApply.vue b/src/views/material/lease/apply/component/addToolsApply.vue new file mode 100644 index 00000000..abf7165b --- /dev/null +++ b/src/views/material/lease/apply/component/addToolsApply.vue @@ -0,0 +1,885 @@ + + + + + + + + + + + + + + + + + + % + + + + + + + + + + + + + 保存 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 报告管理 + + + + + + + + + + + + + 删除 + + + + + + + + + + + + {{ this.rowData.maTypeName }} + + + + + {{ this.rowData.typeName }} + + + + + + + + + 上传 + + + + + 查看 + + + + + + + + + + + + + + + + diff --git a/src/views/material/lease/apply/component/homeApply.vue b/src/views/material/lease/apply/component/homeApply.vue new file mode 100644 index 00000000..071bac27 --- /dev/null +++ b/src/views/material/lease/apply/component/homeApply.vue @@ -0,0 +1,937 @@ + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 领料申请 + + + 发布 + + + 导出 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查看 + 编辑 + + 通知 + 验收单 + + 删除 + + + + + + + + + + + + 机具设备到货验收单 + + + + 单据编号: + + + 生产厂家(供应商): + + + + 到货日期: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 供应科: + + + + + + 生产技术科: + + + + + + 库管班: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/material/lease/apply/component/queryToolsApply.vue b/src/views/material/lease/apply/component/queryToolsApply.vue new file mode 100644 index 00000000..2b0a373a --- /dev/null +++ b/src/views/material/lease/apply/component/queryToolsApply.vue @@ -0,0 +1,404 @@ + + + + + 导出 + + + + + + + + + + + + + + + + + + 报告管理 + + + + + + + + + + + + + + + + + + {{ this.rowData.maTypeName }} + + + + + {{ this.rowData.typeName }} + + + + + + + + + + 查看 + + + + + + + + + + + + + + + + diff --git a/src/views/material/lease/apply/index.vue b/src/views/material/lease/apply/index.vue new file mode 100644 index 00000000..8e68514d --- /dev/null +++ b/src/views/material/lease/apply/index.vue @@ -0,0 +1,87 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/views/material/ma/partType/index.vue b/src/views/material/ma/partType/index.vue index 9b4fc7eb..45a171eb 100644 --- a/src/views/material/ma/partType/index.vue +++ b/src/views/material/ma/partType/index.vue @@ -367,6 +367,8 @@ import { editAccessory, delAccessory, addMaType, + updateMaType, + delMaType, } from "@/api/ma/partType"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; @@ -661,15 +663,15 @@ export default { removeTreeNode(data) { // this.$message.success('删除--') console.log(data, "删除时的数据源--"); - const typeId = data.id; + const id = data.id; this.$modal .confirm("是否确认删除数据项?") .then(function () { - return delMaType(typeId); + return delMaType(id); }) .then(() => { this.$modal.msgSuccess("删除成功"); - this.getTreeData(); + this.getTreeselect(); }) .catch(() => {}); }, @@ -694,11 +696,10 @@ export default { }; const editParams = { - houseId: id, paName, level: this.levelTemp, parentId: this.parentId, - typeId: id, + id: id, }; this.$refs["addFormParamsRef"].validate(async (valid) => { @@ -709,7 +710,7 @@ export default { this.$message.success("新增成功!"); this.addTitleVisible = false; this.getList(); - this.getTreeData(); + this.getTreeselect(); } } else { const res = await updateMaType(editParams); @@ -717,7 +718,7 @@ export default { this.$message.success("修改成功!"); this.addTitleVisible = false; this.getList(); - this.getTreeData(); + this.getTreeselect(); } } } diff --git a/src/views/material/ma/type/index.vue b/src/views/material/ma/type/index.vue index 8324449f..1ba96cb3 100644 --- a/src/views/material/ma/type/index.vue +++ b/src/views/material/ma/type/index.vue @@ -1,1214 +1,1216 @@ - - - - - - - - - - - - {{ node.label.slice(0, 3) + '...' }} - {{ node.label }} + + + + + + + + + + + + {{ + node.label.slice(0, 3) + "..." + }} + {{ node.label }} - - appendTreeNode(data)" - > - - editTreeNode(data)" - > - - removeTreeNode(data)" - > - - - - - - - - - + appendTreeNode(data)" > - - - - - - 查询 - 重置 - - - - - - 导出 - - - - - - + editTreeNode(data)" > - - - - - - - + + removeTreeNode(data)" + > + + + + + + + + + + + + - - - - 查看 - - - 编辑 - - - 删除 - - - - + + 查询 + 重置 + + - - + + + 导出 + + + - - - + + + + + + - > - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 编码管理 - 数量管理 - - - - - - - 扣税 - 不扣税 - - - - - - - - 月 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - 确 定 - 取 消 - - - - - + + + + + 编码管理 + 数量管理 + + + + + + + 扣税 + 不扣税 + + + + + + + + 月 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 确 定 + 取 消 + + + + + diff --git a/src/views/material/purchase/goodsArrived/component/home.vue b/src/views/material/purchase/goodsArrived/component/home.vue index 2dd792de..9c4c6927 100644 --- a/src/views/material/purchase/goodsArrived/component/home.vue +++ b/src/views/material/purchase/goodsArrived/component/home.vue @@ -1,182 +1,179 @@ - - + + + - - - - + + - - - - - - - - - - - - 搜索 - 重置 - - - - - - 设备到货新增 - - - 导出 - - - - - + - - - - - - - - - - + + + - + + + - - + + 搜索 + 重置 + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + 查看 + 编辑 + + 通知 + 验收单 + + 删除 + + + + + + + + + + + + 机具设备到货验收单 + + + + 单据编号: + + + 生产厂家(供应商): + + + + 到货日期: + + + + + + + + + + + + + + + + - - - 查看 - 编辑 + + + + + + + - 通知 - 验收单 + + + + 供应科: + + - 删除 - - - + + + 生产技术科: + + - + + 库管班: + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + - - - - 机具设备到货验收单 - - - - 单据编号: - - - 生产厂家(供应商): - - - - 到货日期: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 供应科: - - - - - - 生产技术科: - - - - - - 库管班: - - - - - - - - - - - - - - - - - - - - - - - - - - - - 删除 + >删除 - - + + - - - - - - - - - - - + + + + + + + + + + - + - - - + + + From 56dc6791fce896448592cb343ef9d5aa88356b6e Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Mon, 11 Nov 2024 16:16:55 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=A2=86=E6=96=99=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/lease/apply.js | 66 +++ .../lease/apply/component/addToolsApply.vue | 249 ++--------- .../lease/apply/component/homeApply.vue | 390 +++--------------- src/views/material/lease/apply/index.vue | 6 +- 4 files changed, 166 insertions(+), 545 deletions(-) create mode 100644 src/api/lease/apply.js diff --git a/src/api/lease/apply.js b/src/api/lease/apply.js new file mode 100644 index 00000000..695cb6b3 --- /dev/null +++ b/src/api/lease/apply.js @@ -0,0 +1,66 @@ +import request from '@/utils/request' + +//领料申请-列表 +export function getListLeaseApply(query) { + return request({ + url: '/material/lease_apply_info/list', + method: 'get', + params: query, + }) +} + +//新购到货-二级列表详情 +export function getPurchaseCheckInfo(query) { + return request({ + url: '/material/purchase_check_info/getInfo', + method: 'get', + params: query, + }) +} + +// 新购到货-新增 +export function addPurchaseCheckInfo(data) { + return request({ + url: '/material/purchase_check_info', + method: 'post', + data: data, + }) +} + +// 新购到货-编辑 +export function updatePurchaseCheckInfo(data) { + return request({ + url: '/material/purchase_check_info', + method: 'put', + data: data, + }) +} + +// 新购到货--删除 +export function purchaseCheckInfoRemove(ids) { + return request({ + url: '/material/purchase_check_info/' + ids, + method: 'delete', + }) +} + + + +// 上传报告附件 +export function uploadPurchaseFile(data) { + return request({ + url: '/material/bm_file_info', + method: 'post', + data: data + }) +} + + +// // 状态信息下拉框- +// export function queryStatusDataApi(query) { +// return request({ +// url: '/system/lease_apply_status/listNoPage', +// method: 'get', +// params: query +// }) +// } diff --git a/src/views/material/lease/apply/component/addToolsApply.vue b/src/views/material/lease/apply/component/addToolsApply.vue index abf7165b..7e225afe 100644 --- a/src/views/material/lease/apply/component/addToolsApply.vue +++ b/src/views/material/lease/apply/component/addToolsApply.vue @@ -9,20 +9,10 @@ :inline="true" label-width="120px" > - - - - + - - + + > + + - + + + + + - % @@ -75,18 +81,6 @@ @change="deviceTypeChange" > - - - - @@ -113,7 +107,7 @@ @@ -123,8 +117,9 @@ prop="typeName" show-overflow-tooltip /> - - + + + - + + + - - - - - - - - - - - - - - - - - - - - - - - 报告管理 - - - - - - - - - - - - - - - - - - - {{ this.rowData.maTypeName }} - - - - - {{ this.rowData.typeName }} - - - - - - - - - 上传 - - - - - 查看 - - - - - - - - - - - diff --git a/src/views/material/lease/apply/component/homeApply.vue b/src/views/material/lease/apply/component/homeApply.vue index 071bac27..0dc52ab6 100644 --- a/src/views/material/lease/apply/component/homeApply.vue +++ b/src/views/material/lease/apply/component/homeApply.vue @@ -21,23 +21,6 @@ - - - - - - + + + + + + @@ -177,28 +177,15 @@ - - + 查看 编辑 @@ -232,17 +219,30 @@ style="margin-bottom: 10px" type="success" @click="handleNotice(scope.row)" + v-if="scope.row.status == '0'" v-hasPermi="['purchase:person:notice']" - >通知发布 - 验收单领料单 + 出库检验单 删除 @@ -399,196 +399,21 @@ 关 闭 - - - - - - - - - - - - - - - - - - - - - - 删除 - - - - - - - - - - - - - - - - - - - - -