移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1268 lines
48 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 v-if="!isModifyOrder" :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. v-model="item.bankTypeText"
  271. input-align="right"
  272. placeholder="请输入所属银行"
  273. required
  274. :rules="[{ required: true , message:'请选择所属银行' }]"
  275. />
  276. <!--<van-popup v-model="item.showbankType" position="bottom">
  277. <van-picker
  278. show-toolbar
  279. :columns="bankTypeDictionaries"
  280. @confirm="onConfirmBankType($event,index)"
  281. @cancel="item.showbankType = false"
  282. />
  283. </van-popup>-->
  284. </div>
  285. </div>
  286. <p class="main_title" v-if="isModifyOrder" style="margin: 0.2rem 3%;">上传附件<i style="margin-right: 0.5em;"></i><span style="font-size: 12px;color: red;">(若申请单未变动可不必点击底部的修改按钮)</span></p>
  287. <div class="main_box" style="padding: 5px 0 0 0;" v-if="isModifyOrder">
  288. <van-cell value="收据" />
  289. <van-uploader v-model="fileList1" :after-read="beforeRead('1')" @delete="deleteFile" style="margin-left:8px;"></van-uploader>
  290. <van-cell title="发票" />
  291. <van-uploader v-model="fileList2" :after-read="beforeRead('2')" @delete="deleteFile" style="margin-left:8px;"></van-uploader>
  292. <van-cell title="其他" />
  293. <van-uploader v-model="fileList3" :after-read="beforeRead('3')" @delete="deleteFile" style="margin-left:8px;"></van-uploader>
  294. </div>
  295. <div style="padding: 16px 0;">
  296. <van-row v-if="!isModifyOrder">
  297. <van-col span="24" align="center">
  298. <!-- @click="goUpdate"-->
  299. <van-button type="info" native-type="submit" @click="buttonType='save'" class="submitButton">保<i style="margin-right: 1em;"></i>存</van-button>
  300. </van-col>
  301. </van-row>
  302. <van-row v-else>
  303. <van-col span="12" align="center">
  304. <van-button type="info" native-type="submit" @click="buttonType='update'" class="submitButton">修<i style="margin-right: 1em;"></i>改</van-button>
  305. </van-col>
  306. <van-col span="12" align="center">
  307. <van-button type="info" native-type="submit" @click="buttonType='add'" class="submitButton">保存并提交</van-button>
  308. </van-col>
  309. </van-row>
  310. <div class="clear"></div>
  311. </div>
  312. </van-form>
  313. </div>
  314. </template>
  315. <script>
  316. import { addTransfer , listPayee , updateTransfer , getProjectto , listProject , addProjectto ,selectApprovalByTemplateId,
  317. customSubmit ,offlineCustomSubmit, getAccount ,getQmyeFlow , attach ,listInfo ,getInfoto ,addInfoto,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
  318. import request from '@/utils/request'
  319. import {attachmentList, commonAttach,systemAttachment} from "../../../../api/onlineHome/bankAgriculture/paymentApproval";
  320. import Dialog from "vant/lib/dialog";
  321. export default {
  322. name: "approvalAdd",
  323. data() {
  324. return {
  325. showtemplate:false,
  326. showcontract:false,
  327. showcapital:false,
  328. showpayee:false,
  329. showlasj:false,
  330. showbankType:false,
  331. showproject:false,
  332. showFundType:false,
  333. showpayer:false,
  334. buttonType:'a',
  335. minDate: new Date(2000, 1, 1),
  336. maxDate: new Date(2050, 12, 31),
  337. currentDate: new Date(),
  338. form:{
  339. id: null,
  340. upId: null,
  341. applyDate:this.nowDate,
  342. approvalMode:'1',
  343. downId: null,
  344. orderId: null,
  345. cashierId: null,
  346. transferType: '1',
  347. accountType: null,
  348. isPeers:null,
  349. explainSituation: null,
  350. succeedAmount: null,
  351. payer: null,
  352. payerAccount: null,
  353. operatorCode: null,
  354. enterpriseCode: null,
  355. expenditureAmount: null,
  356. capitalExpenditureType: '1',
  357. remark: null,
  358. transferStatus: "0",
  359. auditStatus: "0",
  360. paymentState: "1",
  361. bankPriority: "0",
  362. clientPriority: "0"
  363. },
  364. fileList1:[],
  365. fileList2:[],
  366. fileList3:[],
  367. capitalExpenditureType:'结算类',
  368. payee:'',
  369. bankType:'',
  370. wfydlxDictionaries:[],
  371. jglxDictionaries:[],
  372. sysDictionaries:[],
  373. capitalExpenditureTypeOptions:[],
  374. bankTypeDictionaries:[],
  375. projectList:[],
  376. projectFundTypeOptions:[],
  377. projectFundTypeDictionaries:[],
  378. infoList:[],
  379. payerOptions:[],
  380. chargeItme:[],
  381. chargeItmeShow:[],
  382. templateList:[],
  383. payeeList:[],
  384. // 查询参数
  385. queryParams: {
  386. transferType:"",
  387. orderByColumn: "id",
  388. isAsc: "desc",
  389. },
  390. capitalExpenditureOpen:false,
  391. contractOpen:false,
  392. projectForm:{
  393. projectId:null,
  394. projectName:null,
  395. projectContractor:null,
  396. projectAmount:null,
  397. projectBillNum:null,
  398. projectFundType:'1',
  399. outId:null,
  400. ynType:'1'
  401. },
  402. infoForm:{
  403. infoId:null,
  404. name:null,
  405. code:null,
  406. totalAmount:null,
  407. contractionId:null,
  408. transferId:null
  409. },
  410. // 合同信息查询参数
  411. queryContractionParams: {
  412. pageNum: 1,
  413. pageSize: 100,
  414. contractionStatus: '1',
  415. orderByColumn: "endTime",
  416. isAsc: "desc",
  417. },
  418. projectFundType:'',
  419. nowDate:"",
  420. isModifyOrder:false, //是已创建订单 false新建订单 true已创建订单
  421. };
  422. },
  423. created() {
  424. this.getNowDate();
  425. this.reset();
  426. this.initProjectInfo();
  427. this.capitalExpenditureOpen = false
  428. this.getDicts("project_fund_type").then((response) => {
  429. for (var i = 0; i < response.data.length; i++) {
  430. this.projectFundTypeOptions.push({text: response.data[i].dictLabel, value: response.data[i].dictValue});
  431. }
  432. this.projectFundTypeDictionaries = response.data;
  433. });
  434. let params1={
  435. accountType: "102",
  436. // "params":{townAccountType:'0'},
  437. status: "N",
  438. }
  439. getAccount(params1).then((response) => {
  440. this.payerOptions = response.rows;
  441. response.rows.map((res,index) => {
  442. res['payerFrom'] = '1'
  443. this.payerOptions[index].text = res.accountName;
  444. this.payerOptions[index].value = res.id;
  445. })
  446. });
  447. this.getDictionaries();
  448. this.getTemplateList();
  449. },
  450. methods: {
  451. goFlow(){
  452. if(this.form.approvalMode == '1' && this.form.approvalTemplateId != undefined && this.form.approvalTemplateId != "undefined"){
  453. window.location='approvalProcess3?approvalTemplateId='+this.form.approvalTemplateId+'&approvalMode='+this.form.approvalMode;
  454. }else{
  455. this.$notify({ type: 'danger', message: '无审批流程!' });
  456. }
  457. },
  458. getTemplateList(){
  459. let templateQueryParams = {
  460. // 分页
  461. pageNum: 1,
  462. pageSize: 999,
  463. type:'1'
  464. };
  465. listTemplate(templateQueryParams).then(response => {
  466. this.templateList = response.rows;
  467. });
  468. },
  469. onConfirmTemplate(data){
  470. selectApprovalByTemplateId(data.id).then(res => {
  471. this.showtemplate = false;
  472. if(res.approvalDetails.length>0){
  473. this.form.approvalTemplateName = data.name
  474. this.form.approvalTemplateId = data.id
  475. }else{
  476. this.form.approvalTemplateName = null
  477. this.form.approvalTemplateId = null
  478. this.$notify({ type: 'danger', message: '此流程无节点,无法选择!' });
  479. }
  480. })
  481. },
  482. getNowDate(){
  483. var _this = this;
  484. let yy = new Date().getFullYear();
  485. let mm = new Date().getMonth()+1;
  486. let dd = new Date().getDate();
  487. _this.nowDate = yy+'-'+mm+'-'+dd
  488. },
  489. initProjectInfo(){
  490. let _this = this
  491. let queryParams={
  492. pageNum: 1,
  493. pageSize: 100,
  494. }
  495. listProject(queryParams).then(response => {
  496. _this.projectList = response.rows;
  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. _this.infoList = response.rows;
  505. for (let i = 0; i < response.rows.length; i++) {
  506. //_this.infoList[i].push({text: response.rows[i].name, value: response.rows[i].code});
  507. _this.$set(_this.infoList[i],"text",response.rows[i].name)
  508. _this.$set(_this.infoList[i],"value",response.rows[i].code)
  509. }
  510. });
  511. },
  512. // 表单重置
  513. reset() {
  514. this.form = {
  515. id: null,
  516. upId: null,
  517. applyDate:this.nowDate,
  518. approvalMode:'1',
  519. downId: null,
  520. orderId: null,
  521. cashierId: null,
  522. transferType: '1',
  523. accountType: null,
  524. isPeers:null,
  525. explainSituation: null,
  526. succeedAmount: null,
  527. payer: null,
  528. payerAccount: null,
  529. operatorCode: null,
  530. enterpriseCode: null,
  531. expenditureAmount: null,
  532. capitalExpenditureType: '1',
  533. remark: null,
  534. transferStatus: "0",
  535. auditStatus: "0",
  536. paymentState: "1",
  537. bankPriority: "0",
  538. clientPriority: "0"
  539. };
  540. this.processList = {}
  541. this.projectForm={
  542. projectId:null,
  543. projectName:null,
  544. projectContractor:null,
  545. projectAmount:null,
  546. projectBillNum:null,
  547. projectFundType:'1',
  548. outId:null,
  549. ynType:'1'
  550. }
  551. },
  552. getChange(){
  553. if(this.buttonType == 'save'){
  554. //保存
  555. this.goSave();
  556. }else if(this.buttonType == 'add'){
  557. //保存并提交
  558. this.goAdd();
  559. }else if(this.buttonType == 'update'){
  560. //修改
  561. this.goUpdate();
  562. }
  563. },
  564. getDictionaries(){
  565. this.getDicts("capital_expenditure_type").then((res) => {
  566. for (var i = 0; i < res.data.length; i++) {
  567. this.capitalExpenditureTypeOptions.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  568. }
  569. });
  570. this.getDicts("bank_type_all").then(res => {
  571. for (var i = 0; i < res.data.length; i++) {
  572. this.bankTypeDictionaries.push({text: res.data[i].dictLabel, value: res.data[i].dictValue});
  573. }
  574. });
  575. },
  576. getError(e){
  577. this.$notify({ type: 'danger', message: e.errors[0].message });
  578. },
  579. addChargeItme(index){
  580. if(this.chargeItme.length>0&&this.chargeItme[this.chargeItme.length-1].payee == ''){
  581. this.$notify({ type: 'danger', message: '请勿添加多个空列表信息' });
  582. return;
  583. }else if(this.chargeItme.length>0&&this.chargeItme[index-1].incomeAmount == ''){
  584. this.$notify({ type: 'danger', message: '请输入收入金额!' });
  585. return;
  586. }else if(this.chargeItme.length>0&&this.chargeItme[index-1].payeeAccount == ''){
  587. this.$notify({ type: 'danger', message: '请输入收款账户!' });
  588. return;
  589. }else if(this.chargeItme.length>0&&this.chargeItme[index-1].bankDeposit == ''){
  590. this.$notify({ type: 'danger', message: '请输入开户银行!' });
  591. return;
  592. }else if(this.chargeItme.length>0&&this.chargeItme[index-1].bankType == ''){
  593. this.$notify({ type: 'danger', message: '请选择所属银行!' });
  594. return;
  595. }
  596. if(this.form.bankType == '2' && this.form.isPeers == 'N' && this.chargeItme.length>0 && this.chargeItme != []){
  597. this.$notify({ type: 'danger', message: '目前农商行仅支持单笔跨行转账,即仅能有一个收款方!' });
  598. }else{
  599. this.getDicts("bank_type").then(res => {
  600. this.chargeItme.splice(index + 1, 0, {
  601. payeeId: "", //收款方ID
  602. payee: "", //收款方
  603. payeeAccount: "", //收款账户
  604. bankDeposit: "", //开户银行
  605. incomeAmount: "", //收入金额
  606. bankType: null, //所属银行
  607. bankTypeText:"", //所属银行
  608. showPayee:false,
  609. showbankType:false
  610. });
  611. });}
  612. },
  613. getPayeeList() {
  614. //普通转账
  615. this.queryParams.status = "0"
  616. listPayee(this.queryParams).then((response) => {
  617. response.rows.map((res,index) => {
  618. if(res.payeeType==1||res.payeeType==2){
  619. res.text = res.payee;
  620. res.value = res.id;
  621. this.payeeList.push(res)
  622. }
  623. })
  624. });
  625. },
  626. payeeDictLabel(datas, value) {
  627. var actions = [];
  628. Object.keys(datas).some((key) => {
  629. if (datas[key].payeeId == ('' + value)) {
  630. actions.push(datas[key].payee);
  631. return true;
  632. }
  633. })
  634. return actions.join('');
  635. },
  636. onConfirmCapital(data){
  637. if (data.value == 2){
  638. this.capitalExpenditureOpen = true;
  639. this.contractOpen = false
  640. this.infoForm = {};
  641. }else if(data.value == 4){
  642. this.capitalExpenditureOpen = false;
  643. this.contractOpen = true
  644. this.projectForm = {};
  645. }else{
  646. this.capitalExpenditureOpen = false;
  647. this.contractOpen = false
  648. this.projectForm = {};
  649. this.infoForm = {};
  650. }
  651. this.capitalExpenditureType = data.text;
  652. this.form.capitalExpenditureType = data.value;
  653. this.showcapital = false;
  654. },
  655. onConfirmFundType(data){
  656. this.projectForm.projectFundType = data.value;
  657. this.projectFundType = data.text;
  658. this.showFundType = false;
  659. },
  660. onConfirmContract(data){
  661. this.infoList.map(res => {
  662. if(res.name==data.text){
  663. this.infoForm.contractionId = res.id;
  664. this.infoForm.name = res.name;
  665. this.infoForm.code = res.code;
  666. this.infoForm.totalAmount = res.totalAmount;
  667. }
  668. })
  669. this.showcontract = false;
  670. },
  671. onConfirmProject(data){
  672. this.projectList.map(res => {
  673. if(res.projectName==data.text){
  674. this.projectForm.projectId = res.id
  675. this.projectForm.projectName = res.projectName
  676. this.projectForm.projectContractor = res.projectContractor
  677. this.projectForm.projectAmount = res.projectAmount
  678. }
  679. })
  680. this.showproject = false;
  681. },
  682. onConfirmPayee(data,index){
  683. for (var i = 0 ; i < this.chargeItme.length ; i++){
  684. this.chargeItme[i].showPayee = false;
  685. }
  686. this.chargeItme[index].payee = data.text;
  687. this.chargeItme[index].payeeId = data.value;
  688. this.chargeItme[index].showpayee = false;
  689. this.payeeSelectChange(data.value , index)
  690. },
  691. onConfirmBankType(data,index){
  692. for (var i = 0 ; i < this.chargeItme.length ; i++){
  693. this.chargeItme[i].showbankType = false;
  694. }
  695. this.chargeItme[index].bankTypeText = data.text;
  696. this.chargeItme[index].bankType = data.value;
  697. this.chargeItme[index].showbankType = false;
  698. },
  699. onConfirmPayer(data){
  700. this.form.payer = data.text;
  701. this.form.cashierId = data.value;
  702. this.showpayer = false;
  703. this.selectChange(data.value)
  704. },
  705. onConfirmLasj(data){
  706. this.form.applyDate = this.getNowFormatDate(data).substr(0,10);
  707. this.showlasj = false;
  708. },
  709. accountTypeChange(e){
  710. this.payeeList = [];
  711. this.chargeItme = [];
  712. this.queryParams.isPeers = this.form.isPeers
  713. this.queryParams.accountType = this.form.accountType
  714. this.queryParams.bankType = this.form.bankType
  715. this.queryParams.status = "0"
  716. listPayee(this.queryParams).then((response) => {
  717. response.rows.map((res,index) => {
  718. if(res.payeeType==1||res.payeeType==2){
  719. response.rows[index].text = res.payee;
  720. response.rows[index].value = res.id;
  721. this.payeeList.push(res)
  722. }
  723. })
  724. });
  725. },
  726. accountTypeChange1(e){
  727. this.payeeList = [];
  728. this.chargeItme = [];
  729. this.queryParams.isPeers = this.form.isPeers
  730. this.queryParams.accountType = this.form.accountType
  731. this.queryParams.bankType = this.form.bankType
  732. this.queryParams.status = "0"
  733. listPayee(this.queryParams).then((response) => {
  734. response.rows.map((res,index) => {
  735. if(res.payeeType==1||res.payeeType==2){
  736. response.rows[index].text = res.payee;
  737. response.rows[index].value = res.id;
  738. this.payeeList.push(res)
  739. }
  740. })
  741. });
  742. },
  743. // 钱计算
  744. moneyChange(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. if(this.chargeItme.length<1){
  758. this.$notify({ type: 'danger', message: '请添加收款方信息' });
  759. return;
  760. }
  761. if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
  762. this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
  763. return;
  764. }
  765. if(this.form.capitalExpenditureType==2){
  766. if(this.projectForm.projectName==""||this.projectForm.projectName==null){
  767. this.$notify({ type: 'danger', message: '请选择项目名称!' });
  768. return;
  769. }
  770. if(this.projectForm.projectBillNum==""||this.projectForm.projectBillNum==null){
  771. this.$notify({ type: 'danger', message: '请输入工程发票号!' });
  772. return;
  773. }
  774. }
  775. if(this.form.capitalExpenditureType==4){
  776. if(this.infoForm.name==""||this.infoForm.name==null){
  777. this.$notify({ type: 'danger', message: '请选择合同名称!' });
  778. return;
  779. }
  780. if(this.infoForm.code==""||this.infoForm.code==null){
  781. this.$notify({ type: 'danger', message: '请输入合同编码!' });
  782. return;
  783. }
  784. if(this.infoForm.totalAmount==""||this.infoForm.totalAmount==null){
  785. this.$notify({ type: 'danger', message: '请输入合同价款!' });
  786. return;
  787. }
  788. }
  789. if(this.fileList1.length==0&&this.fileList2.length==0&&this.fileList3.length==0){
  790. Dialog.confirm({
  791. title: '提示',
  792. message: '此申请单中未上传任何附件,是否确认提交?',
  793. })
  794. .then(() => {
  795. this.saveRelease()
  796. })
  797. .catch(() => {
  798. return false;
  799. });
  800. }else{
  801. this.saveRelease()
  802. }
  803. },
  804. saveRelease(){
  805. let _this = this;
  806. this.$set(this.form, "payeeList", this.chargeItme);
  807. this.$set(this.form, "bankTypeList", this.chargeItme);
  808. this.$set(this.form, "accountTypeList", this.chargeItme);
  809. this.$set(this.form, "transferStatusList", this.chargeItme);
  810. updateTransfer(this.form).then(response => {
  811. this.projectForm.outId = this.form.id
  812. this.infoForm.transferId = this.form.id
  813. this.$set(this.projectForm, "ynType", '1');
  814. if(this.form.capitalExpenditureType==2){
  815. addProjectto(this.projectForm).then(res => {
  816. if(this.form.approvalMode === '1'){
  817. customSubmit(this.projectForm.outId).then(res => {
  818. this.$toast.success('提交成功');
  819. setTimeout(function(){
  820. _this.$router.push('/yinnong/approvalList')
  821. },1000)
  822. })
  823. }else{
  824. offlineCustomSubmit(this.projectForm.outId).then(res => {
  825. this.$toast.success('提交成功');
  826. setTimeout(function(){
  827. _this.$router.push('/yinnong/approvalList')
  828. },1000)
  829. })
  830. }
  831. })
  832. }else if(this.form.capitalExpenditureType==4){
  833. addInfoto(this.infoForm).then(res => {
  834. if(this.form.approvalMode === '1'){
  835. customSubmit(this.projectForm.outId).then(res => {
  836. this.$toast.success('提交成功');
  837. setTimeout(function(){
  838. _this.$router.push('/yinnong/approvalList')
  839. },1000)
  840. })
  841. }else{
  842. offlineCustomSubmit(this.projectForm.outId).then(res => {
  843. this.$toast.success('提交成功');
  844. setTimeout(function(){
  845. _this.$router.push('/yinnong/approvalList')
  846. },1000)
  847. })
  848. }
  849. })
  850. }else{
  851. if(this.form.approvalMode === '1'){
  852. customSubmit(this.projectForm.outId).then(res => {
  853. this.$toast.success('提交成功');
  854. setTimeout(function(){
  855. _this.$router.push('/yinnong/approvalList')
  856. },1000)
  857. })
  858. }else{
  859. offlineCustomSubmit(this.projectForm.outId).then(res => {
  860. this.$toast.success('提交成功');
  861. setTimeout(function(){
  862. _this.$router.push('/yinnong/approvalList')
  863. },2000)
  864. })
  865. }
  866. }
  867. })
  868. },
  869. goSave(){
  870. let _this = this
  871. if(this.chargeItme.length<1){
  872. this.$notify({ type: 'danger', message: '请添加收款方信息' });
  873. return;
  874. }
  875. if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
  876. this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
  877. return;
  878. }
  879. if(this.form.capitalExpenditureType==2){
  880. if(this.projectForm.projectName==""||this.projectForm.projectName==null){
  881. this.$notify({ type: 'danger', message: '请选择项目名称!' });
  882. return;
  883. }
  884. if(this.projectForm.projectBillNum==""||this.projectForm.projectBillNum==null){
  885. this.$notify({ type: 'danger', message: '请输入工程发票号!' });
  886. return;
  887. }
  888. }
  889. if(this.form.capitalExpenditureType==4){
  890. if(this.infoForm.name==""||this.infoForm.name==null){
  891. this.$notify({ type: 'danger', message: '请选择合同名称!' });
  892. return;
  893. }
  894. if(this.infoForm.code==""||this.infoForm.code==null){
  895. this.$notify({ type: 'danger', message: '请输入合同编码!' });
  896. return;
  897. }
  898. if(this.infoForm.totalAmount==""||this.infoForm.totalAmount==null){
  899. this.$notify({ type: 'danger', message: '请输入合同价款!' });
  900. return;
  901. }
  902. }
  903. this.$set(this.form, "payeeList", this.chargeItme);
  904. this.$set(this.form, "bankTypeList", this.chargeItme);
  905. this.$set(this.form, "accountTypeList", this.chargeItme);
  906. this.$set(this.form, "transferStatusList", this.chargeItme);
  907. addTransfer(this.form).then(response => {
  908. this.projectForm.outId = response.data.id;
  909. this.infoForm.transferId = response.data.id;
  910. this.form.id = response.data.id;
  911. this.$set(this.projectForm, "ynType", '1');
  912. this.isModifyOrder = true;
  913. if(this.form.capitalExpenditureType==2){
  914. addProjectto(this.projectForm).then(res => {
  915. // this.$toast.success('保存成功');
  916. // setTimeout(function(){
  917. // history.go(-1)
  918. // },2000)
  919. })
  920. } else if(this.form.capitalExpenditureType==4){
  921. addInfoto(this.infoForm).then(res => {
  922. // this.$toast.success('保存成功');
  923. // setTimeout(function(){
  924. // history.go(-1)
  925. // },2000)
  926. })
  927. }else{
  928. // this.$toast.success('保存成功');
  929. // setTimeout(function(){
  930. // history.go(-1)
  931. // },2000)
  932. }
  933. });
  934. },
  935. goUpdate(){
  936. let _this = this;
  937. if(this.chargeItme.length<1){
  938. this.$notify({ type: 'danger', message: '请添加收款方信息' });
  939. return;
  940. }
  941. if(this.form.remark != null && this.form.remark.indexOf("|")!=-1){
  942. this.$notify({ type: 'danger', message: '转账附言禁止包含!' });
  943. return;
  944. }
  945. if(this.form.capitalExpenditureType==2){
  946. if(this.projectForm.projectName==""||this.projectForm.projectName==null){
  947. this.$notify({ type: 'danger', message: '请选择项目名称!' });
  948. return;
  949. }
  950. if(this.projectForm.projectBillNum==""||this.projectForm.projectBillNum==null){
  951. this.$notify({ type: 'danger', message: '请输入工程发票号!' });
  952. return;
  953. }
  954. }
  955. if(this.form.capitalExpenditureType==4){
  956. if(this.infoForm.name==""||this.infoForm.name==null){
  957. this.$notify({ type: 'danger', message: '请选择合同名称!' });
  958. return;
  959. }
  960. if(this.infoForm.code==""||this.infoForm.code==null){
  961. this.$notify({ type: 'danger', message: '请输入合同编码!' });
  962. return;
  963. }
  964. if(this.infoForm.totalAmount==""||this.infoForm.totalAmount==null){
  965. this.$notify({ type: 'danger', message: '请输入合同价款!' });
  966. return;
  967. }
  968. }
  969. this.$set(this.form, "payeeList", this.chargeItme);
  970. this.$set(this.form, "bankTypeList", this.chargeItme);
  971. this.$set(this.form, "accountTypeList", this.chargeItme);
  972. this.$set(this.form, "transferStatusList", this.chargeItme);
  973. updateTransfer(this.form).then(response => {
  974. this.projectForm.outId = this.form.id
  975. this.infoForm.transferId = this.form.id
  976. this.$set(this.projectForm, "ynType", '1');
  977. setTimeout(function(){
  978. _this.$router.push('/yinnong/approvalList')
  979. },1000)
  980. })
  981. },
  982. payeeSelectChange(select, i) {
  983. let obj = {};
  984. let fuzhitype = 0;
  985. obj = this.payeeList.find((account) => {
  986. //model就是上面的数据源
  987. return account.id === select ; //筛选出匹配数据
  988. });
  989. let _this = this
  990. if(this.chargeItme != [] && this.chargeItme.length>1){
  991. this.chargeItme.some((value, index) => {
  992. if(value.payeeAccount != undefined &&value.payeeAccount != '' && obj.payeeAccount == value.payeeAccount&&index!=i&&this.form.bankType != 2){
  993. fuzhitype = 2;
  994. return true;
  995. }
  996. if(_this.form.isPeers!=undefined&&_this.form.isPeers!=null&&_this.form.isPeers=='N'){
  997. }else{
  998. if(obj.bankType==1&&value.accountType != undefined &&value.accountType != '' && obj.accountType != value.accountType&&index!=i){
  999. fuzhitype = 1;
  1000. return true;
  1001. }
  1002. }
  1003. });
  1004. }
  1005. if(fuzhitype == 0){
  1006. this.$set(this.chargeItme[i], "payee",obj.payee)
  1007. this.$set(this.chargeItme[i], "bankType", obj.bankType)
  1008. this.$set(this.chargeItme[i], "payeeId", obj.id);
  1009. this.$set(this.chargeItme[i], "payeeAccount", obj.payeeAccount);
  1010. this.$set(this.chargeItme[i], "bankDeposit", obj.bankDeposit);
  1011. this.$set(this.chargeItme[i], "accountType", obj.accountType);
  1012. this.$set(this.chargeItme[i], "payeePaymentLines", obj.payeePaymentLines);
  1013. _this.bankTypeDictionaries.map(rr => {
  1014. if(rr.value==obj.bankType){
  1015. this.$set(this.chargeItme[i], "bankTypeText", rr.text);
  1016. }
  1017. })
  1018. }else if(fuzhitype == 1){
  1019. this.$set(this.chargeItme[i], "payee",'')
  1020. this.$set(this.chargeItme[i], "bankType",'')
  1021. this.$set(this.chargeItme[i], "payeeId", '');
  1022. this.$set(this.chargeItme[i], "payeeAccount", '');
  1023. this.$set(this.chargeItme[i], "bankDeposit", '');
  1024. this.$set(this.chargeItme[i], "accountType", '');
  1025. this.$set(this.chargeItme[i], "payeePaymentLines", '');
  1026. this.$set(this.chargeItme[i], "bankTypeText", '');
  1027. this.$notify({ type: 'danger', message: '请选择账户类型相同的收款方!' });
  1028. }else if(fuzhitype == 2){
  1029. this.$set(this.chargeItme[i], "payee",'')
  1030. this.$set(this.chargeItme[i], "bankType",'')
  1031. this.$set(this.chargeItme[i], "payeeId", '');
  1032. this.$set(this.chargeItme[i], "payeeAccount", '');
  1033. this.$set(this.chargeItme[i], "bankDeposit", '');
  1034. this.$set(this.chargeItme[i], "accountType", '');
  1035. this.$set(this.chargeItme[i], "payeePaymentLines", '');
  1036. this.$set(this.chargeItme[i], "bankTypeText", '');
  1037. this.$notify({ type: 'danger', message: '收款方已存在!' });
  1038. }
  1039. },
  1040. selectChange(select) {
  1041. let obj = {};
  1042. obj = this.payerOptions.find((account) => {
  1043. //model就是上面的数据源
  1044. return account.id === select; //筛选出匹配数据
  1045. });
  1046. if(obj.accountPassword != null && obj.accountPassword != "" &&
  1047. obj.bankType != null && obj.bankType != ""){
  1048. this.$set(this.form, "bookId", obj.bookId);
  1049. this.$set(this.form, "deptId", obj.deptId);
  1050. this.$set(this.form, "cashierId", obj.id);
  1051. this.$set(this.form, "payer", obj.accountName);
  1052. this.$set(this.form, "payerAccount", obj.bankAccountNumber);
  1053. this.$set(this.form, "operatorCode", obj.operatorCode);
  1054. this.$set(this.form, "enterpriseCode", obj.enterpriseCode);
  1055. this.$set(this.form, "bankType", obj.bankType);
  1056. this.$set(this.form, "bankAccountType", obj.bankAccountType);
  1057. this.$set(this.form, "villageAccountType", obj.villageAccountType);
  1058. this.$set(this.form, "taccountId", obj.taccountId);
  1059. this.$set(this.form, "accountNo", obj.accountNo);
  1060. this.$set(this.form, "cifNo", obj.cifNo);
  1061. this.$set(this.form, "payerFrom", '1');
  1062. if(obj.bankType==1){
  1063. this.form.accountType = "1"
  1064. this.form.isPeers = null
  1065. this.accountTypeChange();
  1066. }else if(obj.bankType==2||obj.bankType==3||obj.bankType==4){
  1067. this.form.accountType = null
  1068. this.form.isPeers = "Y"
  1069. this.accountTypeChange1();
  1070. }else{
  1071. this.payeeList = [];
  1072. this.chargeItme = [];
  1073. this.queryParams.isPeers = null
  1074. this.queryParams.accountType = ""
  1075. this.queryParams.bankType = ""
  1076. this.queryParams.status = "0"
  1077. listPayee(this.queryParams).then((response) => {
  1078. response.rows.map((res,index) => {
  1079. if(res.payeeType==1||res.payeeType==2){
  1080. response.rows[index].text = res.payee;
  1081. response.rows[index].value = res.id;
  1082. this.payeeList.push(res)
  1083. }
  1084. })
  1085. });
  1086. }
  1087. }else{
  1088. if(obj.payerFrom==1){
  1089. this.diglogStatus = false;
  1090. this.$notify({ type: 'danger', message: "请完善付款方“操作员代码”、“企业编码”、“支付口令”等信息!" });
  1091. this.$set(this.form,"payer","")
  1092. this.$set(this.form,"payerAccount","")
  1093. }else{
  1094. this.$set(this.form, "payerFrom", obj.parerFrom);
  1095. if(obj.operatorCode!=null&&obj.operatorCode!=''){
  1096. this.$set(this.form, "operatorCode", obj.operatorCode);
  1097. }else{
  1098. this.$set(this.form, "operatorCode", '');
  1099. }
  1100. if(obj.enterpriseCode!=null&&obj.enterpriseCode!=''){
  1101. this.$set(this.form, "enterpriseCode", obj.enterpriseCode);
  1102. }else{
  1103. this.$set(this.form, "enterpriseCode", '');
  1104. }
  1105. if(obj.accountPassword!=null&&obj.accountPassword!=''){
  1106. this.$set(this.form, "accountPassword", obj.accountPassword);
  1107. }else{
  1108. this.$set(this.form, "accountPassword", '');
  1109. }
  1110. this.$set(this.form, "bookId",'');
  1111. this.$set(this.form, "deptId", '');
  1112. this.$set(this.form, "cashierId", obj.id);
  1113. this.$set(this.form, "payer", obj.accountName);
  1114. this.$set(this.form, "bankType", obj.bankType);
  1115. if(obj.payerFrom==6){
  1116. getQmyeFlow(obj.bankAccountNumber).then((response) => {
  1117. this.$set(this.form, "payerAccount", response.data);
  1118. });
  1119. }else {
  1120. this.$set(this.form, "payerAccount", obj.bankAccountNumber);
  1121. }
  1122. }
  1123. }
  1124. },
  1125. beforeRead(obj) {
  1126. return (file) =>{
  1127. let params1 = new FormData();
  1128. params1.append("tableId", this.projectForm.outId);
  1129. params1.append("tableName", "t_yinnong_transfer");
  1130. params1.append("bizPath", "transfer");
  1131. params1.append("fileType", obj);
  1132. params1.append("file", file.file);
  1133. commonAttach(params1).then((r1) => {
  1134. file.id=r1.id;
  1135. file.fileUrl = r1.fileUrl;
  1136. })
  1137. }
  1138. },
  1139. deleteFile(file){
  1140. systemAttachment(file.id).then((res) => {});
  1141. },
  1142. getFileList(){
  1143. let oData1= {
  1144. tableId: this.$route.query.id,
  1145. tableName: "t_yinnong_transfer",
  1146. bizPath: "transfer",
  1147. fileType: "1",
  1148. }
  1149. attachmentList(oData1).then(res => {
  1150. res.rows.map(r => {
  1151. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  1152. this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
  1153. })
  1154. })
  1155. let oData2= {
  1156. tableId: this.$route.query.id,
  1157. tableName: "t_yinnong_transfer",
  1158. bizPath: "transfer",
  1159. fileType: "2",
  1160. }
  1161. attachmentList(oData2).then(res => {
  1162. res.rows.map(r => {
  1163. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  1164. this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
  1165. })
  1166. })
  1167. let oData3= {
  1168. tableId: this.$route.query.id,
  1169. tableName: "t_yinnong_transfer",
  1170. bizPath: "transfer",
  1171. fileType: "3",
  1172. }
  1173. attachmentList(oData3).then(res => {
  1174. res.rows.map(r => {
  1175. let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
  1176. this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})})
  1177. })
  1178. })
  1179. },
  1180. goBack(){
  1181. this.$router.push({path:'/yinnong/approvalList'})
  1182. },
  1183. deleteChargeItme(index){
  1184. this.chargeItme.splice(index,1)
  1185. },
  1186. },
  1187. watch: {
  1188. $route (to, from ) {
  1189. // 监听路由变化, 实现类似 小程序的 onShow 事件
  1190. if (to.path === '/yinnong/approvalAdd') {
  1191. // do anything you want
  1192. if (this.$route.params.payeeForm){
  1193. this.chargeItme.push(this.$route.params.payeeForm)
  1194. }
  1195. }
  1196. }
  1197. },
  1198. }
  1199. </script>
  1200. <style scoped lang="scss">
  1201. .app-container {
  1202. padding: 2% 0;
  1203. }
  1204. .main_title_box{
  1205. display: flex;
  1206. justify-content: space-between;
  1207. align-items: center;
  1208. }
  1209. .main_title{
  1210. font-size: 0.4rem;
  1211. color: #1D6FE9;
  1212. margin: 0.2rem 6%;
  1213. position: relative;
  1214. a{
  1215. background: #1989fa;
  1216. color: #ffffff;
  1217. padding: 0.05rem 0.3rem;
  1218. border-radius: 5PX;
  1219. }
  1220. }
  1221. .main_box{
  1222. width: 96%;
  1223. margin: 0 auto;
  1224. border-radius: 6px;
  1225. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  1226. overflow: hidden;
  1227. background-color: #FFF;
  1228. }
  1229. .submitButton{
  1230. width: 80%;
  1231. margin: 0 auto;
  1232. background-color: #1D6FE9;
  1233. }
  1234. .addFamily{
  1235. //position: absolute;
  1236. //top: -2px;
  1237. //right: 0;
  1238. border-radius: 50%;
  1239. }
  1240. .deleteFamily{
  1241. position: absolute;
  1242. top: 0rem;
  1243. right: 6%;
  1244. z-index: 9;
  1245. border-radius: 50%;
  1246. }
  1247. </style>