From be42af700f901f496db68d97ab46e2c1d4bef85a Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 31 十月 2023 16:35:58 +0800
Subject: [PATCH] 11
---
src/views/project/travelexpenseapply/index.vue | 68 ++++++++++++++++++++++++++-------
1 files changed, 53 insertions(+), 15 deletions(-)
diff --git a/src/views/project/travelexpenseapply/index.vue b/src/views/project/travelexpenseapply/index.vue
index 6342f60..de93c46 100644
--- a/src/views/project/travelexpenseapply/index.vue
+++ b/src/views/project/travelexpenseapply/index.vue
@@ -68,6 +68,19 @@
</el-select>
</el-form-item>
</el-col>
+ </el-row>
+ <el-row>
+ <el-col :span="6">
+ <el-form-item label="鎹愮尞鑰�" prop="name">
+ <el-input
+ v-model="queryParams.donorname"
+ placeholder="璇疯緭鍏ユ崘鐚�呭鍚�"
+ clearable
+ size="small"
+ @keyup.enter.native="handleQuery"
+ />
+ </el-form-item>
+ </el-col>
<el-col :span="4">
<el-form-item>
<el-button
@@ -87,12 +100,7 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
- <el-button
- type="primary"
- plain
- icon="el-icon-plus"
- size="mini"
- @click="handleAdd"
+ <el-button type="primary" plain icon="el-icon-plus" @click="handleAdd"
>鏂板</el-button
>
<!-- v-hasPermi="['project:funddetail:add']" -->
@@ -102,7 +110,6 @@
type="warning"
plain
icon="el-icon-download"
- size="mini"
:loading="exportLoading"
@click="handleExport"
>瀵煎嚭</el-button
@@ -116,7 +123,7 @@
</el-row>
<el-table
- border
+ :row-class-name="rowClassName"
v-loading="loading"
:data="reimbursementList"
@selection-change="handleSelectionChange"
@@ -147,6 +154,19 @@
<dict-tag
:options="dict.type.sys_recordstatus"
:value="scope.row.recordstatus"
+ />
+ </template>
+ </el-table-column>
+ <el-table-column
+ label="鐢宠鏉愭枡鐘舵��"
+ width="140"
+ align="center"
+ prop="checkstatus"
+ >
+ <template slot-scope="scope">
+ <dict-tag
+ :options="dict.type.sys_stage_type"
+ :value="scope.row.checkstatus"
/>
</template>
</el-table-column>
@@ -198,7 +218,6 @@
align="center"
fixed="right"
class-name="small-padding fixed-width"
- width="210"
>
<template slot-scope="scope">
<el-button
@@ -220,7 +239,7 @@
<el-button
size="mini"
type="text"
- icon="el-icon-edit"
+ icon="el-icon-view"
@click="handleDetail(scope.row)"
>鏌ョ湅</el-button
>
@@ -1255,7 +1274,8 @@
"sys_recordstatus",
"sys_travelexpensebelong",
"sys_traffictype",
- "sys_area_name"
+ "sys_area_name",
+ "sys_stage_type"
],
data() {
return {
@@ -1439,7 +1459,7 @@
this.$modal.msgSuccess(response.msg);
this.fileList.push({ name: response.fileName, url: response.fileName });
} else {
- console.log(response.msg);;
+ console.log(response.msg);
}
},
@@ -1845,10 +1865,10 @@
/** 鏂板鎸夐挳鎿嶄綔 */
handleAdd() {
- console.log("defaultperson",this.defaultperson);
+ console.log("defaultperson", this.defaultperson);
this.$router.push({
path: "/finance/travelexpenseapply/travelexpensedetail/",
- query: { id: 0, pos: 1,routerparam:this.defaultperson}
+ query: { id: 0, pos: 1, routerparam: this.defaultperson }
});
this.reset();
@@ -1930,7 +1950,7 @@
path: "/finance/travelexpenseapply/travelexpensedetail/",
query: { id: row.id, pos: 3 }
});
-
+
this.dialogType = "detail";
this.title = "鏌ョ湅鎶ラ攢鐢宠";
@@ -2136,6 +2156,7 @@
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
handleDelete(row) {
const ids = row.id || this.ids;
+ console.log(ids);
this.$modal
.confirm("鏄惁纭鍒犻櫎璇ユ潯璁板綍锛�")
.then(function() {
@@ -2547,7 +2568,24 @@
chineseStr += cnInteger;
}
return chineseStr;
+ },
+
+ //鏄庢樉鎻愮ず瀹℃壒閫�鍥炶褰�
+ rowClassName({ row, column, rowIndex, columnIndex }) {
+ //姝ゅ垽鏂负鏈�鍚庝笁琛�
+ if (row.backflowlevel == 199) {
+ return "addClassva";
+ }
}
}
};
</script>
+<!-- <style scoped> -->
+<!-- 涓嶅彲鍔爏coped,浼氱嫭绔嬫牱寮廵lement璁块棶涓嶅埌 -->
+<style>
+.addClassva {
+ /* background: #10aec2; */
+ background: #e8f4ff !important;
+ /* color:whitesmoke; */
+}
+</style>
--
Gitblit v1.9.3