From 9b2c74ee4f08fad01c2a16bc6e36df073bfa1dd5 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期五, 24 四月 2026 09:12:13 +0800
Subject: [PATCH] 推送
---
src/views/business/transfer/index.vue | 71 +++++++++++++++++++----------------
1 files changed, 39 insertions(+), 32 deletions(-)
diff --git a/src/views/business/transfer/index.vue b/src/views/business/transfer/index.vue
index 2a3dffe..f36d0c5 100644
--- a/src/views/business/transfer/index.vue
+++ b/src/views/business/transfer/index.vue
@@ -155,6 +155,18 @@
prop="caseNo"
width="140"
/>
+ <el-table-column
+ label="杞繍鐘舵��"
+ align="center"
+ prop="transitStatus"
+ width="100"
+ >
+ <template slot-scope="scope">
+ <el-tag :type="getStatusTagType(scope.row.transitStatus)">
+ {{ getStatusText(scope.row.transitStatus) }}
+ </el-tag>
+ </template>
+ </el-table-column>
<el-table-column label="鎮h�呬俊鎭�" align="center" width="260">
<template slot-scope="scope">
<div class="donor-info">
@@ -194,18 +206,7 @@
prop="contactPerson"
width="100"
/>
- <el-table-column
- label="杞繍鐘舵��"
- align="center"
- prop="transitStatus"
- width="100"
- >
- <template slot-scope="scope">
- <el-tag :type="getStatusTagType(scope.row.transitStatus)">
- {{ getStatusText(scope.row.transitStatus) }}
- </el-tag>
- </template>
- </el-table-column>
+
<el-table-column
label="鍒涘缓鏃堕棿"
align="center"
@@ -429,11 +430,7 @@
append-to-body
>
<div class="action-confirm">
- <p>
- 纭畾瑕亄{ actionText }}杞繍鍗� "{{
- currentTransport.id
- }}" 鍚楋紵
- </p>
+ <p>纭畾瑕亄{ actionText }}杞繍鍗� "{{ currentTransport.id }}" 鍚楋紵</p>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="actionOpen = false">鍙� 娑�</el-button>
@@ -519,15 +516,15 @@
pageNum: 1,
pageSize: 10,
caseNo: undefined,
- patName: undefined,
+ patName: undefined
// 鍙煡璇㈠凡鍚屾剰涓旈渶瑕佽浆杩愮殑妗堜緥
// reportStatus: "3", // 宸插悓鎰�
- isTransport: "2" // 闇�瑕佽浆杩�
+ // isTransport: "2" // 闇�瑕佽浆杩�
}
};
},
created() {
- this.getList();
+ // this.getList();
this.checkAutoCreate();
},
methods: {
@@ -567,26 +564,31 @@
},
checkAutoCreate() {
const query = this.$route.query;
+ // 涓婃姤璺宠浆杩囨潵杩涜澶勭悊
if (query.autoCreate === "true") {
- // 鑷姩鎵撳紑妗堜緥閫夋嫨寮规
- this.selectCaseOpen = true;
- this.resetCaseSearch();
-
// 濡傛灉鏈夌壒瀹氱殑妗堜緥缂栧彿锛屽彲浠ラ鍏堟悳绱�
if (query.caseNo) {
+ // this.selectCaseOpen = true;
+ this.resetCaseSearch(1);
this.caseQueryParams.caseNo = query.caseNo;
- this.searchCaseList();
+ this.searchCaseList(1);
+ } else {
+ this.queryParams.patName = query.patName;
}
}
+ this.getList();
},
/** 鎼滅储鍙敤妗堜緥 */
- async searchCaseList() {
+ async searchCaseList(type) {
this.caseLoading = true;
try {
const response = await donateList(this.caseQueryParams);
if (response.code === 200) {
this.availableCaseList = response.rows || response.data || [];
this.caseTotal = response.total || 0;
+ if (type == 1 && response.data[0]) {
+ this.selectCase(response.data[0]);
+ }
} else {
this.$modal.msgError(response.msg || "鑾峰彇妗堜緥鍒楄〃澶辫触");
}
@@ -599,7 +601,7 @@
},
/** 閲嶇疆妗堜緥鎼滅储 */
- resetCaseSearch() {
+ resetCaseSearch(type) {
this.caseQueryParams = {
pageNum: 1,
pageSize: 10,
@@ -608,7 +610,12 @@
// reportStatus: "3",
isTransport: "2"
};
- this.searchCaseList();
+ if (!type) {
+ this.searchCaseList();
+ } else {
+ // 璺ㄩ〉闈㈡柊澧炲彇娑堥檺鍒�
+ this.caseQueryParams.isTransport = null;
+ }
},
/** 鍒ゆ柇妗堜緥鏄惁宸叉湁杞繍鍗� */
@@ -636,7 +643,7 @@
// 鎵撳紑杞繍鍗曠紪杈戦〉闈紝骞朵紶鍏ラ�変腑鐨勬渚�
this.currentTransport = this.convertCaseToTransport(caseData);
- console.log(this.currentTransport,'currentTransport');
+ console.log(this.currentTransport, "currentTransport");
this.isEditing = false;
this.editOpen = true;
@@ -644,7 +651,7 @@
/** 灏嗘渚嬩俊鎭浆鎹负杞繍鍗曟牸寮� */
convertCaseToTransport(caseData) {
- console.log(caseData,'2');
+ console.log(caseData, "2");
return {
caseNo: caseData.caseNo,
@@ -712,7 +719,7 @@
// 澶氶�夋閫変腑鏁版嵁
handleSelectionChange(selection) {
- this.ids = selection.map(item => item.id);
+ this.ids = selection.map(item => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
@@ -740,7 +747,7 @@
/** 璇︽儏鎸夐挳鎿嶄綔 */
handleDetail(row) {
this.currentTransport = row;
- this.detailTitle = `杞繍鍗曡鎯� - ${ row.id}`;
+ this.detailTitle = `杞繍鍗曡鎯� - ${row.id}`;
this.detailOpen = true;
},
--
Gitblit v1.9.3