|
@@ -23,36 +23,57 @@
|
|
|
<el-col :span="18">
|
|
|
<div class="datascreen">
|
|
|
<!-- <el-input placeholder="可按费用名称、流向、经办人查找" class="input_css" v-model="searchKeyWord" clearable></el-input> -->
|
|
|
- <el-select v-model="warehouseName" filterable placeholder="按仓库筛选" clearable @change="getList1" class="options_css">
|
|
|
+ <el-select v-model="warehouseName" filterable placeholder="按仓库筛选" clearable @change="getList1"
|
|
|
+ class="options_css">
|
|
|
<el-option label="全部仓库" value=""></el-option>
|
|
|
- <el-option v-for="item in warehousNameList" :key="item.id" :label="item.warehouseName" :value="item.warehouseName"></el-option>
|
|
|
+ <el-option v-for="item in warehousNameList" :key="item.id" :label="item.warehouseName"
|
|
|
+ :value="item.warehouseName"></el-option>
|
|
|
</el-select>
|
|
|
- <el-select v-model="costNo" multiple filterable allow-create default-first-option placeholder="按编号筛选" clearable @change="getList1" class="options_css">
|
|
|
+ <!-- <el-select v-model="costNo" multiple filterable allow-create default-first-option placeholder="按编号筛选"
|
|
|
+ clearable @change="getList1" class="options_css">
|
|
|
<el-option v-for="item in choiceObj" :key="item.id" :label="item.costNo" :value="item.costNo">
|
|
|
</el-option>
|
|
|
- </el-select>
|
|
|
- <el-select v-model="purpose" multiple filterable allow-create default-first-option placeholder="按用途筛选" clearable @change="getList1" class="options_css">
|
|
|
+ </el-select> -->
|
|
|
+ <el-input style="width: 255px;" class="options_css" v-model="searchKeyWord" placeholder="可按编号进行查找" clearable maxlength="500" type="input"
|
|
|
+ @keyup.enter.native="find()"></el-input>
|
|
|
+ <el-select v-model="purpose" multiple filterable allow-create default-first-option placeholder="按用途筛选"
|
|
|
+ clearable @change="getList1" class="options_css">
|
|
|
<el-option v-for="item in costChoice" :key="item.id" :label="item.name" :value="item.name">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- <el-select v-model="flowTo" multiple filterable allow-create default-first-option placeholder="按流向筛选" clearable @change="getList1" class="options_css">
|
|
|
+ <!-- <el-select v-model="flowTo" multiple filterable allow-create default-first-option placeholder="按流向筛选"
|
|
|
+ clearable @change="getList1" class="options_css">
|
|
|
<el-option v-for="item in flowToList" :key="item.id" :label="item.flowTo" :value="item.flowTo">
|
|
|
</el-option>
|
|
|
- </el-select>
|
|
|
-
|
|
|
- <el-select v-model="expenseName" multiple filterable allow-create default-first-option placeholder="按费用名称筛选" clearable @change="getList1" class="options_css">
|
|
|
- <el-option v-for="item in costNameList" :key="item.id" :label="item.expenseName" :value="item.expenseName">
|
|
|
+ </el-select> -->
|
|
|
+ <el-input style="width: 255px;" class="options_css" v-model="flowTo" placeholder="可按流向进行查找" clearable maxlength="500" type="input"
|
|
|
+ @keyup.enter.native="find()"></el-input>
|
|
|
+
|
|
|
+ <!-- <el-select v-model="expenseName" multiple filterable allow-create default-first-option placeholder="按费用名称筛选"
|
|
|
+ clearable @change="getList1" class="options_css">
|
|
|
+ <el-option v-for="item in costNameList" :key="item.id" :label="item.expenseName"
|
|
|
+ :value="item.expenseName">
|
|
|
</el-option>
|
|
|
- </el-select>
|
|
|
- <el-select v-model="unallocatedAmount" multiple filterable allow-create default-first-option placeholder="按未分配金额筛选" clearable @change="getList1" class="options_css">
|
|
|
- <el-option v-for="item in moneyList" :key="item.id" :label="item.unallocatedAmount" :value="item.unallocatedAmount">
|
|
|
+ </el-select> -->
|
|
|
+ <el-input style="width: 280px;" class="options_css" v-model="expenseName" placeholder="可按费用名称进行查找" clearable maxlength="500" type="input"
|
|
|
+ @keyup.enter.native="find()"></el-input>
|
|
|
+ <!-- <el-select v-model="unallocatedAmount" multiple filterable allow-create default-first-option
|
|
|
+ placeholder="按未分配金额筛选" clearable @change="getList1" class="options_css">
|
|
|
+ <el-option v-for="item in moneyList" :key="item.id" :label="item.unallocatedAmount"
|
|
|
+ :value="item.unallocatedAmount">
|
|
|
</el-option>
|
|
|
- </el-select>
|
|
|
- <el-select v-model="agent" multiple filterable allow-create default-first-option placeholder="按经办人筛选" clearable @change="getList1" class="options_css">
|
|
|
+ </el-select> -->
|
|
|
+ <el-select v-model="unallocatedAmount" filterable placeholder="" @change="unallocatedAmountChange"
|
|
|
+ style="margin: 0 10px;width:200px">
|
|
|
+ <el-option key="全部金额" label="全部金额" value="" style="color: #8890b1" />
|
|
|
+ <el-option key="未分配金额大于0" label="未分配金额大于0" value="1" style="color: #8890b1" />
|
|
|
+ </el-select>
|
|
|
+ <el-select v-model="agent" multiple filterable allow-create default-first-option placeholder="按经办人筛选"
|
|
|
+ clearable @change="getList1" class="options_css">
|
|
|
<el-option v-for="item in personList" :key="item.id" :label="item.agent" :value="item.agent">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- <el-select v-model="toExamineType" filterable clearable @change="getList1" class="options_css">
|
|
|
+ <el-select v-model="toExamineType" filterable clearable @change="getList1" class="options_css">
|
|
|
<el-option label="全部状态" value=""></el-option>
|
|
|
<el-option label="待审核" value="1"></el-option>
|
|
|
<el-option label="待付款" value="2"></el-option>
|
|
@@ -60,7 +81,8 @@
|
|
|
<!-- <el-select v-model="deptBudgetList.otherPersonPhone" placeholder="请选择其他驻库人员,可选多人" allow-create default-first-option @change="selectstaffOther" multiple filterable clearable>
|
|
|
<el-option v-for="item in optionsOther" :key="item.staffMobilePhone" :label="item.staffName" :value="item.staffMobilePhone" />
|
|
|
</el-select> -->
|
|
|
- <el-button class="find" type="primary" @click="find()"><img width="16" height="16" style="left: -8px" src="../../../public/img/sousuo.png" alt="" /></el-button>
|
|
|
+ <el-button class="find" type="primary" @click="find()"><img width="16" height="16" style="left: -8px"
|
|
|
+ src="../../../public/img/sousuo.png" alt="" /></el-button>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -78,7 +100,8 @@
|
|
|
<el-button @click="costChange(2)" :type="expensesPurpose == 2 ? 'primary' : ''">运费</el-button>
|
|
|
<el-button @click="exportFile" type="primary">导出</el-button>
|
|
|
</el-col>
|
|
|
- <el-col style="text-align: right" :span="6">
|
|
|
+ <el-col style="text-align: right;display: flex;" :span="6">
|
|
|
+ <el-button @click="coalCost()">燃料费</el-button>
|
|
|
<el-badge v-if="approveStatus" is-dot class="item">
|
|
|
<el-button style="margin-left: 10px" @click="oilcost()">油费</el-button>
|
|
|
</el-badge>
|
|
@@ -120,6 +143,8 @@
|
|
|
<span v-else>-非粮款</span>
|
|
|
</div>
|
|
|
<div v-else-if="scope.row.expensesPurpose == 5">经营性费用</div>
|
|
|
+ <div v-else-if="scope.row.expensesPurpose == 7">备用金</div>
|
|
|
+
|
|
|
<div v-else>{{ scope.row.costType }}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -131,7 +156,7 @@
|
|
|
<div v-else-if="scope.row.expensesPurpose == 3">
|
|
|
<span>{{ scope.row.warehouseName }}</span>
|
|
|
</div>
|
|
|
- <div v-else-if="scope.row.expensesPurpose == 5">中天昊元</div>
|
|
|
+ <div v-else-if="scope.row.expensesPurpose == 5 || scope.row.expensesPurpose == 7 ">中天昊元</div>
|
|
|
<div v-else-if="scope.row.expensesPurpose == 2">
|
|
|
{{ scope.row.contractNo }}
|
|
|
</div>
|
|
@@ -152,9 +177,9 @@
|
|
|
src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" />
|
|
|
<span v-if="scope.row.addressUrlArray != null">
|
|
|
{{
|
|
|
- scope.row.addressUrlArray.length == 0
|
|
|
- ? ''
|
|
|
- : scope.row.addressUrlArray.length
|
|
|
+ scope.row.addressUrlArray.length == 0
|
|
|
+ ? ''
|
|
|
+ : scope.row.addressUrlArray.length
|
|
|
}}
|
|
|
</span>
|
|
|
</template>
|
|
@@ -164,20 +189,20 @@
|
|
|
<el-table-column prop="status" label="费用状态" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.approveStatus">{{
|
|
|
- scope.row.approveStatus
|
|
|
+ scope.row.approveStatus
|
|
|
}}</span><span v-else>{{ scope.row.status }}</span>
|
|
|
<i @click="handlerecord(scope.row)" class="el-icon-s-claim"></i>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="address" label="操作" width="300">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button v-if="scope.row.expenseName!='保证金抵粮款'" @click="look(scope.row)" type="primary">查看</el-button>
|
|
|
+ <el-button v-if="scope.row.expenseName != '保证金抵粮款'" @click="look(scope.row)" type="primary">查看</el-button>
|
|
|
<div v-hasPermission="`lirunhesuan.feiyongguanli.queshou`" style="display: inline-block">
|
|
|
<el-button v-if="
|
|
|
- scope.row.status == '待确认' &&scope.row.expenseName!='保证金抵粮款'
|
|
|
+ scope.row.status == '待确认' && scope.row.expenseName != '保证金抵粮款'
|
|
|
" @click="shoukuanqueren(scope.row)" type="primary">确认</el-button>
|
|
|
<el-button v-if="
|
|
|
- scope.row.status == '待确认'&&scope.row.expenseName=='保证金抵粮款'
|
|
|
+ scope.row.status == '待确认' && scope.row.expenseName == '保证金抵粮款'
|
|
|
" @click="shoukuanqueren1(scope.row)" type="primary">确认</el-button>
|
|
|
</div>
|
|
|
<!-- <el-button v-if='scope.row.approveStatus=="待确认"' @click="accomplish(scope.row)" type="primary">完成</el-button> -->
|
|
@@ -192,8 +217,10 @@
|
|
|
scope.row.status == '已付款' &&
|
|
|
!scope.row.approveStatus)
|
|
|
" @click="accomplish(scope.row)" type="primary">完成</el-button>
|
|
|
- <el-button v-if="scope.row.approveStatus && scope.row.approveStatus !='发起人撤回' " v-show="scope.row.showFlag" @click="withdraw(scope.row)" type="primary">撤回</el-button>
|
|
|
- <el-button v-if="scope.row.status == '已驳回' || scope.row.approveStatus == '发起人撤回'" @click="edit(scope.row)" type="primary">编辑</el-button>
|
|
|
+ <el-button v-if="scope.row.approveStatus && scope.row.approveStatus != '发起人撤回'"
|
|
|
+ v-show="scope.row.showFlag" @click="withdraw(scope.row)" type="primary">撤回</el-button>
|
|
|
+ <el-button v-if="scope.row.status == '已驳回' || scope.row.approveStatus == '发起人撤回'" @click="edit(scope.row)"
|
|
|
+ type="primary">编辑</el-button>
|
|
|
<el-button v-if="
|
|
|
(!scope.row.distributionStatus &&
|
|
|
scope.row.expensesPurpose == 1 &&
|
|
@@ -213,9 +240,13 @@
|
|
|
scope.row.unallocatedAmount > 0)
|
|
|
" @click="allot(scope.row)" type="primary">分配</el-button>
|
|
|
<!-- <el-button v-if='scope.row.approveStatus=="已驳回"' @click="del(0,scope.row)" type="primary">删除</el-button> -->
|
|
|
- <el-button v-if='scope.row.status=="已驳回" ||scope.row.approveStatus =="发起人撤回" ' @click="del(0,scope.row)" type="danger">删除</el-button>
|
|
|
- <el-button v-if='scope.row.approveStatus=="待财务审核"||scope.row.approveStatus=="待杜大光审核"||scope.row.approveStatus=="待决策人审核"||scope.row.approveStatus=="待内勤审核"||scope.row.approveStatus=="待单证中心审核"' @click="aduit(scope.row)" type="primary">审核</el-button>
|
|
|
- <el-button v-if='!scope.row.approveStatus&&scope.row.expensesType==2&&scope.row.status=="待付款"' @click="payment(scope.row)" type="primary">付款</el-button>
|
|
|
+ <el-button v-if='scope.row.status == "已驳回" || scope.row.approveStatus == "发起人撤回"' @click="del(0, scope.row)"
|
|
|
+ type="danger">删除</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if='scope.row.approveStatus == "待财务审核" || scope.row.approveStatus == "待杜大光审核" || scope.row.approveStatus == "待决策人审核" || scope.row.approveStatus == "待内勤审核" || scope.row.approveStatus == "待单证中心审核"'
|
|
|
+ @click="aduit(scope.row)" type="primary">审核</el-button>
|
|
|
+ <el-button v-if='!scope.row.approveStatus && scope.row.expensesType == 2 && scope.row.status == "待付款"'
|
|
|
+ @click="payment(scope.row)" type="primary">付款</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="expenseRemarks" label="分配状态">
|
|
@@ -265,11 +296,11 @@
|
|
|
</div>
|
|
|
<div style="width: 33.333%; text-align: center">
|
|
|
{{
|
|
|
- statusdata.expensesType != 1
|
|
|
- ? item.approveResult == 1
|
|
|
- ? '通过'
|
|
|
- : item.approveResult == 0?'驳回':item.dealMsg
|
|
|
- : item.dealMsg
|
|
|
+ statusdata.expensesType != 1
|
|
|
+ ? item.approveResult == 1
|
|
|
+ ? '通过'
|
|
|
+ : item.approveResult == 0 ? '驳回' : item.dealMsg
|
|
|
+ : item.dealMsg
|
|
|
}}
|
|
|
</div>
|
|
|
<div style="width: 33.333%; text-align: right">
|
|
@@ -277,10 +308,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="index < recordList.length - 1" style="width: 100%; text-align: left">
|
|
|
- 审核意见:{{ item.verifyRemark }}
|
|
|
+ 审核意见:{{item.verifyRemark?item.verifyRemark.split('##')[0]:""}}
|
|
|
</div>
|
|
|
<div v-else style="width: 100%; text-align: left">
|
|
|
- 审核意见:{{ item.verifyRemark }}
|
|
|
+ 审核意见:{{item.verifyRemark?item.verifyRemark.split('##')[0]:""}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -288,21 +319,16 @@
|
|
|
<ws-upload ref="upload" @onChange="onChange1" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx"
|
|
|
:comp-id="compId" :appendix-ids="appendixIdss" :size-limit="size" />
|
|
|
</WinseaContentModal>
|
|
|
- <el-dialog
|
|
|
- title="确认保证金抵粮款信息"
|
|
|
- :visible.sync="dialogVisible"
|
|
|
- width="30%"
|
|
|
- :before-close="handleClose">
|
|
|
- <div>
|
|
|
- <ws-upload ref="upload1" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx"
|
|
|
- @onChange="onChange" :comp-id="compId" :appendix-ids="appendixIdss1" :size-limit="size" />
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="querenbazheng">确 定</el-button>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
-
|
|
|
-</el-dialog>
|
|
|
+ <el-dialog title="确认保证金抵粮款信息" :visible.sync="dialogVisible" width="30%" :before-close="handleClose">
|
|
|
+ <div>
|
|
|
+ <ws-upload ref="upload1" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx" @onChange="onChange"
|
|
|
+ :comp-id="compId" :appendix-ids="appendixIdss1" :size-limit="size" />
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="querenbazheng">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -319,13 +345,17 @@ import {
|
|
|
getXialaList,
|
|
|
sponsorWithdraw,
|
|
|
exportFile,
|
|
|
- getcostNo,
|
|
|
+ // getcostNo,
|
|
|
editfujian
|
|
|
} from '@/model/profitable/index'
|
|
|
-import { getwarehousName} from '@/model/warehouse/index'
|
|
|
import {
|
|
|
- downloadFile
|
|
|
- } from '@/utils/batchDown'
|
|
|
+ getwarehouse
|
|
|
+ } from '@/model/houseSelfCollect/index'
|
|
|
+import { getwarehousName } from '@/model/warehouse/index'
|
|
|
+import {
|
|
|
+ downloadFile
|
|
|
+} from '@/utils/batchDown'
|
|
|
+import { split } from 'lodash'
|
|
|
export default {
|
|
|
components: {
|
|
|
WsUpload,
|
|
@@ -338,23 +368,27 @@ export default {
|
|
|
deptBudgetTotal: 0,
|
|
|
currentPage: 1,
|
|
|
pageSize: 10,
|
|
|
- showFlag:false,
|
|
|
+ showFlag: false,
|
|
|
size: 100,
|
|
|
expensesPurpose: '',
|
|
|
recordList: [],
|
|
|
- dialogVisible:false,
|
|
|
- toExamineType:'',
|
|
|
+ dialogVisible: false,
|
|
|
+ toExamineType: '',
|
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
|
dialogVisible1: false,
|
|
|
deptCircularPage: {},
|
|
|
searchType: '',
|
|
|
searchKeyWord: '',
|
|
|
+ expenseName: '',//费用名称
|
|
|
costNo: [],//编号
|
|
|
- purpose:[],//用途
|
|
|
- flowTo:[],//流向
|
|
|
- expenseName:[],//费用名称
|
|
|
- unallocatedAmount:[],//未分配金额(元)
|
|
|
- agent:[],//经办人
|
|
|
+ purpose: [],//用途
|
|
|
+ // flowTo: [],//流向
|
|
|
+ flowTo: '',//流向
|
|
|
+ flowFlag:'',
|
|
|
+ // expenseName: [],//费用名称
|
|
|
+ // unallocatedAmount: [],//未分配金额(元)
|
|
|
+ unallocatedAmount:'',//未分配金额(元)
|
|
|
+ agent: [],//经办人
|
|
|
startDate: '',
|
|
|
endDate: '',
|
|
|
title: '附件',
|
|
@@ -362,11 +396,11 @@ export default {
|
|
|
outtotal: 0,
|
|
|
intotal: 0,
|
|
|
fujianshow: false,
|
|
|
- statusdata:{},
|
|
|
+ statusdata: {},
|
|
|
appendixIdss: [],
|
|
|
- appendixIdss1:'',
|
|
|
+ appendixIdss1: '',
|
|
|
approveStatus: false,
|
|
|
- currectdata:{},
|
|
|
+ currectdata: {},
|
|
|
choiceObj: [],
|
|
|
costChoice: [
|
|
|
{
|
|
@@ -376,7 +410,7 @@ export default {
|
|
|
{
|
|
|
name: '库点费用',
|
|
|
id: 2
|
|
|
- },
|
|
|
+ },
|
|
|
{
|
|
|
name: '经营性费用',
|
|
|
id: 3
|
|
@@ -390,13 +424,13 @@ export default {
|
|
|
id: 5
|
|
|
}
|
|
|
],
|
|
|
- addressUrl:'',
|
|
|
- flowToList:[],
|
|
|
- costNameList:[],
|
|
|
- moneyList:[],
|
|
|
- personList:[],
|
|
|
- warehousNameList:[],
|
|
|
- warehouseName:''
|
|
|
+ addressUrl: '',
|
|
|
+ flowToList: [],
|
|
|
+ costNameList: [],
|
|
|
+ moneyList: [],
|
|
|
+ personList: [],
|
|
|
+ warehousNameList: [],
|
|
|
+ warehouseName: ''
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
@@ -405,38 +439,38 @@ export default {
|
|
|
this.xiala()
|
|
|
},
|
|
|
methods: {
|
|
|
- async exportFile(){
|
|
|
- let _data = {
|
|
|
- // expenseInfoExportList:this.choiceObj,
|
|
|
- compId: localStorage.getItem('ws-pf_compId'),
|
|
|
- startDate: this.startDate,
|
|
|
- endDate: this.endDate,
|
|
|
- searchKeyWord: this.searchKeyWord,
|
|
|
- currentPage: this.currentPage,
|
|
|
- pageSize: 9999,
|
|
|
- searchType: this.searchType,
|
|
|
- expensesPurpose: this.expensesPurpose,
|
|
|
- costNo:this.costNo.length>0?this.costNo.toString():'',
|
|
|
- purpose:this.purpose.length>0?this.purpose.toString():'',
|
|
|
- expenseName:this.expenseName.length>0?this.expenseName.toString():'',
|
|
|
- unallocatedNumber:this.unallocatedAmount.length>0?this.unallocatedAmount.toString():'',
|
|
|
- agent:this.agent.length>0?this.agent.toString():'',
|
|
|
- flowTo:this.flowTo.length>0?this.flowTo.toString():'',
|
|
|
- warehouseName:this.warehouseName,
|
|
|
- toExamineType:this.toExamineType
|
|
|
- }
|
|
|
- const {
|
|
|
- data
|
|
|
- } = await exportFile(
|
|
|
- _data, {}, {
|
|
|
- responseType: 'blob',
|
|
|
- }
|
|
|
- ).toPromise()
|
|
|
- downloadFile({
|
|
|
- res: data,
|
|
|
- fileName: `费用明细`,
|
|
|
- type: 'xls',
|
|
|
- })
|
|
|
+ async exportFile() {
|
|
|
+ let _data = {
|
|
|
+ // expenseInfoExportList:this.choiceObj,
|
|
|
+ compId: localStorage.getItem('ws-pf_compId'),
|
|
|
+ startDate: this.startDate,
|
|
|
+ endDate: this.endDate,
|
|
|
+ searchKeyWord: this.searchKeyWord,
|
|
|
+ currentPage: this.currentPage,
|
|
|
+ pageSize: 9999,
|
|
|
+ searchType: this.searchType,
|
|
|
+ expensesPurpose: this.expensesPurpose,
|
|
|
+ costNo: this.costNo.length > 0 ? this.costNo.toString() : '',
|
|
|
+ purpose: this.purpose.length > 0 ? this.purpose.toString() : '',
|
|
|
+ expenseName: this.expenseName.length > 0 ? this.expenseName.toString() : '',
|
|
|
+ unallocatedNumber: this.unallocatedAmount.length > 0 ? this.unallocatedAmount.toString() : '',
|
|
|
+ agent: this.agent.length > 0 ? this.agent.toString() : '',
|
|
|
+ flowTo: this.flowTo.length > 0 ? this.flowTo.toString() : '',
|
|
|
+ warehouseName: this.warehouseName,
|
|
|
+ toExamineType: this.toExamineType
|
|
|
+ }
|
|
|
+ const {
|
|
|
+ data
|
|
|
+ } = await exportFile(
|
|
|
+ _data, {}, {
|
|
|
+ responseType: 'blob',
|
|
|
+ }
|
|
|
+ ).toPromise()
|
|
|
+ downloadFile({
|
|
|
+ res: data,
|
|
|
+ fileName: `费用明细`,
|
|
|
+ type: 'xls',
|
|
|
+ })
|
|
|
},
|
|
|
withdraw(row) {
|
|
|
this.$confirm(`撤回成功后,可再次提交,确定撤回吗?`, {
|
|
@@ -454,62 +488,65 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- xiala(){
|
|
|
+ unallocatedAmountChange(e){
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ xiala() {
|
|
|
//仓库筛选
|
|
|
- getwarehousName({
|
|
|
+ getwarehouse({
|
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.warehousNameList = response
|
|
|
})
|
|
|
- //搜索框下拉数据
|
|
|
- getcostNo({
|
|
|
- compId: localStorage.getItem('ws-pf_compId'),
|
|
|
- // currentPage: 1,
|
|
|
- // pageSize: 9999,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.choiceObj = response
|
|
|
- })
|
|
|
- //流向
|
|
|
- getXialaList({
|
|
|
- removeRepeatFlag: 1,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.flowToList = response
|
|
|
- for(let i = 0 ;i<this.flowToList.length;i++){
|
|
|
- if(this.flowToList[i].expensesPurpose == 3){
|
|
|
- this.flowToList[i].flowTo = this.flowToList[i].warehouseName
|
|
|
- }else if(this.flowToList[i].expensesPurpose == 1){
|
|
|
- this.flowToList[i].flowTo = this.flowToList[i].contractNo
|
|
|
- }else if(this.flowToList[i].expensesPurpose == 5){
|
|
|
- this.flowToList[i].flowTo = '中天昊元'
|
|
|
- }else if(this.flowToList[i].expensesPurpose == 2){
|
|
|
- this.flowToList[i].flowTo = this.flowToList[i].contractNo
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+ // //搜索框下拉数据
|
|
|
+ // getcostNo({
|
|
|
+ // compId: localStorage.getItem('ws-pf_compId'),
|
|
|
+ // // currentPage: 1,
|
|
|
+ // // pageSize: 9999,
|
|
|
+ // })
|
|
|
+ // .toPromise()
|
|
|
+ // .then((response) => {
|
|
|
+ // this.choiceObj = response
|
|
|
+ // })
|
|
|
+ //流向
|
|
|
+ // getXialaList({
|
|
|
+ // removeRepeatFlag: 1,
|
|
|
+ // })
|
|
|
+ // .toPromise()
|
|
|
+ // .then((response) => {
|
|
|
+ // this.flowToList = response
|
|
|
+ // for (let i = 0; i < this.flowToList.length; i++) {
|
|
|
+ // if (this.flowToList[i].expensesPurpose == 3) {
|
|
|
+ // this.flowToList[i].flowTo = this.flowToList[i].warehouseName
|
|
|
+ // } else if (this.flowToList[i].expensesPurpose == 1) {
|
|
|
+ // this.flowToList[i].flowTo = this.flowToList[i].contractNo
|
|
|
+ // } else if (this.flowToList[i].expensesPurpose == 5) {
|
|
|
+ // this.flowToList[i].flowTo = '中天昊元'
|
|
|
+ // } else if (this.flowToList[i].expensesPurpose == 2) {
|
|
|
+ // this.flowToList[i].flowTo = this.flowToList[i].contractNo
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
//费用名称
|
|
|
+ // getXialaList({
|
|
|
+ // removeRepeatFlag: 2,
|
|
|
+ // })
|
|
|
+ // .toPromise()
|
|
|
+ // .then((response) => {
|
|
|
+ // this.costNameList = response
|
|
|
+ // })
|
|
|
+ // //未分配金额
|
|
|
+ // getXialaList({
|
|
|
+ // removeRepeatFlag: 3,
|
|
|
+ // })
|
|
|
+ // .toPromise()
|
|
|
+ // .then((response) => {
|
|
|
+ // this.moneyList = response
|
|
|
+ // })
|
|
|
+ //经办人
|
|
|
getXialaList({
|
|
|
- removeRepeatFlag: 2,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.costNameList = response
|
|
|
- })
|
|
|
- //未分配金额
|
|
|
- getXialaList({
|
|
|
- removeRepeatFlag: 3,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.moneyList = response
|
|
|
- })
|
|
|
- //经办人
|
|
|
- getXialaList({
|
|
|
removeRepeatFlag: 4,
|
|
|
})
|
|
|
.toPromise()
|
|
@@ -518,64 +555,64 @@ export default {
|
|
|
})
|
|
|
|
|
|
},
|
|
|
- querenbazheng(){
|
|
|
- if(this.addressUrl){
|
|
|
- this.currectdata.addressUrl=this.currectdata.addressUrl+','+this.addressUrl
|
|
|
- }
|
|
|
- this.currectdata.flag=7
|
|
|
- console.log(this.addressUrl,this.currectdata)
|
|
|
- editexenseinfo(this.currectdata)
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$message({
|
|
|
- message: '提交成功!',
|
|
|
- type: 'success',
|
|
|
+ querenbazheng() {
|
|
|
+ if (this.addressUrl) {
|
|
|
+ this.currectdata.addressUrl = this.currectdata.addressUrl + ',' + this.addressUrl
|
|
|
+ }
|
|
|
+ this.currectdata.flag = 7
|
|
|
+ console.log(this.addressUrl, this.currectdata)
|
|
|
+ editexenseinfo(this.currectdata)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message({
|
|
|
+ message: '提交成功!',
|
|
|
+ type: 'success',
|
|
|
+ })
|
|
|
+ this.dialogVisible = false
|
|
|
+ this.getList()
|
|
|
+ // this.$router.go(-1)
|
|
|
})
|
|
|
- this.dialogVisible=false
|
|
|
- this.getList()
|
|
|
- // this.$router.go(-1)
|
|
|
- })
|
|
|
},
|
|
|
- getList1(){
|
|
|
+ getList1() {
|
|
|
console.log(this.toExamineType)
|
|
|
- this.currentPage=1
|
|
|
+ this.currentPage = 1
|
|
|
this.getList()
|
|
|
},
|
|
|
onChange() {
|
|
|
- this.$refs.upload1
|
|
|
- .handleSaveBill()
|
|
|
- .then(async response => {
|
|
|
- this.addressUrl = response
|
|
|
- })
|
|
|
- .catch(res => {
|
|
|
- EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
- this.$refs.upload1.clearFiles()
|
|
|
- })
|
|
|
- },
|
|
|
- onChange1() {
|
|
|
- this.$refs.upload
|
|
|
- .handleSaveBill()
|
|
|
- .then(async (response) => {
|
|
|
- editfujian({addressUrl:response,id:this.id})
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.fujianshow = false
|
|
|
- this.$message.success('上传成功')
|
|
|
- this.getList()
|
|
|
- })
|
|
|
- })
|
|
|
- .catch((res) => {
|
|
|
- EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
- this.$refs.upload.clearFiles()
|
|
|
- })
|
|
|
- },
|
|
|
+ this.$refs.upload1
|
|
|
+ .handleSaveBill()
|
|
|
+ .then(async response => {
|
|
|
+ this.addressUrl = response
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
+ this.$refs.upload1.clearFiles()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ onChange1() {
|
|
|
+ this.$refs.upload
|
|
|
+ .handleSaveBill()
|
|
|
+ .then(async (response) => {
|
|
|
+ editfujian({ addressUrl: response, id: this.id })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.fujianshow = false
|
|
|
+ this.$message.success('上传成功')
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch((res) => {
|
|
|
+ EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
+ })
|
|
|
+ },
|
|
|
handlerecord(row) {
|
|
|
if (row.expensesType == 1) {
|
|
|
this.title1 = '收款审核记录'
|
|
|
} else {
|
|
|
this.title1 = '请款审核记录'
|
|
|
}
|
|
|
- this.statusdata=row
|
|
|
+ this.statusdata = row
|
|
|
getAuditRecord({ id: row.id, workflowId: row.workflowId })
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
@@ -594,8 +631,8 @@ export default {
|
|
|
this.id = row.id
|
|
|
|
|
|
// if (row.addressUrl) {
|
|
|
- this.appendixIdss = row.addressUrl
|
|
|
- this.fujianshow = true
|
|
|
+ this.appendixIdss = row.addressUrl
|
|
|
+ this.fujianshow = true
|
|
|
// } else {
|
|
|
// this.$message({
|
|
|
// message: '暂无附件查看!',
|
|
@@ -730,6 +767,9 @@ export default {
|
|
|
oilcost() {
|
|
|
this.$router.push({ name: 'oilcost' })
|
|
|
},
|
|
|
+ coalCost(){
|
|
|
+ this.$router.push({ name: 'coalCost' })
|
|
|
+ },
|
|
|
expenseedit(row) {
|
|
|
if (
|
|
|
localStorage.getItem('ws-pf_roleName') == '销售内勤' ||
|
|
@@ -760,9 +800,9 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- shoukuanqueren1(row){
|
|
|
- this.currectdata=row
|
|
|
- this.dialogVisible=true
|
|
|
+ shoukuanqueren1(row) {
|
|
|
+ this.currectdata = row
|
|
|
+ this.dialogVisible = true
|
|
|
},
|
|
|
aduit(row) {
|
|
|
if (row.taskId) {
|
|
@@ -785,7 +825,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
allotaduit(row) {
|
|
|
- var role=allRoles()
|
|
|
+ var role = allRoles()
|
|
|
if (role.roleName.indexOf('单证中心主任') != -1) {
|
|
|
localStorage.setItem(
|
|
|
'expenseqr',
|
|
@@ -810,9 +850,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
allot(row) {
|
|
|
+ var role = allRoles()
|
|
|
if (
|
|
|
- localStorage.getItem('ws-pf_roleName') == '销售内勤' ||
|
|
|
- localStorage.getItem('ws-pf_roleName') == '采购内勤'
|
|
|
+ role.roleName.indexOf('销售内勤') != -1||role.roleName.indexOf('采购内勤') != -1
|
|
|
) {
|
|
|
this.$router.push({ name: 'expenseallot', query: { id: row.id } })
|
|
|
} else {
|
|
@@ -860,14 +900,20 @@ export default {
|
|
|
}
|
|
|
this.startDate = year + '-' + month + '-' + strDate
|
|
|
this.endDate = year1 + '-' + month1 + '-' + strDate1
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.startDate = localStorage.getItem('startDate')
|
|
|
this.endDate = localStorage.getItem('endDate')
|
|
|
}
|
|
|
this.value = [this.startDate, this.endDate]
|
|
|
},
|
|
|
getList() {
|
|
|
- this.getfielfillingList()
|
|
|
+ if(this.flowTo == '中天昊元'){
|
|
|
+ this.flowFlag = 1
|
|
|
+ this.flowTo = ''
|
|
|
+ }else{
|
|
|
+ this.flowFlag = ''
|
|
|
+ }
|
|
|
+ // this.getfielfillingList()
|
|
|
getexenseinfo({
|
|
|
// warehouseType: 1,
|
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
@@ -876,18 +922,21 @@ export default {
|
|
|
startDate: localStorage.getItem('startDate'),
|
|
|
endDate: localStorage.getItem('endDate'),
|
|
|
searchKeyWord: this.searchKeyWord,
|
|
|
+ expenseName:this.expenseName,
|
|
|
currentPage: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
searchType: this.searchType,
|
|
|
expensesPurpose: this.expensesPurpose,
|
|
|
- costNo:this.costNo.length>0?this.costNo.toString():'',
|
|
|
- purpose:this.purpose.length>0?this.purpose.toString():'',
|
|
|
- expenseName:this.expenseName.length>0?this.expenseName.toString():'',
|
|
|
- unallocatedNumber:this.unallocatedAmount.length>0?this.unallocatedAmount.toString():'',
|
|
|
- agent:this.agent.length>0?this.agent.toString():'',
|
|
|
- flowTo:this.flowTo.length>0?this.flowTo.toString():'',
|
|
|
- warehouseName:this.warehouseName,
|
|
|
- toExamineType:this.toExamineType,
|
|
|
+ costNo: this.costNo.length > 0 ? this.costNo.toString() : '',
|
|
|
+ purpose: this.purpose.length > 0 ? this.purpose.toString() : '',
|
|
|
+ // expenseName: this.expenseName.length > 0 ? this.expenseName.toString() : '',
|
|
|
+ unallocatedNumber: this.unallocatedAmount.length > 0 ? this.unallocatedAmount.toString() : '',
|
|
|
+ agent: this.agent.length > 0 ? this.agent.toString() : '',
|
|
|
+ flowTo: this.flowTo,
|
|
|
+ flowFlag:this.flowFlag,
|
|
|
+ unallocatedAmount:this.unallocatedAmount,
|
|
|
+ warehouseName: this.warehouseName,
|
|
|
+ toExamineType: this.toExamineType,
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
@@ -928,7 +977,7 @@ export default {
|
|
|
},
|
|
|
pickerOptions() { },
|
|
|
find() {
|
|
|
- this.currentPage=1
|
|
|
+ this.currentPage = 1
|
|
|
this.getList()
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
@@ -1026,7 +1075,8 @@ export default {
|
|
|
.bg-right {
|
|
|
padding-top: 15px;
|
|
|
}
|
|
|
-.options_css{
|
|
|
- margin:0 5px;
|
|
|
+
|
|
|
+.options_css {
|
|
|
+ margin: 0 5px;
|
|
|
}
|
|
|
</style>
|