userCostManage.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791
  1. <template>
  2. <!-- ________________________________________融资企业用________________________________________________ -->
  3. <div class="app-container zap-main">
  4. <el-row class="zap-table-search">
  5. <el-row style="padding-top: 16px;">
  6. <right-toolbar
  7. class="zap-right-toolbar"
  8. :showSearch.sync="showSearch"
  9. @queryTable="getList"
  10. >收起</right-toolbar>
  11. <span class="zap-table-search__title">所选条件:</span>
  12. <div style="float: right;margin-right:1%">
  13. <el-button type="cyan" icon="el-icon-search" @click="handleQuery">搜索</el-button>
  14. <el-button icon="el-icon-refresh" @click="resetQuery" style="float: ;">重置</el-button>
  15. <column-setting
  16. class="zap-column-setting"
  17. :checkList="checkList"
  18. :tableList="tableList"
  19. :selfDom="selfDom"
  20. :tableId="tableId"
  21. ></column-setting>
  22. </div>
  23. <hr style="margin-top: 16px;" />
  24. <el-form
  25. :model="queryParams"
  26. ref="queryForm"
  27. :inline="true"
  28. v-show="showSearch"
  29. label-width="auto"
  30. >
  31. <!-- <el-form-item label="融资编号" prop="zfrNumber" size="large">
  32. <el-input
  33. maxlength="30"
  34. v-model="queryParams.zfrNumber"
  35. placeholder="请输入融资编号"
  36. clearable
  37. @keyup.enter.native="handleQuery"
  38. />
  39. </el-form-item>
  40. <el-form-item label="开立企业" prop="coreScyName" size="large">
  41. <el-input
  42. maxlength="30"
  43. v-model="queryParams.coreScyName"
  44. placeholder="请输入开立企业名称"
  45. clearable
  46. @keyup.enter.native="handleQuery"
  47. />
  48. </el-form-item> -->
  49. <el-form-item label="类型" prop="zciQuery" size="large">
  50. <el-select v-model="queryParams.zciQuery" clearable>
  51. <el-option
  52. v-for="dict in queryOptions"
  53. :key="dict.dictValue"
  54. :label="dict.dictLabel"
  55. :value="dict.dictValue"
  56. v-if="dict.dictValue == '02' && companyType != '02'"
  57. />
  58. <el-option
  59. v-for="dict in queryOptions"
  60. :key="dict.dictValue"
  61. :label="dict.dictLabel"
  62. :value="dict.dictValue"
  63. v-if="dict.dictValue != '02'"
  64. />
  65. </el-select>
  66. </el-form-item>
  67. <el-form-item prop="zciValue" v-if="this.queryParams.zciQuery" size="large">
  68. <el-input v-model="queryParams.zciValue" placeholder="请输入关键字模糊查询" clearable maxlength="25"/>
  69. </el-form-item>
  70. <el-form-item label="融资状态" prop="zfrStatus" size="large">
  71. <el-select v-model="queryParams.zfrStatus" placeholder="融资状态" clearable>
  72. <el-option
  73. v-for="dict in zfrStatusOptions"
  74. :key="dict.dictValue"
  75. :label="dict.dictLabel"
  76. :value="dict.dictValue"
  77. ></el-option>
  78. </el-select>
  79. </el-form-item>
  80. <el-form-item label="费用状态" prop="zciStatus" size="large">
  81. <el-select v-model="queryParams.zciStatus" placeholder="费用状态" clearable>
  82. <el-option
  83. v-for="dict in zciStatusOptions"
  84. :key="dict.dictValue"
  85. :label="dict.dictLabel"
  86. :value="dict.dictValue"
  87. ></el-option>
  88. </el-select>
  89. </el-form-item>
  90. <el-form-item label="发票状态" prop="zciInvoiceStatus" size="large">
  91. <el-select v-model="queryParams.zciInvoiceStatus" placeholder="发票状态" clearable>
  92. <el-option
  93. v-for="dict in zciInvoiceStatusOptions"
  94. :key="dict.dictValue"
  95. :label="dict.dictLabel"
  96. :value="dict.dictValue"
  97. ></el-option>
  98. </el-select>
  99. </el-form-item>
  100. <el-form-item label="创建时间" size="large">
  101. <el-date-picker
  102. v-model="dateRange"
  103. value-format="yyyy-MM-dd"
  104. type="daterange"
  105. range-separator="-"
  106. start-placeholder="开始日期"
  107. end-placeholder="结束日期"
  108. ></el-date-picker>
  109. </el-form-item>
  110. </el-form>
  111. </el-row>
  112. </el-row>
  113. <div class="zap-content zap-margin-top">
  114. <el-button
  115. type="warning"
  116. @click="handleExport"
  117. v-hasPermi="['service:cost:export']"
  118. :disabled="total == 0"
  119. >导出</el-button>
  120. </div>
  121. <el-row class="zap-form">
  122. <el-table v-loading="loading" :data="costList" stripe>
  123. <el-table-column label="序号" type="index" width="50" align="center">
  124. <template slot-scope="scope">
  125. <span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
  126. </template>
  127. </el-table-column>
  128. <el-table-column label="融资编号" align="center" prop="zfrNumber" v-if="uncheckList.zfrNumber" />
  129. <el-table-column
  130. label="开立企业"
  131. align="center"
  132. prop="coreScyName"
  133. v-if="uncheckList.coreScyName"
  134. show-overflow-tooltip
  135. />
  136. <el-table-column
  137. label="融资产品"
  138. align="center"
  139. prop="zfpName"
  140. v-if="uncheckList.zfpName"
  141. show-overflow-tooltip
  142. />
  143. <el-table-column
  144. label="融资金额"
  145. align="center"
  146. prop="zfrAmount"
  147. :formatter="moneyFormat"
  148. v-if="uncheckList.zfrAmount"
  149. show-overflow-tooltip
  150. />
  151. <el-table-column
  152. label="融资状态"
  153. align="center"
  154. prop="zfrStatus"
  155. :formatter="zfrStatusFormat"
  156. v-if="uncheckList.zfrStatus"
  157. show-overflow-tooltip
  158. />
  159. <el-table-column
  160. label="费用状态"
  161. align="center"
  162. prop="zciStatus"
  163. :formatter="zciStatusFormat"
  164. v-if="uncheckList.zciStatus"
  165. show-overflow-tooltip
  166. />
  167. <el-table-column
  168. label="创建时间"
  169. align="center"
  170. prop="createTime"
  171. v-if="uncheckList.createTime"
  172. show-overflow-tooltip
  173. />
  174. <el-table-column
  175. label="手续费"
  176. align="center"
  177. prop="zciAmount"
  178. :formatter="moneyFormat"
  179. v-if="uncheckList.zciAmount "
  180. show-overflow-tooltip
  181. />
  182. <el-table-column
  183. label="发票状态"
  184. align="center"
  185. prop="zciInvoiceStatus"
  186. :formatter="zciInvoiceStatusFormat"
  187. v-if="uncheckList.zciInvoiceStatus"
  188. show-overflow-tooltip
  189. />
  190. <el-table-column
  191. label="快递单号"
  192. align="center"
  193. prop="zciExpressNo"
  194. v-if="uncheckList.zciExpressNo"
  195. show-overflow-tooltip
  196. />
  197. <el-table-column
  198. label="操作"
  199. align="center"
  200. class-name="small-padding fixed-width"
  201. width="150"
  202. >
  203. <template slot-scope="scope">
  204. <el-button
  205. v-if="scope.row.zciInvoiceStatus == '2' || scope.row.zciInvoiceStatus == '4'"
  206. size="mini"
  207. type="text"
  208. @click="handleUpdate(scope.row)"
  209. v-hasPermi="['service:cost:update']"
  210. >发票</el-button>
  211. <el-button
  212. v-if="scope.row.zfrStatus != '02' && (scope.row.zciStatus == '00' || scope.row.zciStatus == '05')"
  213. size="mini"
  214. type="text"
  215. @click="handlePay(scope.row)"
  216. v-hasPermi="['service:cost:pay']"
  217. >去缴费</el-button>
  218. <el-button
  219. v-if="scope.row.zciStatus == '02' && (scope.row.zfrStatus == '01' || scope.row.zfrStatus == '03') && scope.row.zciInvoiceStatus == '0'"
  220. size="mini"
  221. type="text"
  222. @click="handleApply(scope.row)"
  223. v-hasPermi="['service:cost:apply']"
  224. >申请开票</el-button>
  225. </template>
  226. </el-table-column>
  227. </el-table>
  228. </el-row>
  229. <pagination
  230. v-show="total > 0"
  231. :total="total"
  232. :page.sync="queryParams.pageNum"
  233. :limit.sync="queryParams.pageSize"
  234. @pagination="getList"
  235. />
  236. <!-- 发票框 -->
  237. <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
  238. <el-form ref="form" :model="form" label-width="140px" :inline="true">
  239. <el-form-item label="企业名称" prop="scyName">
  240. <el-input v-model="form.scyName" disabled />
  241. </el-form-item>
  242. <el-form-item label="企业统一代码" prop="scySocialCode">
  243. <el-input v-model="form.scySocialCode" disabled />
  244. </el-form-item>
  245. <el-form-item label="企业注册电话" prop="scyPhone">
  246. <el-input v-model="form.scyPhone" disabled />
  247. </el-form-item>
  248. <el-form-item label="收件人" prop="ziaContacts">
  249. <el-input v-model="form.ziaContacts" disabled />
  250. </el-form-item>
  251. <el-form-item label="收件人电话" prop="ziaContactsPhone">
  252. <el-input v-model="form.ziaContactsPhone" disabled />
  253. </el-form-item>
  254. <el-form-item label="邮寄地址" prop="ziaAddress">
  255. <el-input v-model="form.ziaAddress" disabled />
  256. </el-form-item>
  257. <el-form-item label="快递单号" prop="zciExpressNo">
  258. <el-input v-model="form.zciExpressNo" disabled />
  259. </el-form-item>
  260. </el-form>
  261. <div slot="footer" class="dialog-footer">
  262. <el-button @click="cancel">取 消</el-button>
  263. </div>
  264. </el-dialog>
  265. <!-- 申请开票框 -->
  266. <el-dialog :title="titleApply" :visible.sync="openApply" width="800px" append-to-body>
  267. <el-form
  268. ref="formApply"
  269. :model="formApply"
  270. :rules="rulesApply"
  271. label-width="140px"
  272. :inline="true"
  273. >
  274. <el-form-item label="企业名称" prop="scyName">
  275. <el-input v-model="formApply.scyName" disabled />
  276. </el-form-item>
  277. <el-form-item label="企业统一代码" prop="scySocialCode">
  278. <el-input v-model="formApply.scySocialCode" disabled />
  279. </el-form-item>
  280. <el-form-item label="企业注册电话" prop="scyPhone">
  281. <el-input v-model="formApply.scyPhone" disabled />
  282. </el-form-item>
  283. <el-form-item label="收件人" prop="ziaContacts">
  284. <el-input
  285. v-model="formApply.ziaContacts"
  286. placeholder="请输入收件人"
  287. maxlength="20"
  288. show-word-limit
  289. />
  290. </el-form-item>
  291. <el-form-item label="收件人电话" prop="ziaContactsPhone">
  292. <el-input
  293. v-model="formApply.ziaContactsPhone"
  294. placeholder="请输入收件人电话"
  295. maxlength="11"
  296. show-word-limit
  297. />
  298. </el-form-item>
  299. <el-form-item label="邮寄地址" prop="ziaAddress">
  300. <el-input
  301. v-model="formApply.ziaAddress"
  302. placeholder="请输入邮寄地址"
  303. maxlength="30"
  304. show-word-limit
  305. />
  306. </el-form-item>
  307. </el-form>
  308. <div slot="footer" class="dialog-footer">
  309. <el-button type="primary" @click="submitForm">确 定</el-button>
  310. <el-button @click="cancel">取 消</el-button>
  311. </div>
  312. </el-dialog>
  313. </div>
  314. </template>
  315. <script>
  316. import {
  317. listCost,
  318. listInvoice,
  319. selectInvoiceList,
  320. applyInvoice,
  321. invoicing,
  322. daleteInvoice,
  323. getUser,
  324. changeZfiStatus
  325. } from "@/api/service/cost/costManage";
  326. import { uploadFileNew } from "@/api/common/file";
  327. import { getToken } from "@/utils/auth";
  328. import { columnQuery, columnfilter } from "@/api/common/columnSetting";
  329. import ColumnSetting from "../../../components/Table/columnSetting.vue";
  330. import { balance,transfer } from "@/api/bank/bankInterface";
  331. export default {
  332. name: "userCostManage",
  333. components: {
  334. ColumnSetting
  335. },
  336. data() {
  337. return {
  338. //企业类型
  339. companyType: null,
  340. //费用列表
  341. costList: [],
  342. //创建时间范围
  343. dateRange: [],
  344. //费用状态
  345. zciStatusOptions: [],
  346. //发票状态
  347. zciInvoiceStatusOptions: [],
  348. //融资状态
  349. zfrStatusOptions: [],
  350. //筛选条件
  351. queryOptions: [],
  352. //操作员Id
  353. userId: "",
  354. // 遮罩层
  355. loading: true,
  356. // 选中数组
  357. ids: [],
  358. // 非多个禁用
  359. multiple: true,
  360. // 显示搜索条件
  361. showSearch: true,
  362. // 总条数
  363. // 弹出层标题
  364. title: "",
  365. openInvoiceTitle: "",
  366. titleApply: "",
  367. total: 0,
  368. // 是否显示弹出层
  369. open: false,
  370. openInvoice: false,
  371. openApply: false,
  372. // 链属查询参数
  373. queryParams: {
  374. pageNum: 1,
  375. pageSize: 10,
  376. zfrNumber: null,
  377. coreScyName: null,
  378. zciStatus: null,
  379. zfrStatus: null,
  380. zciInvoiceStatus: null,
  381. zciQuery: null,
  382. zciValue: null
  383. },
  384. //筛选按钮的数据列表,与table表头的数据一致 --显示隐藏列用
  385. tableList: [
  386. {
  387. label: "zfrNumber",
  388. value: "融资编号"
  389. },
  390. {
  391. label: "supScyName",
  392. value: "融资企业"
  393. },
  394. {
  395. label: "coreScyName",
  396. value: "开立企业"
  397. },
  398. {
  399. label: "zfpName",
  400. value: "融资产品"
  401. },
  402. {
  403. label: "zfrAmount",
  404. value: "融资金额"
  405. },
  406. {
  407. label: "zciStatus",
  408. value: "费用状态"
  409. },
  410. {
  411. label: "zfrStatus",
  412. value: "融资状态"
  413. },
  414. {
  415. label: "createTime",
  416. value: "创建时间"
  417. },
  418. {
  419. label: "zciAmount",
  420. value: "手续费"
  421. },
  422. {
  423. label: "zciInvoiceStatus",
  424. value: "发票状态"
  425. },
  426. {
  427. label: "zciExpressNo",
  428. value: "快递单号"
  429. }
  430. ],
  431. checkList: [], //筛选列选中的数据列表--显示隐藏列用
  432. uncheckList: {}, //控制筛选列显示隐藏--显示隐藏列用
  433. selfDom: this,
  434. tableId: "/sc-service/cost/list",
  435. // 表单参数
  436. form: {
  437. zciId: null,
  438. scyId: null,
  439. scyName: null,
  440. scySocialCode: null,
  441. scyPhone: null,
  442. ziaContacts: null,
  443. ziaContactsPhone: null,
  444. ziaAddress: null,
  445. zciExpressNo: null,
  446. zciInvoiceStatus: null
  447. },
  448. formApply: {
  449. zciId: null,
  450. scyId: null,
  451. scyName: null,
  452. scySocialCode: null,
  453. scyPhone: null,
  454. ziaContacts: null,
  455. ziaContactsPhone: null,
  456. ziaAddress: null,
  457. zciExpressNo: null,
  458. zciInvoiceStatus: null
  459. },
  460. // 表单校验
  461. rulesApply: {
  462. ziaContacts: [
  463. { required: true, message: "收件人不能为空", trigger: "blur" }
  464. ],
  465. ziaContactsPhone: [
  466. { required: true, message: "收件人电话不能为空", trigger: "blur" },
  467. {
  468. pattern: /^((\d{3}-\d{7,8}|\d{4}-\d{7,8})|(1[3465789]\d{9}))$/,
  469. message: "电话格式不正确",
  470. trigger: "blur"
  471. }
  472. ],
  473. ziaAddress: [
  474. { required: true, message: "邮寄地址不能为空", trigger: "blur" }
  475. ]
  476. }
  477. };
  478. },
  479. created() {
  480. this.getDicts("ser_zci_status").then(response => {
  481. this.zciStatusOptions = response.data;
  482. });
  483. this.getDicts(" ser_zci_invoice_status").then(response => {
  484. this.zciInvoiceStatusOptions = response.data;
  485. });
  486. this.getDicts(" ser_zfr_status").then(response => {
  487. this.zfrStatusOptions = response.data;
  488. });
  489. this.getDicts(" zc_zci_query").then(response => {
  490. this.queryOptions = response.data;
  491. });
  492. this.getUser();
  493. this.getList();
  494. },
  495. activated() {
  496. this.getDicts("ser_zci_status").then(response => {
  497. this.zciStatusOptions = response.data;
  498. });
  499. this.getDicts(" ser_zci_invoice_status").then(response => {
  500. this.zciInvoiceStatusOptions = response.data;
  501. });
  502. this.getDicts(" ser_zfr_status").then(response => {
  503. this.zfrStatusOptions = response.data;
  504. });
  505. this.getUser();
  506. this.getList();
  507. },
  508. mounted() {
  509. this.columnQuery();
  510. },
  511. methods: {
  512. //列表格式化金额
  513. moneyFormat(row, column, cellValue) {
  514. if (cellValue == null || cellValue == undefined || cellValue == "") {
  515. cellValue = "0.00";
  516. }
  517. cellValue += "";
  518. if (!cellValue.includes(".")) {
  519. cellValue += ".00";
  520. }
  521. return cellValue
  522. .replace(/(\d)(?=(\d{3})+\.)/g, function($0, $1) {
  523. return $1 + ",";
  524. })
  525. .replace(/\.$/, "");
  526. },
  527. //获取当前客户是否之前设置过列展示隐藏
  528. columnQuery() {
  529. //获取页面路径
  530. var psfPagePath = window.location.pathname;
  531. //用请求后台的url作为唯一标识
  532. var psfTableName = this.tableId;
  533. var columnForm = {};
  534. columnForm.psfPagePath = psfPagePath;
  535. columnForm.psfTableName = psfTableName;
  536. columnQuery(columnForm).then(response => {
  537. if (response.data && response.data.psfShowData) {
  538. this.checkList = response.data.psfShowData;
  539. }
  540. this.filter();
  541. });
  542. },
  543. //控制隐藏显示的函数
  544. filter(checkList) {
  545. if (!!checkList) {
  546. this.checkList = checkList;
  547. }
  548. columnfilter(this.selfDom);
  549. },
  550. //菜单状态字典翻译
  551. zciStatusFormat(row, column) {
  552. return this.selectDictLabel(this.zciStatusOptions, row.zciStatus);
  553. },
  554. zciInvoiceStatusFormat(row, column) {
  555. return this.selectDictLabel(
  556. this.zciInvoiceStatusOptions,
  557. row.zciInvoiceStatus
  558. );
  559. },
  560. zfrStatusFormat(row, column) {
  561. return this.selectDictLabel(this.zfrStatusOptions, row.zfrStatus);
  562. },
  563. /** 查询链属列表 */
  564. getList() {
  565. this.loading = true;
  566. listCost(this.addDateRange(this.queryParams, this.dateRange)).then(
  567. response => {
  568. this.costList = response.data.records;
  569. this.total = response.data.total;
  570. this.loading = false;
  571. }
  572. );
  573. },
  574. // 取消按钮
  575. cancel() {
  576. this.open = false;
  577. this.openApply = false;
  578. this.reset();
  579. },
  580. // 表单重置
  581. reset() {
  582. this.resetForm("form");
  583. },
  584. /** 搜索按钮操作 */
  585. handleQuery() {
  586. this.queryParams.pageNum = 1;
  587. this.getList();
  588. },
  589. /** 重置按钮操作 */
  590. resetQuery() {
  591. this.resetForm("queryForm");
  592. this.dateRange = [];
  593. this.handleQuery();
  594. },
  595. /** 发票按钮操作 */
  596. handleUpdate(row) {
  597. this.reset();
  598. if (row.zciId) {
  599. } else {
  600. this.$message({
  601. type: "warning",
  602. message: "无费用数据"
  603. });
  604. return;
  605. }
  606. if (row.zfiSupplierId) {
  607. } else {
  608. this.$message({
  609. type: "warning",
  610. message: "无融资企业信息"
  611. });
  612. return;
  613. }
  614. const zciId = row.zciId || this.ids;
  615. const scyId = row.zfiSupplierId || this.ids;
  616. listInvoice(scyId, zciId).then(response => {
  617. this.form = response.data[0];
  618. this.form.zciId = zciId;
  619. });
  620. this.open = true;
  621. this.title = "发票信息";
  622. },
  623. /** 发票按钮操作 */
  624. handleApply(row) {
  625. this.reset();
  626. if (row.zciId) {
  627. } else {
  628. this.$message({
  629. type: "warning",
  630. message: "无费用数据"
  631. });
  632. return;
  633. }
  634. if (row.zfiSupplierId) {
  635. } else {
  636. this.$message({
  637. type: "warning",
  638. message: "无融资企业信息"
  639. });
  640. return;
  641. }
  642. const zciId = row.zciId || this.ids;
  643. const scyId = row.zfiSupplierId || this.ids;
  644. listInvoice(scyId, zciId).then(response => {
  645. this.formApply = response.data[0];
  646. this.formApply.zciId = zciId;
  647. });
  648. this.openApply = true;
  649. this.titleApply = "申请开票信息";
  650. },
  651. //去缴费
  652. handlePay(row) {
  653. debugger
  654. var self = this;
  655. const zciId = row.zciId || this.ids;
  656. const maney = row.zciAmount;
  657. this.$confirm('您需缴纳手续费"' + maney + '"元', {
  658. confirmButtonText: "确定",
  659. cancelButtonText: "取消"
  660. })
  661. .then(function() {
  662. const loading = self.$loading({
  663. lock: true,
  664. text: "Loading",
  665. spinner: "el-icon-loading",
  666. background: "rgba(0, 0, 0, 0.7)",
  667. });
  668. // self.paiAccno = '3115730025230000214';
  669. if(row.accNo){
  670. balance(row.accNo).then(response => {
  671. if(eval(row.zciAmount) > eval(response.data.list.row.KYAMT)){
  672. self.$message({
  673. message: '余额为'+response.data.list.row.KYAMT+'不足以抵扣本次缴费费用,请及时充值',
  674. type: 'warning'
  675. });
  676. loading.close();
  677. }else{
  678. if(row.zfrStatus == '01' || row.zfrStatus == '03'){
  679. var map = {'recvAccNo':'','recvAccNm':'','tranAmt':row.zciAmount,'businessId':row.zciId,'type':'01'}
  680. transfer(map).then(response => {
  681. loading.close();
  682. self.msgSuccess("缴费成功");
  683. return changeZfiStatus(zciId);
  684. }).catch(() => {
  685. loading.close();
  686. });
  687. }else{
  688. var map = {'recvAccNo':'','recvAccNm':'','tranAmt':row.zciAmount,'businessId':row.zciId,'type':'00'}
  689. transfer(map).then(response => {
  690. loading.close();
  691. self.msgSuccess("缴费成功");
  692. return changeZfiStatus(zciId);
  693. }).catch(() => {
  694. loading.close();
  695. });
  696. }
  697. }
  698. }).catch(() => {
  699. loading.close();
  700. });
  701. }else{
  702. self.$message({
  703. message: '您还没有电子账户,请联系平台开通电子账户',
  704. type: 'warning'
  705. });
  706. loading.close();
  707. }
  708. })
  709. // .then(() => {
  710. // this.getList();
  711. // this.msgSuccess("缴费成功");
  712. // })
  713. // .catch(() => {
  714. // this.$message({
  715. // type: "warning",
  716. // message: "已取消缴费"
  717. // });
  718. // });
  719. },
  720. /** 提交按钮 */
  721. submitForm() {
  722. var self = this;
  723. this.$refs["formApply"].validate(valid => {
  724. let fd = new FormData();
  725. for (var key in self.formApply) {
  726. fd.append(key, self.formApply[key]);
  727. }
  728. if (valid) {
  729. if (this.formApply.scyId != null) {
  730. const loading = this.$loading({
  731. lock: true,
  732. text: "Loading",
  733. spinner: "el-icon-loading",
  734. background: "rgba(0, 0, 0, 0.7)"
  735. });
  736. applyInvoice(self.formApply)
  737. .then(response => {
  738. this.msgSuccess("申请成功");
  739. loading.close();
  740. this.openApply = false;
  741. this.getList();
  742. })
  743. .catch(response => {
  744. loading.close();
  745. });
  746. }
  747. }
  748. });
  749. },
  750. /** 导出按钮操作 */
  751. handleExport() {
  752. // this.getList();
  753. const loading = this.$loading({
  754. lock: true,
  755. text: "Loading",
  756. spinner: "el-icon-loading",
  757. background: "rgba(0, 0, 0, 0.7)"
  758. });
  759. this.download(
  760. "/sc-service/cost/export",
  761. {
  762. ...this.queryParams,
  763. ...this.dateRange
  764. },
  765. "费用信息.xlsx"
  766. );
  767. setTimeout(() => {
  768. loading.close();
  769. }, 2000);
  770. },
  771. //获取操作员Id
  772. getUser() {
  773. getUser().then(response => {
  774. this.userId = response.data.userId;
  775. this.companyType = response.data.scyType
  776. });
  777. }
  778. }
  779. };
  780. </script>