index.vue 27 KB

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