finstlbillsDetails.vue 56 KB

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