From 2902aca46440d5184c619bb4027431f818c939e9 Mon Sep 17 00:00:00 2001
From: taozi <1362265981@qq.com>
Date: Mon, 29 Dec 2025 09:19:58 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=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/views/firstOrder/components/outDialog.vue | 110 +++++++++++++-----
src/views/firstOrder/inbound.vue | 26 ++++-
src/views/firstOrder/outbound.vue | 15 ++-
3 files changed, 114 insertions(+), 37 deletions(-)
diff --git a/src/views/firstOrder/components/outDialog.vue b/src/views/firstOrder/components/outDialog.vue
index 3b2e09f..bc480b4 100644
--- a/src/views/firstOrder/components/outDialog.vue
+++ b/src/views/firstOrder/components/outDialog.vue
@@ -132,10 +132,8 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.type === "NY" ? "耐用品" : (scope.row.type === "YH" ? "易耗品" : "") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
diff --git a/src/views/demandOrder/index.vue b/src/views/demandOrder/index.vue
index a440194..a44b160 100644
--- a/src/views/demandOrder/index.vue
+++ b/src/views/demandOrder/index.vue
@@ -29,11 +29,11 @@ export default {
total: 0
},
option: {
- height: 'auto',
+ height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
- searchMenuSpan: 6,
+ searchMenuSpan: 18,
border: true,
index: true,
selection: true,
@@ -48,6 +48,7 @@ export default {
gridSpan: false,
filterBtn: false,
columnBtn: false,
+ searchMenuPosition: "right",
column: [
{
label: "需求单号",
@@ -109,16 +110,16 @@ export default {
tableData: [],
ckTable: [
- {str1: '3', str2: '2025-04-09', str3: '部门一'},
- {str1: '37', str2: '2025-04-03', str3: '部门一'}
+ { str1: '3', str2: '2025-04-09', str3: '部门一' },
+ { str1: '37', str2: '2025-04-03', str3: '部门一' }
],
rkTable: [
- {str1: '5',str2: '2025-03-19',str3: '部门二'},
- {str1: '12',str2: '2025-03-19',str3: '部门二'},
+ { str1: '5', str2: '2025-03-19', str3: '部门二' },
+ { str1: '12', str2: '2025-03-19', str3: '部门二' },
],
bfTable: [
- {str1: '9',str2: '2025-03-19',str3: '部门三'},
- {str1: '19',str2: '2025-03-19',str3: '部门三'},
+ { str1: '9', str2: '2025-03-19', str3: '部门三' },
+ { str1: '19', str2: '2025-03-19', str3: '部门三' },
],
};
},
@@ -149,13 +150,13 @@ export default {
},
handleTabClick(tab, event) {
console.log(tab, event);
- if(this.activeName=='first'){
+ if (this.activeName == 'first') {
this.tableData = this.ckTable
}
- if(this.activeName=='second'){
+ if (this.activeName == 'second') {
this.tableData = this.rkTable
}
- if(this.activeName=='third'){
+ if (this.activeName == 'third') {
this.tableData = this.bfTable
}
},
@@ -216,8 +217,8 @@ export default {
// this.loading = false;
// this.selectionClear();
// });
- getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
- console.log(123,res.data.result)
+ getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+ console.log(123, res.data.result)
// const data = res.data.data;
this.data = res.data.result.list;
this.loading = false;
diff --git a/src/views/firstOrder/components/approvalProcessDialog.vue b/src/views/firstOrder/components/approvalProcessDialog.vue
index e63d21d..ccddb62 100644
--- a/src/views/firstOrder/components/approvalProcessDialog.vue
+++ b/src/views/firstOrder/components/approvalProcessDialog.vue
@@ -1,84 +1,97 @@
-
+
-
+
-
+
+
+
diff --git a/src/views/firstOrder/list.vue b/src/views/firstOrder/list.vue
index 9ac21fd..abb4129 100644
--- a/src/views/firstOrder/list.vue
+++ b/src/views/firstOrder/list.vue
@@ -1,48 +1,31 @@
-
+
- 记录
+ 记录
-
+
-
+
-
+
+
+
-
+
@@ -73,7 +56,7 @@ export default {
calcHeight: 30,
tip: false,
searchShow: true,
- searchMenuSpan: 6,
+ searchMenuSpan: 12,
border: true,
index: true,
selection: true,
@@ -158,6 +141,13 @@ export default {
prop: "remark",
headerAlign: "center",
align: "center",
+ formatter: (row, column) => {
+ const value = row.remark;
+ if (value === null || value === undefined || value === "") {
+ return "无";
+ }
+ return value;
+ }
},
],
},
@@ -189,38 +179,54 @@ export default {
},
},
mounted() {
- this.tableData = this.ckTable;
- this.tableData = this.rkTable;
+ this.ckTable = [];
+ this.rkTable = [];
+ this.tableData = [];
},
methods: {
+ formatTime(row, column, cellValue) {
+ if (!cellValue) return '';
+ return cellValue.replace('T', ' ');
+ },
async handleLog(row) {
this.dialogLogVisible = true;
this.currentRow = row;
+ this.loadTransactionData();
+ },
+
+ handleTabClick() {
+ this.loadTransactionData();
+ },
+ async loadTransactionData() {
+ if (!this.currentRow) return;
+
const params = {
- oneFromId: row.id,
- transactionType: this.transactionType,
+ oneFromId: this.currentRow.id,
+ transactionType: this.transactionType
};
+
const pageNum = this.page.currentPage;
const pageSize = this.page.pageSize;
- const res = await recordList(
- pageNum,
- pageSize,
- Object.assign({}, this.query, params)
- );
- this.tableData = res.data.result.list;
- },
- handleTabClick() {
- //出库
- if (this.transactionType == "1") {
- this.tableData = this.ckTable;
- }
- // 入库
- if (this.transactionType == "2") {
- this.tableData = this.rkTable;
+ this.loading = true;
+ try {
+ const res = await recordList(
+ pageNum,
+ pageSize,
+ Object.assign({}, this.query, params)
+ );
+ if (this.transactionType === "1") {
+ this.ckTable = res.data.result.list;
+ } else {
+ this.rkTable = res.data.result.list;
+ }
+ this.tableData = res.data.result.list;
+ } catch (error) {
+ console.error("获取记录数据失败:", error);
+ } finally {
+ this.loading = false;
}
},
-
searchReset() {
this.query = {};
this.onLoad(this.page);
diff --git a/src/views/firstOrder/outbound.vue b/src/views/firstOrder/outbound.vue
index 112bde4..a3dfd22 100644
--- a/src/views/firstOrder/outbound.vue
+++ b/src/views/firstOrder/outbound.vue
@@ -12,9 +12,9 @@
-->
- {{
+ {{
scope.row.purchaseEndInfo }}
- 无
+ {{ scope.row.purchaseEndInfo || '无' }}
详情
@@ -35,7 +35,6 @@