finstlbillsDetails.vue 52 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063
  1. <template>
  2. <div class="borderless" v-loading="pageLoading">
  3. <div class="customer-head">
  4. <div class="customer-back">
  5. <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left"
  6. @click="backToList">返回列表
  7. </el-button>
  8. </div>
  9. <div class="add-customer-btn">
  10. <el-button size="small" style="margin-right: 8px"
  11. :loading="saveLoading" :disabled="!form.id" @click="previewreportfun" >预 览
  12. </el-button>
  13. <el-button size="small" style="margin-right: 8px"
  14. :loading="saveLoading" :disabled="!form.id" @click="DesignreportDialog = true" >报表设计
  15. </el-button>
  16. <el-button size="small" type="success" plain style="margin-right: 8px" :disabled="!form.id" v-if="form.status == '0'"
  17. :loading="saveLoading" @click="settlementApprovefun">提交申请
  18. </el-button>
  19. <el-button size="small" type="warning" plain style="margin-right: 8px" :disabled="!form.id" v-if="form.status == '1'"
  20. :loading="saveLoading" @click="revokeSettlementApprovefun">撤销申请
  21. </el-button>
  22. <el-button size="small" type="primary" style="margin-right: 8px" :disabled="form.isCleared == 1" v-if="editSave"
  23. :loading="saveLoading" @click="editHandle">编 辑
  24. </el-button>
  25. <el-button size="small" type="primary" style="margin-right: 8px" :disabled="form.isCleared == 1" v-else
  26. :loading="saveLoading" @click="editCustomer">保 存
  27. </el-button>
  28. </div>
  29. </div>
  30. <div style="margin: 55px 5px 0px 5px;'">
  31. <el-card class="box-card">
  32. <el-form :model="form" ref="form" label-width="90px" :rules="rules" class="demo-ruleForm">
  33. <el-row>
  34. <el-row>
  35. <el-col :span="5">
  36. <el-form-item label="付费对象" prop="corpCnName">
  37. <search-query :datalist="corpData"
  38. :selectValue="form.corpCnName"
  39. :clearable="true"
  40. :disabled="editSave || tableData.length != 0"
  41. :filterable="true"
  42. :remote="true"
  43. :buttonIf="false"
  44. :forParameter="{ key:'id', label:'cnName', value:'cnName'}"
  45. @corpChange="corpChange($event,'corpCnName')"
  46. @remoteMethod="corpBcorpsListfun"
  47. @corpFocus="corpBcorpsListfun" >
  48. </search-query>
  49. </el-form-item>
  50. </el-col>
  51. <el-col :span="10">
  52. <el-form-item label="开户帐号" prop="bankId">
  53. <search-query :datalist="bankData"
  54. :selectValue="form.bankId"
  55. :clearable="true"
  56. :disabled="editSave || !form.corpId"
  57. :filterable="true"
  58. :buttonIf="false"
  59. :forParameter="{ key:'id', label:'accountBankNo', value:'id'}"
  60. @corpChange="corpChange($event,'bankId')"
  61. @corpFocus="bcorpsbankListfun" >
  62. </search-query>
  63. </el-form-item>
  64. </el-col>
  65. <el-col :span="9">
  66. <el-form-item label="付费事由" prop="remarks">
  67. <el-input style="width: 100%;" v-model="form.remarks"
  68. size="small" autocomplete="off"
  69. :disabled="editSave"
  70. clearable placeholder="请输入付费事由" >
  71. </el-input>
  72. </el-form-item>
  73. </el-col>
  74. <el-col :span="5">
  75. <el-form-item label="预计收回" prop="estimatedTime">
  76. <el-date-picker
  77. v-model="form.estimatedTime"
  78. type="date"
  79. style="width: 100%;"
  80. size="small"
  81. :disabled="editSave"
  82. value-format="yyyy-MM-dd"
  83. placeholder="选择预计收回">
  84. </el-date-picker>
  85. </el-form-item>
  86. </el-col>
  87. <el-col :span="5">
  88. <el-form-item label="收款情况" prop="collectionSituation">
  89. <el-input style="width: 100%;" v-model="form.collectionSituation"
  90. size="small" autocomplete="off"
  91. :disabled="editSave"
  92. clearable placeholder="请输入CHK NO" >
  93. </el-input>
  94. </el-form-item>
  95. </el-col>
  96. <el-col :span="5">
  97. <el-form-item label="业务日期" prop="etd">
  98. <el-date-picker
  99. v-model="form.accountDate"
  100. type="datetimerange"
  101. range-separator="至"
  102. start-placeholder="开始日期"
  103. end-placeholder="结束日期"
  104. style="width: 100%;"
  105. size="small"
  106. :disabled="editSave"
  107. format="yyyy-MM-dd"
  108. value-format="yyyy-MM-dd"
  109. placeholder="选择业务日期">
  110. </el-date-picker>
  111. </el-form-item>
  112. </el-col>
  113. <el-col :span="5">
  114. <el-form-item label="收/付" prop="queryAmount">
  115. <search-query :datalist="dcData"
  116. :selectValue="form.dc"
  117. :filterable="true"
  118. :clearable="true"
  119. :remote="true"
  120. :buttonIf="false"
  121. :disabled="editSave"
  122. placeholder="请选择方向"
  123. @corpChange="corpChange($event,'dc')">
  124. </search-query>
  125. </el-form-item>
  126. </el-col>
  127. <el-col :span="4">
  128. <el-form-item label="币别" prop="curCode">
  129. <search-query :datalist="curCodeData"
  130. :selectValue="form.curCode"
  131. :clearable="true"
  132. :disabled="editSave"
  133. :buttonIf="false"
  134. :filterable="true"
  135. :remote="true"
  136. :forParameter="{ key:'id', label:'code', value:'code'}"
  137. @corpChange="corpChange($event,'curCode')"
  138. @remoteMethod="getRateListfun"
  139. @corpFocus="getRateListfun" >
  140. </search-query>
  141. </el-form-item>
  142. </el-col>
  143. <el-col :span="5">
  144. <el-form-item label="JOB NO" prop="businessNo">
  145. <el-input style="width: 100%;" v-model="form.businessNo"
  146. size="small" autocomplete="off"
  147. :disabled="editSave"
  148. clearable placeholder="请输入JOB NO" >
  149. </el-input>
  150. </el-form-item>
  151. </el-col>
  152. <el-col :span="5">
  153. <el-form-item label="ACCT NO" prop="accountNo">
  154. <el-input style="width: 100%;" v-model="form.accountNo"
  155. size="small" autocomplete="off"
  156. :disabled="editSave"
  157. clearable placeholder="请输入ACCT NO" >
  158. </el-input>
  159. </el-form-item>
  160. </el-col>
  161. <el-col :span="5">
  162. <el-form-item label="MBL NO" prop="mblno">
  163. <el-input style="width: 100%;" v-model="form.mblno"
  164. size="small" autocomplete="off"
  165. :disabled="editSave"
  166. clearable placeholder="请输入MBL NO" >
  167. </el-input>
  168. </el-form-item>
  169. </el-col>
  170. <el-col :span="5">
  171. <el-form-item label="HBL NO" prop="hblno">
  172. <el-input style="width: 100%;" v-model="form.hblno"
  173. size="small" autocomplete="off"
  174. :disabled="editSave"
  175. clearable placeholder="请输入HBL NO" >
  176. </el-input>
  177. </el-form-item>
  178. </el-col>
  179. <el-col :span="4">
  180. <el-form-item label="对账单号" prop="checkNo">
  181. <el-input style="width: 100%;" v-model="form.checkNo"
  182. size="small" autocomplete="off"
  183. :disabled="editSave"
  184. clearable placeholder="请输入CHK NO" >
  185. </el-input>
  186. </el-form-item>
  187. </el-col>
  188. </el-row>
  189. <expand :showBtn="true" :showSpan="true">
  190. <el-row>
  191. <el-col :span="5">
  192. <el-form-item label="业务类型" prop="businessTypes" >
  193. <search-query :datalist="businessTypesData"
  194. :selectValue="form.businessTypes"
  195. :clearable="true"
  196. :disabled="editSave"
  197. :buttonIf="false"
  198. :multiple="true"
  199. @corpChange="corpChange($event,'businessTypes')">
  200. </search-query>
  201. </el-form-item>
  202. </el-col>
  203. <el-col :span="5">
  204. <el-form-item label="船 名" prop="vesselCnName" >
  205. <el-input style="width: 100%;" v-model="form.vesselCnName"
  206. size="small" autocomplete="off"
  207. :disabled="editSave"
  208. clearable placeholder="请选择船名" ></el-input>
  209. </el-form-item>
  210. </el-col>
  211. <el-col :span="5">
  212. <el-form-item label="航 次" prop="voyageNo" >
  213. <el-input style="width: 100%;" v-model="form.voyageNo"
  214. size="small" autocomplete="off"
  215. :disabled="editSave"
  216. clearable placeholder="请选择航次" ></el-input>
  217. </el-form-item>
  218. </el-col>
  219. </el-row>
  220. </expand>
  221. <el-row>
  222. <el-col span="24">
  223. <div style="text-align: right">
  224. <el-button size="small" type="" style="margin-right: 8px"
  225. :loading="saveLoading" @click="ResetFilter">重置条件
  226. </el-button>
  227. <el-checkbox v-model="appendType" false-label="检索" true-label="追加">追加</el-checkbox>
  228. <el-button size="small" type="primary" style="margin-right: 8px"
  229. :loading="saveLoading" @click="finstlbillslistAccBillV1fun(appendType)" >检 索
  230. </el-button>
  231. </div>
  232. </el-col>
  233. </el-row>
  234. </el-row>
  235. </el-form>
  236. </el-card>
  237. <el-card style="margin-top: 10px">
  238. <div style="margin-bottom: 10px">
  239. <el-button size="small" type="info" style="margin-right: 8px" :disabled="editSave"
  240. :loading="saveLoading" @click="SelectedRows">确认选定行
  241. </el-button>
  242. <el-button size="small" type="danger" style="margin-right: 8px" :disabled="editSave"
  243. :loading="saveLoading" @click="batchDeletefun" >批量删除
  244. </el-button>
  245. </div>
  246. <finstlbillsitems :tableData="tableData"
  247. :editSave="editSave"
  248. :handleSelectionData="handleSelectionData"
  249. @handleSelectionChange="handleSelectionChange"
  250. @deletefun="finstlbillsitemsRemovefun">
  251. </finstlbillsitems>
  252. </el-card>
  253. </div>
  254. <el-card style="margin-top: 10px">
  255. <el-row>
  256. <el-col :span="3">
  257. <div class="bottomFlex" style="color: #6BBCD1">
  258. <span>应付:</span>
  259. <span class="weightnum">¥{{form.amountCr || 0}}</span>
  260. </div>
  261. </el-col>
  262. <el-col :span="3">
  263. <div class="bottomFlex" style="color: #6BBCD1">
  264. <span>应付:</span>
  265. <span class="weightnum">${{form.amountCrUsd || 0}}</span>
  266. </div>
  267. </el-col>
  268. <el-col :span="3">
  269. <div class="bottomFlex" style="color: #6BBCD1">
  270. <span>应付合计:</span>
  271. <span class="weightnum">¥{{form.amountCrLoc || 0}}</span>
  272. </div>
  273. </el-col>
  274. <el-col :span="3">
  275. <div class="bottomFlex" style="color: #81B337">
  276. <span>应收:</span>
  277. <span class="weightnum">¥{{form.amountDr || 0}}</span>
  278. </div>
  279. </el-col>
  280. <el-col :span="3">
  281. <div class="bottomFlex" style="color: #81B337">
  282. <span>应收:</span>
  283. <span class="weightnum">${{form.amountDrUsd || 0}}</span>
  284. </div>
  285. </el-col>
  286. <el-col :span="3">
  287. <div class="bottomFlex" style="color: #81B337">
  288. <span>应收合计:</span>
  289. <span class="weightnum">¥{{form.amountDrLoc || 0}}</span>
  290. </div>
  291. </el-col>
  292. </el-row>
  293. </el-card>
  294. <!--设计报表弹窗-->
  295. <el-dialog append-to-body title="设计报表" class="el-dialogDeep" :visible.sync="DesignreportDialog" width="70%"
  296. :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
  297. <reports :id="form.id" :disabled="editSave" :assemblyForm="form" businessValue="FFSQ"></reports>
  298. </el-dialog>
  299. <!--预览-->
  300. <el-dialog
  301. title="打印"
  302. :visible.sync="selectPrintingDialog"
  303. append-to-body
  304. width="70%"
  305. :close-on-click-modal="false"
  306. :destroy-on-close="true"
  307. :close-on-press-escape="false"
  308. v-dialog-drag>
  309. <div>
  310. <reportformsList ref="reportformsList" @reportRadio="reportRadio"></reportformsList>
  311. </div>
  312. <span slot="footer" class="dialog-footer">
  313. <el-button size="small" @click="selectPrintingDialog = false;">取 消</el-button>
  314. </span>
  315. </el-dialog>
  316. <!--报表组件-->
  317. <reportContainer ref="reportContainer"></reportContainer>
  318. </div>
  319. </template>
  320. <script>
  321. import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
  322. import {getRateList} from "@/api/iosBasicData/rateManagement";
  323. import {bcorpsbankList, getBcorpslistByType} from "@/api/iosBasicData/bcorps";
  324. import {
  325. finstlbillsConfirmSignFor,
  326. finstlbillsDetail, finstlbillsitemsRemove,
  327. finstlbillslistAccBillV1,
  328. finstlbillsRevokeSignFor,
  329. finstlbillsSubmit, revokeSettlementApprove, settlementApprove
  330. } from '@/api/iosBasicData/finstlbills'
  331. import expand from "@/components/basic-container/expand.vue";
  332. import finstlbillsitems from "@/views/iosBasicData/PaymentApplication/assembly/finstlbillsitems.vue";
  333. import reports from "@/views/iosBasicData/SeafreightExportF/bills/assembly/reports.vue";
  334. import reportformsList from "@/views/iosBasicData/SeafreightExportF/bills/assembly/reportformsList.vue";
  335. import {reportsGetReportData} from "@/api/iosBasicData/reports";
  336. import reportContainer from "@/views/iosBasicData/report-container/report-container.vue";
  337. import { generateFinStlBills} from "@/api/iosBasicData/fininvoices";
  338. export default {
  339. components: {reportContainer, reportformsList, reports, SearchQuery,expand,finstlbillsitems},
  340. props:{
  341. // 编辑还是保存
  342. editSave:{
  343. type:Boolean,
  344. default:true
  345. },
  346. },
  347. data(){
  348. return {
  349. DesignreportDialog:false, // 设计报表弹窗
  350. selectPrintingDialog:false, // 预览报表
  351. // 收/付数据
  352. dcData: [{
  353. label: '全部',
  354. value: null
  355. },{
  356. label: '收',
  357. value: 'D'
  358. }, {
  359. label: '付',
  360. value: 'C'
  361. }],
  362. appendType:'检索', // 是否追加
  363. tableData:[],
  364. pageLoading:false, // 全屏加载动画
  365. saveLoading:false, // 按钮动画
  366. // 绑定的数据
  367. form:{
  368. dc:'C'
  369. },
  370. handleSelectionData:[], // 表格选择的数据
  371. corpData:[], // 结算单位 数据
  372. bankData:[], // 查询银行数据
  373. curCodeData:[],// 币别
  374. srcforParameter:{},
  375. // 业务类型
  376. businessTypesData:[
  377. {
  378. label:'海运出口',
  379. value:'SE'
  380. },{
  381. label:'海运进口',
  382. value:'SI'
  383. }
  384. ],
  385. rules: {
  386. corpCnName: [
  387. {required: true, message: '请输入付费对象', trigger: 'blur'},
  388. ],
  389. bankId: [
  390. {required: true, message: '请输入开户银行', trigger: 'blur'},
  391. ],
  392. remarks: [
  393. {required: true, message: '请输入付费事由', trigger: 'blur'},
  394. ],
  395. estimatedTime: [
  396. {required: true, message: '请输入预计收回', trigger: 'blur'},
  397. ],
  398. collectionSituation: [
  399. {required: true, message: '请输入收款情况', trigger: 'blur'},
  400. ],
  401. },
  402. }
  403. },
  404. created() {
  405. },
  406. methods:{
  407. // 打印
  408. reportRadio(val){
  409. console.log(val,505)
  410. // 获取报表数据
  411. reportsGetReportData({
  412. billId:this.form.id,
  413. reportCode:val.classifyCode,
  414. groupCode:val.groupCode,
  415. }).then(res=>{
  416. this.handleReportPreview(val.url,res.data.data.data)
  417. })
  418. },
  419. // 报表预览
  420. previewreportfun(){
  421. this.saveLoading = true
  422. this.selectPrintingDialog = true
  423. this.saveLoading = false
  424. let page = {
  425. pageSize: 10,
  426. currentPage: 1,
  427. total: 0
  428. }
  429. this.$nextTick(()=>{
  430. this.$refs.reportformsList.onLoad(page,{
  431. businessType:'FFSQ',
  432. classifyCode:'付费申请',
  433. groupCode:'付费申请'
  434. })
  435. })
  436. },
  437. // 批量删除
  438. batchDeletefun(){
  439. if (this.handleSelectionData.length == 0) {
  440. return this.$message.warning('请选择要删除的数据')
  441. }
  442. this.$confirm("确定将选择数据删除?", {
  443. confirmButtonText: "确定",
  444. cancelButtonText: "取消",
  445. type: "warning"
  446. }).then(()=>{
  447. // 获取有id 的数据
  448. const itemsWithId = this.handleSelectionData.filter(item => item.hasOwnProperty('id'));
  449. let arrIds = itemsWithId.map(item=>item.id) // 获取id 数据
  450. // 把选中的删除掉
  451. this.handleSelectionData.forEach((item)=>{
  452. for (let index in this.tableData) {
  453. if (item.accBillNo == this.tableData[index].accBillNo) {
  454. this.tableData.splice(index,1)
  455. }
  456. }
  457. })
  458. // 有id 的处理
  459. if(itemsWithId.length != 0) {
  460. finstlbillsitemsRemove(arrIds.join(',')).then(res=>{
  461. this.$message.success('操作成功')
  462. })
  463. }
  464. })
  465. },
  466. // 删除
  467. finstlbillsitemsRemovefun(id,index){
  468. this.$confirm("确定将选择数据删除?", {
  469. confirmButtonText: "确定",
  470. cancelButtonText: "取消",
  471. type: "warning"
  472. }).then(()=>{
  473. if (id) {
  474. finstlbillsitemsRemove(id).then(res=>{
  475. this.$message.success('操作成功')
  476. })
  477. }
  478. this.tableData.splice(index,1)
  479. })
  480. },
  481. // 下拉回调
  482. corpChange(value,name){
  483. // 结算单位
  484. if (name == 'corpCnName') {
  485. if (!value) {
  486. this.$set(this.form,'corpId','')
  487. this.$set(this.form,'corpCnName','')
  488. this.$set(this.form,'corpEnName','')
  489. this.$set(this.form,'corpArgreementNo','')
  490. }
  491. for(let item of this.corpData) {
  492. if (item.cnName == value) {
  493. this.$set(this.form,'corpId',item.id)
  494. this.$set(this.form,'corpCnName',item.cnName)
  495. this.$set(this.form,'corpEnName',item.enName)
  496. this.$set(this.form,'corpArgreementNo',item.enName)
  497. }
  498. }
  499. }
  500. else if (name == 'bankId') {
  501. if (!value) {
  502. this.$set(this.form,'bankId','')
  503. this.$set(this.form,'bankAccountName','')
  504. this.$set(this.form,'bankAccountBank','')
  505. this.$set(this.form,'bankAccountNo','')
  506. }
  507. for(let item of this.bankData) {
  508. if (item.id == value) {
  509. this.$set(this.form,'bankId',item.id)
  510. this.$set(this.form,'bankAccountName',item.accountName)
  511. this.$set(this.form,'bankAccountBank',item.accountBank)
  512. this.$set(this.form,'bankAccountNo',item.accountNo)
  513. }
  514. }
  515. }
  516. else {
  517. this.$set(this.form,name,value)
  518. }
  519. },
  520. // 编辑
  521. editHandle(){
  522. this.editSave = false
  523. },
  524. // 保存
  525. editCustomer(){
  526. this.$refs.form.validate((valid) => {
  527. if (!valid) return
  528. if (!this.form.id) {
  529. // 是否选择从表数据
  530. if (this.handleSelectionData.length == 0) {
  531. this.$message.warning('请选择结算数据');
  532. return;
  533. }
  534. }
  535. for (let item of this.handleSelectionData) {
  536. if (!item.currentStlCurCode) {
  537. this.$message.warning('请选择本次结算币种');
  538. return;
  539. }
  540. }
  541. this.saveLoading = true // 打开按钮动画
  542. if(this.form.estimatedTime) {
  543. this.form.estimatedTime = this.form.estimatedTime + ' 00:00:00'
  544. }
  545. this.saveLoading = true // 加载动画
  546. this.form.billNoFormat = 'FFSQ'
  547. this.form.businessTypeCode = 'FFSQ'
  548. this.form.businessType = 'FFSQ' // 结算单
  549. this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.join(','):'' // 业务类型
  550. this.form.finStlBillsItemsList = this.handleSelectionData.map((item,index)=>{
  551. if (item.currentStlCurCode == 'CNY') {
  552. item.currentStlAmount = item.currentStlAmountRMB
  553. }else {
  554. item.currentStlAmount = item.currentStlAmountUSD
  555. }
  556. if (!this.form.id) {
  557. delete item.businessType
  558. delete item.billDate
  559. delete item.accountDc
  560. }
  561. return item
  562. })
  563. finstlbillsSubmit(this.form).then(res=>{
  564. this.saveLoading = false
  565. this.$message.success('操作成功');
  566. this.saveLoading = false // 关闭按钮动画
  567. this.finstlbillsDetailfun(res.data.data.id)
  568. })
  569. })
  570. },
  571. // 详情接口
  572. finstlbillsDetailfun(id){
  573. this.pageLoading = true
  574. finstlbillsDetail(id).then(res=>{
  575. this.form = res.data.data
  576. this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.split(','):[] // 业务类型转换成数组显示
  577. this.tableData = this.form.finStlBillsItemsList.map(item=>{
  578. item.stlTtlAmountNet = Number(item.stlTtlAmount) - (Number(item.stlTtlAmount) * (Number(item.taxRate) + Number(item.surchargeRate)))
  579. item.currentStlAmountNet = Number(item.unsettledAmount) - (Number(item.unsettledAmount) * (Number(item.taxRate) + Number(item.surchargeRate)))
  580. if(item.curCode == 'CNY') {
  581. this.$set(item,'currentInvoiceAmountRMB',item.currentInvoiceAmount)
  582. this.$set(item,'amountRMB',item.amount)
  583. this.$set(item,'amountNetRMB',item.amountNet)
  584. this.$set(item,'stlTtlAmountRMB',item.stlTtlAmount)
  585. this.$set(item,'stlTtlAmountNetRMB',item.stlTtlAmountNet)
  586. this.$set(item,'currentStlAmountNetRMB',item.currentStlAmountNet)
  587. this.$set(item,'currentStlAmountRMB',item.currentStlAmount)
  588. }else {
  589. this.$set(item,'currentInvoiceAmountUSD',item.currentInvoiceAmount)
  590. this.$set(item,'amountUSD',item.amount)
  591. this.$set(item,'amountNetUSD',item.amountNet)
  592. this.$set(item,'stlTtlAmountNetUSD',item.stlTtlAmountNet)
  593. this.$set(item,'stlTtlAmountUSD',item.stlTtlAmount)
  594. this.$set(item,'currentStlAmountNetUSD',item.currentStlAmountNet)
  595. this.$set(item,'currentStlAmountUSD',item.currentStlAmount)
  596. }
  597. return item
  598. })
  599. this.pageLoading = false
  600. this.bcorpsbankListfun() // 查银行数据
  601. }).catch(err=>{
  602. this.pageLoading = false
  603. })
  604. },
  605. // 结算按钮
  606. generateFinStlBillsfun(id,dc){
  607. this.pageLoading = true
  608. generateFinStlBills({
  609. billId:id,
  610. dc:dc
  611. }).then(res=>{
  612. this.form = res.data.data
  613. this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.split(','):[] // 业务类型转换成数组显示
  614. this.tableData = this.form.finStlBillsItemsList.map(item=>{
  615. item.stlTtlAmountNet = Number(item.stlTtlAmount) - (Number(item.stlTtlAmount) * (Number(item.taxRate) + Number(item.surchargeRate)))
  616. item.currentStlAmountNet = Number(item.unsettledAmount) - (Number(item.unsettledAmount) * (Number(item.taxRate) + Number(item.surchargeRate)))
  617. if(item.curCode == 'CNY') {
  618. this.$set(item,'currentInvoiceAmountRMB',item.currentInvoiceAmount)
  619. this.$set(item,'amountRMB',item.amount)
  620. this.$set(item,'amountNetRMB',item.amountNet)
  621. this.$set(item,'stlTtlAmountRMB',item.stlTtlAmount)
  622. this.$set(item,'stlTtlAmountNetRMB',item.stlTtlAmountNet)
  623. this.$set(item,'currentStlAmountNetRMB',item.currentStlAmountNet)
  624. this.$set(item,'currentStlAmountRMB',item.currentStlAmount)
  625. }else {
  626. this.$set(item,'currentInvoiceAmountUSD',item.currentInvoiceAmount)
  627. this.$set(item,'amountUSD',item.amount)
  628. this.$set(item,'amountNetUSD',item.amountNet)
  629. this.$set(item,'stlTtlAmountNetUSD',item.stlTtlAmountNet)
  630. this.$set(item,'stlTtlAmountUSD',item.stlTtlAmount)
  631. this.$set(item,'currentStlAmountNetUSD',item.currentStlAmountNet)
  632. this.$set(item,'currentStlAmountUSD',item.currentStlAmount)
  633. }
  634. return item
  635. })
  636. this.pageLoading = false
  637. this.bcorpsbankListfun() // 查银行数据
  638. }).catch(err=>{
  639. this.pageLoading = false
  640. })
  641. },
  642. // 重置条件
  643. ResetFilter(){
  644. this.form = {}
  645. },
  646. // 检索接口
  647. finstlbillslistAccBillV1fun(type){
  648. // 对账单位
  649. if (!this.form.corpId) {
  650. this.$message.warning('请选择对账单位');
  651. return
  652. }
  653. let obj = {}
  654. obj.type = '2'
  655. obj.corpCnName = this.form.corpId // 结算单位
  656. obj.curCode = this.form.curCode // 币别
  657. obj.dc = this.form.dc // 收付 D=收 C=付
  658. obj.accBillNo = this.form.accountNo // 账单编号 ACCT NO
  659. obj.billNo = this.form.businessNo // 单据编号 JOB NO
  660. obj.checkBillNo = this.form.checkNo // CHK NO
  661. obj.mblno = this.form.mblno // MB/L NO
  662. obj.hblno = this.form.hblno // HB/L NO
  663. obj.queryAmount = this.form.queryAmount // 查询金额
  664. obj.businessType = this.form.businessTypes?this.form.businessTypes.join(','):'' // 业务类型
  665. obj.vesselCnName = this.form.vesselCnName // 中文船名
  666. obj.receivableAdvance = this.form.receivableAdvance // 预收帐款
  667. obj.voyageNo = this.form.voyageNo // 航次
  668. obj.signforDateList = this.form.signforDateList // 签收日期
  669. obj.auditStatus = '0'
  670. // 财务期间
  671. if (this.form.accountDate) {
  672. obj.billDateList = this.form.accountDate
  673. }
  674. finstlbillslistAccBillV1(obj).then(res=>{
  675. let arr = res.data.data.map((item,index)=>{
  676. item.accBillId = item.id
  677. delete item.id
  678. // 账单编号
  679. item.accBillNo = item.billNo
  680. item.currentStlCurCode = item.curCode // 币别
  681. item.lineNo = Number(index) + 1
  682. item.pType = item.businessType
  683. item.billNo = item.businessBillDivideNo?item.businessBillDivideNo:item.businessBillNo
  684. item.accDate = item.billDate
  685. item.dc = item.accountDc // 收付
  686. if(item.curCode == 'CNY') {
  687. // 发票
  688. this.$set(item,'currentInvoiceAmountRMB',item.currentInvoiceAmount)
  689. // 应结算金额
  690. this.$set(item,'amountRMB',item.amount)
  691. // 已结算金额
  692. this.$set(item,'stlTtlAmountRMB',item.stlTtlAmount)
  693. // 本次金额
  694. this.$set(item,'currentStlAmountRMB',(Number(item.amount) - Number(item.stlTtlAmount) - Number(item.appliedAmount)).toFixed(2))
  695. }else {
  696. // 发票
  697. this.$set(item,'currentInvoiceAmountUSD',item.currentInvoiceAmount)
  698. // 应结算金额
  699. this.$set(item,'amountUSD',item.amount)
  700. // 已结算金额
  701. this.$set(item,'stlTtlAmountUSD',item.stlTtlAmount)
  702. // 本次金额
  703. this.$set(item,'currentStlAmountUSD',(Number(item.amount) - Number(item.stlTtlAmount) - Number(item.appliedAmount)).toFixed(2))
  704. }
  705. return item
  706. })
  707. if (type == '追加') {
  708. let a = [...this.tableData,...arr,]
  709. this.tableData = a.filter((obj, index) => {
  710. return a.findIndex((elem) => {
  711. return elem.accBillNo === obj.accBillNo
  712. }) === index;
  713. });
  714. }else {
  715. // 获取有id 的数据
  716. const itemsWithId = this.tableData.filter(item => item.hasOwnProperty('id'));
  717. let arrIds = itemsWithId.map(item=>item.id) // 获取id 数据
  718. // 有id 的处理
  719. if(itemsWithId.length != 0) {
  720. finstlbillsitemsRemove(arrIds.join(',')).then(res=>{
  721. this.$message.success('操作成功')
  722. })
  723. }
  724. this.tableData = arr
  725. }
  726. })
  727. },
  728. // 结算确认
  729. settlementApprovefun(){
  730. this.$confirm("确定进行对账操作?", {
  731. confirmButtonText: "确定",
  732. cancelButtonText: "取消",
  733. type: "warning"
  734. }).then(()=>{
  735. this.pageLoading = true
  736. this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.join(','):[] // 业务类型
  737. settlementApprove(this.form).then(res=>{
  738. this.pageLoading = false
  739. this.$message.success('操作成功');
  740. this.finstlbillsDetailfun(res.data.data.id)
  741. }).catch(err=>{
  742. this.pageLoading = false
  743. })
  744. })
  745. },
  746. // 结算撤销
  747. revokeSettlementApprovefun(){
  748. this.$confirm("确定进行撤销对账操作?", {
  749. confirmButtonText: "确定",
  750. cancelButtonText: "取消",
  751. type: "warning"
  752. }).then(()=>{
  753. this.pageLoading = true
  754. this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.join(','):[] // 业务类型
  755. revokeSettlementApprove(this.form).then(res=>{
  756. this.pageLoading = false
  757. this.$message.success('操作成功');
  758. this.finstlbillsDetailfun(res.data.data.id)
  759. })
  760. }).catch(err=>{
  761. this.pageLoading = false
  762. })
  763. },
  764. // 确认选定行
  765. SelectedRows(){
  766. this.editCustomer()
  767. },
  768. // 下面表格多选
  769. handleSelectionChange(arr){
  770. this.handleSelectionData = arr
  771. },
  772. //返回列表
  773. backToList() {
  774. this.$emit('goBack')
  775. },
  776. // 请求的接口
  777. // 获取币别数据
  778. getRateListfun(cnName){
  779. getRateList({current:1,size:10,cnName}).then(res=>{
  780. this.curCodeData = res.data.data.records
  781. })
  782. },
  783. // 获取结算单位数据
  784. corpBcorpsListfun(cnName){
  785. getBcorpslistByType(1,10,{cnName}).then(res=>{
  786. this.corpData = res.data.data.records
  787. })
  788. },
  789. // 获取银行数据
  790. bcorpsbankListfun(){
  791. bcorpsbankList(1,50,{pid:this.form.corpId}).then(res=>{
  792. this.bankData = res.data.data.records.map(item=>{
  793. item.accountBankNo = item.accountBank + ' - ' + item.accountNo
  794. return item
  795. })
  796. })
  797. },
  798. // 预览报表
  799. handleReportPreview(url,data){
  800. console.log(url,1670)
  801. console.log(data,1671)
  802. Stimulsoft.Base.StiLicense.key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHn0s4gy0Fr5YoUZ9V00Y0igCSFQzwEqYBh/N77k4f0fWXTHW5rqeBNLkaurJDenJ9o97TyqHs9HfvINK18Uwzsc/bG01Rq+x3H3Rf+g7AY92gvWmp7VA2Uxa30Q97f61siWz2dE5kdBVcCnSFzC6awE74JzDcJMj8OuxplqB1CYcpoPcOjKy1PiATlC3UsBaLEXsok1xxtRMQ283r282tkh8XQitsxtTczAJBxijuJNfziYhci2jResWXK51ygOOEbVAxmpflujkJ8oEVHkOA/CjX6bGx05pNZ6oSIu9H8deF94MyqIwcdeirCe60GbIQByQtLimfxbIZnO35X3fs/94av0ODfELqrQEpLrpU6FNeHttvlMc5UVrT4K+8lPbqR8Hq0PFWmFrbVIYSi7tAVFMMe2D1C59NWyLu3AkrD3No7YhLVh7LV0Tttr/8FrcZ8xirBPcMZCIGrRIesrHxOsZH2V8t/t0GXCnLLAWX+TNvdNXkB8cF2y9ZXf1enI064yE5dwMs2fQ0yOUG/xornE'
  803. // Stimulsoft.Base.StiLicense.Key = '6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHkcgIvwL0jnpsDqRpWg5FI5kt2G7A0tYIcUygBh1sPs7plofUOqPB1a4HBIXJB621mau2oiAIj+ysU7gKUXfjn/D5BocmduNB+ZMiDGPxFrAp3PoD0nYNkkWh8r7gBZ1v/JZSXGE3bQDrCQCNSy6mgby+iFAMV8/PuZ1z77U+Xz3fkpbm6MYQXYp3cQooLGLUti7k1TFWrnawT0iEEDJ2iRcU9wLqn2g9UiWesEZtKwI/UmEI2T7nv5NbgV+CHguu6QU4WWzFpIgW+3LUnKCT/vCDY+ymzgycw9A9+HFSzARiPzgOaAuQYrFDpzhXV+ZeX31AxWlnzjDWqpfluygSNPtGul5gyNt2CEoJD1Yom0VN9fvRonYsMsimkFFx2AwyVpPcs+JfVBtpPbTcZscnzUdmiIvxv8Gcin6sNSibM6in/uUKFt3bVgW/XeMYa7MLGF53kvBSwi78poUDigA2n12SmghLR0AHxyEDIgZGOTbNI33GWu7ZsPBeUdGu55R8w='
  804. Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile( '/reports/stimulsoft/Localization/zh-CHS.xml', true, 'zh-CHS')
  805. Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile('/reports/stimulsoft/Localization/zh-CHS.xml' )
  806. // 工具栏
  807. var options = new Stimulsoft.Viewer.StiViewerOptions()
  808. options.height = '100%'
  809. options.appearance.scrollbarsMode = true // 滚动条模式
  810. options.toolbar.showDesignButton = false // 显示设计按钮
  811. options.toolbar.showAboutButton = false // 显示关于按钮
  812. options.toolbar.showResourcesButton = false // 显示资源按钮
  813. options.toolbar.showFullScreenButton = false // 显示全屏按钮
  814. options.toolbar.showOpenButton = false // 显示打开按钮
  815. options.appearance.showTooltips = false // 显示工具提示
  816. options.appearance.showDialogsHelp = false // 显示对话框帮助
  817. options.exports.showExportToDocument = false // 显示导出到文档
  818. options.toolbar.showParametersButton = true // 显示参数按钮
  819. options.appearance.bookmarksPrint = true // 书签打印
  820. // options.toolbar.showPrintButton = false // 打印按钮是否显示 下面直接自定义控制打印弹窗是否开启
  821. // printDestination 参数:用于指定报表打印的目标位置,可以是打印机、PDF 文件或者直接打印到浏览器等。
  822. // Stimulsoft.Viewer.StiPrintDestination.Direct:表示直接打印到打印机,即将报表内容直接发送至打印机进行打印。
  823. // 通过设置不同的 printDestination 参数,你可以控制报表打印的行为,例如是直接打印到打印机,还是生成 PDF 文件,或者直接在浏览器中预览打印内容等。
  824. options.toolbar.printDestination = Stimulsoft.Viewer.StiPrintDestination.Direct
  825. // htmlRenderMode html渲染模式
  826. options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Table
  827. // 是创建一个 Stimulsoft 报表查看器的实例的代码
  828. let viewer = new Stimulsoft.Viewer.StiViewer(options, 'StiViewer', false)
  829. // 报表
  830. console.log("创建一个报表实例");
  831. console.log()
  832. let report = new window.Stimulsoft.Report.StiReport();
  833. // 加载文件
  834. console.log("从url加载报表");
  835. // report.loadFile("/reports/stimulsoft/demos/SimpleList.mrt");
  836. report.load(url)
  837. data.pageOne = 'Page : 1 of 1'
  838. // 处理超长数据
  839. if (data.hshipperDetails) {
  840. var consignerIndex2 = data.hshipperDetails.indexOf( '\n' )
  841. for (let i = 0; i < 4; i++) {
  842. consignerIndex2 = data.hshipperDetails.indexOf( '\n', consignerIndex2 + 1 );
  843. }
  844. if (consignerIndex2 != -1) {
  845. var hshipperDetails = data.hshipperDetails.substring(consignerIndex2 + 2, data.hshipperDetails.length)
  846. data.hshipperDetails = data.hshipperDetails.substring(0, consignerIndex2) + ' *'
  847. data.commodityDescr += '\n*' + hshipperDetails
  848. }
  849. }
  850. if (data.hconsigneeDetails) {
  851. var consigneeIndex2 = data.hconsigneeDetails.indexOf( '\n' )
  852. for (let i = 0; i < 3; i++) {
  853. consigneeIndex2 = data.hconsigneeDetails.indexOf( '\n', consigneeIndex2 + 1 );
  854. }
  855. if (consigneeIndex2 != -1) {
  856. var hconsigneeDetails = data.hconsigneeDetails.substring(consigneeIndex2 + 2, data.hconsigneeDetails.length)
  857. data.hconsigneeDetails = data.hconsigneeDetails.substring(0, consigneeIndex2) + ' **'
  858. data.commodityDescr += '\n**' + hconsigneeDetails
  859. }
  860. }
  861. if (data.hnotifyDetails) {
  862. var notifierIndex2 = data.hnotifyDetails.indexOf( '\n' )
  863. for (let i = 0; i < 3; i++) {
  864. notifierIndex2 = data.hnotifyDetails.indexOf( '\n', notifierIndex2 + 1 );
  865. }
  866. if (notifierIndex2 != -1) {
  867. var hnotifyDetails = data.hnotifyDetails.substring(notifierIndex2 + 2, data.hnotifyDetails.length)
  868. data.hnotifyDetails = data.hnotifyDetails.substring(0, notifierIndex2) + ' ***'
  869. data.commodityDescr += '\n***' + hnotifyDetails
  870. }
  871. }
  872. // 处理箱号
  873. if (this.isPrintTheBoxNumber) {
  874. data.commodityDescr += '\n.\n.\n'
  875. }
  876. // PLACE & DATE OF ISSUE
  877. data.placeAndDateOfIssue = ''
  878. if (data.issueAt) {
  879. data.placeAndDateOfIssue += data.issueAt
  880. }
  881. if (data.issueDate) {
  882. let date = new Date(data.issueDate.replace(/-/g,'/'));
  883. let yyyy = date.getFullYear();
  884. let mmmm = date.toDateString().split(" ")[1]
  885. let dd = date.getDate()
  886. data.placeAndDateOfIssue += ', ' + dd + '-' + mmmm + '-' + yyyy
  887. }
  888. // Total number of containers or packages received by the Carriers
  889. if (data.preContainersList) {
  890. let boxMap = new Map();
  891. for (let boxQuantity of data.preContainersList) {
  892. if (boxMap.get(boxQuantity.cntrTypeCode)) {
  893. let v = boxMap.get(boxQuantity.cntrTypeCode)
  894. boxMap.set(boxQuantity.cntrTypeCode, v + boxQuantity.quantity)
  895. } else {
  896. boxMap.set(boxQuantity.cntrTypeCode, boxQuantity.quantity)
  897. }
  898. }
  899. let boxs = ''
  900. boxMap.forEach(function (value, key, map) {
  901. boxs += value + 'x' + key + ', '
  902. })
  903. boxs = boxs.substring(0, boxs.length - 2)
  904. data.boxQuantity = boxs + ' CONTAINER(S) ONLY'
  905. }
  906. // Number of original B/Ls
  907. if (data.numberOfObl) {
  908. data.numberOfObl += ' (' + data.numberOfOblDigit + ')'
  909. }
  910. if (data.commodityDescr) {
  911. var descriptionIndex2 = data.commodityDescr.indexOf( '\n' )
  912. for (let i = 0; i < 19; i++) {
  913. descriptionIndex2 = data.commodityDescr.indexOf( '\n', descriptionIndex2 + 1 );
  914. }
  915. if (descriptionIndex2 != -1) {
  916. data.pageOne = 'Page : 1 of 2'
  917. data.pageTwo = 'Page : 2 of 2'
  918. var extraLongText = data.commodityDescr.substring(descriptionIndex2 + 2, data.commodityDescr.length)
  919. data.commodityDescr = data.commodityDescr.substring(0, descriptionIndex2)
  920. data.extraLongTips = '** TO BE CONTINUED ON ATTACHED LIST **'
  921. data.extraLongText = extraLongText
  922. }
  923. }
  924. // console.log(data.hshipperDetails, 'hshipperDetails2')
  925. // 创建一个 Stimulsoft 数据集(DataSet)的实例的代码
  926. var dataSet = new Stimulsoft.System.Data.DataSet(
  927. 'reportData'
  928. )
  929. dataSet.readJson(data) // 用于将 JSON 格式的数据加载到数据集中。data 是包含报表数据的 JSON 对象。
  930. // 这是一个方法调用,用于在报表中注册数据源。参数 'reportData' 是数据源的名称,
  931. // 第二个 'reportData' 是数据源的别名,dataSet 则是之前创建的数据集实例
  932. report.regData('reportData', 'reportData', dataSet)
  933. // 从模版和数据加载报表
  934. // loadReport(report, '', {})
  935. // 这是将报表对象指定给报表查看器的属性。viewer 是报表查看器的实例,而 report 是之前创建的报表对象。
  936. viewer.report = report;
  937. this.$refs.reportContainer.showContainer(
  938. ()=> {
  939. setTimeout(() => {
  940. viewer.renderHtml('reportContainer')
  941. this.createViewerButtons(viewer)
  942. }, 50)
  943. },
  944. ()=>{
  945. },
  946. )
  947. console.log("加载成功完成!");
  948. },
  949. createViewerButtons (viewer){
  950. viewer.jsObject.collections.images['myClose.png'] =
  951. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAA0ElEQVQ4ja3TO05CQRQG4A8iOwAbtYWETndAaecK7NwCKmETtJZsSBNLobEz8ZFIJQ0UnOGSm3DnYviTybzO/895DQXGWGCVGQuMEqkRcwcfuMOLalziCaf4TIe9UG9nyMJmFRzNGoRK1BU4xxx9G7cfwostciGk+x8MqgySwDXe4tU53hVV+MNtTmAoX84JGv9NYgrHyR6DV8wUSW7hItZLm36ZVoVQxsFJLOMsPOrH/h7dQwR2cdxOTEn8DtUbPGc4V2H7Vb4Yqfedf/GYSGt8VUmxgyfuBAAAAABJRU5ErkJggg=='
  952. const closeBtn = viewer.jsObject.SmallButton(
  953. 'closeBtn',
  954. '关闭',
  955. 'myClose.png'
  956. )
  957. // 增加打印弹窗配置
  958. const printBtn = viewer.jsObject.SmallButton(
  959. 'printBtn',
  960. '打印报表',
  961. 'myClose.png'
  962. )
  963. // console.log(viewer.jsObject.print(),'1013')
  964. // 获取 关闭按钮的dom元素位置
  965. const toolbarTable = viewer.jsObject.controls.toolbar.firstChild.firstChild
  966. const buttonsTable = toolbarTable.rows[0].lastChild.lastChild
  967. const userButtonCell = buttonsTable.rows[0].insertCell(0)
  968. // 获取打印按钮的位置
  969. const buttonsTablePrint = toolbarTable.rows[0].childNodes[0].lastChild // 打印按钮
  970. const userButtonPrint = buttonsTablePrint.rows[0].childNodes[0] // 打印按钮dom位置
  971. userButtonPrint.addEventListener("click", (event)=>{
  972. console.log("打印点击");
  973. // event.preventDefault()
  974. });
  975. userButtonPrint.addEventListener("mouseover", (event) => {
  976. console.log("移入打印按钮");
  977. console.log(event,1035)
  978. });
  979. userButtonCell.className = 'stiJsViewerClearAllStyles'
  980. userButtonCell.appendChild(closeBtn) // 添加关闭节点
  981. // userButtonPrint.prepend(printBtn) // 在 printBtn 节点里最前面增加一个子级节点
  982. let that=this
  983. // 关闭按钮的监听点击
  984. closeBtn.action = function() {
  985. console.log(that.$refs.ReportContainer,'1022')
  986. if (that.$refs.reportContainer)
  987. that.$refs.reportContainer.hideContainer()
  988. }
  989. // // // 打印按钮监听
  990. // printBtn.action = (e)=>{
  991. // console.log('打印')
  992. // window.print()
  993. // }
  994. },
  995. }
  996. }
  997. </script>
  998. <style scoped>
  999. ::v-deep.el-form-item {
  1000. margin-bottom: 0;
  1001. }
  1002. .bottomFlex {
  1003. display: flex;
  1004. align-items: center;
  1005. }
  1006. .weightfont {
  1007. font-size: 20px;
  1008. font-weight: bold;
  1009. }
  1010. .weightnum {
  1011. font-size: 18px;
  1012. font-weight: 500;
  1013. }
  1014. /deep/.el-dialog .el-dialog__body {
  1015. padding: 0px 20px;
  1016. }
  1017. </style>