From ca4261a5d05d0359d02e332b88ed149a0656eae1 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 27 七月 2023 13:47:57 +0800
Subject: [PATCH] 修改了专家费用保存
---
src/views/project/travelexpenseslistrecord/index.vue | 1340 +++++++++++++++++++++++----------------------------------
1 files changed, 537 insertions(+), 803 deletions(-)
diff --git a/src/views/project/travelexpenseslistrecord/index.vue b/src/views/project/travelexpenseslistrecord/index.vue
index 7d2eec7..f5642d3 100644
--- a/src/views/project/travelexpenseslistrecord/index.vue
+++ b/src/views/project/travelexpenseslistrecord/index.vue
@@ -1,336 +1,148 @@
<template>
<div class="app-container">
- <el-form
- :model="queryParams"
- ref="queryForm"
- :inline="true"
- v-show="showSearch"
- label-width="68px"
- >
+ <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
<el-row>
- <el-col :span="6">
+ <!-- <el-col :span="6">
<el-form-item label="鍑哄樊浜�" prop="travelers">
- <el-input
- v-model="queryParams.travelers"
- placeholder="璇疯緭鍏ュ嚭宸汉"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
+ <el-input v-model="queryParams.travelers" placeholder="璇疯緭鍏ュ嚭宸汉" clearable size="small"
+ @keyup.enter.native="handleQuery" />
</el-form-item>
- </el-col>
-
- <el-col :span="6">
- <el-form-item label="鎶ラ攢浜�" prop="username">
- <el-input
- v-model="queryParams.username"
- placeholder="璇疯緭鍏ユ姤閿�浜�"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- </el-col>
-
- <el-col :span="6">
- <el-form-item label="瀹℃牳鐘舵��" prop="recordstatus">
- <el-input
- v-model="queryParams.recordstatus"
- placeholder="璇烽�夋嫨瀹℃牳鐘舵��"
- clearable
- size="small"
- v-if="0"
- @keyup.enter.native="handleQuery"
- />
- <el-select
- v-model="queryParams.recordstatus"
- placeholder="璇烽�夋嫨瀹℃牳鐘舵��"
- clearable
- size="small"
- >
- <el-option
- v-for="dict in dict.type.sys_recordstatus"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- />
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
-
- <el-row>
+ </el-col>-->
<el-col :span="8">
- <el-form-item label="鎶ラ攢鏃ユ湡" prop="createTime">
- <el-date-picker
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- v-model="value1"
- type="daterange"
- @blur="onpick"
- range-separator="鑷�"
- start-placeholder="鎶ラ攢寮�濮嬫棩鏈�"
- end-placeholder="鎶ラ攢缁撴潫鏃ユ湡"
- @keyup.enter.native="handleQuery"
- >
+ <el-form-item label="鐢宠鏃ユ湡" prop="createTime">
+ <el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" v-model="value1" type="daterange" @blur="onpick"
+ range-separator="鑷�" start-placeholder="鎶ラ攢鐢宠寮�濮嬫棩鏈�" end-placeholder="鎶ラ攢鐢宠缁撴潫鏃ユ湡"
+ @keyup.enter.native="handleQuery">
</el-date-picker>
</el-form-item>
</el-col>
-
+ <el-col :span="5">
+ <el-form-item label="缁忓姙浜�" prop="username">
+ <el-input v-model="queryParams.username" placeholder="璇疯緭鍏ユ姤閿�浜�" clearable size="small"
+ @keyup.enter.native="handleQuery" />
+ </el-form-item>
+ </el-col>
+ <el-col :span="5">
+ <el-form-item label="瀹℃壒鐘舵��" prop="CHECKFLAG" style="float: left">
+ <el-select v-model="queryParams.CHECKFLAG" placeholder="璇烽�夋嫨" style="width: 100%">
+ <el-option v-for="item in checkFlagOptions" :key="item.value" :label="item.label" :value="item.value">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ </el-col>
<el-col :span="6">
<el-form-item>
- <el-button
- type="primary"
- icon="el-icon-search"
- size="mini"
- @click="handleQuery"
- >鎼滅储</el-button
- >
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
- >閲嶇疆</el-button
- >
- </el-form-item>
+ <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
+ </el-form-item>
</el-col>
</el-row>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
- <el-button
- type="warning"
- plain
- icon="el-icon-download"
- size="mini"
- :loading="exportLoading"
- @click="handleExport"
- >瀵煎嚭</el-button
- >
+ <el-button type="warning" plain icon="el-icon-download" size="mini" :loading="exportLoading"
+ @click="handleExport">瀵煎嚭</el-button>
</el-col>
<!-- v-hasPermi="['project:funddetail:export']" -->
- <right-toolbar
- :showSearch.sync="showSearch"
- @queryTable="getList"
- ></right-toolbar>
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
- <el-table
- border
- v-loading="loading"
- :data="reimbursementList"
- @selection-change="handleSelectionChange"
- >
+ <el-table border v-loading="loading" :data="reimbursementList" @selection-change="handleSelectionChange">
<!-- <el-table-column type="selection" width="55" align="center" /> -->
- <el-table-column
- label="瀹℃壒鐘舵��"
- width="120"
- align="center"
- prop="checkFlag"
- >
+
+ <!--
+ <el-table-column label="鎶ラ攢褰掔被" width="120" align="center" prop="costtype">
<template slot-scope="scope">
- <span v-if="scope.row.checkFlag == 0"
- ><i
- class="el-icon-check"
- style="color: #5fb878; font-weight: bold"
- ></i
- ></span>
- <!-- <span v-else>寰呭鏍�</span> -->
+ <dict-tag :options="dict.type.sys_travelexpensebelong" :value="scope.row.costtype" />
</template>
- </el-table-column>
- <el-table-column
- label="鎶ラ攢褰掔被"
- width="120"
- align="center"
- prop="costtype"
- >
- <template slot-scope="scope">
- <dict-tag
- :options="dict.type.sys_travelexpensebelong"
- :value="scope.row.costtype"
- />
- </template>
- </el-table-column>
- <el-table-column
- label="鐢宠鏃ユ湡"
- width="120"
- align="center"
- prop="createTime"
- >
+ </el-table-column>-->
+ <el-table-column label="鐢宠鏃ユ湡" width="120" align="center" prop="createTime">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span>
</template>
</el-table-column>
- <el-table-column
- label="鎶ラ攢浜�"
- width="120"
- align="center"
- prop="username"
- >
+ <el-table-column label="瀹℃壒鐘舵��" width="120" align="center" prop="checkFlag">
+ <template slot-scope="scope">
+ <dict-tag :options="dict.type.sys_recordstatus" :value="scope.row.recordstatus" />
+ </template>
</el-table-column>
- <el-table-column
- label="鍑哄樊浜�"
- width="180"
- align="center"
- prop="travelers"
- >
+ <el-table-column label="缁忓姙浜�" width="120" align="center" prop="username" />
+ <el-table-column label="鎵�灞炵粍鍒�" width="120" align="center" prop="deptmentname" />
+ <el-table-column label="缁勯暱" width="120" align="center" prop="managername" />
+ <el-table-column label="鎶ラ攢閲戦" width="120" align="center" prop="amountrequested">
</el-table-column>
- <el-table-column
- label="鎶ラ攢閲戦"
- width="120"
- align="center"
- prop="amountrequested"
- >
+ <el-table-column label="鍑哄樊浜嬬敱" align="center" prop="reason">
</el-table-column>
- <el-table-column
- label="鍑哄樊浜嬬敱"
- align="center"
- width="280"
- prop="reason"
- >
+ <el-table-column label="鎹愮尞鑰�" width="120" align="center" prop="donorname">
+ </el-table-column>
+ <!--
+ <el-table-column label="鍑哄樊浜�" width="180" align="center" prop="travelers">
</el-table-column>
<el-table-column label="鑱旂郴鐢佃瘽" width="120" align="center" prop="phone">
</el-table-column>
- <el-table-column
- label="寮�鎴烽摱琛�"
- width="180"
- align="center"
- prop="depositbank"
- >
+ <el-table-column label="寮�鎴烽摱琛�" width="180" align="center" prop="depositbank">
</el-table-column>
- <el-table-column
- label="閾惰鍗″彿"
- width="180"
- align="center"
- prop="bankcardno"
- >
+ <el-table-column label="閾惰鍗″彿" width="180" align="center" prop="bankcardno">
</el-table-column>
- <!-- <el-table-column label="鎶ラ攢鍚堣" align="center" prop="financechecher">
- </el-table-column> -->
- <el-table-column
- label="璐㈠姟瀹℃牳"
- width="120"
- align="center"
- prop="financechecher"
- >
- </el-table-column>
- <el-table-column
- label="鎹愮尞鑰�"
- width="120"
- align="center"
- prop="donorname"
- >
- </el-table-column>
- <el-table-column
- label="鎿嶄綔"
- align="center"
- fixed="right"
- class-name="small-padding fixed-width"
- width="270"
- >
+
+ <el-table-column label="缁勯暱瀹℃壒" align="center" prop="managername"/>
+ <el-table-column label="涓氬姟鏍稿" align="center" prop="opochecher"/>
+ <el-table-column label="涓氬姟瀹℃壒" align="center" prop="officedirector"/>
+ <el-table-column label="璐㈠姟鏍稿" align="center" prop="financechecher"/>
+ <el-table-column label="璐㈠姟瀹℃牳" width="120" align="center" prop="financedirector"/>
+-->
+ <el-table-column label="鎿嶄綔" align="center" fixed="right" class-name="small-padding fixed-width" width="270">
<template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-edit"
- v-if="scope.row.checkFlag == 1"
- @click="handleUpdate(scope.row)"
- >瀹℃壒</el-button
- >
- <el-button
- size="mini"
- type="text"
- icon="el-icon-edit"
- v-if="scope.row.checkFlag == 0"
- @click="handleShow(scope.row)"
- >璇︽儏</el-button
- >
+ <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.checkFlag == 1 || scope.row.checkFlag == 0"
+ @click="handleUpdate(scope.row)">瀹℃壒</el-button>
+ <el-button size="mini" type="text" icon="el-icon-edit" v-if="scope.row.checkFlag == 0"
+ @click="handleShow(scope.row)">璇︽儏</el-button>
<!-- v-hasPermi="['project:funddetail:edit']" -->
- <el-button
- size="mini"
- type="text"
- icon="el-icon-download"
- @click="gettable(scope.row)"
- >
+ <el-button size="mini" type="text" icon="el-icon-download" @click="gettable(scope.row)">
涓嬭浇
</el-button>
<!-- v-hasPermi="['project:funddetail:edit']" -->
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- disabled
- @click="handleDelete(scope.row)"
- >鍒犻櫎</el-button
- >
+ <el-button size="mini" type="text" icon="el-icon-delete" :disabled="true"
+ @click="handleDelete(scope.row)">鍒犻櫎</el-button>
<!-- v-hasPermi="['project:funddetail:remove']" -->
</template>
</el-table-column>
</el-table>
<!-- v-hasPermi="['project:donateconsolationfund:edit']" -->
- <pagination
- v-show="total > 0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- />
+ <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
+ @pagination="getList" />
<!-- 娣诲姞鎴栦慨鏀硅垂鐢ㄧ敵璇锋槑缁嗗璇濇 -->
- <el-dialog
- :title="title"
- :visible.sync="open"
- width="1100px"
- append-to-body
- >
+ <el-dialog :title="title" :visible.sync="open" width="1400px" append-to-body>
<el-form ref="form" :model="form" label-width="120px">
<el-row>
- <el-col :span="7">
- <el-form-item label="鎹愮尞鑰�" prop="infoid">
- <el-select
- v-model="form.infoid"
- @change="selectbaseinfo"
- filterable
- disabled
- placeholder="璇烽�夋嫨鎹愮尞鑰�"
- >
- <el-option
- v-for="item in baselist"
- :key="item.index"
- :label="item.name"
- :value="item.infoid"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="鎹愮尞缂栧彿" prop="donorno">
- <el-input
- disabled
- v-model="form.donorno"
- placeholder="鎹愮尞缂栧彿"
- />
- </el-form-item>
- </el-col>
- <el-col :span="7">
+ <el-col :span="5">
<el-form-item label="鐢宠鏃ユ湡" prop="createTime">
- <el-date-picker
- style="width: 100%"
- v-model="form.createTime"
- disabled
- type="date"
- value-format="yyyy-MM-dd HH:mm:ss"
- placeholder="鐢宠鏃ユ湡"
- >
+ <el-date-picker style="width: 100%" v-model="form.createTime" :disabled="true" type="date"
+ value-format="yyyy-MM-dd HH:mm:ss" placeholder="鐢宠鏃ユ湡">
</el-date-picker>
</el-form-item>
</el-col>
+ <el-col :span="5">
+ <el-form-item label="缁忓姙浜�" prop="username">
+ <el-input v-model="form.username" placeholder="鎶ラ攢浜�" :disabled="true" />
+ </el-form-item>
+ </el-col>
+ <el-col :span="5">
+ <el-form-item label="鎵�灞炵粍鍒�" prop="deptmentname">
+ <el-input v-model="form.deptmentname" placeholder="鎵�灞炵粍鍒�" :disabled="true" />
+ </el-form-item> </el-col> <el-col :span="5">
+ <el-form-item label="缁勯暱" prop="managername">
+ <el-input v-model="form.managername" placeholder="缁勯暱" :disabled="true" />
+ </el-form-item> </el-col>
</el-row>
+ <!--
<el-row>
- <!-- donorname -->
- <el-col :span="7">
- <el-form-item label="鎶ラ攢浜�" prop="username">
- <el-input v-model="form.username" placeholder="鎶ラ攢浜�" />
+ <el-col :span="8">
+ <el-form-item label="鎹愮尞缂栧彿" prop="donorno">
+ <el-input disabled v-model="form.donorno" placeholder="鎹愮尞缂栧彿" />
</el-form-item>
</el-col>
<el-col :span="8">
@@ -338,11 +150,7 @@
<el-input v-model="form.travelers" placeholder="鍑哄樊浜�" />
</el-form-item>
</el-col>
- <el-col :span="7">
- <el-form-item label="鍖哄煙缁勯暱" prop="managerno">
- <el-input v-model="form.managerno" placeholder="鍖哄煙缁勯暱" />
- </el-form-item> </el-col
- ></el-row>
+ </el-row>
<el-row>
<el-col :span="7">
<el-form-item label="寮�鎴烽摱琛�" prop="depositbank">
@@ -352,316 +160,240 @@
<el-col :span="8">
<el-form-item label="閾惰璐﹀彿" prop="bankcardno">
<el-input v-model="form.bankcardno" placeholder="寮�鎴烽摱琛�" />
- </el-form-item> </el-col
- ><el-col :span="7">
+ </el-form-item> </el-col><el-col :span="7">
<el-form-item label="鑱旂郴鐢佃瘽" prop="phone">
<el-input v-model="form.phone" placeholder="鑱旂郴鐢佃瘽" />
</el-form-item>
- </el-col> </el-row
- ><el-row>
- <el-col :span="21">
+ </el-col>
+ </el-row>
+ -->
+ <el-row>
+ <el-col :span="15">
<el-form-item label="鍑哄樊浜嬬敱" prop="reason">
<el-input v-model="form.reason" placeholder="鍑哄樊浜嬬敱" />
</el-form-item>
</el-col>
- </el-row>
- <el-row>
- <el-col :span="21">
- <el-form-item label="澶囨敞" prop="remark">
- <el-input v-model="form.remark" placeholder="涓撹亴浜哄憳 鍗忚皟鍛�" />
+ <el-col :span="5"><el-form-item label="鎹愮尞鑰�" prop="donorname">
+ <el-input v-model="form.donorname" placeholder="鎹愮尞鑰�" />
</el-form-item>
</el-col>
</el-row>
- <el-row>
- <el-col :span="8"> </el-col>
- </el-row>
+ <el-row style="margin-top: 10px">
+ <el-col :span="5">
+ <el-form-item label="鎶ラ攢閲戦" prop="amountrequested">
+ <el-input v-model="form.amountrequested" placeholder="鎶ラ攢閲戦" :disabled="true" />
+ </el-form-item>
+ </el-col>
- <el-row type="flex" :gutter="10" align="right" class="mb8">
+ <el-col :span="10">
+ <el-form-item label="澶у啓閲戦" prop="bigstrmoney">
+ <el-input v-model="form.bigstrmoney" placeholder="澶у啓閲戦" :disabled="true" />
+ </el-form-item>
+ </el-col><!--
<el-col :span="6">
- <el-button
- type="primary"
- plain
- icon="el-icon-plus"
- size="mini"
- disabled
- @click="addRow"
- >鏂板涓�琛�</el-button
- >
+ <el-form-item label="棰嗘閲戦" prop="amountrequested">
+ <el-input v-model="form.amountrequested" placeholder="棰嗘閲戦" />
+ </el-form-item>
+ </el-col><el-col :span="12">
+ <el-form-item label="澶囨敞" prop="remark">
+ <el-input v-model="form.remark" placeholder="涓撹亴浜哄憳 鍗忚皟鍛�" />
+ </el-form-item>
+ </el-col>-->
+ <el-col :span="5">
+ <el-form-item label="瀹℃牳鐘舵��" prop="flowlevel">
+ <el-select v-model="form.recordstatus" placeholder="璇烽�夋嫨瀹℃牳鐘舵��" clearable :disabled="true" size="small">
+ <el-option v-for="dict in dict.type.sys_recordstatus" :key="dict.value" :label="dict.label"
+ :value="dict.value" />
+ </el-select>
+ </el-form-item>
</el-col>
</el-row>
+ <el-row type="flex" :gutter="10" align="right" class="mb8">
+ <el-col :span="6">
+ <el-button type="primary" plain icon="el-icon-plus" size="mini" :disabled="true"
+ @click="addRow">鏂板涓�琛�</el-button>
+ </el-col>
+ </el-row>
+ <el-row style="margin-top: 25px; margin-bottom: 5px">
+ <el-col :span="20">鎶ラ攢鏄庣粏淇℃伅锛�</el-col>
+ </el-row>
<el-row>
- <el-table :data="applicationDetailArr" border highlight-current-row>
- <el-table-column
- prop="starttime"
- slot=""
- label="鍑哄彂鏃ユ湡"
- align="center"
- width="150"
- >
+ <el-table :data="rbDetails" border highlight-current-row>
+ <el-table-column prop="orderno" slot="" label="搴忓彿" align="center" fixed width="65">
<template slot-scope="scope">
- <el-date-picker
- clearable
- size="small"
- style="width: 100%"
- v-model="scope.row.starttime"
- type="date"
- value-format="yyyy-MM-dd HH:mm:ss"
- placeholder="鍑哄彂鏃ユ湡"
- @change="getStandard(scope.row)"
- >
- </el-date-picker>
+ <el-input v-model="scope.row.orderno" placeholder="搴忓彿" />
+ </template>
+ </el-table-column>
+ <!--涓婚敭銆佸涓嶅睍绀�-->
+ <el-table-column prop="id" slot="" label="涓婚敭" align="center" fixed width="95" v-if="false">
+ <template slot-scope="scope">
+ <el-input v-model="scope.row.id" placeholder="id" />
+ </template>
+ </el-table-column>
+ <el-table-column prop="rbid" slot="" label="澶栭敭" align="center" fixed width="95" v-if="false">
+ <template slot-scope="scope">
+ <el-input v-model="scope.row.rbid" placeholder="rbid" />
</template>
</el-table-column>
- <el-table-column
- prop="departure"
- slot=""
- label="鍑哄彂鍦扮偣"
- align="center"
- width="120"
- >
+ <el-table-column prop="persontype" slot="" label="浜哄憳绫诲埆" align="center" fixed width="130">
<template slot-scope="scope">
- <el-input
- v-model="scope.row.departure"
- placeholder="鍑哄彂鍦扮偣"
- />
+ <el-select v-model="scope.row.persontype" value-key="value" placeholder="浜哄憳绫诲埆"
+ @change="getPersons(scope.row)">
+ <el-option v-for="dict in dict.type.sys_travelexpensebelong" :key="dict.value" :label="dict.label"
+ :value="dict.label"></el-option>
+
+ </el-select>
</template>
</el-table-column>
- <el-table-column
- prop="endtime"
- slot=""
- label="鍒拌揪鏃ユ湡"
- align="center"
- width="150"
- >
+ <el-table-column prop="personname" slot="" label="璐圭敤浜哄憳" align="center" fixed width="110">
<template slot-scope="scope">
- <el-date-picker
- clearable
- size="small"
- style="width: 100%"
- v-model="scope.row.endtime"
- type="date"
- value-format="yyyy-MM-dd HH:mm:ss"
- placeholder="鍒拌揪鏃ユ湡"
- >
+ <el-select v-model="scope.row.personname" clearable filterable allow-create default-first-option
+ placeholder="璇烽�夋嫨" @focus1="getPersons(scope.row)">
+ <el-option v-for="item in personsSel" :key="item.reportNo" :label="item.reportName"
+ :value="item.reportName">
+ </el-option>
+ </el-select>
+ </template>
+ </el-table-column>
+ <el-table-column prop="starttime" slot="" label="寮�濮嬫棩鏈�" fixed align="center" width="150">
+ <template slot-scope="scope">
+ <el-date-picker :picker-options="{
+ disabledDate: time => {
+ if (scope.row.endtime) { return time.getTime() > new Date(scope.row.endtime.replace(/-/g, '/')) }
+ }
+ }" clearable size="small" style="width: 100%" v-model="scope.row.starttime" type="date"
+ value-format="yyyy-MM-dd HH:mm:ss" placeholder="寮�濮嬫棩鏈�" @blur="getallowance(scope.row)">
</el-date-picker>
</template>
</el-table-column>
- <!-- <el-table-column
- label="鍒拌揪鍦扮偣"
- prop="destination"
- align="center"
- width="320"
- >
+ <el-table-column prop="endtime" slot="" label="缁撴潫鏃ユ湡" align="center" fixed width="150">
<template slot-scope="scope">
- <li_area_select
- :ref="'residenceSelect_' + scope.row.index"
- v-model="scope.row.searchAddress"
- @change="selcetdestination(scope.row)"
- ></li_area_select>
- </template>
- </el-table-column> --><el-table-column
- label="鍒拌揪鍦扮偣"
- prop="destination"
- align="center"
- width="320"
- >
- <template slot-scope="scope">
- <el-input
- v-model="scope.row.destination"
- placeholder="鍑哄彂鍦扮偣"
- />
+ <el-date-picker :picker-options="{
+ disabledDate: time => {
+ if (scope.row.starttime) { return time.getTime() < new Date(scope.row.starttime.replace(/-/g, '/')) }
+ }
+ }" clearable size="small" style="width: 100%" v-model="scope.row.endtime" type="date"
+ value-format="yyyy-MM-dd HH:mm:ss" placeholder="缁撴潫鏃ユ湡" @blur="getallowance(scope.row)">
+ </el-date-picker>
</template>
</el-table-column>
- <el-table-column prop="days" label="澶╂暟" width="80" align="center">
+ <el-table-column prop="departure" slot="" label="鍑哄彂鍦�" align="center" width="100">
<template slot-scope="scope">
- <el-input
- v-model="scope.row.days"
- @blur="getStandard(scope.row)"
- placeholder="澶╂暟"
- />
+ <el-input v-model="scope.row.departure" placeholder="鍑哄彂鍦�" />
</template>
</el-table-column>
- <el-table-column
- prop="traffictype"
- label="浜ら�氬伐鍏�"
- align="center"
- width="120"
- >
+ <el-table-column label="鍒拌揪鍦�" prop="destination2" align="center" width="140">
<template slot-scope="scope">
- <el-input
- v-model="scope.row.traffictype"
- placeholder="浜ら�氬伐鍏�"
- />
+ <!-- <el-input v-model="scope.row.destination" placeholder="鍒拌揪鍦�" @blur="getallowance(scope.row)" /> -->
+
+ <el-select filterable allow-create v-model="scope.row.destination" value-key="value" placeholder="鍒拌揪鍦�"
+ @change="getallowance2(scope.row, scope.row.destination)">
+ <el-option v-for="dict in dict.type.sys_area_name" :key="dict.value" :label="dict.label"
+ :value="dict.value"></el-option>
+
+ </el-select>
</template>
</el-table-column>
- <el-table-column
- prop="trafficexpense"
- label="浜ら�氳垂"
- align="center"
- width="100"
- >
+ <el-table-column prop="days" label="澶╂暟" width="65" align="center">
<template slot-scope="scope">
- <el-input
- v-model="scope.row.trafficexpense"
- placeholder="浜ら�氳垂"
- @blur="
- (val) => {
- sumTotalFee(scope.row);
- }
- "
- />
+ <el-input v-model="scope.row.days" @blur="getStandard(scope.row)" placeholder="澶╂暟" />
</template>
</el-table-column>
- <el-table-column
- prop="cityfee"
- label="甯傚唴浜ら�氳垂"
- align="center"
- width="100"
- >
+ <el-table-column prop="traffictype" label="鍑哄彂浜ら�氬伐鍏�" align="center" width="100">
<template slot-scope="scope">
- <el-input
- v-model="scope.row.cityfee"
- placeholder="甯傚唴浜ら�氳垂"
- @blur="
- (val) => {
- sumTotalFee(scope.row);
- }
- "
- >{{ Number(scope.row.cityfee).toFixed(2) }}
+ <el-select v-model="scope.row.traffictype" placeholder="鍑哄彂浜ら�氬伐鍏�">
+ <el-option v-for="dict in dict.type.sys_traffictype" :key="dict.value" :label="dict.label"
+ :value="dict.label"></el-option>
+ </el-select>
+ </template>
+ </el-table-column>
+ <el-table-column prop="traffictype2" label="杩斿洖浜ら�氬伐鍏�" align="center" width="100">
+ <template slot-scope="scope">
+ <el-select v-model="scope.row.traffictype2" placeholder="杩斿洖浜ら�氬伐鍏�">
+ <el-option v-for="dict in dict.type.sys_traffictype" :key="dict.value" :label="dict.label"
+ :value="dict.label"></el-option>
+ </el-select>
+ </template>
+ </el-table-column>
+ <el-table-column prop="trafficexpense" label="浜ら�氳垂" align="center" width="80">
+ <template slot-scope="scope">
+ <el-input v-model="scope.row.trafficexpense" placeholder="浜ら�氳垂" @blur="(val) => {
+ sumTotalFee();
+ }
+ " />
+ </template>
+ </el-table-column>
+ <!--
+ <el-table-column prop="cityfee" label="甯傚唴浜ら�氳垂" align="center" width="100">
+ <template slot-scope="scope">
+ <el-input v-model="scope.row.cityfee" placeholder="甯傚唴浜ら�氳垂" @blur="
+ (val) => {
+ sumTotalFee();
+ }
+ ">{{ Number(scope.row.cityfee).toFixed(2) }}
</el-input>
</template>
</el-table-column>
- <el-table-column
- prop="hotelexpense"
- label="浣忓璐�"
- align="center"
- width="100"
- >
+ -->
+ <el-table-column prop="hotelexpense" label="浣忓璐�" align="center" width="80">
<template slot-scope="scope">
- <el-input
- v-model="scope.row.hotelexpense"
- placeholder="浣忓璐�"
- @blur="
- (val) => {
- sumTotalFee(scope.row);
- }
- "
- />
+ <el-input v-model="scope.row.hotelexpense" placeholder="浣忓璐�" @blur="(val) => {
+ sumTotalFee();
+ }
+ " />
</template>
</el-table-column>
- <el-table-column
- prop="otherexpense"
- label="鏉傝垂"
- align="center"
- width="100"
- >
+
+ <el-table-column prop="foodexpenses" label="椁愯垂鎶ラ攢" align="center" width="80">
<template slot-scope="scope">
- <el-input
- v-model="scope.row.otherexpense"
- placeholder="鏉傝垂"
- @blur="
- (val) => {
- sumTotalFee(scope.row);
- }
- "
- />
+ <el-input v-model="scope.row.foodexpenses" placeholder="浼欓璐规姤閿�" @blur="(val) => {
+ sumTotalFee();
+ }
+ " />
</template>
</el-table-column>
- <el-table-column
- prop="foodexpenses"
- label="浼欓璐规姤閿�"
- align="center"
- width="100"
- >
+ <el-table-column prop="foodallowance" label="浼欓琛ュ姪" align="center" width="80">
<template slot-scope="scope">
- <el-input
- v-model="scope.row.foodexpenses"
- placeholder="浼欓璐规姤閿�"
- @blur="
- (val) => {
- sumTotalFee(scope.row);
- }
- "
- />
+ <el-input v-model="scope.row.foodallowance" placeholder="浼欓璐硅ˉ鍔�" @blur="(val) => {
+ sumTotalFee();
+ }
+ " />
</template>
</el-table-column>
- <el-table-column
- prop="foodallowance"
- label="浼欓璐硅ˉ鍔�"
- align="center"
- width="100"
- >
+ <el-table-column prop="otherexpense" label="鍏潅璐硅ˉ鍔�" align="center" width="80">
<template slot-scope="scope">
- <el-input
- v-model="scope.row.foodallowance"
- placeholder="浼欓璐硅ˉ鍔�"
- @blur="
- (val) => {
- sumTotalFee(scope.row);
- }
- "
- />
- </template> </el-table-column
- ><el-table-column
- prop="otherfeeamount"
- label="鍏朵粬璐圭敤"
- align="center"
- width="100"
- >
- <template slot-scope="scope">
- <el-input
- v-model="scope.row.otherfeeamount"
- placeholder="鍏朵粬璐圭敤"
- @blur="
- (val) => {
- sumTotalFee(scope.row);
- }
- "
- />
+ <el-input v-model="scope.row.otherexpense" placeholder="鏉傝垂" @blur="(val) => {
+ sumTotalFee();
+ }
+ " />
</template>
</el-table-column>
- <el-table-column
- prop="departure"
- slot=""
- label="鍏朵粬璐圭敤璇存槑"
- align="center"
- width="120"
- >
+
+ <el-table-column prop="otherfeeamount" label="鍏朵粬璐圭敤" align="center" width="90">
<template slot-scope="scope">
- <el-input
- v-model="scope.row.otherfeedesc"
- placeholder="鍏朵粬璐圭敤璇存槑"
- />
+ <el-input v-model="scope.row.otherfeeamount" placeholder="鍏朵粬璐圭敤" @blur="(val) => {
+ sumTotalFee();
+ }
+ " />
</template>
</el-table-column>
- <el-table-column
- prop="total"
- label="鍚堣"
- align="center"
- width="140"
- >
+ <el-table-column prop="departure" slot="" label="鍏朵粬璐圭敤璇存槑" align="center" width="120">
+ <template slot-scope="scope">
+ <el-input v-model="scope.row.otherfeedesc" placeholder="鍏朵粬璐圭敤璇存槑" />
+ </template>
+ </el-table-column>
+
+ <el-table-column prop="total" label="鍚堣" align="center" width="110">
<template slot-scope="scope">
<el-input v-model="scope.row.total" placeholder="鍚堣" />
</template>
</el-table-column>
- <el-table-column
- fixed="right"
- label="鎿嶄綔"
- align="center"
- width="120"
- >
- <!-- deleteRow(scope.$index, applicationDetailArr) -->
-
+ <el-table-column fixed="right" label="鎿嶄綔" align="center" width="120">
<template slot-scope="scope">
- <el-button
- @click.native.prevent="
- deleteRow(scope.$index, applicationDetailArr, scope.row)
- "
- type="text"
- size="small"
- disabled
- >
+ <el-button @click.native.prevent="
+ deleteRow(scope.$index, rbDetails, scope.row)
+ " type="text" size="small" :disabled="true">
鍒犻櫎
</el-button>
</template>
@@ -669,28 +401,7 @@
</el-table>
</el-row>
- <el-row style="margin-top: 10px">
- <el-col :span="6">
- <el-form-item label="鎶ラ攢鍚堣" prop="amountrequested">
- <el-input v-model="form.amountrequested" placeholder="鎶ラ攢鍚堣" />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="棰嗘閲戦" prop="amountrequested">
- <el-input v-model="form.amountrequested" placeholder="棰嗘閲戦" />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="澶у啓" prop="bigstrmoney">
- <el-input v-model="form.bigstrmoney" placeholder="棰嗘閲戦" />
- </el-form-item>
- </el-col>
- <!-- <el-col :span="6">
- <el-form-item label="瀹℃牳鎰忚" prop="recordstatus">
- <el-input v-model="form.recordstatus" placeholder="瀹℃牳鎰忚" />
- </el-form-item>
- </el-col> -->
- </el-row>
+ <!--
<el-row>
<el-col :span="6">
<el-form-item label="涓績璐熻矗浜�" prop="opochecker">
@@ -700,91 +411,159 @@
<el-col :span="6">
<el-form-item label="璐㈠姟鍓櫌闀�" prop="finvicepresident">
- <el-input
- v-model="form.finvicepresident"
- placeholder="璐㈠姟鍓櫌闀�"
- />
+ <el-input v-model="form.finvicepresident" placeholder="璐㈠姟鍓櫌闀�" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="涓氬姟鍓櫌闀�" prop="busvicepresident">
- <el-input
- v-model="form.busvicepresident"
- placeholder="涓氬姟鍓櫌闀�"
- />
- </el-form-item> </el-col></el-row
- ><el-row>
+ <el-input v-model="form.busvicepresident" placeholder="涓氬姟鍓櫌闀�" />
+ </el-form-item> </el-col></el-row><el-row>
<el-col :span="6">
<el-form-item label="鍔炲叕瀹や富浠�" prop="officedirector">
- <el-input
- v-model="form.officedirector"
- placeholder="鍔炲叕瀹や富浠�"
- />
+ <el-input v-model="form.officedirector" placeholder="鍔炲叕瀹や富浠�" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="璐㈠姟閮ㄤ富浠�" prop="financedirector">
- <el-input
- v-model="form.financedirector"
- placeholder="璐㈠姟閮ㄤ富浠�"
- />
+ <el-input v-model="form.financedirector" placeholder="璐㈠姟閮ㄤ富浠�" />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="璐㈠姟瀹℃牳" prop="financechecher">
<el-input v-model="form.financechecher" placeholder="璐㈠姟瀹℃牳" />
- </el-form-item> </el-col
- ></el-row>
+ </el-form-item> </el-col></el-row>
+ -->
+ <el-row style="margin-top: 25px; margin-bottom: 5px">
+ <el-col :span="20">鎶ラ攢璇锋鏄庣粏锛�</el-col>
+ </el-row>
+ <el-row style="margin-top: 30px">
+ <el-table :data="rbPayees" border highlight-current-row>
+ <el-table-column prop="orderno" slot="" label="搴忓彿" align="center" fixed width="65">
+ <template slot-scope="scope">
+ <el-input v-model="scope.row.orderno" placeholder="搴忓彿" />
+ </template>
+ </el-table-column>
+
+ <!--涓婚敭銆佸閿笉灞曠ず-->
+ <el-table-column prop="id" slot="" label="涓婚敭" align="center" fixed width="95" v-if="false">
+ <template slot-scope="scope">
+ <el-input v-model="scope.row.id" placeholder="id" />
+ </template>
+ </el-table-column>
+ <el-table-column prop="rbid" slot="" label="澶栭敭" align="center" fixed width="95" v-if="false">
+ <template slot-scope="scope">
+ <el-input v-model="scope.row.rbid" placeholder="rbid" />
+ </template>
+ </el-table-column>
+
+ <el-table-column prop="persontype" slot="" label="浜哄憳绫诲埆" align="center" fixed width="130">
+ <template slot-scope="scope">
+ <el-select v-model="scope.row.persontype" value-key="value" placeholder="浜哄憳绫诲埆"
+ @change="getPersons(scope.row)">
+ <el-option v-for="dict in dict.type.sys_travelexpensebelong" :key="dict.value" :label="dict.label"
+ :value="dict.label"></el-option>
+ </el-select>
+ </template>
+ </el-table-column>
+ <el-table-column prop="personname" slot="" label="鏀舵浜�" align="center" fixed width="110">
+ <template slot-scope="scope">
+ <el-select v-model="scope.row.personname" clearable filterable allow-create ref="getReportname"
+ default-first-option placeholder="璇烽�夋嫨" @change="getAccountinfo2(scope.row, scope.row.persontype)">
+ <el-option v-for="item in personsSel" :key="item.reportNo" :label="item.reportName"
+ :value="item.reportName">
+ </el-option>
+ </el-select>
+ </template>
+ </el-table-column>
+ <el-table-column prop="bankname" slot="" label="閾惰鍚嶇О" align="center" fixed width="200">
+ <template slot-scope="scope">
+ <el-input v-model="scope.row.bankname" placeholder="閾惰鍚嶇О" />
+ </template>
+ </el-table-column>
+ <el-table-column prop="bankcardno" slot="" label="閾惰鍗″彿" align="center" fixed width="200">
+ <template slot-scope="scope">
+ <el-input v-model="scope.row.bankcardno" placeholder="閾惰鍗″彿" />
+ </template>
+ </el-table-column>
+ <el-table-column prop="amount" slot="" label="鎵撴閲戦" align="center" fixed width="130">
+ <template slot-scope="scope">
+ <el-input v-model="scope.row.amount" placeholder="鎵撴閲戦" />
+ </template>
+ </el-table-column>
+ <el-table-column prop="remark" slot="" label="璇锋璇存槑" align="center" fixed width="280">
+ <template slot-scope="scope">
+ <el-input v-model="scope.row.remark" placeholder="璇存槑" />
+ </template>
+ </el-table-column><el-table-column prop="paiddate" slot="" label="鎵撴鏃ユ湡" fixed align="center" width="150">
+ <template slot-scope="scope">
+ <el-date-picker clearable size="small" style="width: 100%" v-model="scope.row.paiddate" type="date"
+ value-format="yyyy-MM-dd HH:mm:ss" placeholder="鎵撴鏃ユ湡" :disabled="true" @blur="getallowance(scope.row)">
+ </el-date-picker>
+ </template>
+ </el-table-column>
+ <el-table-column label="鎿嶄綔" align="center" width="100" v-if="dialogType == 'edit'">
+ <template slot-scope="scope">
+ <el-button type="text" size="mini" @click="addPayeeRow(scope.$index)">鏂板</el-button>
+ <el-button @click.native.prevent="deletePayeeRow(scope.$index, rbPayees, scope.row)
+ " type="text" size="small">
+ 鍒犻櫎
+ </el-button>
+ </template>
+ </el-table-column>
+ </el-table>
+ </el-row>
+ <el-row style="margin-top: 25px; margin-bottom: 5px">
+ <el-col :span="20">鎶ラ攢闄勪欢锛�</el-col>
+ </el-row>
+ <el-row>
+ <el-col :span="14">
+ <el-form-item label="闄勪欢" align="left" prop="annexfiles">
+ <!-- <file-upload ref="fileUpload" :fileType=fileType :limit="1" :on-success="handleUploadSuccess"></file-upload> -->
+ <el-upload size="mini" class="upload-demo" :action="uploadFileUrl" :file-list="fileList" multiple :limit="20"
+ :headers="headers" :on-success="(response, file, fileList) =>
+ uploadSccess(response, file, fileList)
+ " :on-preview="downFile" :disabled='dialogType == "detail"' :on-error="handleUploadError"
+ :on-exceed="handleExceed" :on-remove="remove" accept="image/*,.pdf">
+ <el-button :disabled='dialogType == "detail"' size="small" type="primary">涓婁紶</el-button>
+ </el-upload>
+ </el-form-item>
+ </el-col>
+ </el-row>
</el-form>
<el-form label-width="120px">
+ <el-row style="margin-top: 25px; margin-bottom: 5px">
+ <el-col :span="20">鎶ラ攢瀹℃壒璁板綍锛�</el-col>
+ </el-row>
<el-table :data="fundflowList" border>
- <el-table-column
- label="瀹℃牳浜�"
- align="center"
- width="120"
- prop="checkusername"
- />
- <el-table-column
- label="瀹℃牳鏃ユ湡"
- align="center"
- width="160"
- prop="createTime"
- />
- <el-table-column
- label="瀹℃牳缁撴灉"
- align="center"
- width="200"
- prop="flowconclusion"
- ><template slot-scope="scope"
- ><span v-if="scope.row.flowconclusion == 1">閫氳繃</span
- ><span v-if="scope.row.flowconclusion == 2"
- >涓嶉�氳繃</span
- ></template
- >
+ <el-table-column label="瀹℃牳浜�" align="center" width="120" prop="checkusername" />
+ <el-table-column label="瀹℃牳鏃ユ湡" align="center" width="160" prop="createTime" />
+ <el-table-column label="瀹℃牳缁撴灉" align="center" width="200" prop="flowconclusion"><template
+ slot-scope="scope"><span v-if="scope.row.flowconclusion == 1">閫氳繃</span><span
+ v-if="scope.row.flowconclusion == 2">涓嶉�氳繃</span></template>
</el-table-column>
<el-table-column label="瀹℃牳澶囨敞" align="center" prop="flowcontent" />
</el-table>
- <el-row style="margin-top: 25px; margin-bottom: 5px" v-if="dialogType=='edit'">
+ <el-row style="margin-top: 25px; margin-bottom: 5px" v-if="dialogType == 'edit'">
<el-col :span="7">
<el-form-item label="瀹℃牳缁撴灉" align="left">
- <el-radio-group v-model="newobj.flowlevelone" align="left">
+ <el-radio-group v-model="checkObj.flowlevelone" align="left">
<el-radio label="1">閫氳繃</el-radio>
<el-radio label="2">涓嶉�氳繃</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
- <el-row v-if="dialogType=='edit'">
+ <el-row v-if="dialogType == 'edit'">
<el-col :span="17">
<el-form-item label="瀹℃牳澶囨敞" align="left">
- <el-input v-model="newobj.flowconclusion" placeholder="澶囨敞" />
+ <el-input v-model="checkObj.flowconclusion" placeholder="澶囨敞" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="checksubmit" v-if="dialogType=='edit'">淇� 瀛�</el-button>
+ <el-button type="primary" @click="checksubmit" v-if="dialogType == 'edit'">淇� 瀛�</el-button>
<el-button @click="cancel">鍙� 娑�</el-button>
</div>
</el-dialog>
@@ -804,7 +583,7 @@
//鑾峰彇鍦板競瀵瑰簲鍩哄噯閲戦
getstandardRMB,
checkfund,
- listbypowerone,
+ listbypowerone, addShareData
} from "@/api/project/reimbursement";
import {
provinceAndCityData,
@@ -834,8 +613,10 @@
exportReimbursementdetail,
getTravelStandard,
} from "@/api/project/reimbursementdetail";
+import { listReimbursementpayee, addReimbursementpayee, updateReimbursementpayee } from "@/api/project/reimbursementpayee";
import Li_area_select from "@/components/Address";
import { getUserProfile } from "@/api/system/user";
+import { getToken } from "@/utils/auth";
export default {
components: {
@@ -848,11 +629,11 @@
"sys_0_1",
"sys_fund_type",
"sys_financeitemtype",
- "sys_travelexpensebelong",
+ "sys_travelexpensebelong"
],
data() {
return {
- newobj: {
+ checkObj: {
flowlevelone: null,
flowconclusion: null,
fundid: null,
@@ -910,6 +691,10 @@
APPLICATIONENDTIME: null,
CHECKFLAG: 1,
},
+ //鏌ヨ浠樻
+ queryParamsPayee: {
+ rbid: null,
+ },
// 琛ㄥ崟鍙傛暟
form: {},
reimbursementList: [],
@@ -922,9 +707,19 @@
donorname: null,
bigstrmoney: null,
},
- applicationDetailArr: [],
+ rbDetails: [],
+ rbPayees: [],
baselist: [],
balist: [],
+
+ //闄勪欢鏂囦欢涓婁紶璺緞
+ uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload",
+ //鏂囦欢鍒楄〃
+ fileList: [],
+ headers: {
+ Authorization: "Bearer " + getToken(),
+ },
+
standardlevel: 0,
createTime: [],
//寮圭獥璇︽儏--show锛沞dit
@@ -935,168 +730,59 @@
this.getList();
},
mounted() {
- this.getlistDonatebaseinfo();
+ //this.getlistDonatebaseinfo();
this.getList();
},
methods: {
selectapplication() {
- console.log("鏃堕棿", this.createTime);
this.queryParams.APPLICATIONBEGTIME = this.createTime[0];
this.queryParams.APPLICATIONENDTIME = this.createTime[1];
},
getList() {
this.loading = true;
+ console.log("this.queryParams", this.queryParams)
listbypowerone(this.queryParams).then((response) => {
- console.log("宸梾璐规暟鎹垪琛�:", response);
- debugger;
+
this.reimbursementList = response.rows;
this.total = response.total;
this.loading = false;
});
},
- getgetUserProfile() {
+
+ getUserProfile() {
getUserProfile().then((response) => {
this.standardlevel = response.data.standardlevel;
});
},
- getlistDonatebaseinfo() {
- listDonatebaseinfo().then((res) => {
- let list = res.rows;
- let baseinfolist = [];
- this.balist = list;
- list.forEach((element) => {
- baseinfolist.push({
- infoid: element.id,
- name: element.name,
- });
- });
- console.log("缁勫悎鐨勬柊鏁扮粍", baseinfolist);
- if (baseinfolist != 0) {
- this.baselist = baseinfolist;
- console.log("11111111", this.baselist);
- }
- });
- },
+
checksubmit() {
- console.log("formformform", this.newobj);
let checkfundobj = {
- flowconclusion: this.newobj.flowlevelone,
- flowcontent: this.newobj.flowconclusion,
- fundid: this.newobj.fundid,
+ flowconclusion: this.checkObj.flowlevelone,
+ flowcontent: this.checkObj.flowconclusion,
+ fundid: this.checkObj.fundid,
};
+
if (
checkfundobj.flowconclusion == null ||
checkfundobj.flowconclusion == undefined ||
checkfundobj.flowconclusion == ""
) {
- this.$modal.msgError("璇烽�夋嫨瀹℃牳缁撹!");
+ this.$modal.msgError("璇烽�夋嫨瀹℃牳缁撹鍚庡啀淇濆瓨瀹℃壒缁撴灉!");
return;
}
+
checkfund(checkfundobj).then((res) => {
this.reset();
- this.open=false;
+ this.open = false;
this.getList();
this.$modal.msgSuccess("瀹℃牳瀹屾垚!");
-
});
},
- getStandard(row) {
- if (
- row.searchAddress.sheng != "" &&
- row.searchAddress.shi != "" &&
- row.searchAddress.qu != "" &&
- row.starttime != "" &&
- row.starttime != null &&
- row.days != ""
- ) {
- //璁$畻浣忓璐�
- let info = {
- pabegindate: this.$moment(row.starttime).format("YYYY-MM-DD"),
- pacitycode: this.$refs["residenceSelect_" + row.index].getShi(),
- paenddate: this.$moment(row.starttime)
- .add(row.days, "day")
- .format("YYYY-MM-DD"),
- paprovincecode: this.$refs["residenceSelect_" + row.index].getSheng(),
- patowncode: this.$refs["residenceSelect_" + row.index].getQu(),
- standardlevel: this.standardlevel,
- };
- getTravelStandard(info)
- .then((response) => {
- let fee = 0;
- for (let i = 0; i < response.data.length; i++) {
- fee += response.data[i].reimbursementamout;
- }
- row.hotelexpense = fee;
- })
- .finally(() => {
- this.sumTotalFee(row);
- });
- }
- },
- selcetdestination(row) {
- console.log("鐩殑鍦伴�夋嫨浜嬩欢", row, row.searchAddress);
- //row.searchAddress = this.searchAddress;
- if (
- row.searchAddress.sheng != "" &&
- row.searchAddress.shi != "" &&
- row.searchAddress.qu != ""
- ) {
- row.destination =
- row.searchAddress.sheng +
- row.searchAddress.shi +
- row.searchAddress.qu;
- row.travelprovincename = row.searchAddress.sheng;
- row.travelprovince =
- this.$refs["residenceSelect_" + row.index].getSheng();
- row.travelcityname = row.searchAddress.shi;
- row.travelcity = this.$refs["residenceSelect_" + row.index].getShi();
- row.traveltownname = row.searchAddress.qu;
- row.traveltown = this.$refs["residenceSelect_" + row.index].getQu();
- this.getStandard(row);
- }
- },
- getCityData(e) {
- console.log("dwadwadwadawda", e, this.selectedOptions);
- let a = this.getCodeToText(this.selectedOptions);
- e.destination = a;
- console.log("寰楀埌鐨勫湴甯�", e.destination);
- },
- getCodeToText(codeArray) {
- let area = "";
- switch (codeArray.length) {
- case 1:
- area += CodeToText[codeArray[0]];
- break;
- case 2:
- area += CodeToText[codeArray[0]] + "/" + CodeToText[codeArray[1]];
- break;
- case 3:
- area +=
- CodeToText[codeArray[0]] +
- "/" +
- CodeToText[codeArray[1]] +
- "/" +
- CodeToText[codeArray[2]];
- break;
- default:
- break;
- }
- return area;
- },
- selectbaseinfo() {
- console.log("infoid", this.form.infoid);
- let list = this.balist;
- list.forEach((item) => {
- if ((item.id = this.form.infoid)) {
- // console.log('鐩稿悓鐨�',item.id,item)
- this.form.donorno = item.donorno;
- this.form.donorname = item.name;
- }
- });
- },
+
onpick(e) {
// console.log(e,this.value1)
},
+
gettable(e) {
const id = e.id;
getdownload(e.id).then((res) => {
@@ -1112,15 +798,16 @@
aEle.click();
});
},
- /** 鏌ヨ鎶ラ攢鐢宠鍒楄〃 */
// 鍙栨秷鎸夐挳
cancel() {
this.open = false;
this.reset();
},
+
// 琛ㄥ崟閲嶇疆
reset() {
+ this.fileList = [];
this.form = {
bigstrmoney: null,
id: null,
@@ -1161,7 +848,8 @@
uploadflag: null,
uploadtime: null,
};
- this.applicationDetailArr = [
+
+ this.rbDetails = [
{
index: 0,
searchAddress: {
@@ -1196,25 +884,38 @@
total: 0,
},
];
+
+ this.rbDetails = [{
+ id: null,
+ personType: null,
+ personname: null,
+ bankname: null,
+ bankcardno: null,
+ paiddate: null,
+ remark: null,
+ orderno: null,
+ personname: null,
+ amount: null,
+ },
+ ];
this.resetForm("form");
},
//
handup(e) {
console.log("涓婃姤", e);
},
+
tojust(row) {
- console.log("row", row);
this.checkopen = true;
- this.newobj.fundid = row;
- console.log("111111", this.newobj.fundid);
- // this.newobj.fundid=row.id;
+ this.checkObj.fundid = row;
+ // this.checkObj.fundid=row.id;
let listFundflowparams = {
// fundid:row.id,
fundid: 75,
fundtype: 1,
};
+
listFundflow(listFundflowparams).then((res) => {
- console.log("聽fundtype:聽1", res);
this.fundflowList = res.rows;
});
},
@@ -1248,7 +949,7 @@
handleUpdate(row) {
this.dialogType = "edit";
const id = row.id || this.ids;
- this.newobj.fundid = id;
+ this.checkObj.fundid = id;
let listFundflowparams = {
fundid: row.id,
fundtype: 1,
@@ -1257,26 +958,31 @@
this.fundflowList = res.rows;
});
this.reset();
- debugger
getReimbursement(id).then((response1) => {
this.form = response1.data;
- console.log(this.form);
- console.log(response1.data);
this.open = true;
this.title = "淇敼鎶ラ攢鐢宠";
let ids = response1.data.id;
+
+ this.fileList = this.form.annexfiles ? this.form.annexfiles.split(",").map(item => ({ url: item, name: item })) : []
+
getReimbursementdetaillist(ids).then((res2) => {
- console.log("淇敼鐨刣etails鏁版嵁", res2);
- this.applicationDetailArr = res2.data;
- for (let i = 0; i < this.applicationDetailArr.length; i++) {
- this.applicationDetailArr[i].index = i;
- this.applicationDetailArr[i].searchAddress = {
- sheng: this.applicationDetailArr[i].travelprovincename,
- shi: this.applicationDetailArr[i].travelcityname,
- qu: this.applicationDetailArr[i].traveltownname,
+ this.rbDetails = res2.data;
+ for (let i = 0; i < this.rbDetails.length; i++) {
+ this.rbDetails[i].index = i;
+ this.rbDetails[i].searchAddress = {
+ sheng: this.rbDetails[i].travelprovincename,
+ shi: this.rbDetails[i].travelcityname,
+ qu: this.rbDetails[i].traveltownname,
};
}
//this.sumTotalFee();
+ });
+ //鑾峰彇鎶ラ攢鎵撴淇℃伅
+ this.queryParamsPayee.rbid = ids;
+ listReimbursementpayee(this.queryParamsPayee).then((res) => {
+ this.rbPayees = res.rows;
+ if (this.rbPayees.length == 0) { this.addPayeeRow(0); }
});
});
},
@@ -1297,16 +1003,23 @@
this.title = "鏌ョ湅鎶ラ攢鐢宠";
let ids = response.data.id;
getReimbursementdetaillist(ids).then((res) => {
- this.applicationDetailArr = res.data;
- for (let i = 0; i < this.applicationDetailArr.length; i++) {
- this.applicationDetailArr[i].index = i;
- this.applicationDetailArr[i].searchAddress = {
- sheng: this.applicationDetailArr[i].travelprovincename,
- shi: this.applicationDetailArr[i].travelcityname,
- qu: this.applicationDetailArr[i].traveltownname,
+ this.rbDetails = res.data;
+ console.log("getReimbursementdetaillist", res);
+ for (let i = 0; i < this.rbDetails.length; i++) {
+ this.rbDetails[i].index = i;
+ this.rbDetails[i].searchAddress = {
+ sheng: this.rbDetails[i].travelprovincename,
+ shi: this.rbDetails[i].travelcityname,
+ qu: this.rbDetails[i].traveltownname,
};
}
- this.sumTotalFee();
+ });
+
+ //鑾峰彇鎶ラ攢鎵撴淇℃伅
+ this.queryParamsPayee.rbid = ids;
+ listReimbursementpayee(this.queryParamsPayee).then((res) => {
+ this.rbPayees = res.rows;
+ if (this.rbPayees.length == 0) { this.addPayeeRow(0); }
});
});
},
@@ -1314,22 +1027,18 @@
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
- // this.applicationDetailArr.forEach(item=>{
+ // this.rbDetails.forEach(item=>{
// item.destination = this.searchAddress.sheng
// })
if (this.form.id != null) {
- console.log("澶у啓", this.form.bigstrmoney);
updateReimbursement(this.form).then((response) => {
- // console.log('鏇存柊涓昏〃鐨勪俊鎭�',response);
- for (let i = 0; i < this.applicationDetailArr.length; i++) {
- console.log("浣犲ソ", this.applicationDetailArr[i].rbid);
- if (this.applicationDetailArr[i].rbid != null) {
- updateReimbursementdetail(this.applicationDetailArr[i]);
+ for (let i = 0; i < this.rbDetails.length; i++) {
+ if (this.rbDetails[i].rbid != null) {
+ updateReimbursementdetail(this.rbDetails[i]);
} else {
- console.log("淇敼鏃舵柊澧炵殑id", this.form.id);
- this.applicationDetailArr[i].rbid = this.form.id;
- addReimbursementdetail(this.applicationDetailArr[i]);
+ this.rbDetails[i].rbid = this.form.id;
+ addReimbursementdetail(this.rbDetails[i]);
}
}
this.$modal.msgSuccess("淇敼鎴愬姛");
@@ -1341,22 +1050,15 @@
this.$modal.msgSuccess("鏂板鎴愬姛");
this.open = false;
this.getList();
- console.log(
- "涓昏〃鏂板鎴愬姛浜嗭細",
- response,
- this.applicationDetailArr
- );
listReimbursementdetailid().then((res) => {
let id = res.data;
- for (let i = 0; i < this.applicationDetailArr.length; i++) {
- this.applicationDetailArr[i].rbid = id;
- addReimbursementdetail(this.applicationDetailArr[i]);
+ for (let i = 0; i < this.rbDetails.length; i++) {
+ this.rbDetails[i].rbid = id;
+ addReimbursementdetail(this.rbDetails[i]);
}
- console.log("idaaaaaa:", res);
});
//details鏂板
-
- // applicationDetailArr
+ //rbDetails
});
}
}
@@ -1376,7 +1078,7 @@
this.getList();
this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
})
- .catch(() => {});
+ .catch(() => { });
},
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
handleExport() {
@@ -1391,13 +1093,13 @@
this.$download.name(response.msg);
this.exportLoading = false;
})
- .catch(() => {});
+ .catch(() => { });
},
//鏂板涓�琛�
addRow() {
let rowData = {
- index: this.applicationDetailArr.length,
+ index: this.rbDetails.length,
searchAddress: {
sheng: "",
shi: "",
@@ -1430,12 +1132,10 @@
uploadTime: null,
total: 0,
};
- this.applicationDetailArr.push(rowData);
+ this.rbDetails.push(rowData);
},
deleteRow(index, rows, row) {
- // console.log('rows',rows)
-
this.$confirm("鏄惁纭鍒犻櫎?", "鎻愮ず", {
confirmButtonText: "纭畾",
cancelButtonText: "鍙栨秷",
@@ -1452,46 +1152,45 @@
//璁$畻璐圭敤鍚堣
sumTotalFee(scope) {
- // debugger;
let allSum = 0;
try {
- for (let i = 0; i < this.applicationDetailArr.length; i++) {
+ for (let i = 0; i < this.rbDetails.length; i++) {
let totalFee = 0;
//璁$畻褰撳墠鎶ラ攢鍐呭璐圭敤鍚堣
- if (!isNaN(parseFloat(this.applicationDetailArr[i].trafficexpense))) {
- totalFee += parseFloat(this.applicationDetailArr[i].trafficexpense);
+ if (!isNaN(parseFloat(this.rbDetails[i].trafficexpense))) {
+ totalFee += parseFloat(this.rbDetails[i].trafficexpense);
}
- if (!isNaN(parseFloat(this.applicationDetailArr[i].cityfee))) {
- totalFee += parseFloat(this.applicationDetailArr[i].cityfee);
+ if (!isNaN(parseFloat(this.rbDetails[i].cityfee))) {
+ totalFee += parseFloat(this.rbDetails[i].cityfee);
}
- if (!isNaN(parseFloat(this.applicationDetailArr[i].hotelexpense))) {
- totalFee += parseFloat(this.applicationDetailArr[i].hotelexpense);
+ if (!isNaN(parseFloat(this.rbDetails[i].hotelexpense))) {
+ totalFee += parseFloat(this.rbDetails[i].hotelexpense);
}
- if (!isNaN(parseFloat(this.applicationDetailArr[i].otherexpense))) {
- totalFee += parseFloat(this.applicationDetailArr[i].otherexpense);
+ if (!isNaN(parseFloat(this.rbDetails[i].otherexpense))) {
+ totalFee += parseFloat(this.rbDetails[i].otherexpense);
}
- if (!isNaN(parseFloat(this.applicationDetailArr[i].foodexpenses))) {
- totalFee += parseFloat(this.applicationDetailArr[i].foodexpenses);
+ if (!isNaN(parseFloat(this.rbDetails[i].foodexpenses))) {
+ totalFee += parseFloat(this.rbDetails[i].foodexpenses);
}
- if (!isNaN(parseFloat(this.applicationDetailArr[i].foodallowance))) {
- totalFee += parseFloat(this.applicationDetailArr[i].foodallowance);
+ if (!isNaN(parseFloat(this.rbDetails[i].foodallowance))) {
+ totalFee += parseFloat(this.rbDetails[i].foodallowance);
}
- if (!isNaN(parseFloat(this.applicationDetailArr[i].otherfeeamount))) {
- totalFee += parseFloat(this.applicationDetailArr[i].otherfeeamount);
+ if (!isNaN(parseFloat(this.rbDetails[i].otherfeeamount))) {
+ totalFee += parseFloat(this.rbDetails[i].otherfeeamount);
}
- this.applicationDetailArr[i].total = parseFloat(totalFee).toFixed(2);
+ this.rbDetails[i].total = parseFloat(totalFee).toFixed(2);
this.$set(
- this.applicationDetailArr,
+ this.rbDetails,
scope.$index,
- this.applicationDetailArr[i]
+ this.rbDetails[i]
);
- if (!isNaN(parseFloat(this.applicationDetailArr[i].total))) {
- allSum += parseFloat(this.applicationDetailArr[i].total);
+ if (!isNaN(parseFloat(this.rbDetails[i].total))) {
+ allSum += parseFloat(this.rbDetails[i].total);
}
}
this.form.amountrequested = allSum.toFixed(2);
this.form.bigstrmoney = this.convertCurrency(this.form.amountrequested);
- } catch {}
+ } catch { }
},
//閲戦澶у啓
@@ -1593,6 +1292,41 @@
}
return chineseStr;
},
+
+ //闄勪欢澶勭悊
+ handleUploadError() { },
+
+ remove(file) {
+ this.fileList.splice(this.fileList.indexOf(file), 1)
+ },
+
+ handleExceed() {
+ this.$message.error(`涓婁紶鏂囦欢鏁伴噺涓嶈兘瓒呰繃 ${5} 涓�!`);
+ },
+
+ //鏂囦欢涓婁紶鎴愬姛鍥炶皟
+ uploadSccess(response, file, fileList) {
+ //鑾峰彇闄勪欢淇℃伅浣嶇疆
+ if (response.code == 200) {
+ this.form.filename = file.raw.name;
+ //console.log(file);
+ this.$modal.msgSuccess(response.msg);
+ this.fileList.push({ name: response.fileName, url: response.fileName });
+ } else {
+ this.$modal.msgError(response.msg);
+ }
+ },
+
+ // 涓嬭浇鏂囦欢
+ downFile(item) {
+ const url = process.env.VUE_APP_BASE_API + item.url
+ var a = document.createElement('a');
+ var event = new MouseEvent('click');
+ a.download = item.name;
+ a.href = url;
+ a.dispatchEvent(event);
+ },
+
},
};
</script>
\ No newline at end of file
--
Gitblit v1.9.3