index.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  1. <template>
  2. <zj-page-container>
  3. <zj-page-fill class="neibuview">
  4. <template v-if="payData.length">
  5. <zj-form-container>
  6. <template v-for="(item, index) in payData">
  7. <zj-form-module
  8. :key="index"
  9. :title="`支付费用${index + 1} 【支付订单号:${item.orderId}】`"
  10. :form-data="payData[index]"
  11. :form-items="
  12. [formItemsL1, formItems(item)][!!~[1, 2, 3].indexOf(workOrderType) ? 0 : workOrderType == 4 ? 1 : 0]
  13. "
  14. >
  15. <div v-if="item.examineStatus === 'FAIL'" style="text-align: right">
  16. <el-button size="mini" type="danger" plain @click="enginMaterialCancelFun(item)">取消申请</el-button>
  17. </div>
  18. </zj-form-module>
  19. </template>
  20. </zj-form-container>
  21. </template>
  22. <el-empty v-else description="暂时没有支付信息"></el-empty>
  23. </zj-page-fill>
  24. </zj-page-container>
  25. </template>
  26. <script>
  27. import { listPageV2 } from '@/api/workOrder/appraise'
  28. import { tableDataParsing } from '@/utils/common.js'
  29. import { changeOrderGetOrderList, enginMaterialDetailWorker, enginMaterialCancel } from '@/api/workOrderPool.js'
  30. import { orderBaseDetail } from '@/api/workOrderPool.js'
  31. import { number } from 'echarts'
  32. export default {
  33. props: {
  34. id: {
  35. type: [String, Number],
  36. default: null
  37. },
  38. workOrderType: {
  39. type: Number,
  40. default: 1 // 1普通工单, 4维保工单
  41. }
  42. },
  43. data() {
  44. return {
  45. payData: [],
  46. orderBaseDetail: {}
  47. }
  48. },
  49. watch: {
  50. id: {
  51. handler(newVal, oldVal) {
  52. this.getxiangqing()
  53. },
  54. deep: true,
  55. immediate: true
  56. }
  57. },
  58. computed: {
  59. formItemsL1() {
  60. return [
  61. {
  62. md: 24,
  63. name: 'slot-component',
  64. formItemAttributes: {
  65. label: '费用信息'
  66. },
  67. render: (h, { props, onInput }) => {
  68. var { formData } = props
  69. return (
  70. <el-descriptions
  71. border
  72. title=""
  73. column={3}
  74. colon={false}
  75. labelStyle={{ width: '11%' }}
  76. contentStyle={{ width: '22.3%' }}
  77. >
  78. <el-descriptions-item label="网点名称">{`(${formData.websitId})${formData.websitName}`}</el-descriptions-item>
  79. <el-descriptions-item label="工单号">{formData.workerOrderId}</el-descriptions-item>
  80. <el-descriptions-item label="工程师编号">
  81. {formData.workerNumber || formData.workerId}
  82. </el-descriptions-item>
  83. <el-descriptions-item label="工程师名称">{formData.workerName}</el-descriptions-item>
  84. <el-descriptions-item label="工程师电话">{formData.workerMobile}</el-descriptions-item>
  85. <el-descriptions-item label="支付方式">
  86. {{ WECHAT: '微信支付', LINE: '线下支付', EXAMINE: '审批', GREE: '格力支付' }[formData.payType] ||
  87. '微信支付'}
  88. </el-descriptions-item>
  89. <el-descriptions-item label="客户名称">{formData.pgOrderBase.userName}</el-descriptions-item>
  90. <el-descriptions-item label="电话号码">{formData.userMobile}</el-descriptions-item>
  91. <el-descriptions-item label="支付状态">
  92. {{ CANCEL: '取消', WAIT: '待支付', PAID: '已支付' }[formData.payStatus]}
  93. </el-descriptions-item>
  94. <el-descriptions-item label="支付总金额">{this.toFixed(formData.totalAmount)}</el-descriptions-item>
  95. <el-descriptions-item label="总手续费">{formData.commissionAmount}</el-descriptions-item>
  96. <el-descriptions-item label="支付时间">{formData.payTime}</el-descriptions-item>
  97. <el-descriptions-item label="分账状态">
  98. {{ WAIT: '待结算', OK: '完成', YC: '异常结算', LINE: '线下结算' }[formData.settlementStatus]}
  99. </el-descriptions-item>
  100. {this?.workOrderType == 4
  101. ? [
  102. <el-descriptions-item label=""></el-descriptions-item>,
  103. <el-descriptions-item label="审批状态">
  104. {{ WAIT: '待审', OK: '审批', FAIL: '驳回', NO: '取消' }[formData.examineStatus] || ''}
  105. </el-descriptions-item>,
  106. <el-descriptions-item label="审批人">{formData.examineName}</el-descriptions-item>,
  107. <el-descriptions-item label="审批时间">{formData.examineTime}</el-descriptions-item>
  108. ]
  109. : null}
  110. </el-descriptions>
  111. )
  112. }
  113. },
  114. {
  115. md: 24,
  116. name: 'slot-component',
  117. formItemAttributes: {
  118. label: '支付明细'
  119. },
  120. render: (h, { props, onInput }) => {
  121. var { formData } = props
  122. return (
  123. <zj-table
  124. columns={[
  125. {
  126. columnAttributes: {
  127. label: '费用名称',
  128. prop: 'goodsName'
  129. }
  130. },
  131. {
  132. columnAttributes: {
  133. label: '单价',
  134. prop: 'goodsAmount'
  135. },
  136. render: (h, { row, column }) => {
  137. return <div>{this.toFixed(row[column.columnAttributes.prop])}</div>
  138. }
  139. },
  140. {
  141. columnAttributes: {
  142. label: '数量',
  143. prop: 'num'
  144. }
  145. },
  146. {
  147. columnAttributes: {
  148. label: '费用金额',
  149. prop: 'totalAmount'
  150. },
  151. render: (h, { row, column }) => {
  152. return <div>{this.toFixed(row[column.columnAttributes.prop])}</div>
  153. }
  154. }
  155. // ...(() => {
  156. // if (!!~[1, 2, 3].indexOf(this?.workOrderType)) {
  157. // return [
  158. // {
  159. // columnAttributes: {
  160. // label: '师傅分账金额',
  161. // prop: 'workerAmount'
  162. // },
  163. // render: (h, { row, column }) => {
  164. // return <div>{this.toFixed(row[column.columnAttributes.prop])}</div>
  165. // }
  166. // },
  167. // {
  168. // columnAttributes: {
  169. // label: '师傅手续费',
  170. // prop: 'workerProceAmount'
  171. // },
  172. // render: (h, { row, column }) => {
  173. // return <div>{this.toFixed(row[column.columnAttributes.prop])}</div>
  174. // }
  175. // },
  176. // {
  177. // columnAttributes: {
  178. // label: '网点分账金额',
  179. // prop: 'websitAmount'
  180. // },
  181. // render: (h, { row, column }) => {
  182. // return <div>{this.toFixed(row[column.columnAttributes.prop])}</div>
  183. // }
  184. // },
  185. // {
  186. // columnAttributes: {
  187. // label: '网点手续费',
  188. // prop: 'websitProceAmount'
  189. // },
  190. // render: (h, { row, column }) => {
  191. // return <div>{this.toFixed(row[column.columnAttributes.prop])}</div>
  192. // }
  193. // }
  194. // ]
  195. // }
  196. // return []
  197. // })()
  198. ]}
  199. table-data={
  200. [formData.workerOrderItems, formData.rpMaterialOrderItems][
  201. !!~[1, 2, 3].indexOf(this?.workOrderType) ? 0 : this?.workOrderType == 4 ? 1 : 0
  202. ]
  203. }
  204. />
  205. )
  206. }
  207. },
  208. {
  209. name: 'el-input',
  210. md: 24,
  211. attributes: { disabled: true, type: 'textarea', placeholder: '' },
  212. formItemAttributes: { label: '备注', prop: 'remark' }
  213. },
  214. {
  215. md: 24,
  216. name: 'slot-component',
  217. formItemAttributes: {
  218. label: '交易记录'
  219. },
  220. render: (h, { props, onInput }) => {
  221. var { formData } = props
  222. return (
  223. <zj-table
  224. columns={[
  225. {
  226. columnAttributes: {
  227. label: 'id',
  228. prop: 'orderId'
  229. }
  230. },
  231. {
  232. columnAttributes: {
  233. label: '交易类型',
  234. prop: 'goodsType'
  235. },
  236. render: (h, { row }) => {
  237. return <div>{{ M: '辅材', P: '配件' }[row.goodsType]}</div>
  238. }
  239. },
  240. {
  241. columnAttributes: {
  242. label: '交易金额',
  243. prop: 'totalAmount'
  244. },
  245. render: (h, { row, column }) => {
  246. return <div>{this.toFixed(row[column.columnAttributes.prop])}</div>
  247. }
  248. },
  249. {
  250. columnAttributes: {
  251. label: '交易状态',
  252. prop: 'payStatus'
  253. },
  254. render: (h, { row }) => {
  255. return <div>{{ CANCEL: '取消', WAIT: '待支付', PAID: '已支付' }[row.payStatus]}</div>
  256. }
  257. },
  258. {
  259. columnAttributes: {
  260. label: '交易时间',
  261. prop: 'payTime'
  262. }
  263. },
  264. {
  265. columnAttributes: {
  266. label: '创建时间',
  267. prop: 'createTime'
  268. }
  269. }
  270. ]}
  271. table-data={[formData]}
  272. />
  273. )
  274. }
  275. },
  276. {
  277. isShow: this.orderBaseDetail.orderType == 'REPAIR',
  278. md: 24,
  279. name: 'slot-component',
  280. formItemAttributes: {
  281. label: '配件信息'
  282. },
  283. render: (h, { props, onInput }) => {
  284. var { formData } = props
  285. return (
  286. <zj-table
  287. columns={[
  288. {
  289. columnAttributes: {
  290. label: '维修标识',
  291. prop: 'repairFlag'
  292. },
  293. render: (h, { row }) => {
  294. return <div>{{ INNER: '保内', OUTSIDE: '保外' }[row.repairFlag]}</div>
  295. }
  296. },
  297. {
  298. columnAttributes: {
  299. label: '旧配件编号',
  300. prop: 'oldPartsNumber'
  301. }
  302. },
  303. {
  304. columnAttributes: {
  305. label: '旧配件名称',
  306. prop: 'oldPartsName'
  307. }
  308. },
  309. {
  310. columnAttributes: {
  311. label: '新配件编号',
  312. prop: 'goodsCode'
  313. }
  314. },
  315. {
  316. columnAttributes: {
  317. label: '新配件名称',
  318. prop: 'goodsName'
  319. }
  320. }
  321. ]}
  322. table-data={formData.workerOrderItems || []}
  323. />
  324. )
  325. }
  326. },
  327. {
  328. md: 24,
  329. name: 'slot-component',
  330. formItemAttributes: {
  331. label: '其它费用表',
  332. 'label-width': '90px'
  333. },
  334. render: (h, { props, onInput }) => {
  335. var { formData } = props
  336. return (
  337. <zj-table
  338. columns={[
  339. {
  340. columnAttributes: {
  341. label: '费用名称',
  342. prop: 'amountName'
  343. },
  344. render: (h, { row, column }) => {
  345. return <div>{this.toFixed(row[column.columnAttributes.prop])}</div>
  346. }
  347. },
  348. {
  349. columnAttributes: {
  350. label: '费用金额',
  351. prop: 'normAmount'
  352. },
  353. render: (h, { row, column }) => {
  354. return <div>{this.toFixed(row[column.columnAttributes.prop])}</div>
  355. }
  356. }
  357. // {
  358. // columnAttributes: {
  359. // label: '师傅分账金额',
  360. // prop: 'sffzje'
  361. // },
  362. // render: (h, { row, column }) => {
  363. // return <div>{this.toFixed(row[column.columnAttributes.prop])}</div>
  364. // }
  365. // },
  366. // {
  367. // columnAttributes: {
  368. // label: '师傅手续费',
  369. // prop: 'sfsxf'
  370. // },
  371. // render: (h, { row, column }) => {
  372. // return <div>{this.toFixed(row[column.columnAttributes.prop])}</div>
  373. // }
  374. // }
  375. ]}
  376. table-data={formData.gengduofeiyong || []}
  377. />
  378. )
  379. }
  380. }
  381. ]
  382. }
  383. },
  384. methods: {
  385. formItems(itemData) {
  386. return [
  387. {
  388. md: 24,
  389. name: 'slot-component',
  390. formItemAttributes: {
  391. label: '基本信息'
  392. },
  393. render: (h, { props, onInput }) => {
  394. var { formData } = props
  395. return (
  396. <el-descriptions
  397. border
  398. title=""
  399. column={2}
  400. colon={false}
  401. labelStyle={{ width: '13%' }}
  402. contentStyle={{ width: '37%' }}
  403. >
  404. <el-descriptions-item label="申请单号">{formData.orderId}</el-descriptions-item>
  405. <el-descriptions-item label="项目名称">{formData.rpProjectRepairName}</el-descriptions-item>
  406. <el-descriptions-item label="工单单号">{formData.workerOrderId}</el-descriptions-item>
  407. <el-descriptions-item label="负责人">{formData.userName}</el-descriptions-item>
  408. <el-descriptions-item label="联系电话">{formData.userMobile}</el-descriptions-item>
  409. <el-descriptions-item label="项目地址">{formData.pgOrderBase.address}</el-descriptions-item>
  410. <el-descriptions-item label="创单人">{formData.pgOrderBase.createBy}</el-descriptions-item>
  411. <el-descriptions-item label="创单人电话">{formData.pgOrderBase.createMobile}</el-descriptions-item>
  412. <el-descriptions-item label="创单时间">{formData.pgOrderBase.createTime}</el-descriptions-item>
  413. <el-descriptions-item label="工单类型">{formData.orderSmallTypeText}</el-descriptions-item>
  414. <el-descriptions-item label="网点名称">{formData.websitName}</el-descriptions-item>
  415. <el-descriptions-item label="申请人">{formData.workerName}</el-descriptions-item>
  416. <el-descriptions-item label="联系电话">{formData.workerMobile}</el-descriptions-item>
  417. <el-descriptions-item label="申请时间">{formData.createTime}</el-descriptions-item>
  418. <el-descriptions-item label="包含全部费用">
  419. {{ YES: '是', NO: '否' }[formData.isAllFee]}
  420. </el-descriptions-item>
  421. {formData.isAllFee == 'NO' || formData.payType == 'WECHAT' || formData.payType == 'LINE' ? (
  422. <el-descriptions-item label="费用支付方式">
  423. {{ EXAMINE: '审批后结算', SITE: '现场支付' }[formData.feePayMethod]}
  424. </el-descriptions-item>
  425. ) : null}
  426. {(formData.isAllFee == 'NO' || formData.payType == 'WECHAT') && formData.feePayMethod == 'EXAMINE'
  427. ? [
  428. <el-descriptions-item label="费用单状态">
  429. {
  430. { WAIT: '待审', OK: '通过', FAIL: '驳回', PAID: '现场支付', NO: '取消', NO_PAID: '未支付' }[
  431. formData.examineStatus
  432. ]
  433. }
  434. </el-descriptions-item>,
  435. <el-descriptions-item label="审批人">{formData.examineName}</el-descriptions-item>,
  436. <el-descriptions-item label="审批时间">{formData.examineTime}</el-descriptions-item>,
  437. <el-descriptions-item label="取消人">{formData.cancelName}</el-descriptions-item>,
  438. <el-descriptions-item label="取消时间">{formData.cancelTime}</el-descriptions-item>
  439. ]
  440. : null}
  441. {formData.payType == 'LINE' && formData.feePayMethod == 'EXAMINE'
  442. ? [
  443. <el-descriptions-item label="结算状态">
  444. {{ WAIT: '待结算', OVER: '已结算' }[formData.status]}
  445. </el-descriptions-item>,
  446. <el-descriptions-item label="结算人">{formData.settleName}</el-descriptions-item>,
  447. <el-descriptions-item label="结算时间">{formData.settleTime}</el-descriptions-item>
  448. ]
  449. : null}
  450. </el-descriptions>
  451. )
  452. }
  453. },
  454. {
  455. md: 24,
  456. name: 'slot-component',
  457. formItemAttributes: {
  458. label: '费用明细'
  459. },
  460. render: (h, { props, onInput }) => {
  461. var { formData } = props
  462. return (
  463. <zj-table
  464. columns={[
  465. {
  466. columnAttributes: {
  467. label: '费用名称',
  468. prop: 'goodsName'
  469. }
  470. },
  471. {
  472. columnAttributes: {
  473. label: '费用类型',
  474. prop: 'chargeType'
  475. },
  476. render: (h, { row, column, index }) => {
  477. return (
  478. <div style="padding-left:10px">
  479. {{ MCC: '辅材物料', ACC: '配件物料', SERV: '服务收费' }[row.chargeType]}
  480. </div>
  481. )
  482. }
  483. },
  484. {
  485. columnAttributes: {
  486. label: '单价',
  487. prop: 'goodsAmount'
  488. },
  489. render: (h, { row, column }) => {
  490. return <div>{this.toFixed(row[column.columnAttributes.prop])}</div>
  491. }
  492. },
  493. {
  494. columnAttributes: {
  495. label: '数量',
  496. prop: 'num'
  497. }
  498. },
  499. {
  500. columnAttributes: {
  501. label: '费用金额',
  502. prop: 'totalAmount'
  503. },
  504. render: (h, { row, column }) => {
  505. return <div>{this.toFixed(row[column.columnAttributes.prop])}</div>
  506. }
  507. }
  508. ]}
  509. table-data={formData.rpMaterialOrderItems}
  510. />
  511. )
  512. }
  513. },
  514. {
  515. md: 8,
  516. isShow: itemData.goodsType == 'M',
  517. name: 'slot-component',
  518. formItemAttributes: {
  519. label: '辅材费用合计'
  520. },
  521. render: (h, { props, onInput }) => {
  522. var { formData } = props
  523. return (
  524. <span>
  525. {[
  526. 0,
  527. 0,
  528. 0,
  529. ...formData.rpMaterialOrderItems
  530. .filter(item => item.chargeType == 'MCC')
  531. .map(item => item.totalAmount)
  532. ]
  533. .reduce(function (prev, curr, idx, arr) {
  534. return prev + curr
  535. })
  536. .toFixed(2)}
  537. </span>
  538. )
  539. }
  540. },
  541. {
  542. md: 8,
  543. isShow: itemData.goodsType == 'P',
  544. name: 'slot-component',
  545. formItemAttributes: {
  546. label: '配件费用合计'
  547. },
  548. render: (h, { props, onInput }) => {
  549. var { formData } = props
  550. return (
  551. <span>
  552. {[
  553. 0,
  554. 0,
  555. 0,
  556. ...formData.rpMaterialOrderItems
  557. .filter(item => item.chargeType == 'ACC')
  558. .map(item => item.totalAmount)
  559. ]
  560. .reduce(function (prev, curr, idx, arr) {
  561. return prev + curr
  562. })
  563. .toFixed(2)}
  564. </span>
  565. )
  566. }
  567. },
  568. {
  569. md: 8,
  570. name: 'slot-component',
  571. formItemAttributes: {
  572. label: '服务收费费用合计'
  573. },
  574. render: (h, { props, onInput }) => {
  575. var { formData } = props
  576. return (
  577. <span>
  578. {[
  579. 0,
  580. 0,
  581. 0,
  582. ...formData.rpMaterialOrderItems
  583. .filter(item => item.chargeType == 'SERV')
  584. .map(item => item.totalAmount)
  585. ]
  586. .reduce(function (prev, curr, idx, arr) {
  587. return prev + curr
  588. })
  589. .toFixed(2)}
  590. </span>
  591. )
  592. }
  593. },
  594. {
  595. md: 8,
  596. name: 'slot-component',
  597. formItemAttributes: {
  598. label: '总金额'
  599. },
  600. render: (h, { props, onInput }) => {
  601. var { formData } = props
  602. return (
  603. <span>
  604. {[0, 0, 0, ...formData.rpMaterialOrderItems.map(item => item.totalAmount)]
  605. .reduce(function (prev, curr, idx, arr) {
  606. return prev + curr
  607. })
  608. .toFixed(2)}
  609. </span>
  610. )
  611. }
  612. },
  613. {
  614. name: 'el-input',
  615. md: 24,
  616. attributes: { disabled: true, type: 'textarea', placeholder: '' },
  617. formItemAttributes: { label: '申请备注', prop: 'remark' }
  618. },
  619. {
  620. md: 24,
  621. isShow: itemData.payType == 'WECHAT',
  622. name: 'slot-component',
  623. formItemAttributes: {
  624. label: '交易记录'
  625. },
  626. render: (h, { props, onInput }) => {
  627. var { formData } = props
  628. return (
  629. <zj-table
  630. columns={[
  631. {
  632. columnAttributes: {
  633. label: 'id',
  634. prop: 'orderId'
  635. }
  636. },
  637. {
  638. columnAttributes: {
  639. label: '交易类型',
  640. prop: 'goodsType'
  641. },
  642. render: (h, { row }) => {
  643. return <div>{{ M: '辅材', P: '配件' }[row.goodsType]}</div>
  644. }
  645. },
  646. {
  647. columnAttributes: {
  648. label: '交易金额',
  649. prop: 'totalAmount'
  650. }
  651. },
  652. {
  653. columnAttributes: {
  654. label: '交易状态',
  655. prop: 'payStatus'
  656. },
  657. render: (h, { row }) => {
  658. return <div>{{ CANCEL: '取消', WAIT: '待支付', PAID: '已支付' }[row.payStatus]}</div>
  659. }
  660. },
  661. {
  662. columnAttributes: {
  663. label: '交易时间',
  664. prop: 'payTime'
  665. }
  666. },
  667. {
  668. columnAttributes: {
  669. label: '创建时间',
  670. prop: 'createTime'
  671. }
  672. }
  673. ]}
  674. table-data={[formData]}
  675. />
  676. )
  677. }
  678. }
  679. ]
  680. },
  681. getxiangqing() {
  682. if (this.id) {
  683. orderBaseDetail({
  684. orderBaseId: this.id
  685. }).then(resData => {
  686. this.orderBaseDetail = resData.data
  687. changeOrderGetOrderList({
  688. id: this.id
  689. }).then(res => {
  690. this.payData = res.data.map(item => {
  691. return {
  692. ...item,
  693. gengduofeiyong: [
  694. {
  695. chargeType: 'SERV',
  696. amountName: '服务费用',
  697. normAmount: item.servicePrice || 0,
  698. sfsxf: Math.ceil((item.servicePrice || 0) * 0.6) / 100,
  699. sffzje: item.servicePrice - Math.ceil((item.servicePrice || 0) * 0.6) / 100
  700. },
  701. {
  702. chargeType: 'SERV',
  703. amountName: '其他费用',
  704. normAmount: item.otherPrice || 0,
  705. sfsxf: Math.ceil((item.otherPrice || 0) * 0.6) / 100,
  706. sffzje: item.otherPrice - Math.ceil((item.otherPrice || 0) * 0.6) / 100
  707. }
  708. ]
  709. }
  710. })
  711. console.log(this.payData)
  712. })
  713. })
  714. }
  715. },
  716. enginMaterialCancelFun(item) {
  717. this.$confirm('是否确认取消申请?', '提示', {
  718. confirmButtonText: '确定',
  719. cancelButtonText: '取消',
  720. type: 'warning'
  721. })
  722. .then(() => {
  723. enginMaterialCancel({
  724. id: item.orderId
  725. }).then(res => {
  726. this.getxiangqing()
  727. })
  728. })
  729. .catch(() => {})
  730. },
  731. toFixed(num = 0) {
  732. return (num || 0).toFixed(2)
  733. }
  734. }
  735. }
  736. </script>
  737. <style lang="scss" scoped>
  738. .neibuview {
  739. box-sizing: border-box;
  740. padding-left: 16px;
  741. ::v-deep & > .zj-page-fill-scroll {
  742. box-sizing: border-box;
  743. padding-right: 16px;
  744. & > div:nth-child(1) {
  745. margin-top: 20px;
  746. }
  747. }
  748. }
  749. </style>