移动端
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

2001 líneas
84 KiB

  1. <template>
  2. <div class="app-container">
  3. <van-nav-bar
  4. left-arrow
  5. fixed
  6. placeholder
  7. @click-left="goBack"
  8. >
  9. <template #title>
  10. <p style="font-weight: bold;">添加银行卡转账申请</p>
  11. </template>
  12. <template #right>
  13. <van-icon name="../../../static/images/icon/icon_flow.png" size="20" @click="goFlow"/>
  14. </template>
  15. </van-nav-bar>
  16. <van-form @submit="getChange" @failed="getError" :show-error-message="false" scroll-to-error validate-first>
  17. <p class="main_title">基础信息</p>
  18. <div class="main_box">
  19. <van-field
  20. readonly
  21. clickable
  22. required
  23. :rules="[{ required: true , message:'请选择申请时间' }]"
  24. v-model="form.applyDate"
  25. label="申请时间"
  26. placeholder="请选择申请时间"
  27. @click="showlasj = true"
  28. input-align="right"
  29. right-icon="arrow-down"
  30. />
  31. <van-popup v-model="showlasj" position="bottom">
  32. <van-datetime-picker
  33. v-model="currentDate"
  34. type="date"
  35. title="选择年月日"
  36. :min-date="minDate"
  37. :max-date="maxDate"
  38. @confirm="onConfirmLasj"
  39. @cancel="showlasj = false"
  40. />
  41. </van-popup>
  42. <van-field
  43. readonly
  44. clickable
  45. required
  46. :rules="[{ required: true , message:'请选择资金支出类别' }]"
  47. label="资金支出类别"
  48. placeholder="请选择"
  49. v-model="capitalExpenditureType"
  50. @click="showcapital = true"
  51. input-align="right"
  52. right-icon="arrow-down"
  53. label-width="auto"
  54. />
  55. <van-popup v-model="showcapital" position="bottom">
  56. <van-picker
  57. show-toolbar
  58. :columns="capitalExpenditureTypeOptions"
  59. @confirm="onConfirmCapital"
  60. @cancel="showcapital = false"
  61. />
  62. </van-popup>
  63. <van-field name="radio" label="审批模式" input-align="right" autocomplete="off" required
  64. :rules="[{ required: true , message:'请选择审批模式' }]">
  65. <template #input>
  66. <van-radio-group v-model="form.approvalMode" direction="horizontal">
  67. <van-radio name="1">线上审批</van-radio>
  68. <van-radio name="2">线下审批</van-radio>
  69. </van-radio-group>
  70. </template>
  71. </van-field>
  72. <van-field
  73. v-if="form.approvalMode==1"
  74. readonly
  75. clickable
  76. label="审批流程"
  77. placeholder="请选择"
  78. v-model="form.approvalTemplateName"
  79. @click="showtemplate = true"
  80. input-align="right"
  81. right-icon="arrow-down"
  82. required
  83. :rules="[{ required: true , message:'请选择项目流程' }]"
  84. />
  85. <van-popup v-model="showtemplate" position="bottom">
  86. <van-picker
  87. show-toolbar
  88. value-key="name"
  89. :columns="templateList"
  90. @confirm="onConfirmTemplate"
  91. @cancel="showtemplate = false"
  92. />
  93. </van-popup>
  94. <van-field
  95. readonly
  96. required
  97. label="支出总金额"
  98. v-model="form.expenditureAmount"
  99. placeholder="根据下方收款金额自动核算"
  100. input-align="right"
  101. label-width="auto"
  102. />
  103. </div>
  104. <div class="main_box" style="margin-top: 10px;">
  105. <van-field
  106. label="转账附言"
  107. v-model="form.remark"
  108. type="textarea"
  109. placeholder="请输入转账附言"
  110. input-align="right"
  111. rows="3"
  112. label-width="auto"
  113. required
  114. :rules="[{ required: true , message:'请输入转账附言' }]"
  115. />
  116. </div>
  117. <div class="main_box" style="margin-top: 10px;">
  118. <van-field label="说明情况" v-model="form.explainSituation" type="textarea" placeholder="请输入说明情况" input-align="right" rows="3" label-width="auto"/>
  119. </div>
  120. <p class="main_title" v-if="capitalExpenditureOpen">关联项目</p>
  121. <div class="main_box" v-if="capitalExpenditureOpen" style="margin-bottom: 10px;margin-top: 10px;position:relative;">
  122. <van-field
  123. readonly
  124. clickable
  125. label="项目名称"
  126. placeholder="请选择"
  127. v-model="projectForm.projectName"
  128. @click="showproject = true"
  129. input-align="right"
  130. right-icon="arrow-down"
  131. required
  132. :rules="[{ required: true , message:'请选择项目名称' }]"
  133. />
  134. <van-popup v-model="showproject" position="bottom">
  135. <van-picker
  136. show-toolbar
  137. :columns="projectList"
  138. @confirm="onConfirmProject"
  139. @cancel="showproject = false"
  140. />
  141. </van-popup>
  142. <van-field required :rules="[{ required: true , message:'请输入承建单位' }]" v-model="projectForm.projectContractor" label="承建单位" placeholder="请输入承建单位" input-align="right" label-width="auto"/>
  143. <van-field required :rules="[{ required: true , message:'请输入合同价款' }]" v-model="projectForm.projectAmount" label="合同价款(元)" placeholder="请输入合同价款(元)" input-align="right" label-width="auto"/>
  144. <van-field
  145. readonly
  146. clickable
  147. label="工程款类型"
  148. placeholder="请选择"
  149. v-model="projectFundType"
  150. @click="showFundType = true"
  151. input-align="right"
  152. right-icon="arrow-down"
  153. required
  154. :rules="[{ required: true , message:'请选择工程款类型' }]"
  155. />
  156. <van-popup v-model="showFundType" position="bottom">
  157. <van-picker
  158. show-toolbar
  159. :columns="projectFundTypeOptions"
  160. @confirm="onConfirmFundType"
  161. @cancel="showFundType = false"
  162. />
  163. </van-popup>
  164. <van-field required :rules="[{ required: true , message:'请输入工程发票号' }]" v-model="projectForm.projectBillNum" label="工程发票号" placeholder="请输入工程发票号" input-align="right" label-width="auto"/>
  165. </div>
  166. <p class="main_title" v-if="contractOpen">关联合同</p>
  167. <div class="main_box" v-if="contractOpen" style="margin-bottom: 10px;margin-top: 10px;position:relative;">
  168. <van-field
  169. readonly
  170. clickable
  171. label="合同"
  172. placeholder="请选择"
  173. v-model="infoForm.name"
  174. @click="showcontract = true"
  175. input-align="right"
  176. right-icon="arrow-down"
  177. required
  178. :rules="[{ required: true , message:'请选择项目名称' }]"
  179. />
  180. <van-popup v-model="showcontract" position="bottom">
  181. <van-picker
  182. show-toolbar
  183. :columns="infoList"
  184. @confirm="onConfirmContract"
  185. @cancel="showcontract = false"
  186. />
  187. </van-popup>
  188. <van-field required :rules="[{ required: true , message:'请输入合同编码' }]" v-model="infoForm.code" label="合同编码" placeholder="请输入合同编码" input-align="right" label-width="auto"/>
  189. <van-field required :rules="[{ required: true , message:'请输入合同价款' }]" v-model="infoForm.totalAmount" label="合同价款(元)" placeholder="请输入合同价款(元)" input-align="right" label-width="auto"/>
  190. </div>
  191. <p class="main_title">付款方信息</p>
  192. <div class="main_box">
  193. <!-- <van-field label="付款方" v-model="form.payer" placeholder="请输入付款方" input-align="right" label-width="auto"/>-->
  194. <van-field
  195. readonly
  196. clickable
  197. label="付款方"
  198. placeholder="请选择付款方"
  199. v-model="form.payer"
  200. @click="showpayer = true"
  201. input-align="right"
  202. right-icon="arrow-down"
  203. label-width="auto"
  204. required
  205. :rules="[{ required: true , message:'请选择付款方' }]"
  206. />
  207. <van-popup v-model="showpayer" position="bottom">
  208. <van-picker
  209. show-toolbar
  210. :columns="payerOptions"
  211. @confirm="onConfirmPayer($event)"
  212. @cancel="showpayer = false"
  213. />
  214. </van-popup>
  215. <van-field :rules="[{ required: true , message:'请输入付款方账户' }]" required label="付款方账户" v-model="form.payerAccount" placeholder="请输入账户" input-align="right" label-width="auto"/>
  216. </div>
  217. <div class="main_title main_title_box">
  218. <p>收款方信息</p>
  219. <router-link :to="{name:'approvalCollectionAdd', params: {accountType:form.accountType,isPeers:form.isPeers,bankType:form.bankType,option:form}}">添加收款方</router-link>
  220. <van-button icon="plus" @click="addChargeItme(chargeItme.length)" size="mini" type="info" native-type="button" class="addFamily"/>
  221. </div>
  222. <div class="main_box" style="margin-bottom: 15px;" v-if="form.bankType==1||form.bankType==2||form.bankType==3||form.bankType==4">
  223. <van-cell title="收款账户类型" v-if="form.bankType==1">
  224. <template #right-icon>
  225. <van-radio-group direction="horizontal" v-model="form.accountType" @change="accountTypeChange" >
  226. <van-radio name="1">公户</van-radio>
  227. <van-radio name="2">私户</van-radio>
  228. </van-radio-group>
  229. </template>
  230. </van-cell>
  231. <van-cell title="是否与付款方同行" v-if="form.bankType==2||form.bankType==3||form.bankType==4" >
  232. <template #right-icon>
  233. <van-radio-group direction="horizontal" v-model="form.isPeers" @change="accountTypeChange1">
  234. <van-radio name="Y">是</van-radio>
  235. <van-radio name="N">否</van-radio>
  236. </van-radio-group>
  237. </template>
  238. </van-cell>
  239. </div>
  240. <div :style="{position:'relative',padding: index == 0 ? '':'10px 0 0 0'}" v-for="(item, index) in chargeItme" :key="index">
  241. <van-button icon="minus" size="mini" type="danger" class="deleteFamily" native-type="button" v-if="index!=0" @click="deleteChargeItme(index)" />
  242. <div class="main_box" style="margin-bottom: 10px;position:relative;">
  243. <van-field
  244. readonly
  245. clickable
  246. label="收款方"
  247. placeholder="请选择"
  248. v-model="item.payee"
  249. @click="item.showPayee = true"
  250. input-align="right"
  251. right-icon="arrow-down"
  252. required
  253. :rules="[{ required: true , message:'请选择收款方' }]"
  254. />
  255. <van-popup v-model="item.showPayee" position="bottom">
  256. <van-picker
  257. show-toolbar
  258. :columns="payeeList"
  259. @confirm="onConfirmPayee($event,index)"
  260. @cancel="item.showPayee = false"
  261. />
  262. </van-popup>
  263. <van-field required :rules="[{ required: true , message:'请输入账户' }]" v-model="item.payeeAccount" label="收款账户" placeholder="请输入账户" input-align="right" label-width="auto"/>
  264. <van-field required :rules="[{ required: true , message:'请输入开户银行' }]" v-model="item.bankDeposit" label="开户银行" placeholder="请输入开户银行银行" input-align="right" label-width="auto"/>
  265. <van-field required :rules="[{ required: true , message:'请输入金额' }]" v-model="item.incomeAmount" type="number" label="收入金额" placeholder="请输入金额" input-align="right" label-width="auto" @change="moneyChange"/>
  266. <van-field
  267. readonly
  268. clickable
  269. label="所属银行"
  270. placeholder=""
  271. v-model="item.bankTypeText"
  272. input-align="right"
  273. placeholder="请输入所属银行"
  274. required
  275. :rules="[{ required: true , message:'请选择所属银行' }]"
  276. />
  277. <!--<van-popup v-model="item.showbankType" position="bottom">
  278. <van-picker
  279. show-toolbar
  280. :columns="bankTypeDictionaries"
  281. @confirm="onConfirmBankType($event,index)"
  282. @cancel="item.showbankType = false"
  283. />
  284. </van-popup>-->
  285. </div>
  286. </div>
  287. <p class="main_title">上传附件</p>
  288. <div class="main_box" style="padding: 5px 0 0 0;">
  289. <van-cell value="收据" />
  290. <van-uploader v-model="fileList1" :after-read="beforeRead1" @delete="deleteFile1" style="margin-left:8px;"></van-uploader>
  291. <van-cell title="发票" />
  292. <van-uploader v-model="fileList2" :after-read="beforeRead2" @delete="deleteFile2" style="margin-left:8px;"></van-uploader>
  293. <van-cell title="其他" />
  294. <van-uploader v-model="fileList3" :after-read="beforeRead3" @delete="deleteFile3" style="margin-left:8px;"></van-uploader>
  295. </div>
  296. <div style="padding: 16px 0;">
  297. <van-row>
  298. <van-col span="12" align="center">
  299. <!-- @click="goUpdate"-->
  300. <van-button type="info" native-type="submit" @click="buttonType='update'" class="submitButton">保<i style="margin-right: 1em;"></i>存</van-button>
  301. </van-col>
  302. <van-col span="12" align="center">
  303. <!-- @click="goAdd"-->
  304. <van-button type="info" native-type="submit" @click="buttonType='add'" class="submitButton">保存并提交</van-button>
  305. </van-col>
  306. </van-row>
  307. <div class="clear"></div>
  308. </div>
  309. </van-form>
  310. </div>
  311. </template>
  312. <script>
  313. import { addTransfer , listPayee , updateTransfer , getProjectto , listProject , addProjectto ,selectApprovalByTemplateId,
  314. customSubmit ,offlineCustomSubmit, getAccount ,getQmyeFlow , attach ,listInfo ,getInfoto ,addInfoto,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
  315. import request from '@/utils/request'
  316. import {attachmentList, commonAttach} from "../../../../api/onlineHome/bankAgriculture/paymentApproval";
  317. import Dialog from "vant/lib/dialog";
  318. export default {
  319. name: "approvalAdd",
  320. data() {
  321. return {
  322. showtemplate:false,
  323. showcontract:false,
  324. showcapital:false,
  325. showpayee:false,
  326. showlasj:false,
  327. showbankType:false,
  328. showproject:false,
  329. showFundType:false,
  330. showpayer:false,
  331. buttonType:'a',
  332. minDate: new Date(2000, 1, 1),
  333. maxDate: new Date(2050, 12, 31),
  334. currentDate: new Date(),
  335. form:{
  336. id: null,
  337. upId: null,
  338. applyDate:this.nowDate,
  339. approvalMode:'1',
  340. downId: null,
  341. orderId: null,
  342. cashierId: null,
  343. transferType: '1',
  344. accountType: null,
  345. isPeers:null,
  346. explainSituation: null,
  347. succeedAmount: null,
  348. payer: null,
  349. payerAccount: null,
  350. operatorCode: null,
  351. enterpriseCode: null,
  352. expenditureAmount: null,
  353. capitalExpenditureType: '1',
  354. remark: null,
  355. transferStatus: "0",
  356. auditStatus: "0",
  357. paymentState: "1",
  358. bankPriority: "0",
  359. clientPriority: "0"
  360. },
  361. fileList1:[],
  362. fileList2:[],
  363. fileList3:[],
  364. capitalExpenditureType:'',
  365. payee:'',
  366. bankType:'',
  367. wfydlxDictionaries:[],
  368. jglxDictionaries:[],
  369. sysDictionaries:[],
  370. capitalExpenditureTypeOptions:[],
  371. bankTypeDictionaries:[],
  372. projectList:[],
  373. projectFundTypeOptions:[],
  374. projectFundTypeDictionaries:[],
  375. infoList:[],
  376. payerOptions:[],
  377. chargeItme:[],
  378. chargeItmeShow:[],
  379. templateList:[],
  380. payeeList:[],
  381. // 查询参数
  382. queryParams: {
  383. transferType:"",
  384. orderByColumn: "id",
  385. isAsc: "desc",
  386. },
  387. capitalExpenditureOpen:false,
  388. contractOpen:false,
  389. projectForm:{
  390. projectId:null,
  391. projectName:null,
  392. projectContractor:null,
  393. projectAmount:null,
  394. projectBillNum:null,
  395. projectFundType:'1',
  396. outId:null,
  397. ynType:'1'
  398. },
  399. infoForm:{
  400. infoId:null,
  401. name:null,
  402. code:null,
  403. totalAmount:null,
  404. contractionId:null,
  405. transferId:null
  406. },
  407. // 合同信息查询参数
  408. queryContractionParams: {
  409. pageNum: 1,
  410. pageSize: 100,
  411. contractionStatus: '1',
  412. orderByColumn: "endTime",
  413. isAsc: "desc",
  414. },
  415. projectFundType:'',
  416. uploadFiles1:[],
  417. uploadFiles2:[],
  418. uploadFiles3:[],
  419. nowDate:""
  420. };
  421. },
  422. created() {
  423. this.getNowDate();
  424. this.reset();
  425. this.initProjectInfo();
  426. this.capitalExpenditureOpen = false
  427. this.getDicts("project_fund_type").then((response) => {
  428. for (var i = 0; i < response.data.length; i++) {
  429. this.projectFundTypeOptions.push({text: response.data[i].dictLabel, value: response.data[i].dictValue});
  430. }
  431. this.projectFundTypeDictionaries = response.data;
  432. });
  433. let params1={
  434. accountType: "102",
  435. // "params":{townAccountType:'0'},
  436. status: "N",
  437. }
  438. getAccount(params1).then((response) => {
  439. this.payerOptions = response.rows;
  440. response.rows.map((res,index) => {
  441. res['payerFrom'] = '1'
  442. this.payerOptions[index].text = res.accountName;
  443. this.payerOptions[index].value = res.id;
  444. })
  445. });
  446. this.getDictionaries();
  447. this.getTemplateList();
  448. },
  449. methods: {
  450. goFlow(){
  451. if(this.form.approvalMode == '1' && this.form.approvalTemplateId != undefined && this.form.approvalTemplateId != "undefined"){
  452. window.location='approvalProcess3?approvalTemplateId='+this.form.approvalTemplateId+'&approvalMode='+this.form.approvalMode;
  453. }else{
  454. this.$notify({ type: 'danger', message: '无审批流程!' });
  455. }
  456. },
  457. getTemplateList(){
  458. let templateQueryParams = {
  459. // 分页
  460. pageNum: 1,
  461. pageSize: 999,
  462. type:'1'
  463. };
  464. listTemplate(templateQueryParams).then(response => {
  465. this.templateList = response.rows;
  466. });
  467. },
  468. onConfirmTemplate(data){
  469. selectApprovalByTemplateId(data.id).then(res => {
  470. this.showtemplate = false;
  471. if(res.approvalDetails.length>0){
  472. this.form.approvalTemplateName = data.name
  473. this.form.approvalTemplateId = data.id
  474. }else{
  475. this.form.approvalTemplateName = null
  476. this.form.approvalTemplateId = null
  477. this.$notify({ type: 'danger', message: '此流程无节点,无法选择!' });
  478. }
  479. })
  480. },
  481. getNowDate(){
  482. var _this = this;
  483. let yy = new Date().getFullYear();
  484. let mm = new Date().getMonth()+1;
  485. let dd = new Date().getDate();
  486. _this.nowDate = yy+'-'+mm+'-'+dd
  487. },
  488. initProjectInfo(){
  489. let _this = this
  490. let queryParams={
  491. pageNum: 1,
  492. pageSize: 100,
  493. }
  494. listProject(queryParams).then(response => {
  495. _this.projectList = response.rows;
  496. console.log(response)
  497. for (let i = 0; i < response.rows.length; i++) {
  498. //_this.projectList[i].set({text: response.rows[i].projectName, value: response.rows[i].id});
  499. _this.$set(_this.projectList[i],"text",response.rows[i].projectName)
  500. _this.$set(_this.projectList[i],"value",response.rows[i].id)
  501. }
  502. });
  503. listInfo(this.queryContractionParams).then(response => {
  504. console.log(response)
  505. _this.infoList = response.rows;
  506. for (let i = 0; i < response.rows.length; i++) {
  507. //_this.infoList[i].push({text: response.rows[i].name, value: response.rows[i].code});
  508. _this.$set(_this.infoList[i],"text",response.rows[i].name)
  509. _this.$set(_this.infoList[i],"value",response.rows[i].code)
  510. }
  511. });
  512. },
  513. // 表单重置
  514. reset() {
  515. this.form = {
  516. id: null,
  517. upId: null,
  518. applyDate:this.nowDate,
  519. approvalMode:'1',
  520. downId: null,
  521. orderId: null,
  522. cashierId: null,
  523. transferType: '1',
  524. accountType: null,
  525. isPeers:null,
  526. explainSituation: null,
  527. succeedAmount: null,
  528. payer: null,
  529. payerAccount: null,
  530. operatorCode: null,
  531. enterpriseCode: null,
  532. expenditureAmount: null,
  533. capitalExpenditureType: '1',
  534. remark: null,
  535. transferStatus: "0",
  536. auditStatus: "0",
  537. paymentState: "1",
  538. bankPriority: "0",
  539. clientPriority: "0"
  540. };
  541. this.processList = {}
  542. this.projectForm={
  543. projectId:null,
  544. projectName:null,
  545. projectContractor:null,
  546. projectAmount:null,
  547. projectBillNum:null,
  548. projectFundType:'1',
  549. outId:null,
  550. ynType:'1'
  551. }
  552. },
  553. getChange(){
  554. if(this.buttonType == 'update'){
  555. this.goUpdate();
  556. }else if(this.buttonType == 'add'){
  557. this.goAdd();
  558. }
  559. },
  560. getDictionaries(){
  561. this.getDicts("capital_expenditure_type").then((res) => {
  562. for (var i = 0; i < res.data.length; i++) {
  563. this.capitalExpenditureTypeOptions.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  564. }
  565. });
  566. this.getDicts("bank_type_all").then(res => {
  567. for (var i = 0; i < res.data.length; i++) {
  568. this.bankTypeDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  569. }
  570. });
  571. },
  572. getError(e){
  573. console.log(e)
  574. this.$notify({ type: 'danger', message: e.errors[0].message });
  575. },
  576. addChargeItme(index){
  577. if(this.chargeItme.length>0&&this.chargeItme[this.chargeItme.length-1].payee == ''){
  578. this.$notify({ type: 'danger', message: '请勿添加多个空列表信息' });
  579. return;
  580. }else if(this.chargeItme.length>0&&this.chargeItme[index-1].incomeAmount == ''){
  581. this.$notify({ type: 'danger', message: '请输入收入金额!' });
  582. return;
  583. }else if(this.chargeItme.length>0&&this.chargeItme[index-1].payeeAccount == ''){
  584. this.$notify({ type: 'danger', message: '请输入收款账户!' });
  585. return;
  586. }else if(this.chargeItme.length>0&&this.chargeItme[index-1].bankDeposit == ''){
  587. this.$notify({ type: 'danger', message: '请输入开户银行!' });
  588. return;
  589. }else if(this.chargeItme.length>0&&this.chargeItme[index-1].bankType == ''){
  590. this.$notify({ type: 'danger', message: '请选择所属银行!' });
  591. return;
  592. }
  593. if(this.form.bankType == '2' && this.form.isPeers == 'N' && this.chargeItme.length>0 && this.chargeItme != []){
  594. this.$notify({ type: 'danger', message: '目前农商行仅支持单笔跨行转账,即仅能有一个收款方!' });
  595. }else{
  596. this.getDicts("bank_type").then(res => {
  597. this.chargeItme.splice(index + 1, 0, {
  598. payeeId: "", //收款方ID
  599. payee: "", //收款方
  600. payeeAccount: "", //收款账户
  601. bankDeposit: "", //开户银行
  602. incomeAmount: "", //收入金额
  603. bankType: null, //所属银行
  604. bankTypeText:"", //所属银行
  605. showPayee:false,
  606. showbankType:false
  607. });
  608. });}
  609. },
  610. getPayeeList() {
  611. //普通转账
  612. this.queryParams.status = "0"
  613. listPayee(this.queryParams).then((response) => {
  614. response.rows.map((res,index) => {
  615. if(res.payeeType==1||res.payeeType==2){
  616. res.text = res.payee;
  617. res.value = res.id;
  618. this.payeeList.push(res)
  619. }
  620. })
  621. });
  622. },
  623. payeeDictLabel(datas, value) {
  624. var actions = [];
  625. Object.keys(datas).some((key) => {
  626. if (datas[key].payeeId == ('' + value)) {
  627. actions.push(datas[key].payee);
  628. return true;
  629. }
  630. })
  631. return actions.join('');
  632. },
  633. onConfirmCapital(data){
  634. if (data.value == 2){
  635. this.capitalExpenditureOpen = true;
  636. this.contractOpen = false
  637. this.infoForm = {};
  638. }else if(data.value == 4){
  639. this.capitalExpenditureOpen = false;
  640. this.contractOpen = true
  641. this.projectForm = {};
  642. }else{
  643. this.capitalExpenditureOpen = false;
  644. this.contractOpen = false
  645. this.projectForm = {};
  646. this.infoForm = {};
  647. }
  648. this.capitalExpenditureType = data.text;
  649. this.form.capitalExpenditureType = data.value;
  650. this.showcapital = false;
  651. },
  652. onConfirmFundType(data){
  653. console.log(data)
  654. this.projectForm.projectFundType = data.value;
  655. this.projectFundType = data.text;
  656. this.showFundType = false;
  657. },
  658. onConfirmContract(data){
  659. this.infoList.map(res => {
  660. if(res.name==data.text){
  661. this.infoForm.contractionId = res.id;
  662. this.infoForm.name = res.name;
  663. this.infoForm.code = res.code;
  664. this.infoForm.totalAmount = res.totalAmount;
  665. }
  666. })
  667. this.showcontract = false;
  668. },
  669. onConfirmProject(data){
  670. this.projectList.map(res => {
  671. if(res.projectName==data.text){
  672. this.projectForm.projectId = res.id
  673. this.projectForm.projectName = res.projectName
  674. this.projectForm.projectContractor = res.projectContractor
  675. this.projectForm.projectAmount = res.projectAmount
  676. }
  677. })
  678. this.showproject = false;
  679. },
  680. onConfirmPayee(data,index){
  681. for (var i = 0 ; i < this.chargeItme.length ; i++){
  682. this.chargeItme[i].showPayee = false;
  683. }
  684. this.chargeItme[index].payee = data.text;
  685. this.chargeItme[index].payeeId = data.value;
  686. this.chargeItme[index].showpayee = false;
  687. this.payeeSelectChange(data.value , index)
  688. console.log(data)
  689. },
  690. onConfirmBankType(data,index){
  691. for (var i = 0 ; i < this.chargeItme.length ; i++){
  692. this.chargeItme[i].showbankType = false;
  693. }
  694. this.chargeItme[index].bankTypeText = data.text;
  695. this.chargeItme[index].bankType = data.value;
  696. this.chargeItme[index].showbankType = false;
  697. },
  698. onConfirmPayer(data){
  699. this.form.payer = data.text;
  700. this.form.cashierId = data.value;
  701. this.showpayer = false;
  702. this.selectChange(data.value)
  703. },
  704. onConfirmLasj(data){
  705. this.form.applyDate = this.getNowFormatDate(data).substr(0,10);
  706. this.showlasj = false;
  707. },
  708. accountTypeChange(e){
  709. this.payeeList = [];
  710. this.chargeItme = [];
  711. this.queryParams.isPeers = this.form.isPeers
  712. this.queryParams.accountType = this.form.accountType
  713. this.queryParams.bankType = this.form.bankType
  714. this.queryParams.status = "0"
  715. listPayee(this.queryParams).then((response) => {
  716. response.rows.map((res,index) => {
  717. if(res.payeeType==1||res.payeeType==2){
  718. response.rows[index].text = res.payee;
  719. response.rows[index].value = res.id;
  720. this.payeeList.push(res)
  721. }
  722. })
  723. });
  724. },
  725. accountTypeChange1(e){
  726. this.payeeList = [];
  727. this.chargeItme = [];
  728. this.queryParams.isPeers = this.form.isPeers
  729. this.queryParams.accountType = this.form.accountType
  730. this.queryParams.bankType = this.form.bankType
  731. this.queryParams.status = "0"
  732. listPayee(this.queryParams).then((response) => {
  733. response.rows.map((res,index) => {
  734. if(res.payeeType==1||res.payeeType==2){
  735. response.rows[index].text = res.payee;
  736. response.rows[index].value = res.id;
  737. this.payeeList.push(res)
  738. }
  739. })
  740. });
  741. },
  742. // 钱计算
  743. moneyChange(input) {
  744. console.log(input)
  745. let obj = {};
  746. obj = this.chargeItme.find((account) => {
  747. //model就是上面的数据源
  748. return parseFloat(account.incomeAmount).toFixed(2) === input; //筛选出匹配数据
  749. });
  750. let total = 0;
  751. this.chargeItme.forEach((money) => {
  752. total = (parseFloat(total) + parseFloat(money.incomeAmount)).toFixed(2)
  753. });
  754. this.$set(this.form, "expenditureAmount", total);
  755. },
  756. goAdd(){
  757. let _this = this
  758. if(this.chargeItme.length<1){
  759. this.$notify({ type: 'danger', message: '请添加收款方信息' });
  760. return;
  761. }
  762. if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
  763. this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
  764. return;
  765. }
  766. if(this.form.capitalExpenditureType==2){
  767. if(this.projectForm.projectName==""||this.projectForm.projectName==null){
  768. this.$notify({ type: 'danger', message: '请选择项目名称!' });
  769. return;
  770. }
  771. if(this.projectForm.projectBillNum==""||this.projectForm.projectBillNum==null){
  772. this.$notify({ type: 'danger', message: '请输入工程发票号!' });
  773. return;
  774. }
  775. }
  776. if(this.form.capitalExpenditureType==4){
  777. if(this.infoForm.name==""||this.infoForm.name==null){
  778. this.$notify({ type: 'danger', message: '请选择合同名称!' });
  779. return;
  780. }
  781. if(this.infoForm.code==""||this.infoForm.code==null){
  782. this.$notify({ type: 'danger', message: '请输入合同编码!' });
  783. return;
  784. }
  785. if(this.infoForm.totalAmount==""||this.infoForm.totalAmount==null){
  786. this.$notify({ type: 'danger', message: '请输入合同价款!' });
  787. return;
  788. }
  789. }
  790. if((this.uploadFiles1==null||this.uploadFiles1.length==0)&&(this.uploadFiles2==null||this.uploadFiles2.length==0)&&(this.uploadFiles3==null||this.uploadFiles3.length==0)){
  791. Dialog.confirm({
  792. title: '提示',
  793. message: '此申请单中未上传任何附件,是否确认提交?',
  794. })
  795. .then(() => {
  796. this.$set(this.form, "payeeList", this.chargeItme);
  797. this.$set(this.form, "bankTypeList", this.chargeItme);
  798. this.$set(this.form, "accountTypeList", this.chargeItme);
  799. this.$set(this.form, "transferStatusList", this.chargeItme);
  800. addTransfer(this.form).then(response => {
  801. this.projectForm.outId = response.data.id
  802. this.infoForm.transferId = response.data.id
  803. this.$set(this.projectForm, "ynType", '1');
  804. if(this.form.capitalExpenditureType==2){
  805. addProjectto(this.projectForm).then(res => {
  806. if(this.form.approvalMode === '1'){
  807. customSubmit(response.data.id).then(res => {
  808. this.$toast.success('提交成功');
  809. setTimeout(function(){
  810. history.go(-1)
  811. },2000)
  812. })
  813. }else{
  814. offlineCustomSubmit(response.data.id).then(res => {
  815. this.$toast.success('提交成功');
  816. setTimeout(function(){
  817. history.go(-1)
  818. },2000)
  819. })
  820. }
  821. })
  822. }else if(this.form.capitalExpenditureType==4){
  823. addInfoto(this.infoForm).then(res => {
  824. if(this.form.approvalMode === '1'){
  825. customSubmit(response.data.id).then(res => {
  826. this.$toast.success('提交成功');
  827. setTimeout(function(){
  828. history.go(-1)
  829. },2000)
  830. })
  831. }else{
  832. offlineCustomSubmit(response.data.id).then(res => {
  833. this.$toast.success('提交成功');
  834. setTimeout(function(){
  835. history.go(-1)
  836. },2000)
  837. })
  838. }
  839. })
  840. }else{
  841. if(this.form.approvalMode === '1'){
  842. customSubmit(response.data.id).then(res => {
  843. this.$toast.success('提交成功');
  844. setTimeout(function(){
  845. history.go(-1)
  846. },2000)
  847. })
  848. }else{
  849. offlineCustomSubmit(response.data.id).then(res => {
  850. this.$toast.success('提交成功');
  851. setTimeout(function(){
  852. history.go(-1)
  853. },2000)
  854. })
  855. }
  856. }
  857. });
  858. })
  859. .catch(() => {
  860. return false;
  861. });
  862. }else{
  863. this.$set(this.form, "payeeList", this.chargeItme);
  864. this.$set(this.form, "bankTypeList", this.chargeItme);
  865. this.$set(this.form, "accountTypeList", this.chargeItme);
  866. this.$set(this.form, "transferStatusList", this.chargeItme);
  867. addTransfer(this.form).then(response => {
  868. this.projectForm.outId = response.data.id
  869. this.infoForm.transferId = response.data.id
  870. this.$set(this.projectForm, "ynType", '1');
  871. if(this.uploadFiles1!=null&&this.uploadFiles1.length>0){
  872. this.uploadFiles1.map((rr1,idx1) => {
  873. let params1 = new FormData();
  874. params1.append("tableId", response.data.id);
  875. params1.append("tableName", "t_yinnong_transfer");
  876. params1.append("bizPath", "transfer");
  877. params1.append("fileType", "1");
  878. params1.append("file", rr1);
  879. commonAttach(params1).then((r1) => {
  880. if(idx1 == (_this.uploadFiles1.length-1)){
  881. if(_this.uploadFiles2!=null&&_this.uploadFiles2.length>0){
  882. _this.uploadFiles2.map((rr2,idx2) => {
  883. let params2 = new FormData();
  884. params2.append("tableId", response.data.id);
  885. params2.append("tableName", "t_yinnong_transfer");
  886. params2.append("bizPath", "transfer");
  887. params2.append("fileType", "2");
  888. params2.append("file", rr2);
  889. commonAttach(params2).then((r2) => {
  890. if(idx2 == (_this.uploadFiles2.length-1)){
  891. if(_this.uploadFiles3!=null&&_this.uploadFiles3.length>0){
  892. _this.uploadFiles3.map((rr3,idx3) => {
  893. let params3 = new FormData();
  894. params3.append("tableId", response.data.id);
  895. params3.append("tableName", "t_yinnong_transfer");
  896. params3.append("bizPath", "transfer");
  897. params3.append("fileType", "3");
  898. params3.append("file", rr3);
  899. commonAttach(params3).then((r3) => {
  900. if(idx3 == (_this.uploadFiles3.length-1)){
  901. if(_this.form.capitalExpenditureType==2){
  902. addProjectto(_this.projectForm).then(res => {
  903. if(_this.form.approvalMode === '1'){
  904. customSubmit(response.data.id).then(res => {
  905. _this.$toast.success('提交成功');
  906. setTimeout(function(){
  907. history.go(-1)
  908. },2000)
  909. })
  910. }else{
  911. offlineCustomSubmit(response.data.id).then(res => {
  912. _this.$toast.success('提交成功');
  913. setTimeout(function(){
  914. history.go(-1)
  915. },2000)
  916. })
  917. }
  918. })
  919. } else if(_this.form.capitalExpenditureType==4){
  920. addInfoto(_this.infoForm).then(res => {
  921. if(_this.form.approvalMode === '1'){
  922. customSubmit(response.data.id).then(res => {
  923. _this.$toast.success('提交成功');
  924. setTimeout(function(){
  925. history.go(-1)
  926. },2000)
  927. })
  928. }else{
  929. offlineCustomSubmit(response.data.id).then(res => {
  930. _this.$toast.success('提交成功');
  931. setTimeout(function(){
  932. history.go(-1)
  933. },2000)
  934. })
  935. }
  936. })
  937. }else{
  938. if(_this.form.approvalMode === '1'){
  939. customSubmit(response.data.id).then(res => {
  940. _this.$toast.success('提交成功');
  941. setTimeout(function(){
  942. history.go(-1)
  943. },2000)
  944. })
  945. }else{
  946. offlineCustomSubmit(response.data.id).then(res => {
  947. _this.$toast.success('提交成功');
  948. setTimeout(function(){
  949. history.go(-1)
  950. },2000)
  951. })
  952. }
  953. }
  954. }
  955. })
  956. })
  957. }else{
  958. if(_this.form.capitalExpenditureType==2){
  959. addProjectto(_this.projectForm).then(res => {
  960. if(_this.form.approvalMode === '1'){
  961. customSubmit(response.data.id).then(res => {
  962. _this.$toast.success('提交成功');
  963. setTimeout(function(){
  964. history.go(-1)
  965. },2000)
  966. })
  967. }else{
  968. offlineCustomSubmit(response.data.id).then(res => {
  969. _this.$toast.success('提交成功');
  970. setTimeout(function(){
  971. history.go(-1)
  972. },2000)
  973. })
  974. }
  975. })
  976. } else if(_this.form.capitalExpenditureType==4){
  977. addInfoto(_this.infoForm).then(res => {
  978. if(_this.form.approvalMode === '1'){
  979. customSubmit(response.data.id).then(res => {
  980. _this.$toast.success('提交成功');
  981. setTimeout(function(){
  982. history.go(-1)
  983. },2000)
  984. })
  985. }else{
  986. offlineCustomSubmit(response.data.id).then(res => {
  987. _this.$toast.success('提交成功');
  988. setTimeout(function(){
  989. history.go(-1)
  990. },2000)
  991. })
  992. }
  993. })
  994. }else{
  995. if(_this.form.approvalMode === '1'){
  996. customSubmit(response.data.id).then(res => {
  997. _this.$toast.success('提交成功');
  998. setTimeout(function(){
  999. history.go(-1)
  1000. },2000)
  1001. })
  1002. }else{
  1003. offlineCustomSubmit(response.data.id).then(res => {
  1004. _this.$toast.success('提交成功');
  1005. setTimeout(function(){
  1006. history.go(-1)
  1007. },2000)
  1008. })
  1009. }
  1010. }
  1011. }
  1012. }
  1013. })
  1014. })
  1015. }else if(_this.uploadFiles3!=null&&_this.uploadFiles3.length>0){
  1016. _this.uploadFiles3.map((rr3,idx3) => {
  1017. let params3 = new FormData();
  1018. params3.append("tableId", response.data.id);
  1019. params3.append("tableName", "t_yinnong_transfer");
  1020. params3.append("bizPath", "transfer");
  1021. params3.append("fileType", "3");
  1022. params3.append("file", rr3);
  1023. commonAttach(params3).then((r3) => {
  1024. if(idx3 ==(_this.uploadFiles3.length-1)){
  1025. if(_this.form.capitalExpenditureType==2){
  1026. addProjectto(_this.projectForm).then(res => {
  1027. if(_this.form.approvalMode === '1'){
  1028. customSubmit(response.data.id).then(res => {
  1029. _this.$toast.success('提交成功');
  1030. setTimeout(function(){
  1031. history.go(-1)
  1032. },2000)
  1033. })
  1034. }else{
  1035. offlineCustomSubmit(response.data.id).then(res => {
  1036. _this.$toast.success('提交成功');
  1037. setTimeout(function(){
  1038. history.go(-1)
  1039. },2000)
  1040. })
  1041. }
  1042. })
  1043. } else if(_this.form.capitalExpenditureType==4){
  1044. addInfoto(_this.infoForm).then(res => {
  1045. if(_this.form.approvalMode === '1'){
  1046. customSubmit(response.data.id).then(res => {
  1047. _this.$toast.success('提交成功');
  1048. setTimeout(function(){
  1049. history.go(-1)
  1050. },2000)
  1051. })
  1052. }else{
  1053. offlineCustomSubmit(response.data.id).then(res => {
  1054. _this.$toast.success('提交成功');
  1055. setTimeout(function(){
  1056. history.go(-1)
  1057. },2000)
  1058. })
  1059. }
  1060. })
  1061. }else{
  1062. if(_this.form.approvalMode === '1'){
  1063. customSubmit(response.data.id).then(res => {
  1064. _this.$toast.success('提交成功');
  1065. setTimeout(function(){
  1066. history.go(-1)
  1067. },2000)
  1068. })
  1069. }else{
  1070. offlineCustomSubmit(response.data.id).then(res => {
  1071. _this.$toast.success('提交成功');
  1072. setTimeout(function(){
  1073. history.go(-1)
  1074. },2000)
  1075. })
  1076. }
  1077. }
  1078. }
  1079. })
  1080. })
  1081. }else{
  1082. if(_this.form.capitalExpenditureType==2){
  1083. addProjectto(_this.projectForm).then(res => {
  1084. if(_this.form.approvalMode === '1'){
  1085. customSubmit(response.data.id).then(res => {
  1086. _this.$toast.success('提交成功');
  1087. setTimeout(function(){
  1088. history.go(-1)
  1089. },2000)
  1090. })
  1091. }else{
  1092. offlineCustomSubmit(response.data.id).then(res => {
  1093. _this.$toast.success('提交成功');
  1094. setTimeout(function(){
  1095. history.go(-1)
  1096. },2000)
  1097. })
  1098. }
  1099. })
  1100. } else if(_this.form.capitalExpenditureType==4){
  1101. addInfoto(_this.infoForm).then(res => {
  1102. if(_this.form.approvalMode === '1'){
  1103. customSubmit(response.data.id).then(res => {
  1104. _this.$toast.success('提交成功');
  1105. setTimeout(function(){
  1106. history.go(-1)
  1107. },2000)
  1108. })
  1109. }else{
  1110. offlineCustomSubmit(response.data.id).then(res => {
  1111. _this.$toast.success('提交成功');
  1112. setTimeout(function(){
  1113. history.go(-1)
  1114. },2000)
  1115. })
  1116. }
  1117. })
  1118. }else{
  1119. if(_this.form.approvalMode === '1'){
  1120. customSubmit(response.data.id).then(res => {
  1121. _this.$toast.success('提交成功');
  1122. setTimeout(function(){
  1123. history.go(-1)
  1124. },2000)
  1125. })
  1126. }else{
  1127. offlineCustomSubmit(response.data.id).then(res => {
  1128. _this.$toast.success('提交成功');
  1129. setTimeout(function(){
  1130. history.go(-1)
  1131. },2000)
  1132. })
  1133. }
  1134. }
  1135. }
  1136. }
  1137. })
  1138. })
  1139. }else if(this.uploadFiles2!=null&&this.uploadFiles2.length>0){
  1140. this.uploadFiles2.map((rr2,idx2) => {
  1141. let params = new FormData();
  1142. params.append("tableId", response.data.id);
  1143. params.append("tableName", "t_yinnong_transfer");
  1144. params.append("bizPath", "transfer");
  1145. params.append("fileType", "2");
  1146. params.append("file", rr2);
  1147. commonAttach(params).then((r2) => {
  1148. if(idx2 == (_this.uploadFiles2.length-1)){
  1149. if(_this.uploadFiles3!=null&&_this.uploadFiles3.length>0){
  1150. _this.uploadFiles3.map((rr3,idx3) => {
  1151. let params3 = new FormData();
  1152. params3.append("tableId", response.data.id);
  1153. params3.append("tableName", "t_yinnong_transfer");
  1154. params3.append("bizPath", "transfer");
  1155. params3.append("fileType", "3");
  1156. params3.append("file", rr3);
  1157. commonAttach(params).then((r3) => {
  1158. if(idx3 == (_this.uploadFiles3.length-1)){
  1159. if(_this.form.capitalExpenditureType==2){
  1160. addProjectto(_this.projectForm).then(res => {
  1161. if(_this.form.approvalMode === '1'){
  1162. customSubmit(response.data.id).then(res => {
  1163. _this.$toast.success('提交成功');
  1164. setTimeout(function(){
  1165. history.go(-1)
  1166. },2000)
  1167. })
  1168. }else{
  1169. offlineCustomSubmit(response.data.id).then(res => {
  1170. _this.$toast.success('提交成功');
  1171. setTimeout(function(){
  1172. history.go(-1)
  1173. },2000)
  1174. })
  1175. }
  1176. })
  1177. } else if(_this.form.capitalExpenditureType==4){
  1178. addInfoto(_this.infoForm).then(res => {
  1179. if(_this.form.approvalMode === '1'){
  1180. customSubmit(response.data.id).then(res => {
  1181. _this.$toast.success('提交成功');
  1182. setTimeout(function(){
  1183. history.go(-1)
  1184. },2000)
  1185. })
  1186. }else{
  1187. offlineCustomSubmit(response.data.id).then(res => {
  1188. _this.$toast.success('提交成功');
  1189. setTimeout(function(){
  1190. history.go(-1)
  1191. },2000)
  1192. })
  1193. }
  1194. })
  1195. }else{
  1196. if(_this.form.approvalMode === '1'){
  1197. customSubmit(response.data.id).then(res => {
  1198. _this.$toast.success('提交成功');
  1199. setTimeout(function(){
  1200. history.go(-1)
  1201. },2000)
  1202. })
  1203. }else{
  1204. offlineCustomSubmit(response.data.id).then(res => {
  1205. _this.$toast.success('提交成功');
  1206. setTimeout(function(){
  1207. history.go(-1)
  1208. },2000)
  1209. })
  1210. }
  1211. }
  1212. }
  1213. })
  1214. })
  1215. }else{
  1216. if(_this.form.capitalExpenditureType==2){
  1217. addProjectto(_this.projectForm).then(res => {
  1218. if(_this.form.approvalMode === '1'){
  1219. customSubmit(response.data.id).then(res => {
  1220. _this.$toast.success('提交成功');
  1221. setTimeout(function(){
  1222. history.go(-1)
  1223. },2000)
  1224. })
  1225. }else{
  1226. offlineCustomSubmit(response.data.id).then(res => {
  1227. _this.$toast.success('提交成功');
  1228. setTimeout(function(){
  1229. history.go(-1)
  1230. },2000)
  1231. })
  1232. }
  1233. })
  1234. } else if(_this.form.capitalExpenditureType==4){
  1235. addInfoto(_this.infoForm).then(res => {
  1236. if(_this.form.approvalMode === '1'){
  1237. customSubmit(response.data.id).then(res => {
  1238. _this.$toast.success('提交成功');
  1239. setTimeout(function(){
  1240. history.go(-1)
  1241. },2000)
  1242. })
  1243. }else{
  1244. offlineCustomSubmit(response.data.id).then(res => {
  1245. _this.$toast.success('提交成功');
  1246. setTimeout(function(){
  1247. history.go(-1)
  1248. },2000)
  1249. })
  1250. }
  1251. })
  1252. }else{
  1253. if(_this.form.approvalMode === '1'){
  1254. customSubmit(response.data.id).then(res => {
  1255. _this.$toast.success('提交成功');
  1256. setTimeout(function(){
  1257. history.go(-1)
  1258. },2000)
  1259. })
  1260. }else{
  1261. offlineCustomSubmit(response.data.id).then(res => {
  1262. _this.$toast.success('提交成功');
  1263. setTimeout(function(){
  1264. history.go(-1)
  1265. },2000)
  1266. })
  1267. }
  1268. }
  1269. }
  1270. }
  1271. })
  1272. })
  1273. }else if(this.uploadFiles3!=null&&this.uploadFiles3.length>0){
  1274. this.uploadFiles3.map((rr3,idx3) => {
  1275. let params = new FormData();
  1276. params.append("tableId", response.data.id);
  1277. params.append("tableName", "t_yinnong_transfer");
  1278. params.append("bizPath", "transfer");
  1279. params.append("fileType", "3");
  1280. params.append("file", rr3);
  1281. commonAttach(params).then((r) => {
  1282. if(idx3 == (_this.uploadFiles3.length-1)){
  1283. if(_this.form.capitalExpenditureType==2){
  1284. addProjectto(_this.projectForm).then(res => {
  1285. if(_this.form.approvalMode === '1'){
  1286. customSubmit(response.data.id).then(res => {
  1287. _this.$toast.success('提交成功');
  1288. setTimeout(function(){
  1289. history.go(-1)
  1290. },2000)
  1291. })
  1292. }else{
  1293. offlineCustomSubmit(response.data.id).then(res => {
  1294. _this.$toast.success('提交成功');
  1295. setTimeout(function(){
  1296. history.go(-1)
  1297. },2000)
  1298. })
  1299. }
  1300. })
  1301. } else if(_this.form.capitalExpenditureType==4){
  1302. addInfoto(_this.infoForm).then(res => {
  1303. if(_this.form.approvalMode === '1'){
  1304. customSubmit(response.data.id).then(res => {
  1305. _this.$toast.success('提交成功');
  1306. setTimeout(function(){
  1307. history.go(-1)
  1308. },2000)
  1309. })
  1310. }else{
  1311. offlineCustomSubmit(response.data.id).then(res => {
  1312. _this.$toast.success('提交成功');
  1313. setTimeout(function(){
  1314. history.go(-1)
  1315. },2000)
  1316. })
  1317. }
  1318. })
  1319. }else{
  1320. if(_this.form.approvalMode === '1'){
  1321. customSubmit(response.data.id).then(res => {
  1322. _this.$toast.success('提交成功');
  1323. setTimeout(function(){
  1324. history.go(-1)
  1325. },2000)
  1326. })
  1327. }else{
  1328. offlineCustomSubmit(response.data.id).then(res => {
  1329. _this.$toast.success('提交成功');
  1330. setTimeout(function(){
  1331. history.go(-1)
  1332. },2000)
  1333. })
  1334. }
  1335. }
  1336. }
  1337. })
  1338. })
  1339. }else{
  1340. if(this.form.capitalExpenditureType==2){
  1341. addProjectto(this.projectForm).then(res => {
  1342. if(_this.form.approvalMode === '1'){
  1343. customSubmit(response.data.id).then(res => {
  1344. _this.$toast.success('提交成功');
  1345. setTimeout(function(){
  1346. history.go(-1)
  1347. },2000)
  1348. })
  1349. }else{
  1350. offlineCustomSubmit(response.data.id).then(res => {
  1351. _this.$toast.success('提交成功');
  1352. setTimeout(function(){
  1353. history.go(-1)
  1354. },2000)
  1355. })
  1356. }
  1357. })
  1358. } else if(this.form.capitalExpenditureType==4){
  1359. addInfoto(this.infoForm).then(res => {
  1360. if(_this.form.approvalMode === '1'){
  1361. customSubmit(response.data.id).then(res => {
  1362. _this.$toast.success('提交成功');
  1363. setTimeout(function(){
  1364. history.go(-1)
  1365. },2000)
  1366. })
  1367. }else{
  1368. offlineCustomSubmit(response.data.id).then(res => {
  1369. _this.$toast.success('提交成功');
  1370. setTimeout(function(){
  1371. history.go(-1)
  1372. },2000)
  1373. })
  1374. }
  1375. })
  1376. }else{
  1377. if(_this.form.approvalMode === '1'){
  1378. customSubmit(response.data.id).then(res => {
  1379. _this.$toast.success('提交成功');
  1380. setTimeout(function(){
  1381. history.go(-1)
  1382. },2000)
  1383. })
  1384. }else{
  1385. offlineCustomSubmit(response.data.id).then(res => {
  1386. _this.$toast.success('提交成功');
  1387. setTimeout(function(){
  1388. history.go(-1)
  1389. },2000)
  1390. })
  1391. }
  1392. }
  1393. }
  1394. });
  1395. }
  1396. },
  1397. goUpdate(){
  1398. let _this = this
  1399. if(this.chargeItme.length<1){
  1400. this.$notify({ type: 'danger', message: '请添加收款方信息' });
  1401. return;
  1402. }
  1403. if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
  1404. this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
  1405. return;
  1406. }
  1407. if(this.form.capitalExpenditureType==2){
  1408. if(this.projectForm.projectName==""||this.projectForm.projectName==null){
  1409. this.$notify({ type: 'danger', message: '请选择项目名称!' });
  1410. return;
  1411. }
  1412. if(this.projectForm.projectBillNum==""||this.projectForm.projectBillNum==null){
  1413. this.$notify({ type: 'danger', message: '请输入工程发票号!' });
  1414. return;
  1415. }
  1416. }
  1417. if(this.form.capitalExpenditureType==4){
  1418. if(this.infoForm.name==""||this.infoForm.name==null){
  1419. this.$notify({ type: 'danger', message: '请选择合同名称!' });
  1420. return;
  1421. }
  1422. if(this.infoForm.code==""||this.infoForm.code==null){
  1423. this.$notify({ type: 'danger', message: '请输入合同编码!' });
  1424. return;
  1425. }
  1426. if(this.infoForm.totalAmount==""||this.infoForm.totalAmount==null){
  1427. this.$notify({ type: 'danger', message: '请输入合同价款!' });
  1428. return;
  1429. }
  1430. }
  1431. this.$set(this.form, "payeeList", this.chargeItme);
  1432. this.$set(this.form, "bankTypeList", this.chargeItme);
  1433. this.$set(this.form, "accountTypeList", this.chargeItme);
  1434. this.$set(this.form, "transferStatusList", this.chargeItme);
  1435. addTransfer(this.form).then(response => {
  1436. this.projectForm.outId = response.data.id
  1437. this.infoForm.transferId = response.data.id
  1438. this.$set(this.projectForm, "ynType", '1');
  1439. if(this.uploadFiles1!=null&&this.uploadFiles1.length>0){
  1440. this.uploadFiles1.map((rr1,idx1) => {
  1441. let params1 = new FormData();
  1442. params1.append("tableId", response.data.id);
  1443. params1.append("tableName", "t_yinnong_transfer");
  1444. params1.append("bizPath", "transfer");
  1445. params1.append("fileType", "1");
  1446. params1.append("file", rr1);
  1447. commonAttach(params1).then((r1) => {
  1448. if(idx1 == (_this.uploadFiles1.length-1)){
  1449. if(_this.uploadFiles2!=null&&_this.uploadFiles2.length>0){
  1450. _this.uploadFiles2.map((rr2,idx2) => {
  1451. let params2 = new FormData();
  1452. params2.append("tableId", response.data.id);
  1453. params2.append("tableName", "t_yinnong_transfer");
  1454. params2.append("bizPath", "transfer");
  1455. params2.append("fileType", "2");
  1456. params2.append("file", rr2);
  1457. commonAttach(params2).then((r2) => {
  1458. if(idx2 == (_this.uploadFiles2.length-1)){
  1459. if(_this.uploadFiles3!=null&&_this.uploadFiles3.length>0){
  1460. _this.uploadFiles3.map((rr3,idx3) => {
  1461. let params3 = new FormData();
  1462. params3.append("tableId", response.data.id);
  1463. params3.append("tableName", "t_yinnong_transfer");
  1464. params3.append("bizPath", "transfer");
  1465. params3.append("fileType", "3");
  1466. params3.append("file", rr3);
  1467. commonAttach(params3).then((r3) => {
  1468. if(idx3 == (_this.uploadFiles3.length-1)){
  1469. if(_this.form.capitalExpenditureType==2){
  1470. addProjectto(_this.projectForm).then(res => {
  1471. _this.$toast.success('保存成功');
  1472. setTimeout(function(){
  1473. history.go(-1)
  1474. },2000)
  1475. })
  1476. } else if(_this.form.capitalExpenditureType==4){
  1477. addInfoto(_this.infoForm).then(res => {
  1478. _this.$toast.success('保存成功');
  1479. setTimeout(function(){
  1480. history.go(-1)
  1481. },2000)
  1482. })
  1483. }else{
  1484. _this.$toast.success('保存成功');
  1485. setTimeout(function(){
  1486. history.go(-1)
  1487. },2000)
  1488. }
  1489. }
  1490. })
  1491. })
  1492. }else{
  1493. if(_this.form.capitalExpenditureType==2){
  1494. addProjectto(_this.projectForm).then(res => {
  1495. _this.$toast.success('保存成功');
  1496. setTimeout(function(){
  1497. history.go(-1)
  1498. },2000)
  1499. })
  1500. } else if(_this.form.capitalExpenditureType==4){
  1501. addInfoto(_this.infoForm).then(res => {
  1502. _this.$toast.success('保存成功');
  1503. setTimeout(function(){
  1504. history.go(-1)
  1505. },2000)
  1506. })
  1507. }else{
  1508. _this.$toast.success('保存成功');
  1509. setTimeout(function(){
  1510. history.go(-1)
  1511. },2000)
  1512. }
  1513. }
  1514. }
  1515. })
  1516. })
  1517. }else if(_this.uploadFiles3!=null&&_this.uploadFiles3.length>0){
  1518. _this.uploadFiles3.map((rr3,idx3) => {
  1519. let params3 = new FormData();
  1520. params3.append("tableId", response.data.id);
  1521. params3.append("tableName", "t_yinnong_transfer");
  1522. params3.append("bizPath", "transfer");
  1523. params3.append("fileType", "3");
  1524. params3.append("file", rr3);
  1525. commonAttach(params3).then((r3) => {
  1526. if(idx3 ==(_this.uploadFiles3.length-1)){
  1527. if(_this.form.capitalExpenditureType==2){
  1528. addProjectto(_this.projectForm).then(res => {
  1529. _this.$toast.success('保存成功');
  1530. setTimeout(function(){
  1531. history.go(-1)
  1532. },2000)
  1533. })
  1534. } else if(_this.form.capitalExpenditureType==4){
  1535. addInfoto(_this.infoForm).then(res => {
  1536. _this.$toast.success('保存成功');
  1537. setTimeout(function(){
  1538. history.go(-1)
  1539. },2000)
  1540. })
  1541. }else{
  1542. _this.$toast.success('保存成功');
  1543. setTimeout(function(){
  1544. history.go(-1)
  1545. },2000)
  1546. }
  1547. }
  1548. })
  1549. })
  1550. }else{
  1551. if(_this.form.capitalExpenditureType==2){
  1552. addProjectto(_this.projectForm).then(res => {
  1553. _this.$toast.success('保存成功');
  1554. setTimeout(function(){
  1555. history.go(-1)
  1556. },2000)
  1557. })
  1558. } else if(_this.form.capitalExpenditureType==4){
  1559. addInfoto(_this.infoForm).then(res => {
  1560. _this.$toast.success('保存成功');
  1561. setTimeout(function(){
  1562. history.go(-1)
  1563. },2000)
  1564. })
  1565. }else{
  1566. _this.$toast.success('保存成功');
  1567. setTimeout(function(){
  1568. history.go(-1)
  1569. },2000)
  1570. }
  1571. }
  1572. }
  1573. })
  1574. })
  1575. }else if(this.uploadFiles2!=null&&this.uploadFiles2.length>0){
  1576. this.uploadFiles2.map((rr2,idx2) => {
  1577. let params = new FormData();
  1578. params.append("tableId", response.data.id);
  1579. params.append("tableName", "t_yinnong_transfer");
  1580. params.append("bizPath", "transfer");
  1581. params.append("fileType", "2");
  1582. params.append("file", rr2);
  1583. commonAttach(params).then((r2) => {
  1584. if(idx2 == (_this.uploadFiles2.length-1)){
  1585. if(_this.uploadFiles3!=null&&_this.uploadFiles3.length>0){
  1586. _this.uploadFiles3.map((rr3,idx3) => {
  1587. let params3 = new FormData();
  1588. params3.append("tableId", response.data.id);
  1589. params3.append("tableName", "t_yinnong_transfer");
  1590. params3.append("bizPath", "transfer");
  1591. params3.append("fileType", "3");
  1592. params3.append("file", rr3);
  1593. commonAttach(params).then((r3) => {
  1594. if(idx3 == (_this.uploadFiles3.length-1)){
  1595. if(_this.form.capitalExpenditureType==2){
  1596. addProjectto(_this.projectForm).then(res => {
  1597. _this.$toast.success('保存成功');
  1598. setTimeout(function(){
  1599. history.go(-1)
  1600. },2000)
  1601. })
  1602. } else if(_this.form.capitalExpenditureType==4){
  1603. addInfoto(_this.infoForm).then(res => {
  1604. _this.$toast.success('保存成功');
  1605. setTimeout(function(){
  1606. history.go(-1)
  1607. },2000)
  1608. })
  1609. }else{
  1610. _this.$toast.success('保存成功');
  1611. setTimeout(function(){
  1612. history.go(-1)
  1613. },2000)
  1614. }
  1615. }
  1616. })
  1617. })
  1618. }else{
  1619. if(_this.form.capitalExpenditureType==2){
  1620. addProjectto(_this.projectForm).then(res => {
  1621. _this.$toast.success('保存成功');
  1622. setTimeout(function(){
  1623. history.go(-1)
  1624. },2000)
  1625. })
  1626. } else if(_this.form.capitalExpenditureType==4){
  1627. addInfoto(_this.infoForm).then(res => {
  1628. _this.$toast.success('保存成功');
  1629. setTimeout(function(){
  1630. history.go(-1)
  1631. },2000)
  1632. })
  1633. }else{
  1634. _this.$toast.success('保存成功');
  1635. setTimeout(function(){
  1636. history.go(-1)
  1637. },2000)
  1638. }
  1639. }
  1640. }
  1641. })
  1642. })
  1643. }else if(this.uploadFiles3!=null&&this.uploadFiles3.length>0){
  1644. this.uploadFiles3.map((rr3,idx3) => {
  1645. let params = new FormData();
  1646. params.append("tableId", response.data.id);
  1647. params.append("tableName", "t_yinnong_transfer");
  1648. params.append("bizPath", "transfer");
  1649. params.append("fileType", "3");
  1650. params.append("file", rr3);
  1651. commonAttach(params).then((r) => {
  1652. if(idx3 == (_this.uploadFiles3.length-1)){
  1653. if(_this.form.capitalExpenditureType==2){
  1654. addProjectto(_this.projectForm).then(res => {
  1655. _this.$toast.success('保存成功');
  1656. setTimeout(function(){
  1657. history.go(-1)
  1658. },2000)
  1659. })
  1660. } else if(_this.form.capitalExpenditureType==4){
  1661. addInfoto(_this.infoForm).then(res => {
  1662. _this.$toast.success('保存成功');
  1663. setTimeout(function(){
  1664. history.go(-1)
  1665. },2000)
  1666. })
  1667. }else{
  1668. _this.$toast.success('保存成功');
  1669. setTimeout(function(){
  1670. history.go(-1)
  1671. },2000)
  1672. }
  1673. }
  1674. })
  1675. })
  1676. }else{
  1677. if(this.form.capitalExpenditureType==2){
  1678. addProjectto(this.projectForm).then(res => {
  1679. this.$toast.success('保存成功');
  1680. setTimeout(function(){
  1681. history.go(-1)
  1682. },2000)
  1683. })
  1684. } else if(this.form.capitalExpenditureType==4){
  1685. addInfoto(this.infoForm).then(res => {
  1686. this.$toast.success('保存成功');
  1687. setTimeout(function(){
  1688. history.go(-1)
  1689. },2000)
  1690. })
  1691. }else{
  1692. this.$toast.success('保存成功');
  1693. setTimeout(function(){
  1694. history.go(-1)
  1695. },2000)
  1696. }
  1697. }
  1698. });
  1699. },
  1700. payeeSelectChange(select, i) {
  1701. let obj = {};
  1702. let fuzhitype = 0;
  1703. obj = this.payeeList.find((account) => {
  1704. //model就是上面的数据源
  1705. return account.id === select ; //筛选出匹配数据
  1706. });
  1707. let _this = this
  1708. if(this.chargeItme != [] && this.chargeItme.length>1){
  1709. this.chargeItme.some((value, index) => {
  1710. if(value.payeeAccount != undefined &&value.payeeAccount != '' && obj.payeeAccount == value.payeeAccount&&index!=i&&this.form.bankType != 2){
  1711. fuzhitype = 2;
  1712. return true;
  1713. }
  1714. if(_this.form.isPeers!=undefined&&_this.form.isPeers!=null&&_this.form.isPeers=='N'){
  1715. }else{
  1716. if(obj.bankType==1&&value.accountType != undefined &&value.accountType != '' && obj.accountType != value.accountType&&index!=i){
  1717. fuzhitype = 1;
  1718. return true;
  1719. }
  1720. }
  1721. });
  1722. }
  1723. if(fuzhitype == 0){
  1724. this.$set(this.chargeItme[i], "payee",obj.payee)
  1725. this.$set(this.chargeItme[i], "bankType", obj.bankType)
  1726. this.$set(this.chargeItme[i], "payeeId", obj.id);
  1727. this.$set(this.chargeItme[i], "payeeAccount", obj.payeeAccount);
  1728. this.$set(this.chargeItme[i], "bankDeposit", obj.bankDeposit);
  1729. this.$set(this.chargeItme[i], "accountType", obj.accountType);
  1730. this.$set(this.chargeItme[i], "payeePaymentLines", obj.payeePaymentLines);
  1731. _this.bankTypeDictionaries.map(rr => {
  1732. if(rr.value==obj.bankType){
  1733. this.$set(this.chargeItme[i], "bankTypeText", rr.text);
  1734. }
  1735. })
  1736. }else if(fuzhitype == 1){
  1737. this.$set(this.chargeItme[i], "payee",'')
  1738. this.$set(this.chargeItme[i], "bankType",'')
  1739. this.$set(this.chargeItme[i], "payeeId", '');
  1740. this.$set(this.chargeItme[i], "payeeAccount", '');
  1741. this.$set(this.chargeItme[i], "bankDeposit", '');
  1742. this.$set(this.chargeItme[i], "accountType", '');
  1743. this.$set(this.chargeItme[i], "payeePaymentLines", '');
  1744. this.$set(this.chargeItme[i], "bankTypeText", '');
  1745. this.$notify({ type: 'danger', message: '请选择账户类型相同的收款方!' });
  1746. }else if(fuzhitype == 2){
  1747. this.$set(this.chargeItme[i], "payee",'')
  1748. this.$set(this.chargeItme[i], "bankType",'')
  1749. this.$set(this.chargeItme[i], "payeeId", '');
  1750. this.$set(this.chargeItme[i], "payeeAccount", '');
  1751. this.$set(this.chargeItme[i], "bankDeposit", '');
  1752. this.$set(this.chargeItme[i], "accountType", '');
  1753. this.$set(this.chargeItme[i], "payeePaymentLines", '');
  1754. this.$set(this.chargeItme[i], "bankTypeText", '');
  1755. this.$notify({ type: 'danger', message: '收款方已存在!' });
  1756. }
  1757. },
  1758. selectChange(select) {
  1759. let obj = {};
  1760. obj = this.payerOptions.find((account) => {
  1761. //model就是上面的数据源
  1762. return account.id === select; //筛选出匹配数据
  1763. });
  1764. if(obj.accountPassword != null && obj.accountPassword != "" &&
  1765. obj.bankType != null && obj.bankType != ""){
  1766. this.$set(this.form, "bookId", obj.bookId);
  1767. this.$set(this.form, "deptId", obj.deptId);
  1768. this.$set(this.form, "cashierId", obj.id);
  1769. this.$set(this.form, "payer", obj.accountName);
  1770. this.$set(this.form, "payerAccount", obj.bankAccountNumber);
  1771. this.$set(this.form, "operatorCode", obj.operatorCode);
  1772. this.$set(this.form, "enterpriseCode", obj.enterpriseCode);
  1773. this.$set(this.form, "bankType", obj.bankType);
  1774. this.$set(this.form, "bankAccountType", obj.bankAccountType);
  1775. this.$set(this.form, "villageAccountType", obj.villageAccountType);
  1776. this.$set(this.form, "taccountId", obj.taccountId);
  1777. this.$set(this.form, "accountNo", obj.accountNo);
  1778. this.$set(this.form, "cifNo", obj.cifNo);
  1779. this.$set(this.form, "payerFrom", '1');
  1780. if(obj.bankType==1){
  1781. this.form.accountType = "1"
  1782. this.form.isPeers = null
  1783. this.accountTypeChange();
  1784. }else if(obj.bankType==2||obj.bankType==3||obj.bankType==4){
  1785. this.form.accountType = null
  1786. this.form.isPeers = "Y"
  1787. this.accountTypeChange1();
  1788. }else{
  1789. this.payeeList = [];
  1790. this.chargeItme = [];
  1791. this.queryParams.isPeers = null
  1792. this.queryParams.accountType = ""
  1793. this.queryParams.bankType = ""
  1794. this.queryParams.status = "0"
  1795. listPayee(this.queryParams).then((response) => {
  1796. response.rows.map((res,index) => {
  1797. if(res.payeeType==1||res.payeeType==2){
  1798. response.rows[index].text = res.payee;
  1799. response.rows[index].value = res.id;
  1800. this.payeeList.push(res)
  1801. }
  1802. })
  1803. });
  1804. }
  1805. }else{
  1806. if(obj.payerFrom==1){
  1807. this.diglogStatus = false;
  1808. this.$notify({ type: 'danger', message: "请完善付款方“操作员代码”、“企业编码”、“支付口令”等信息!" });
  1809. this.$set(this.form,"payer","")
  1810. this.$set(this.form,"payerAccount","")
  1811. }else{
  1812. this.$set(this.form, "payerFrom", obj.parerFrom);
  1813. if(obj.operatorCode!=null&&obj.operatorCode!=''){
  1814. this.$set(this.form, "operatorCode", obj.operatorCode);
  1815. }else{
  1816. this.$set(this.form, "operatorCode", '');
  1817. }
  1818. if(obj.enterpriseCode!=null&&obj.enterpriseCode!=''){
  1819. this.$set(this.form, "enterpriseCode", obj.enterpriseCode);
  1820. }else{
  1821. this.$set(this.form, "enterpriseCode", '');
  1822. }
  1823. if(obj.accountPassword!=null&&obj.accountPassword!=''){
  1824. this.$set(this.form, "accountPassword", obj.accountPassword);
  1825. }else{
  1826. this.$set(this.form, "accountPassword", '');
  1827. }
  1828. this.$set(this.form, "bookId",'');
  1829. this.$set(this.form, "deptId", '');
  1830. this.$set(this.form, "cashierId", obj.id);
  1831. this.$set(this.form, "payer", obj.accountName);
  1832. this.$set(this.form, "bankType", obj.bankType);
  1833. if(obj.payerFrom==6){
  1834. getQmyeFlow(obj.bankAccountNumber).then((response) => {
  1835. this.$set(this.form, "payerAccount", response.data);
  1836. });
  1837. }else {
  1838. this.$set(this.form, "payerAccount", obj.bankAccountNumber);
  1839. }
  1840. }
  1841. }
  1842. },
  1843. beforeRead1(file) {
  1844. this.uploadFiles1.push(file.file);
  1845. },
  1846. deleteFile1(file){
  1847. this.uploadFiles1.map((response,index) => {
  1848. if(file.file == response){
  1849. this.uploadFiles1.splice(index,1)
  1850. }
  1851. })
  1852. },
  1853. beforeRead2(file) {
  1854. this.uploadFiles2.push(file.file);
  1855. },
  1856. deleteFile2(file){
  1857. this.uploadFiles2.map((response,index) => {
  1858. if(file.file == response){
  1859. this.uploadFiles2.splice(index,1)
  1860. }
  1861. })
  1862. },
  1863. beforeRead3(file) {
  1864. this.uploadFiles3.push(file.file);
  1865. },
  1866. deleteFile3(file){
  1867. this.uploadFiles3.map((response,index) => {
  1868. if(file.file == response){
  1869. this.uploadFiles3.splice(index,1)
  1870. }
  1871. })
  1872. },
  1873. getFileList(){
  1874. let oData1= {
  1875. tableId: this.$route.query.id,
  1876. tableName: "t_yinnong_transfer",
  1877. bizPath: "transfer",
  1878. fileType: "1",
  1879. }
  1880. attachmentList(oData1).then(res => {
  1881. res.rows.map(r => {
  1882. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  1883. this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
  1884. })
  1885. })
  1886. let oData2= {
  1887. tableId: this.$route.query.id,
  1888. tableName: "t_yinnong_transfer",
  1889. bizPath: "transfer",
  1890. fileType: "2",
  1891. }
  1892. attachmentList(oData2).then(res => {
  1893. res.rows.map(r => {
  1894. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  1895. this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
  1896. })
  1897. })
  1898. let oData3= {
  1899. tableId: this.$route.query.id,
  1900. tableName: "t_yinnong_transfer",
  1901. bizPath: "transfer",
  1902. fileType: "3",
  1903. }
  1904. attachmentList(oData3).then(res => {
  1905. res.rows.map(r => {
  1906. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  1907. this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
  1908. })
  1909. })
  1910. },
  1911. goBack(){
  1912. this.$router.push({path:'/yinnong/approvalList'})
  1913. },
  1914. deleteChargeItme(index){
  1915. this.chargeItme.splice(index,1)
  1916. },
  1917. },
  1918. watch: {
  1919. $route (to, from ) {
  1920. // 监听路由变化, 实现类似 小程序的 onShow 事件
  1921. if (to.path === '/yinnong/approvalAdd') {
  1922. // do anything you want
  1923. console.log("aaa")
  1924. if (this.$route.params.payeeForm){
  1925. this.chargeItme.push(this.$route.params.payeeForm)
  1926. console.log(this.$route.params.payeeForm)
  1927. }
  1928. }
  1929. }
  1930. },
  1931. }
  1932. </script>
  1933. <style scoped lang="scss">
  1934. .app-container {
  1935. padding: 2% 0;
  1936. }
  1937. .main_title_box{
  1938. display: flex;
  1939. justify-content: space-between;
  1940. align-items: center;
  1941. }
  1942. .main_title{
  1943. font-size: 0.4rem;
  1944. color: #1D6FE9;
  1945. margin: 0.2rem 6%;
  1946. position: relative;
  1947. a{
  1948. background: #1989fa;
  1949. color: #ffffff;
  1950. padding: 0.05rem 0.3rem;
  1951. border-radius: 5PX;
  1952. }
  1953. }
  1954. .main_box{
  1955. width: 96%;
  1956. margin: 0 auto;
  1957. border-radius: 6px;
  1958. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  1959. overflow: hidden;
  1960. background-color: #FFF;
  1961. }
  1962. .submitButton{
  1963. width: 80%;
  1964. margin: 0 auto;
  1965. background-color: #1D6FE9;
  1966. }
  1967. .addFamily{
  1968. //position: absolute;
  1969. //top: -2px;
  1970. //right: 0;
  1971. border-radius: 50%;
  1972. }
  1973. .deleteFamily{
  1974. position: absolute;
  1975. top: 0rem;
  1976. right: 6%;
  1977. z-index: 9;
  1978. border-radius: 50%;
  1979. }
  1980. </style>