PaymentFiled.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. <template>
  2. <div v-loading.fullscreen.lock="fullscreenLoading">
  3. <div class="paymentfiled-all">
  4. <div class="paymentfiled-haed-box">
  5. <div class="paymentfiled-haed">
  6. <el-date-picker style="width:400px" v-model="value2" type="daterange" align="left" unlink-panels range-separator="至"
  7. start-placeholder="开始日期" end-placeholder="结束日期" @change="datechange"
  8. :picker-options="pickerOptions">
  9. </el-date-picker>
  10. <div class="haed-btn">
  11. <el-button @click="PostPayRequestCheckedChange(1)" type="primary">保存勾选</el-button>
  12. <el-button @click="PostPayRequestCheckedChange(2)" type="primary">清空勾选</el-button>
  13. <el-button @click="checkCheckbox" type="primary">查看勾选</el-button>
  14. <el-button @click="datechange" type="primary">查看全部</el-button>
  15. <el-select style="width:200px" v-model="value" filterable placeholder="请选择">
  16. <el-option
  17. v-for="item in options"
  18. :key="item.id"
  19. :label="item.conpamyName"
  20. :value="item.id">
  21. </el-option>
  22. </el-select>
  23. <el-button @click="generatebtn" type="primary">生成</el-button>
  24. <el-button @click="paymentbtn" type="primary">付款</el-button>
  25. </div>
  26. </div>
  27. </div>
  28. <div class="paymentfiled-info">
  29. <div class="paymentfiled-info-li">
  30. <label>付款申请人:</label>
  31. <span>{{applicant}}</span>
  32. </div>
  33. <div class="paymentfiled-info-li">
  34. <label>申请付款日期:</label>
  35. <span>{{application}}</span>
  36. </div>
  37. <!-- <div class="paymentfiled-info-li">
  38. <label>申请付款金额:</label>
  39. <span>公转:{{revolution}} CNY</span>
  40. &nbsp;
  41. &nbsp;
  42. <span>私转:{{privateTransfer}} CNY</span>
  43. </div> -->
  44. </div>
  45. <div class="paymentfiled-form">
  46. <el-collapse v-model="activeNames" @change="handleChange">
  47. <el-collapse-item name="2">
  48. <template slot="title">
  49. <div style="width: 100%;">
  50. <p style="float: left;user-select: none;">
  51. 团组付款申请
  52. </p>
  53. <p align="right" style="user-select: none;">
  54. <span>公转:{{tzrevolution}} CNY</span>
  55. &nbsp;
  56. &nbsp;
  57. <span>私转:{{tzprivateTransfer}} CNY</span>
  58. &nbsp;
  59. &nbsp;
  60. &nbsp;
  61. &nbsp;
  62. </p>
  63. </div>
  64. </template>
  65. <div class="tree-box">
  66. <el-tree
  67. @check="handleSelectionChange"
  68. :data="groupstableData"
  69. ref="tree"
  70. show-checkbox
  71. :default-expand-all="false"
  72. :default-checked-keys="defaultarr"
  73. node-key="id"
  74. :props="defaultProps"
  75. highlight-current>
  76. <span class="custom-tree-node" slot-scope="{ data }">
  77. <span>
  78. {{data.groupName?'(团组:'+data.groupName+')':'' }}
  79. </span>
  80. <span>
  81. {{ data.applicant?'申请人:'+data.applicant:''}}
  82. </span>
  83. <span>
  84. {{ data.payType?'【'+data.payType+'】':''}}
  85. </span>
  86. <span>
  87. {{ data.moduleName?'['+data.moduleName+']':''}}
  88. </span>
  89. <span>
  90. {{ data.priceName?data.priceName:''}}
  91. </span>
  92. <span>
  93. {{ data.payee?'(收款方:'+data.payee+')':'' }}
  94. </span>
  95. <span>
  96. {{ data.payCurrCode?' : '+data.payCurrCode+' ':'' }}
  97. </span>
  98. <span>
  99. {{ data.paymentAmount!=undefined?' '+twonumder(data.paymentAmount):'' }}
  100. </span>
  101. <span>
  102. {{ data.cnyTotalAmount!=undefined?'&nbsp;&nbsp;&nbsp;付款金额&nbsp;&nbsp;&nbsp;CNY '+twonumder(data.cnyTotalAmount):'' }}
  103. </span>
  104. <span>
  105. {{ data.cnySubTotalAmount!=undefined?' 、 CNY '+twonumder(data.cnySubTotalAmount=data.paymentAmount*data.payRate)+'&nbsp;&nbsp;&nbsp;汇率:':'' }}
  106. </span>
  107. <el-input-number v-if="data.payRate!=undefined" style="width:100px" @blur="inputblur(data.id,data.payRate,data.hotelSubId)" :precision="4" placeholder="公务翻译费" v-model="data.payRate" :controls='false'>
  108. </el-input-number>
  109. </span>
  110. </el-tree>
  111. </div>
  112. </el-collapse-item>
  113. <el-collapse-item name="1">
  114. <template slot="title">
  115. <div style="width: 100%;">
  116. <p style="float: left;user-select: none;">
  117. 日付申请
  118. </p>
  119. <p align="right" style="user-select: none;">
  120. <span>公转:{{rfrevolution}} CNY</span>
  121. &nbsp;
  122. &nbsp;
  123. <span>私转:{{rfprivateTransfer}} CNY</span>
  124. &nbsp;
  125. &nbsp;
  126. &nbsp;
  127. &nbsp;
  128. </p>
  129. </div>
  130. </template>
  131. <div class="tree-box">
  132. <el-tree
  133. @check="everydayChange"
  134. :data="everydayData"
  135. ref="abc"
  136. show-checkbox
  137. :default-expand-all="false"
  138. :default-checked-keys="everydayarr"
  139. node-key="id"
  140. :check-strictly="true"
  141. :props="everydayProps"
  142. highlight-current>
  143. <span class="custom-tree-node" slot-scope="{ data }">
  144. <span >
  145. {{ data.companyName?'【'+data.companyName+'】':'' }}
  146. </span>
  147. <span>
  148. {{ data.transferParentIdStr?' 【'+data.transferParentIdStr+'】':'' }}
  149. </span>
  150. <span>
  151. {{ data.priceTypeStr?' 【'+data.priceTypeStr+'】':'' }}
  152. </span>
  153. <span>
  154. {{ data.instructions?'('+data.instructions+'):':'' }}
  155. </span>
  156. <span>
  157. {{ data.sumPrice?' CNY: '+twonumder(data.sumPrice):'' }}
  158. </span>
  159. <span>
  160. {{ data.createUser?'【申请人: '+data.createUser:'' }}
  161. </span>
  162. <span>
  163. {{ data.createTime?'申请时间: '+data.createTime+'】':'' }}
  164. </span>
  165. <span style="color:rgb(149 149 149);">
  166. {{ data.remaksDescription?data.remaksDescription:'' }}
  167. </span>
  168. </span>
  169. </el-tree>
  170. </div>
  171. </el-collapse-item>
  172. </el-collapse>
  173. </div>
  174. </div>
  175. </div>
  176. </template>
  177. <script>
  178. export default {
  179. data() {
  180. return {
  181. value:2,
  182. options:[],
  183. pageId:'',
  184. token:'',
  185. userId:'',
  186. applicant:'',
  187. application:'',
  188. rfrevolution:'0.00',//日付公转
  189. rfprivateTransfer:'0.00',//日付私转
  190. tzrevolution:'0.00',//团组公转
  191. tzprivateTransfer:'0.00',//团组私转
  192. defaultProps: {
  193. children: 'childList',
  194. label: 'groupName'
  195. },
  196. everydayProps: {
  197. children: 'childList',
  198. label: 'instructions',
  199. disabled:function(data, node) {
  200. if(data.transferParentIdStr==undefined){
  201. return true
  202. }
  203. }
  204. },
  205. activeNames: ['1','2'],
  206. multipleSelection: [],
  207. //选择日期快捷选项
  208. pickerOptions: {
  209. shortcuts: [{
  210. text: '最近一周',
  211. onClick(picker) {
  212. const end = new Date();
  213. const start = new Date();
  214. start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
  215. picker.$emit('pick', [start, end]);
  216. }
  217. }, {
  218. text: '最近一个月',
  219. onClick(picker) {
  220. const end = new Date();
  221. const start = new Date();
  222. start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
  223. picker.$emit('pick', [start, end]);
  224. }
  225. }, {
  226. text: '最近三个月',
  227. onClick(picker) {
  228. const end = new Date();
  229. const start = new Date();
  230. start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
  231. picker.$emit('pick', [start, end]);
  232. }
  233. }, {
  234. text: '最近一年',
  235. onClick(picker) {
  236. const end = new Date();
  237. const start = new Date();
  238. start.setTime(start.getTime() - 3600 * 1000 * 24 * 365);
  239. picker.$emit('pick', [start, end]);
  240. }
  241. }
  242. , {
  243. text: '最近两年',
  244. onClick(picker) {
  245. const end = new Date();
  246. const start = new Date();
  247. start.setTime(start.getTime() - 3600 * 1000 * 24 * 730);
  248. picker.$emit('pick', [start, end]);
  249. }
  250. }]
  251. },
  252. value2: '',
  253. checked:'',
  254. groupstableData:[],//团组付款申请
  255. everydayData:[],//日常付款申请
  256. defaultarr:[],//团组勾选中
  257. everydayarr:[],//日付勾选中
  258. fullscreenLoading:false,
  259. hotelSubIdarr:[],
  260. };
  261. },
  262. methods:{
  263. //两位小数
  264. twonumder(val){
  265. return val.toFixed(2)
  266. },
  267. handleChange(val) {
  268. console.log(val);
  269. },
  270. //获取基础数据
  271. PostPayRequestInit(){
  272. var url = "/api/Financial/PostPayRequestInit"
  273. var that = this
  274. this.$axios({
  275. method: 'post',
  276. url: url,
  277. headers: {
  278. Authorization: 'Bearer ' + that.token
  279. },
  280. }).then(function (res) {
  281. if(res.data.code==200){
  282. console.log(res)
  283. that.options=res.data.data.conpanyData;
  284. }else{
  285. that.$message({
  286. message: res.data.msg,
  287. type: 'warning'
  288. });
  289. }
  290. })
  291. },
  292. //处理数组
  293. filt(array) {
  294. return array.filter(x => Number.isFinite(x));
  295. },
  296. //勾选
  297. handleSelectionChange(data,node) {
  298. for(let i=0;i<node.checkedNodes.length;i++){
  299. for(let j=0;j<node.checkedKeys.length;j++){
  300. if(node.checkedNodes[i].id==node.checkedKeys[j]){
  301. this.hotelSubIdarr.push(node.checkedNodes[i].hotelSubId)
  302. }
  303. }
  304. }
  305. // this.hotelSubIdarr=Array.from(new Set(this.hotelSubIdarr))
  306. // console.log(this.arrstring(this.hotelSubIdarr));
  307. // var arrid=[]
  308. // for(let i=0;i<node.checkedKeys.length;i++){
  309. // if(Number(node.checkedKeys[i].split('p')[1])==Number(node.checkedKeys[i].split('p')[1])){
  310. // arrid.push(Number(node.checkedKeys[i].split('p')[1]));
  311. // }
  312. // }
  313. // for(let j=0;j<this.groupstableData.length;j++){
  314. // for(let s=0;s<this.groupstableData[j].childList.length;s++){
  315. // for(let x=0;x<arrid.length;x++){
  316. // if(arrid[x]==Number(this.groupstableData[j].childList[s].id.split("p")[1])){
  317. // console.log(this.groupstableData[j].childList[s].id);
  318. // this.defaultarr.push(this.groupstableData[j].childList[s].id)
  319. // }
  320. // }
  321. // }
  322. // }
  323. // arrid=Array.from(new Set(arrid))
  324. this.defaultarr=node.checkedKeys
  325. // console.log(this.arrstring(this.defaultarr));
  326. },
  327. //日付勾选
  328. everydayChange(data,node){
  329. this.everydayarr=node.checkedKeys
  330. console.log(this.arrstring(this.everydayarr));
  331. },
  332. //数组处理成字符串
  333. arrstring(val){
  334. var stringarr='';
  335. for(let s=0;s<val.length;s++){
  336. stringarr += val[s].toString()+',';
  337. }
  338. return stringarr.substring(0, stringarr.length-1);
  339. },
  340. //处理时间
  341. getdate(val){
  342. var date=new Date(val);
  343. var y=date.getFullYear();
  344. var m=date.getMonth()+1<10?'0'+(date.getMonth()+1):date.getMonth()+1;
  345. var d=date.getDate()<10?'0'+date.getDate():date.getDate();
  346. return y+'-'+m+'-'+d
  347. },
  348. //查看勾选
  349. checkCheckbox(){
  350. console.log(this.defaultarr)
  351. console.log(this.everydayarr)
  352. if(this.defaultarr.length==0&&this.everydayarr.length==0){
  353. this.$message({
  354. message:'请保存勾选后再查看!',
  355. type: 'warning'
  356. });
  357. return;
  358. }
  359. //初始化
  360. this.groupstableData=[];
  361. this.everydayData=[];
  362. this.rfrevolution='0.00';//日付公转
  363. this.rfprivateTransfer='0.00';//日付私转
  364. this.tzrevolution='0.00';//团组公转
  365. this.tzprivateTransfer='0.00';//团组私转
  366. this.PostPayRequest_Center(this.getdate(this.value2[0]),this.getdate(this.value2[1]),2);
  367. // this.PostPayRequest_Center('2023-01-01','2024-03-25',2);
  368. },
  369. //选择日期
  370. datechange(){
  371. //初始化
  372. this.groupstableData=[];
  373. this.everydayData=[];
  374. this.rfrevolution='0.00';//日付公转
  375. this.rfprivateTransfer='0.00';//日付私转
  376. this.tzrevolution='0.00';//团组公转
  377. this.tzprivateTransfer='0.00';//团组私转
  378. this.PostPayRequest_Center(this.getdate(this.value2[0]),this.getdate(this.value2[1]),1);
  379. // this.PostPayRequest_Center('2023-01-01','2024-03-25',1);
  380. },
  381. //汇率更改
  382. inputblur(id,raet,hotelSubId){
  383. this.PostPayRequestRateChange(id,raet,hotelSubId)
  384. },
  385. //获取付款申请list
  386. PostPayRequest_Center(beginDt,endDt,status){
  387. this.fullscreenLoading=true;
  388. var url = "/api/Financial/PostPayRequest_Center"
  389. var that = this
  390. this.$axios({
  391. method: 'post',
  392. url: url,
  393. headers: {
  394. Authorization: 'Bearer ' + that.token
  395. },
  396. data:{
  397. portType:1,
  398. status:status,
  399. beginDt:beginDt,
  400. endDt:endDt,
  401. pageId: that.pageId,
  402. userId: that.userId,
  403. }
  404. }).then(function (res) {
  405. if(res.data.code==200){
  406. console.log(res)
  407. that.rfrevolution=res.data.data.daily.gz;
  408. that.rfprivateTransfer=res.data.data.daily.sz;
  409. that.tzrevolution=res.data.data.group.gz;
  410. that.tzprivateTransfer=res.data.data.group.sz;
  411. that.groupstableData=res.data.data.group.dataList;
  412. if(that.groupstableData!=null){
  413. var arrid=[]
  414. for(let i=0;i<that.groupstableData.length;i++){
  415. for(let j=0;j<that.groupstableData[i].childList.length;j++){
  416. that.groupstableData[i].childList[j].id=j+'p'+that.groupstableData[i].childList[j].id
  417. arrid.push(that.groupstableData[i].childList[j].id)
  418. if(that.groupstableData[i].childList[j].isChecked==true){
  419. that.defaultarr.push(that.groupstableData[i].childList[j].id)
  420. that.hotelSubIdarr.push(that.groupstableData[i].childList[j].hotelSubId)
  421. }
  422. }
  423. }
  424. console.log(that.hotelSubIdarr);
  425. console.log(that.defaultarr);
  426. }
  427. that.everydayData=res.data.data.daily.dataList;
  428. if(that.everydayData!=null){
  429. for(let s=0;s<that.everydayData.length;s++){
  430. if(that.everydayData[s].isChecked==true){
  431. that.everydayarr.push(that.everydayData[s].id)
  432. }
  433. }
  434. }
  435. that.fullscreenLoading=false;
  436. }else{
  437. that.$message({
  438. message: '加载失败!原因:'+res.data.msg,
  439. type: 'warning'
  440. });
  441. that.fullscreenLoading=false;
  442. }
  443. })
  444. },
  445. //保存勾选
  446. PostPayRequestCheckedChange(type){
  447. var hotelSubIdarrs=[]
  448. for(let n=0;n<this.hotelSubIdarr.length;n++){
  449. if(this.hotelSubIdarr[n]!=undefined&&this.hotelSubIdarr[n]!=-1){
  450. hotelSubIdarrs.push(this.hotelSubIdarr[n]);
  451. }
  452. }
  453. this.hotelSubIdarr=Array.from(new Set(hotelSubIdarrs))
  454. var arrid=[]
  455. for(let i=0;i<this.defaultarr.length;i++){
  456. if(typeof this.defaultarr[i]!== 'number'){
  457. if(Number(this.defaultarr[i].split('p')[1])==Number(this.defaultarr[i].split('p')[1])){
  458. arrid.push(Number(this.defaultarr[i].split('p')[1]));
  459. }
  460. }
  461. }
  462. arrid=Array.from(new Set(arrid))
  463. this.defaultarr=this.filt(arrid);
  464. var url = "/api/Financial/PostPayRequestCheckedChange"
  465. var that = this
  466. this.$axios({
  467. method: 'post',
  468. url: url,
  469. headers: {
  470. Authorization: 'Bearer ' + that.token
  471. },
  472. data:{
  473. userId:that.userId,
  474. hotelSubIds:that.arrstring(that.hotelSubIdarr),
  475. groupIds:that.arrstring(that.defaultarr),
  476. dailyPaymentIds:that.arrstring(that.everydayarr),
  477. type:type
  478. }
  479. }).then(function (res) {
  480. if(res.data.code==200){
  481. // that.$message({
  482. // message: res.data.msg,
  483. // type: 'success'
  484. // });
  485. if(type==2){
  486. that.$refs.tree.setCheckedKeys([]);
  487. that.$refs.abc.setCheckedKeys([]);
  488. that.defaultarr=[];
  489. that.everydayarr=[];
  490. }
  491. }else{
  492. that.$message({
  493. message: '保存失败!原因:'+res.data.msg,
  494. type: 'warning'
  495. });
  496. }
  497. })
  498. },
  499. //修改汇率
  500. PostPayRequestRateChange(id,rate,hotelSubId){
  501. var url = "/api/Financial/PostPayRequestRateChange"
  502. var that = this
  503. this.$axios({
  504. method: 'post',
  505. url: url,
  506. headers: {
  507. Authorization: 'Bearer ' + that.token
  508. },
  509. data:{
  510. portType:1,
  511. pageId:that.pageId,
  512. userId:that.userId,
  513. status:1,
  514. beginDt:that.getdate(that.value2[0]),
  515. endDt:that.getdate(that.value2[1]),
  516. id:Number(id.split('p')[1]),
  517. hotelSubId:hotelSubId,
  518. rate:rate
  519. }
  520. }).then(function (res) {
  521. if(res.data.code==200){
  522. that.$message({
  523. message: res.data.msg,
  524. type: 'success'
  525. });
  526. }else{
  527. that.$message({
  528. message: '保存失败!原因:'+res.data.msg,
  529. type: 'warning'
  530. });
  531. }
  532. })
  533. },
  534. //付款btn
  535. paymentbtn(){
  536. this.$confirm('是否确认付款?', '提示', {
  537. confirmButtonText: '确定',
  538. cancelButtonText: '取消',
  539. type: 'warning'
  540. }).then(() => {
  541. this.PostPayRequestCheckedChange(1)
  542. setTimeout(this.PostPayRequestPayChange(),1000)
  543. }).catch(() => {
  544. this.$message({
  545. type: 'info',
  546. message: '已取消付款'
  547. });
  548. });
  549. },
  550. //付款api
  551. PostPayRequestPayChange(){
  552. var hotelSubIdarrs=[]
  553. for(let n=0;n<this.hotelSubIdarr.length;n++){
  554. if(this.hotelSubIdarr[n]!=undefined&&this.hotelSubIdarr[n]!=-1){
  555. hotelSubIdarrs.push(this.hotelSubIdarr[n]);
  556. }
  557. }
  558. this.hotelSubIdarr=Array.from(new Set(hotelSubIdarrs))
  559. var url = "/api/Financial/PostPayRequestPayChange"
  560. var that = this
  561. this.$axios({
  562. method: 'post',
  563. url: url,
  564. headers: {
  565. Authorization: 'Bearer ' + that.token
  566. },
  567. data:{
  568. userId:that.userId,
  569. hotelSubIds:that.arrstring(that.hotelSubIdarr),
  570. groupIds:that.arrstring(that.defaultarr),
  571. dailyPaymentIds:that.arrstring(that.everydayarr),
  572. }
  573. }).then(function (res) {
  574. if(res.data.code==200){
  575. that.datechange()
  576. that.$message({
  577. message: res.data.msg,
  578. type: 'success'
  579. });
  580. }else{
  581. that.$message({
  582. message:res.data.msg,
  583. type: 'warning'
  584. });
  585. }
  586. })
  587. },
  588. //生成btn
  589. generatebtn(){
  590. this.PostPayRequestCheckedChange(1)
  591. setTimeout(this.PostPayRequestFileDownload,1000)
  592. },
  593. //生成api
  594. PostPayRequestFileDownload(){
  595. // this.PostPayRequestCheckedChange(1)
  596. var url = "/api/Financial/PostPayRequestFileDownload"
  597. var that = this
  598. console.log(that.value2);
  599. this.$axios({
  600. method: 'post',
  601. url: url,
  602. headers: {
  603. Authorization: 'Bearer ' + that.token
  604. },
  605. data:{
  606. portType:1,
  607. userId:that.userId,
  608. pageId:that.pageId,
  609. beginDt:that.getdate(that.value2[0]),
  610. endDt:that.getdate(that.value2[1]),
  611. conpanyId:that.value
  612. }
  613. }).then(function (res) {
  614. if(res.data.code==200){
  615. that.$message({
  616. message: res.data.msg,
  617. type: 'success'
  618. });
  619. window.open(res.data.data.url)
  620. }else{
  621. that.$message({
  622. message: res.data.msg,
  623. type: 'warning'
  624. });
  625. }
  626. })
  627. },
  628. },
  629. filters: {
  630. numFilter(value) {
  631. let realVal = "";
  632. if (!isNaN(value) && value !== "") {
  633. // 截取当前数据到小数点后两位,改变toFixed的值即可截取你想要的数值
  634. realVal = parseFloat(value).toFixed(2);
  635. } else {
  636. realVal = "--";
  637. }
  638. return realVal;
  639. },
  640. },
  641. mounted(){
  642. this.pageId = localStorage.getItem('indexs').split('-')[1];
  643. this.token = JSON.parse(localStorage.getItem('userinif')).token;
  644. this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
  645. this.applicant=JSON.parse(localStorage.getItem('userinif')).userInfo.cnName;
  646. this.application=this.getdate(new Date());
  647. //调用获取基础数据
  648. this.PostPayRequestInit()
  649. }
  650. }
  651. </script>
  652. <style>
  653. .paymentfiled-all{
  654. background-color: #fff;
  655. padding: 10px;
  656. box-shadow: 0 0 5px #0005;
  657. border-radius: 10px;
  658. height: 100%;
  659. min-height: 830px;
  660. }
  661. .paymentfiled-haed{
  662. display: flex;
  663. justify-content: space-between;
  664. margin-bottom: 10px;
  665. }
  666. .paymentfiled-info{
  667. display: flex;
  668. margin-bottom: 15px;
  669. }
  670. .paymentfiled-info-li{
  671. margin-right: 30px;
  672. }
  673. .paymentfiled-info-li label{
  674. color: #606266;
  675. font-size: 15px;
  676. font-weight: 600;
  677. }
  678. .paymentfiled-info-li span{
  679. color: #606266;
  680. font-size: 14px;
  681. }
  682. .paymentfiled-form{
  683. max-height: 700px;
  684. overflow: auto;
  685. }
  686. .paymentfiled-form-li:nth-child(1){
  687. border-top:2px solid #409EFF ;
  688. }
  689. .paymentfiled-form-li{
  690. border-bottom:1px solid #ccc ;
  691. padding: 10px 0;
  692. }
  693. .paymentfiled-haed .el-date-editor--monthrange.el-input__inner{
  694. width: 300px;
  695. }
  696. .childtable{
  697. text-align: -webkit-center;
  698. }
  699. .childtable .el-table tr {
  700. background-color: #f2f6fd !important;
  701. font-weight: bold;
  702. }
  703. .custom-tree-node {
  704. font-size: 16px;
  705. white-space: normal;
  706. }
  707. .custom-tree-nodes {
  708. flex: 1;
  709. display: flex;
  710. align-items: center;
  711. justify-content: space-between;
  712. font-size: 14px;
  713. padding-right: 8px;
  714. }
  715. .paymentfiled-form .el-tree-node__content{
  716. height:70px;
  717. }
  718. .paymentfiled-form .el-input__inner{
  719. height:30px;
  720. line-height:30px;
  721. }
  722. .tree-box{
  723. border: 1px solid #EBEEF5;
  724. padding: 10px;
  725. }
  726. ::v-deep .el-tree .el-tree-node .is-leaf + .el-checkbox .el-checkbox__inner {
  727. display: none;
  728. }
  729. ::v-deep .el-tree .el-tree-node .el-checkbox .el-checkbox__inner {
  730. display: inline-block;
  731. }
  732. </style>