From 96b8e87ebbe548f1267718919d59b908f1662fde Mon Sep 17 00:00:00 2001 From: zhangdi <15053473693@163.com> Date: Tue, 30 Dec 2025 09:17:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BA=A7=E5=BA=93=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/materials/expend.js | 2 +- src/api/secondOrder/list.js | 10 +- src/api/secondOrder/outbound.js | 13 +- src/views/firstOrder/components/outDialog.vue | 2 +- src/views/materials/expend.vue | 94 +++++--- .../components/approvalProcessDialog.vue | 85 +++++++ .../secondOrder/components/outDialog.vue | 207 ++++++++++++------ .../secondOrder/components/recordDialog.vue | 121 +++++++--- src/views/secondOrder/list.vue | 1 + src/views/secondOrder/outbound.vue | 74 ++++--- 10 files changed, 454 insertions(+), 155 deletions(-) create mode 100644 src/views/secondOrder/components/approvalProcessDialog.vue diff --git a/src/api/materials/expend.js b/src/api/materials/expend.js index 28ace87..8cb1abb 100644 --- a/src/api/materials/expend.js +++ b/src/api/materials/expend.js @@ -2,7 +2,7 @@ import request from '@/router/axios'; export const getList = (current, size, params) => { return request({ - url: '/smartpark/material/list', + url: '/smartpark/durableForm/list', method: 'get', params: { ...params, diff --git a/src/api/secondOrder/list.js b/src/api/secondOrder/list.js index 5d3b8de..bf17413 100644 --- a/src/api/secondOrder/list.js +++ b/src/api/secondOrder/list.js @@ -15,15 +15,11 @@ export const getList = (current, size, params) => { } -export const recordList = (current, size, params) => { +export const recordList = params => { return request({ - url: '/smartpark/inventoryRecord/list', + url: '/smartpark/twoInventoryRecord/list', method: 'get', - params: { - ...params, - pageSize:size, - pageNum:current, - }, + params: params, cryptoToken: false, cryptoData: false }) diff --git a/src/api/secondOrder/outbound.js b/src/api/secondOrder/outbound.js index 9de497e..7cba48d 100644 --- a/src/api/secondOrder/outbound.js +++ b/src/api/secondOrder/outbound.js @@ -40,7 +40,7 @@ export const getUserList = params => { // 提交 export const submit = data => { return request({ - url: '/smartpark/user/getUserByDeptId', + url: '/smartpark/twoOutStorage/submit', method: 'post', data: data, @@ -56,3 +56,14 @@ export const getDetails = params => { }) } + + +export const getMaterialList = (params) => { + return request({ + url: '/smartpark/consumerForm/getConsumerFormList', + method: 'get', + params: params, + cryptoToken: false, + cryptoData: false + }) +} diff --git a/src/views/firstOrder/components/outDialog.vue b/src/views/firstOrder/components/outDialog.vue index 3b2e09f..bde0298 100644 --- a/src/views/firstOrder/components/outDialog.vue +++ b/src/views/firstOrder/components/outDialog.vue @@ -351,7 +351,7 @@ export default { } else { this.$message.warning('未获取到详细数据'); } - + }, //获取单条选择的部门名称列表 async getDetailedItems() { diff --git a/src/views/materials/expend.vue b/src/views/materials/expend.vue index 85a591c..6df36e6 100644 --- a/src/views/materials/expend.vue +++ b/src/views/materials/expend.vue @@ -20,7 +20,7 @@ > @@ -51,7 +51,6 @@ :rowDta="scrapInfo" @closeDialog="closeDialog" > - @@ -109,46 +108,57 @@ export default { column: [ { label: "编号", - prop: "no", + prop: "materialCode", headerAlign: "center", align: "center", }, - { - label: "部门", - prop: "str8", - search: true, - type: "select", - headerAlign: "center", - align: "center", - dicData: [ - { - label: "部门一", - value: 0, - }, - { - label: "部门二", - value: 1, - }, - ], - }, + // { + // label: "部门", + // prop: "str8", + // search: true, + // type: "select", + // headerAlign: "center", + // align: "center", + // dicData: [ + // { + // label: "部门一", + // value: 0, + // }, + // { + // label: "部门二", + // value: 1, + // }, + // ], + // }, { label: "名称", - prop: "name", + prop: "materialName", search: true, headerAlign: "center", align: "center", }, { label: "规格型号", - prop: "xh", + prop: "model", headerAlign: "center", align: "center", }, { label: "类别", - prop: "lb", + prop: "type", headerAlign: "center", align: "center", + type: "select", + dicDta: [ + { + label: "易耗品", + value: "1", + }, + { + label: "耐用品", + value: "2", + }, + ], }, { label: "计量单位", @@ -158,31 +168,46 @@ export default { }, { label: "数量", - prop: "number", + prop: "num", headerAlign: "center", align: "center", }, { label: "单价", - prop: "dj", + prop: "unitPrice", headerAlign: "center", align: "center", }, { label: "金额", - prop: "pice", + prop: "amount", headerAlign: "center", align: "center", }, { label: "状态", - prop: "status", + prop: "isBorrow", headerAlign: "center", align: "center", + type: "select", + dicDta: [ + { + label: "已借出", + value: "0", + }, + { + label: "已归还", + value: "1", + }, + { + label: "已报废", + value: "2", + }, + ], }, { label: "归还时间", - prop: "time", + prop: "returnTime", headerAlign: "center", align: "center", }, @@ -250,6 +275,15 @@ export default { }, onLoad(page, params = {}) { this.loading = true; + getList( + page.currentPage, + page.pageSize, + Object.assign(params, this.query) + ).then((res) => { + this.data = res.data.result.list; + this.loading = false; + this.page.total = res.data.result.total; + }); this.loading = false; }, // 归还 diff --git a/src/views/secondOrder/components/approvalProcessDialog.vue b/src/views/secondOrder/components/approvalProcessDialog.vue new file mode 100644 index 0000000..e63d21d --- /dev/null +++ b/src/views/secondOrder/components/approvalProcessDialog.vue @@ -0,0 +1,85 @@ + + + diff --git a/src/views/secondOrder/components/outDialog.vue b/src/views/secondOrder/components/outDialog.vue index d25ae83..3e5e7a6 100644 --- a/src/views/secondOrder/components/outDialog.vue +++ b/src/views/secondOrder/components/outDialog.vue @@ -15,13 +15,14 @@ ref="dynamicValidateForm" label-width="100px" class="demo-dynamic" + :rules="rules" >
基本信息
- + - + - + - - + - + +
{{ outDateInfo }} 出库信息:
新增 - + diff --git a/src/views/secondOrder/list.vue b/src/views/secondOrder/list.vue index fa09bae..09cc7b1 100644 --- a/src/views/secondOrder/list.vue +++ b/src/views/secondOrder/list.vue @@ -78,6 +78,7 @@ export default { columnBtn: false, menuAlign: "left", searchMenuPosition: "right", + menuWidth: 100, column: [ { label: "部门", diff --git a/src/views/secondOrder/outbound.vue b/src/views/secondOrder/outbound.vue index 87d1e3d..eef01c9 100644 --- a/src/views/secondOrder/outbound.vue +++ b/src/views/secondOrder/outbound.vue @@ -19,8 +19,12 @@ 新增出库单 - + + @@ -57,11 +68,13 @@ import outDialog from "./components/outDialog.vue"; import needDialog from "./components/needDialog.vue"; import { getList } from "@/api/secondOrder/outbound"; +import approvalProcessDialog from "./components/approvalProcessDialog.vue"; export default { components: { outDialog, needDialog, + approvalProcessDialog }, data() { return { @@ -91,7 +104,10 @@ export default { border: true, index: true, selection: true, - viewBtn: true, + viewBtn: false, + addBtn: false, + editBtn: false, + delBtn: false, dialogClickModal: false, selection: false, printBtn: false, @@ -101,10 +117,10 @@ export default { gridSpan: false, filterBtn: false, columnBtn: false, - menu: false, menuAlign: "left", searchMenuPosition: "right", excelBtn: true, + menuWidth:140, column: [ // { // label: "需求单名称", @@ -123,32 +139,25 @@ export default { // }, { label: "出库单号", - prop: "str2", + prop: "orderNo", headerAlign: "center", align: "center", }, { label: "出库时间", - prop: "str3", + prop: "outDate", search: true, type: "datetime", headerAlign: "center", align: "center", }, - { - label: "出库人", - prop: "str4", - search: true, - headerAlign: "center", - align: "center", - }, - { - label: "审批人", - prop: "approvers", - headerAlign: "center", - align: "center", - }, + // { + // label: "审批人", + // prop: "approvers", + // headerAlign: "center", + // align: "center", + // }, { label: "状态", @@ -159,16 +168,16 @@ export default { align: "center", dicData: [ { - label: "暂存", - value: 1, + label: "未出库", + value:0, }, { - label: "待审批", - value: 2, + label: "已出库", + value: 1, }, { - label: "已审批", - value: 3, + label: "已驳回", + value: 2, }, ], }, @@ -178,10 +187,22 @@ export default { outDialogVisible: false, outDialogTiltle: "出库", outDialogType: "", + approvalProcessShow:false, }; }, methods: { + approvalProcessFn(row) { + this.approvalProcessShow = true; + }, + // 详情 + handleDetails(row) { + this.outDialogVisible = true + this.outDialogType = 'details' + this.outDialogTiltle = '详情' + this.id = row.id + console.log(this.id,'id') + }, purchaseFn(row) { this.purchaseOpen = true; this.purchaseTitle = row.xuqiudanmingcheng + "详情"; @@ -194,9 +215,10 @@ export default { this.outDialogType = "add"; this.outDialogTiltle = "新增出库"; }, - // 行点击事件 + // handleCloseDetail() { this.outDialogVisible = false; + this.onLoad(this.page); }, handleExport(name) { this.$message({