detailDialog.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  1. <template>
  2. <div>
  3. <el-form ref="form" :model="form" :rules="rules" label-width="120px">
  4. <headerTitle title="订单信息"> </headerTitle>
  5. <el-row>
  6. <el-col :span="12">
  7. <el-form-item
  8. label="订单编号:"
  9. prop="orderNo"
  10. style="margin-bottom: 16px"
  11. >
  12. {{ form.orderNo }}
  13. </el-form-item>
  14. <el-form-item
  15. label="项目名称:"
  16. prop="projectName"
  17. style="margin-bottom: 16px"
  18. >
  19. {{ form.projectName }}
  20. </el-form-item>
  21. <el-form-item
  22. label="需求部门:"
  23. prop="requireDeptName"
  24. style="margin-bottom: 16px"
  25. >
  26. {{ form.requireDeptName }}
  27. </el-form-item>
  28. <el-form-item
  29. label="订单类型:"
  30. prop="requireDeptName"
  31. style="margin-bottom: 16px"
  32. >
  33. {{ form.sourceTypeName }}
  34. </el-form-item>
  35. <el-form-item prop="orderFiles" label="附件:">
  36. <fileMain v-model="form.orderFiles" type="view"></fileMain>
  37. <!-- <div-->
  38. <!-- v-if="detailData.orderFiles && detailData.orderFiles?.length"-->
  39. <!-- >-->
  40. <!-- <el-link-->
  41. <!-- v-for="link in detailData.orderFiles"-->
  42. <!-- :key="link.id"-->
  43. <!-- type="primary"-->
  44. <!-- :underline="false"-->
  45. <!-- @click="downloadFile(link)"-->
  46. <!-- >-->
  47. <!-- {{ link.name }}</el-link-->
  48. <!-- >-->
  49. <!-- </div>-->
  50. </el-form-item>
  51. <el-form-item prop="remark" label="备注:">
  52. {{ form.remark }}
  53. </el-form-item>
  54. </el-col>
  55. <el-col :span="12">
  56. <el-form-item
  57. label="合同名称:"
  58. prop="contractName"
  59. style="margin-bottom: 16px"
  60. >
  61. {{ form.contractName }}
  62. </el-form-item>
  63. <el-form-item
  64. label="采购计划名称:"
  65. prop="purchasePlanName"
  66. style="margin-bottom: 16px"
  67. >
  68. {{ form.purchasePlanName }}
  69. </el-form-item>
  70. <el-form-item
  71. label="结算方式:"
  72. prop="settlementModeName"
  73. style="margin-bottom: 16px"
  74. >
  75. {{ detailData.settlementModeName }}
  76. </el-form-item>
  77. <el-form-item
  78. label="需求人:"
  79. prop="requireUserName"
  80. style="margin-bottom: 16px"
  81. >
  82. {{ form.requireUserName }}
  83. </el-form-item>
  84. <el-form-item
  85. label="优惠总金额:"
  86. prop="payAmount"
  87. style="margin-bottom: 16px"
  88. >
  89. {{ form.payAmount }}元
  90. </el-form-item>
  91. <el-form-item
  92. label="订单总金额:"
  93. prop="totalAmount"
  94. style="margin-bottom: 16px"
  95. >
  96. {{ form.totalAmount }}元
  97. </el-form-item>
  98. <!-- <el-form-item label="计价方式:" style="margin-bottom: 16px">
  99. {{ form.pricingWay == 1 ? '按数量计费' : '按重量计费' }}
  100. </el-form-item> -->
  101. </el-col>
  102. </el-row>
  103. <headerTitle title="基本信息"></headerTitle>
  104. <el-row>
  105. <el-col :span="12">
  106. <el-form-item
  107. label="采购方名称:"
  108. prop="partaName"
  109. style="margin-bottom: 16px"
  110. >
  111. {{ form.partaName }}
  112. </el-form-item>
  113. <el-form-item
  114. label="采购方统一社会信用代码"
  115. prop="partaUnifiedSocialCreditCode"
  116. label-width="170px"
  117. style="margin-bottom: 16px"
  118. >
  119. {{ form.partaUnifiedSocialCreditCode }}
  120. </el-form-item>
  121. <el-form-item
  122. label="采购方联系人:"
  123. prop="partaLinkName"
  124. style="margin-bottom: 16px"
  125. >
  126. {{ form.partaLinkName }}
  127. </el-form-item>
  128. <el-form-item
  129. label="采购方电话:"
  130. prop="partaTel"
  131. style="margin-bottom: 16px"
  132. >
  133. {{ form.partaTel }}
  134. </el-form-item>
  135. <el-form-item
  136. label="采购方传真:"
  137. prop="partaFax"
  138. style="margin-bottom: 16px"
  139. >
  140. {{ form.partaFax }}
  141. </el-form-item>
  142. <el-form-item
  143. label=" 采购方Email:"
  144. prop="partaEmail"
  145. style="margin-bottom: 16px"
  146. >
  147. {{ form.partaEmail }}
  148. </el-form-item>
  149. <el-form-item
  150. label="采购方地址:"
  151. prop="partaAddress"
  152. style="margin-bottom: 16px"
  153. >
  154. {{ form.partaAddress }}
  155. </el-form-item>
  156. <!-- <el-form-item
  157. label="客户税号"
  158. prop="contactAddress"
  159. style="margin-bottom: 16px"
  160. >
  161. <el-input
  162. clearable
  163. v-model="form.contactAddress"
  164. placeholder="请输入"
  165. />
  166. </el-form-item> -->
  167. </el-col>
  168. <el-col :span="12">
  169. <el-form-item
  170. label="供应商名称:"
  171. prop="partbName"
  172. style="margin-bottom: 16px"
  173. >
  174. {{ form.partbName }}
  175. </el-form-item>
  176. <el-form-item
  177. label="供应商统一社会信用代码"
  178. prop="partbUnifiedSocialCreditCode"
  179. label-width="180px"
  180. style="margin-bottom: 16px"
  181. >
  182. {{ form.partbUnifiedSocialCreditCode }}
  183. </el-form-item>
  184. <el-form-item
  185. label="供应商联系人:"
  186. prop="partbLinkName"
  187. style="margin-bottom: 16px"
  188. >
  189. {{ form.partbLinkName }}
  190. </el-form-item>
  191. <el-form-item
  192. prop="partbTel"
  193. label="供应商联系电话:"
  194. label-width="140px"
  195. >
  196. {{ form.partbTel }}
  197. </el-form-item>
  198. <el-form-item prop="partbFax" label="供应商传真:">
  199. {{ form.partbFax }}
  200. </el-form-item>
  201. <el-form-item
  202. label="供应商Email:"
  203. prop="partbEmail"
  204. style="margin-bottom: 16px"
  205. >
  206. {{ form.partbEmail }}
  207. </el-form-item>
  208. <el-form-item
  209. label="供应商地址:"
  210. prop="partbAddress"
  211. style="margin-bottom: 16px"
  212. >
  213. {{ form.partbAddress }}
  214. </el-form-item>
  215. <!-- <el-form-item
  216. label="售出方税号"
  217. prop="contactAddress"
  218. style="margin-bottom: 16px"
  219. >
  220. <el-input
  221. clearable
  222. v-model="form.contactAddress"
  223. placeholder="请输入"
  224. />
  225. </el-form-item> -->
  226. </el-col>
  227. </el-row>
  228. </el-form>
  229. <el-tabs v-model="activeName" style="margin-top: 15px" type="border-card">
  230. <el-tab-pane label="物品清单" name="1">
  231. <ele-pro-table
  232. ref="table"
  233. :needPage="false"
  234. :columns="competAnalysisListcolumns"
  235. :toolkit="[]"
  236. :datasource="detailData.productList"
  237. row-key="id"
  238. >
  239. <template v-slot:toolbar>
  240. <div class="headbox">
  241. <span class="amount">总计:{{ detailData.totalAmount }}元</span>
  242. <span class="amount">应付金额:{{ detailData.payAmount }}元</span>
  243. </div>
  244. </template>
  245. <template v-slot:technicalDrawings="{ row }">
  246. <fileMain v-model="row.technicalDrawings" type="view"></fileMain>
  247. </template>
  248. </ele-pro-table>
  249. </el-tab-pane>
  250. <el-tab-pane
  251. label="带料清单"
  252. name="2"
  253. v-if="['3', '4', '5', '6','7'].includes(form.sourceType)"
  254. >
  255. <ele-pro-table
  256. ref="table"
  257. :needPage="false"
  258. :columns="competAnalysisListcolumns1"
  259. :toolkit="[]"
  260. :datasource="detailData.rawList"
  261. row-key="id"
  262. >
  263. <template v-slot:technicalDrawings="{ row }">
  264. <fileMain v-model="row.technicalDrawings" type="view"></fileMain>
  265. </template>
  266. </ele-pro-table>
  267. </el-tab-pane>
  268. <el-tab-pane
  269. label="产出清单"
  270. name="3"
  271. v-if="['3', '4', '5', '6','7'].includes(form.sourceType)"
  272. >
  273. <ele-pro-table
  274. ref="table"
  275. :needPage="false"
  276. :columns="competAnalysisListcolumns1"
  277. :toolkit="[]"
  278. :datasource="detailData.outputList"
  279. row-key="id"
  280. >
  281. <template v-slot:technicalDrawings="{ row }">
  282. <fileMain v-model="row.technicalDrawings" type="view"></fileMain>
  283. </template>
  284. </ele-pro-table>
  285. </el-tab-pane>
  286. </el-tabs>
  287. </div>
  288. </template>
  289. <script>
  290. import { getpurchaseorderDetail } from '@/api/bpm/components/purchasingManage/purchaseOrder';
  291. import { getFile } from '@/api/system/file';
  292. import dictMixins from '@/mixins/dictMixins';
  293. import { copyObj } from '@/utils/util';
  294. import fileMain from '@/components/addDoc/index.vue';
  295. export default {
  296. mixins: [dictMixins],
  297. components: { fileMain },
  298. props: {
  299. businessId: {
  300. default: ''
  301. }
  302. },
  303. data() {
  304. return {
  305. visible: false,
  306. detailId: '',
  307. title: '详情',
  308. row: {},
  309. activeName: '1',
  310. form: {
  311. orderFiles: [{ name: '222' }]
  312. },
  313. rules: {},
  314. detailData: {},
  315. receiptPaymentListcolumns: [
  316. {
  317. width: 45,
  318. type: 'index',
  319. columnKey: 'index',
  320. align: 'center',
  321. fixed: 'left'
  322. },
  323. {
  324. width: 200,
  325. prop: 'moneyName',
  326. label: '款项名称',
  327. slot: 'moneyName'
  328. },
  329. {
  330. width: 100,
  331. prop: 'price',
  332. label: '金额',
  333. slot: 'price',
  334. formatter: (_row, _column, cellValue) => {
  335. return _row.price + '元';
  336. }
  337. },
  338. {
  339. width: 100,
  340. prop: 'ratio',
  341. label: '比例',
  342. slot: 'ratio',
  343. formatter: (_row, _column, cellValue) => {
  344. return _row.ratio + '%';
  345. }
  346. },
  347. {
  348. width: 160,
  349. prop: 'deadLine',
  350. label: '截止日期',
  351. slot: 'deadLine'
  352. },
  353. {
  354. prop: 'remark',
  355. label: ' 说明',
  356. slot: 'remark'
  357. }
  358. ],
  359. competAnalysisListcolumns: [
  360. {
  361. width: 45,
  362. type: 'index',
  363. columnKey: 'index',
  364. align: 'center',
  365. fixed: 'left'
  366. },
  367. {
  368. width: 200,
  369. prop: 'productName',
  370. label: '名称',
  371. slot: 'productName',
  372. align: 'center'
  373. },
  374. {
  375. width: 120,
  376. prop: 'productCode',
  377. label: '编码',
  378. slot: 'productCode',
  379. align: 'center'
  380. },
  381. {
  382. width: 200,
  383. prop: 'productCategoryName',
  384. label: '类型',
  385. slot: 'productCategoryName',
  386. align: 'center'
  387. },
  388. {
  389. width: 160,
  390. prop: 'productBrand',
  391. label: '牌号',
  392. slot: 'productBrand',
  393. align: 'center'
  394. },
  395. {
  396. width: 120,
  397. prop: 'modelType',
  398. label: '型号',
  399. slot: 'modelType',
  400. align: 'center'
  401. },
  402. {
  403. width: 120,
  404. prop: 'supplierMark',
  405. label: '供应商代号',
  406. slot: 'supplierMark',
  407. align: 'center'
  408. },
  409. {
  410. width: 120,
  411. prop: 'specification',
  412. label: '规格',
  413. slot: 'specification',
  414. align: 'center'
  415. },
  416. {
  417. width: 120,
  418. prop: 'totalCount',
  419. label: '数量',
  420. slot: 'totalCount',
  421. align: 'center'
  422. },
  423. {
  424. width: 120,
  425. prop: 'measuringUnit',
  426. label: '计量单位',
  427. slot: 'measuringUnit',
  428. align: 'center'
  429. },
  430. {
  431. width: 120,
  432. prop: 'singleWeight',
  433. label: '单重',
  434. slot: 'singleWeight',
  435. align: 'center'
  436. },
  437. {
  438. width: 120,
  439. prop: 'totalWeight',
  440. label: '总重',
  441. slot: 'totalWeight',
  442. align: 'center'
  443. },
  444. {
  445. width: 120,
  446. prop: 'weightUnit',
  447. label: '重量单位',
  448. slot: 'weightUnit',
  449. align: 'center'
  450. },
  451. {
  452. width: 160,
  453. prop: 'pricingWay',
  454. label: '计价方式',
  455. slot: 'pricingWay',
  456. align: 'center',
  457. formatter: (row, column) => {
  458. return row.pricingWay == 1 ? '按数量计费' : row.pricingWay == 2 ? '按重量计费':'';
  459. }
  460. },
  461. {
  462. width: 160,
  463. prop: 'singlePrice',
  464. label: '单价',
  465. slot: 'singlePrice',
  466. align: 'center'
  467. },
  468. {
  469. width: 120,
  470. prop: 'taxRate',
  471. label: '税率',
  472. slot: 'taxRate',
  473. align: 'center',
  474. },
  475. {
  476. width: 160,
  477. prop: 'discountSinglePrice',
  478. label: '折后单价',
  479. slot: 'discountSinglePrice',
  480. align: 'center'
  481. },
  482. {
  483. width: 120,
  484. prop: 'totalPrice',
  485. label: '合计',
  486. slot: 'totalPrice',
  487. formatter: (_row, _column, cellValue) => {
  488. return _row.totalPrice + '元';
  489. },
  490. align: 'center'
  491. },
  492. {
  493. width: 120,
  494. prop: 'discountTotalPrice',
  495. label: '折后合计',
  496. slot: 'discountTotalPrice',
  497. formatter: (_row, _column, cellValue) => {
  498. return _row.discountTotalPrice + '元';
  499. },
  500. align: 'center'
  501. },
  502. {
  503. width: 110,
  504. prop: 'batchNo',
  505. label: '批次号',
  506. slot: 'batchNo',
  507. align: 'center'
  508. },
  509. {
  510. prop: 'provenance',
  511. label: '产地',
  512. slot: 'provenance',
  513. align: 'center',
  514. minWidth: 200,
  515. showOverflowTooltip: true,
  516. formatter: (row, column) => {
  517. return row.provenance && row.provenance.length
  518. ? row.provenance
  519. .map((item) => this.getDictValue('产地', item))
  520. .join(',')
  521. : '';
  522. }
  523. },
  524. {
  525. width: 120,
  526. prop: 'deliveryDays',
  527. label: '交期(天)',
  528. slot: 'deliveryDays'
  529. },
  530. {
  531. width: 160,
  532. prop: 'deliveryDeadline',
  533. label: '交期截止日期',
  534. slot: 'deliveryDeadline',
  535. align: 'center'
  536. },
  537. {
  538. width: 200,
  539. prop: 'guaranteePeriod',
  540. label: '质保期',
  541. slot: 'guaranteePeriod',
  542. formatter: (_row, _column, cellValue) => {
  543. return (
  544. (_row.guaranteePeriod || '') + _row.guaranteePeriodUnitName
  545. );
  546. },
  547. align: 'center'
  548. },
  549. {
  550. width: 160,
  551. prop: 'guaranteePeriodDeadline',
  552. label: '质保截止日期',
  553. slot: 'guaranteePeriodDeadline',
  554. align: 'center'
  555. },
  556. {
  557. width: 120,
  558. prop: 'technicalAnswerName',
  559. label: '技术答疑人',
  560. slot: 'technicalAnswerName',
  561. align: 'center'
  562. },
  563. {
  564. width: 220,
  565. prop: 'technicalParams',
  566. label: '技术参数',
  567. slot: 'technicalParams',
  568. align: 'center'
  569. },
  570. {
  571. width: 240,
  572. prop: 'technicalDrawings',
  573. label: '技术图纸',
  574. slot: 'technicalDrawings',
  575. formatter: (_row, _column, cellValue) => {
  576. return (
  577. (_row.guaranteePeriod || '') + _row.guaranteePeriodUnitName
  578. );
  579. },
  580. align: 'center'
  581. },
  582. {
  583. width: 220,
  584. prop: 'remark',
  585. label: '备注',
  586. slot: 'remark',
  587. align: 'center'
  588. }
  589. ],
  590. competAnalysisListcolumns1: [
  591. {
  592. width: 45,
  593. type: 'index',
  594. columnKey: 'index',
  595. align: 'center',
  596. fixed: 'left'
  597. },
  598. {
  599. width: 200,
  600. prop: 'productName',
  601. label: '名称',
  602. slot: 'productName',
  603. align: 'center'
  604. },
  605. {
  606. width: 120,
  607. prop: 'productCode',
  608. label: '编码',
  609. slot: 'productCode',
  610. align: 'center'
  611. },
  612. {
  613. width: 200,
  614. prop: 'productCategoryName',
  615. label: '类型',
  616. slot: 'productCategoryName',
  617. align: 'center'
  618. },
  619. {
  620. width: 160,
  621. prop: 'productBrand',
  622. label: '牌号',
  623. slot: 'productBrand',
  624. align: 'center'
  625. },
  626. {
  627. width: 120,
  628. prop: 'modelType',
  629. label: '型号',
  630. slot: 'modelType',
  631. align: 'center'
  632. },
  633. {
  634. width: 120,
  635. prop: 'supplierMark',
  636. label: '供应商代号',
  637. slot: 'supplierMark',
  638. align: 'center'
  639. },
  640. {
  641. width: 120,
  642. prop: 'specification',
  643. label: '规格',
  644. slot: 'specification',
  645. align: 'center'
  646. },
  647. {
  648. minWidth: 200,
  649. prop: 'taskName',
  650. label: '工序',
  651. slot: 'taskName',
  652. align: 'center'
  653. },
  654. {
  655. width: 120,
  656. prop: 'requirementTotalCount',
  657. label: '采购需求数量',
  658. slot: 'requirementTotalCount',
  659. align: 'center'
  660. },
  661. {
  662. width: 120,
  663. prop: 'planTotalCount',
  664. label: '采购计划数量',
  665. slot: 'planTotalCount',
  666. align: 'center'
  667. },
  668. {
  669. width: 120,
  670. prop: 'inquiryTotalCount',
  671. label: '采购核价数量',
  672. slot: 'inquiryTotalCount',
  673. align: 'center'
  674. },
  675. {
  676. width: 120,
  677. prop: 'contractTotalCount',
  678. label: '采购合同数量',
  679. slot: 'contractTotalCount',
  680. align: 'center'
  681. },
  682. {
  683. width: 80,
  684. prop: 'doneTotalCount',
  685. label: '已采数量',
  686. slot: 'doneTotalCount',
  687. align: 'center'
  688. },
  689. {
  690. width: 80,
  691. prop: 'waitTotalCount',
  692. label: '待采数量',
  693. // slot: 'waitTotalCount',
  694. align: 'center'
  695. },
  696. {
  697. width: 120,
  698. prop: 'totalCount',
  699. label: '数量',
  700. slot: 'totalCount',
  701. align: 'center'
  702. },
  703. {
  704. width: 120,
  705. prop: 'measuringUnit',
  706. label: '计量单位',
  707. slot: 'measuringUnit',
  708. align: 'center'
  709. },
  710. {
  711. width: 120,
  712. prop: 'singleWeight',
  713. label: '单重',
  714. slot: 'singleWeight',
  715. align: 'center'
  716. },
  717. {
  718. width: 120,
  719. prop: 'totalWeight',
  720. label: '总重',
  721. slot: 'totalWeight',
  722. align: 'center'
  723. },
  724. {
  725. width: 120,
  726. prop: 'weightUnit',
  727. label: '重量单位',
  728. slot: 'weightUnit',
  729. align: 'center'
  730. },
  731. {
  732. width: 110,
  733. prop: 'batchNo',
  734. label: '批次号',
  735. slot: 'batchNo',
  736. align: 'center'
  737. },
  738. {
  739. width: 120,
  740. prop: 'deliveryDays',
  741. label: '交期(天)',
  742. slot: 'deliveryDays'
  743. },
  744. {
  745. width: 160,
  746. prop: 'deliveryDeadline',
  747. label: '交期截止日期',
  748. slot: 'deliveryDeadline',
  749. align: 'center'
  750. },
  751. {
  752. width: 200,
  753. prop: 'guaranteePeriod',
  754. label: '质保期',
  755. slot: 'guaranteePeriod',
  756. formatter: (_row, _column, cellValue) => {
  757. return (
  758. (_row.guaranteePeriod || '') + _row.guaranteePeriodUnitName
  759. );
  760. },
  761. align: 'center'
  762. },
  763. {
  764. width: 160,
  765. prop: 'guaranteePeriodDeadline',
  766. label: '质保截止日期',
  767. slot: 'guaranteePeriodDeadline',
  768. align: 'center'
  769. },
  770. {
  771. width: 120,
  772. prop: 'technicalAnswerName',
  773. label: '技术答疑人',
  774. slot: 'technicalAnswerName',
  775. align: 'center'
  776. },
  777. {
  778. width: 220,
  779. prop: 'technicalParams',
  780. label: '技术参数',
  781. slot: 'technicalParams',
  782. align: 'center'
  783. },
  784. {
  785. width: 240,
  786. prop: 'technicalDrawings',
  787. label: '技术图纸',
  788. slot: 'technicalDrawings',
  789. formatter: (_row, _column, cellValue) => {
  790. return (
  791. (_row.guaranteePeriod || '') + _row.guaranteePeriodUnitName
  792. );
  793. },
  794. align: 'center'
  795. },
  796. {
  797. width: 220,
  798. prop: 'remark',
  799. label: '备注',
  800. slot: 'remark',
  801. align: 'center'
  802. }
  803. ]
  804. };
  805. },
  806. created() {
  807. this.requestDict('产地');
  808. this.getDetailData(this.businessId);
  809. },
  810. methods: {
  811. downloadFile(file) {
  812. getFile({ objectName: file.storePath }, file.name);
  813. },
  814. async getDetailData(id) {
  815. this.loading = true;
  816. const data = await getpurchaseorderDetail(id);
  817. this.loading = false;
  818. if (data) {
  819. this.form = data;
  820. this.detailData = data;
  821. }
  822. }
  823. }
  824. };
  825. </script>
  826. <style scoped lang="scss">
  827. .ele-dialog-form {
  828. .el-form-item {
  829. margin-bottom: 10px;
  830. }
  831. }
  832. .headbox {
  833. display: flex;
  834. justify-content: flex-start;
  835. align-items: center;
  836. .amount {
  837. font-size: 14px;
  838. font-weight: bold;
  839. margin-right: 20px;
  840. }
  841. }
  842. .switch_left ul .active {
  843. border-top: 4px solid var(--color-primary);
  844. color: var(--color-primary-5);
  845. }
  846. .switch {
  847. padding-bottom: 20px;
  848. }
  849. :deep .divider .content {
  850. justify-content: flex-start;
  851. }
  852. </style>