From d539b7f289ba8887ccfdc11c06fe154ff5fb8974 Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期二, 02 十二月 2025 15:47:59 +0800
Subject: [PATCH] 增加了代码
---
ruoyi-ui/src/views/travel/index.vue | 140 ++++++++++++++--------------------------------
1 files changed, 42 insertions(+), 98 deletions(-)
diff --git a/ruoyi-ui/src/views/travel/index.vue b/ruoyi-ui/src/views/travel/index.vue
index 2bed287..ff78240 100644
--- a/ruoyi-ui/src/views/travel/index.vue
+++ b/ruoyi-ui/src/views/travel/index.vue
@@ -113,26 +113,27 @@
<template slot-scope="props">
<div >
<el-table :header-row-class-name="tableHeaderRowClassName" v-loading="loading" :data="travelBase[props.row.id]" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;" :row-class-name="tableRowClassName1" >
- <el-table-column label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="50px"/>
+ <el-table-column label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="114px"/>
<el-table-column label="鏃堕棿" prop="happenDate" sortable width="100" align="center" >
<template slot-scope="scope">{{scope.row.happenDate? scope.row.happenDate: '鈥斺�斺�斺��'}}</template>
</el-table-column>
- <el-table-column label="鍦扮偣" prop="address" sortable width="100" />
+ <el-table-column label="鍦扮偣" prop="address" sortable width="200" />
- <el-table-column label="寤虹瓚" prop="scenic" sortable width="100" />
+ <el-table-column label="鏍囬" prop="scenic" sortable width="100" />
<!-- <el-table-column label="鏃呮湡" prop="travelPeriod" sortable width="100" /> -->
<el-table-column label="浣跨敤璇佷欢" prop="document" sortable width="100" />
<el-table-column label="杞︽/鑸彮" prop="flight" sortable width="120px" />
- <el-table-column label="椁愯垂" prop="eat" sortable width="70px" />
- <el-table-column label="浣忓璐�" prop="stay" sortable width="100px" />
- <el-table-column label="浜ら��" prop="travel" sortable width="70px" />
- <el-table-column label="闂ㄧエ" prop="entrance" sortable width="70px" />
- <el-table-column label="鍏跺畠璐圭敤" prop="otherCost" sortable width="120px" />
- <el-table-column label="澶囨敞" prop="backInfo" sortable width="120px" />
+ <el-table-column label="椁愯垂" prop="eat" sortable width="80px" />
+ <el-table-column label="浣忓璐�" prop="stay" sortable width="110px" />
+ <el-table-column label="璐墿" prop="shop" sortable width="110px" />
+ <el-table-column label="浜ら��" prop="travel" sortable width="80px" />
+ <el-table-column label="闂ㄧエ" prop="entrance" sortable width="80px" />
+ <el-table-column label="鍏跺畠璐圭敤" prop="otherCost" sortable width="130px" />
+ <el-table-column label="澶囨敞" prop="backInfo" sortable width="130px" />
- <el-table-column label="鐢靛瓙鏂囦欢" prop="url" width="160" >
+ <el-table-column label="鐢靛瓙鏂囦欢" prop="url" width="201px" >
<template slot-scope="scope" >
<img
class="el-upload-list__item-thumbnail"
@@ -155,7 +156,7 @@
<!-- <el-table-column label="澶囨敞" prop="remark" sortable width="100" />-->
- <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" v-if="userId != 2">
+ <el-table-column label="鎿嶄綔" align="center" class-name="small-padding " v-if="userId != 2">
<template slot-scope="scope" v-if="scope.row.roleId !== 1">
<el-button
size="mini"
@@ -190,21 +191,23 @@
<template slot-scope="scope">{{scope.row.endTime? scope.row.endTime: '鈥斺�斺�斺��'}}</template>
</el-table-column>
<!-- <el-table-column label="鎬诲ぉ鏁�" prop="totalDay" sortable width="85px" />-->
- <el-table-column label="鏃呮父鍚嶇О" prop="name" sortable width="200px" />
- <el-table-column label="鍘诲悜" prop="destination" sortable width="150px" />
- <el-table-column label="鏃呮父鎬ц川" prop="property" sortable width="100" />
+ <el-table-column label="鏃呮父鍚嶇О" prop="name" sortable width="160px" />
+ <el-table-column label="鍘诲悜" prop="destination" sortable width="120px" />
+ <el-table-column label="鏃呮父鎬ц川" prop="property" sortable width="100px" />
<el-table-column label="鎰熻█" prop="spee" sortable width="120px" />
<el-table-column label="鏃呮父鏂瑰紡" prop="manner" sortable width="100" />
<el-table-column label="鎬婚噾棰�" prop="totalPrice" sortable width="100" />
- <el-table-column label="椁愯垂" prop="eatTotal" sortable width="70px" />
- <el-table-column label="浣忓" prop="stayTotal" sortable width="70px" />
- <el-table-column label="浜ら��" prop="travelTotal" sortable width="70px" />
- <el-table-column label="闂ㄧエ" prop="entranceTotal" sortable width="70px" />
- <el-table-column label="鍥㈣垂" prop="groupTotal" sortable width="70px" />
+ <el-table-column label="椁愯垂" prop="eatTotal" sortable width="80px" />
+ <el-table-column label="璐墿璐�" prop="shopTotal" sortable width="80px" />
+
+ <el-table-column label="浣忓" prop="stayTotal" sortable width="80px" />
+ <el-table-column label="浜ら��" prop="travelTotal" sortable width="80px" />
+ <el-table-column label="闂ㄧエ" prop="entranceTotal" sortable width="80px" />
+ <el-table-column label="鍥㈣垂" prop="groupTotal" sortable width="80px" />
- <el-table-column label="鎿嶄綔" align="center" sortable width="250" v-if="userId != 2">
+ <el-table-column fixed="right" label="鎿嶄綔" align="center" sortable width="250px" v-if="userId != 2">
<template slot-scope="scope" v-if="scope.row.roleId !== 1">
<el-button
size="mini"
@@ -264,7 +267,7 @@
<el-table-column label="闂ㄧエ" prop="entrance" sortable :show-overflow-tooltip="true" width="100px" />
<el-table-column label="璐墿" prop="shopping" sortable :show-overflow-tooltip="true" width="100px" />
- <el-table-column label="鎿嶄綔" align="center" sortable class-name="small-padding fixed-width" v-if="userId != 2">
+ <el-table-column fixed="right" label="鎿嶄綔" align="center" sortable class-name="small-padding fixed-width" v-if="userId != 2">
<template slot-scope="scope" v-if="scope.row.roleId !== 1">
<el-button
@@ -314,7 +317,7 @@
value-format="yyyy-MM-dd" :style="{width: '100%'}"
></el-date-picker>
</el-form-item>
- <el-form-item label="缁撴潫鏃堕棿1" prop="endTime">
+ <el-form-item label="缁撴潫鏃堕棿" prop="endTime">
<el-date-picker v-model="formDat4.endTime" type="date" placeholder="璇烽�夋嫨鏃ユ湡"
:style="{width: '100%'}" value-format="yyyy-MM-dd"
></el-date-picker>
@@ -363,8 +366,8 @@
<el-input v-model="formDat.address" placeholder="璇疯緭鍏ュ湴鐐�" clearable :style="{width: '100%'}" >
</el-input>
</el-form-item>
- <el-form-item label="寤虹瓚" prop="scenic">
- <el-input v-model="formDat.scenic" placeholder="璇疯緭鍏ュ缓绛�" clearable :style="{width: '100%'}" >
+ <el-form-item label="鏍囬" prop="scenic">
+ <el-input v-model="formDat.scenic" placeholder="璇疯緭鍏ユ爣棰�" clearable :style="{width: '100%'}" >
</el-input>
</el-form-item>
<el-form-item label="鍑鸿鏂瑰紡" prop="travelMode">
@@ -526,6 +529,10 @@
<el-input v-model="formDat.eat" type="number" placeholder="璇疯緭鍏ラ璐圭敤" clearable :style="{width: '100%'}" >
</el-input>
</el-form-item>
+ <el-form-item label="璐墿璐圭敤" prop="shop">
+ <el-input v-model="formDat.shop" type="number" placeholder="璇疯緭鍏ラ璐圭敤" clearable :style="{width: '100%'}" >
+ </el-input>
+ </el-form-item>
<el-form-item label="闂ㄧエ璐圭敤" prop="entrance">
<el-input v-model="formDat.entrance" type="number" placeholder="璇疯緭鍏ラ棬绁ㄨ垂鐢�" clearable :style="{width: '100%'}" >
</el-input>
@@ -580,78 +587,7 @@
<el-table v-loading="loading2" border :data="shareList1" :row-key="getRowId2" ref="multipleTable" @selection-change="handleSelectionChange2" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;">
- <el-table-column type="expand" :cell-class-name="expandRowClassName">
- <template slot-scope="props">
- <div >
- <el-table :header-row-class-name="tableHeaderRowClassName" v-loading="loading" :data="travelBase[props.row.id]" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;" :row-class-name="tableRowClassName1" >
- <el-table-column label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="50px"/>
-
- <el-table-column label="鏃堕棿" prop="happenDate" sortable width="100" align="center" >
- <template slot-scope="scope">{{scope.row.happenDate? scope.row.happenDate: '鈥斺�斺�斺��'}}</template>
- </el-table-column>
-
- <el-table-column label="鍦扮偣" prop="address" sortable width="100" />
-
- <el-table-column label="寤虹瓚" prop="scenic" sortable width="100" />
- <!-- <el-table-column label="鏃呮湡" prop="travelPeriod" sortable width="100" /> -->
- <el-table-column label="浣跨敤璇佷欢" prop="document" sortable width="100" />
- <el-table-column label="杞︽/鑸彮" prop="flight" sortable width="120px" />
- <el-table-column label="椁愯垂" prop="eat" sortable width="70px" />
- <el-table-column label="浣忓璐�" prop="stay" sortable width="100px" />
- <el-table-column label="浜ら��" prop="travel" sortable width="70px" />
- <el-table-column label="闂ㄧエ" prop="entrance" sortable width="70px" />
- <el-table-column label="鍏跺畠璐圭敤" prop="otherCost" sortable width="120px" />
- <el-table-column label="澶囨敞" prop="backInfo" sortable width="120px" />
-
- <el-table-column label="鐢靛瓙鏂囦欢" prop="url" width="160" >
- <template slot-scope="scope" >
- <img
- class="el-upload-list__item-thumbnail"
- src="../../assets/images/deviceLis.png"
- alt=""
- style="width: 35px; height: 35px;"
- fit="cover"
- v-if="!(scope.row.url === '' || scope.row.url === ',' || scope.row.url === null)"
- >
- <img
- v-else
- class="el-upload-list__item-thumbnail"
- src="../../assets/images/deviceA.png"
- alt=""
- style="width: 35px; height: 35px;"
- fit="cover"
- >
- </template>
- </el-table-column>
- <!-- <el-table-column label="澶囨敞" prop="remark" sortable width="100" />-->
-
-
- <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" v-if="userId != 2">
- <template slot-scope="scope" v-if="scope.row.roleId !== 1">
-<!-- <el-button
- size="mini"
- type="text"
- icon="el-icon-edit"
- @click="handleUpdate1(scope.row)"
- v-hasPermi="['familymodel:economy:info']"
- >淇敼</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDelete1(scope.row)"
- v-hasPermi="['system:role:remove']"
- >鍒犻櫎</el-button> -->
- <el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck1(scope.row)">鏌ョ湅璇︽儏</el-button>
-
- </template>
- </el-table-column>
- </el-table>
- </div>
-
-
- </template>
- </el-table-column>
+
<!-- <el-table-column type="selection" width="55" align="center" /> -->
<el-table-column fixed label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60px"/>
<el-table-column label="璧�" prop="startTime" sortable width="100" align="center">
@@ -819,7 +755,7 @@
// 鏁版嵁鑼冨洿閫夐」
// 鏁版嵁鑼冨洿閫夐」
fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx',
- '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng','.m4a'],
+ '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng','.m4a','.M4A'],
fileList:[
],
@@ -947,6 +883,11 @@
message: '璇疯緭鍏ヤ氦閫氳垂',
trigger: 'blur'
}],
+ shop: [{
+ required: true,
+ message: '璇疯緭鍏ヨ喘鐗╄垂',
+ trigger: 'blur'
+ }],
entrance: [{
required: true,
message: '璇疯緭鍏ラ棬绁�',
@@ -1173,7 +1114,7 @@
let clanId = this.$store.state.user.clanId
-
+ if(clanId!=null){
getAllInfo(clanId).then(response => {
this.listRoot = response.data;
const kon = {}
@@ -1191,6 +1132,7 @@
this.loading1 = false;
}
);
+ }
},
// 纭鍒嗕韩
subShare(row) {
@@ -1203,6 +1145,7 @@
}).then(() => {
this.getList();
+ this.getList1();
this.$modal.msgSuccess("鍒嗕韩鎴愬姛");
this.id1 = undefined
this.open1 = false;
@@ -1440,6 +1383,7 @@
/** 鏌ョ湅璇︾粏淇℃伅 */
handleCheck(row){
const id = row.id;
+ this.open2 = false;
// alert(id)
// alert(row.fee_id)
this.$router.push("/self/travel/Info/" + id);
--
Gitblit v1.9.1