refund_list-detail.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. <template>
  2. <div>
  3. <div class="sty">
  4. <el-page-header @back="goBack" :content="title"> </el-page-header>
  5. </div>
  6. <el-divider></el-divider>
  7. <h3>工程项目信息</h3>
  8. <el-divider></el-divider>
  9. <div class="diy-table-1">
  10. <el-row :gutter="0">
  11. <el-col :xs="12" :sm="24" :lg="8" class="item">
  12. <div class="label">工程登录编号</div>
  13. <div class="value">{{ detailList.refEnginRecordNo }}</div>
  14. </el-col>
  15. <el-col :xs="12" :sm="24" :lg="8" class="item">
  16. <div class="label">项目类别</div>
  17. <div class="value">{{ detailList.refProjectName }}</div>
  18. </el-col>
  19. <el-col :xs="12" :sm="24" :lg="8" class="item">
  20. <div class="label">行业类别</div>
  21. <div class="value">
  22. {{ detailList.refProjectNo == "HOME" ? "家用" : "商用" }}
  23. </div>
  24. </el-col>
  25. <el-col :xs="24" :sm="24" :lg="8" class="item">
  26. <div class="label">跨区厂编号</div>
  27. <div class="value">{{ detailList.refFactoryNo }}</div>
  28. </el-col>
  29. <el-col :xs="24" :sm="24" :lg="8" class="item">
  30. <div class="label">使用单位</div>
  31. <div class="value">{{ detailList.refUseUnit }}</div>
  32. </el-col>
  33. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  34. <div class="label">经销商二级代码</div>
  35. <div class="value">{{detailList.}}</div>
  36. </el-col> -->
  37. <el-col :xs="24" :sm="24" :lg="8" class="item">
  38. <div class="label">业务员</div>
  39. <div class="value">{{ detailList.serviceName }}</div>
  40. </el-col>
  41. <el-col :xs="24" :sm="24" :lg="8" class="item">
  42. <div class="label">联系人</div>
  43. <div class="value">{{ detailList.refLinkman }}</div>
  44. </el-col>
  45. <el-col :xs="24" :sm="24" :lg="8" class="item">
  46. <div class="label">固定电话</div>
  47. <div class="value">{{ detailList.refTel }}</div>
  48. </el-col>
  49. <el-col :xs="24" :sm="24" :lg="8" class="item">
  50. <div class="label">移动电话</div>
  51. <div class="value">{{ detailList.refPhone }}</div>
  52. </el-col>
  53. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  54. <div class="label">移动电话</div>
  55. <div class="value">
  56. <el-input
  57. :disabled="title == '详情'"
  58. placeholder="请输入"
  59. v-model="detailList.refPhone"
  60. ></el-input>
  61. </div>
  62. </el-col> -->
  63. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  64. <div class="label">押金比例</div>
  65. <div class="value">{{detailList.}}</div>
  66. </el-col> -->
  67. <el-col :xs="24" :sm="24" :lg="8" class="item">
  68. <div class="label">安装地址</div>
  69. <div class="value">{{ detailList.refInstallAddress }}</div>
  70. </el-col>
  71. <el-col :xs="24" :sm="24" :lg="8" class="item">
  72. <div class="label">第几次申报</div>
  73. <div class="value">{{ detailList.refDeclareNo }}</div>
  74. </el-col>
  75. <el-col :xs="24" :sm="24" :lg="8" class="item">
  76. <div class="label">项目说明</div>
  77. <div class="value">{{ detailList.refProjectNote }}</div>
  78. </el-col>
  79. <el-col :xs="24" :sm="24" :lg="8" class="item">
  80. <div class="label">项目类型</div>
  81. <div class="value">{{ detailList.refProjectName }}</div>
  82. </el-col>
  83. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  84. <div class="label">寄厂日期</div>
  85. <div class="value">
  86. <el-date-picker
  87. :disabled="title == '详情'"
  88. class="selectStyle"
  89. v-model="detailList.sendFactoryDate"
  90. type="datetime"
  91. prefix-icon="''"
  92. placeholder="请选择寄厂日期"
  93. default-time="00:00:00"
  94. value-format="yyyy-MM-dd HH:mm:ss"
  95. >
  96. </el-date-picker>
  97. </div>
  98. </el-col> -->
  99. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  100. <div class="label">提货日期</div>
  101. <div class="value">{{detailList.}}</div>
  102. </el-col> -->
  103. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  104. <div class="label">安装时间</div>
  105. <div class="value">
  106. <el-date-picker
  107. prefix-icon="''"
  108. placeholder="请选择安装时间"
  109. :disabled="title == '详情'"
  110. class="selectStyle"
  111. v-model="detailList.installDate"
  112. type="datetime"
  113. default-time="00:00:00"
  114. value-format="yyyy-MM-dd HH:mm:ss"
  115. >
  116. </el-date-picker>
  117. </div>
  118. </el-col> -->
  119. </el-row>
  120. </div>
  121. <h3>货品信息</h3>
  122. <el-divider></el-divider>
  123. <!-- 列表 -->
  124. <div class="mymain-container">
  125. <div class="table">
  126. <el-table
  127. v-loading="listLoading"
  128. :data="detailList.items"
  129. element-loading-text="Loading"
  130. border
  131. fit
  132. highlight-current-row
  133. stripe
  134. show-summary
  135. :summary-method="$getSummaries"
  136. >
  137. <el-table-column
  138. align="center"
  139. label="厂产品编码"
  140. prop="materialOldNumber"
  141. min-width="160"
  142. show-overflow-tooltip
  143. ></el-table-column>
  144. <el-table-column
  145. align="center"
  146. label="产品编码"
  147. prop="materialNumber"
  148. min-width="160"
  149. show-overflow-tooltip
  150. ></el-table-column>
  151. <el-table-column
  152. align="center"
  153. label="产品名称"
  154. prop="materialName"
  155. min-width="160"
  156. show-overflow-tooltip
  157. ></el-table-column>
  158. <el-table-column
  159. align="center"
  160. label="规格型号"
  161. prop="specification"
  162. min-width="160"
  163. show-overflow-tooltip
  164. ></el-table-column>
  165. <el-table-column
  166. align="right"
  167. label="单价"
  168. prop="price"
  169. min-width="160"
  170. show-overflow-tooltip
  171. >
  172. <template slot-scope="scope">
  173. {{ scope.row.price | numToFixed }}
  174. </template>
  175. </el-table-column>
  176. <el-table-column
  177. align="right"
  178. label="数量"
  179. prop="qty"
  180. min-width="160"
  181. show-overflow-tooltip
  182. ></el-table-column>
  183. <el-table-column
  184. align="right"
  185. label="金额"
  186. prop="totalAmount"
  187. min-width="160"
  188. show-overflow-tooltip
  189. >
  190. <template slot-scope="scope">
  191. {{ scope.row.totalAmount | numToFixed }}
  192. </template>
  193. </el-table-column>
  194. <el-table-column
  195. align="right"
  196. label="发货数量"
  197. prop="hasSendQty"
  198. min-width="160"
  199. show-overflow-tooltip
  200. ></el-table-column>
  201. <el-table-column
  202. align="right"
  203. label="上传资料"
  204. prop="dataQty"
  205. min-width="160"
  206. show-overflow-tooltip
  207. v-if="detailList.examineStatus !== 'WAIT'"
  208. >
  209. </el-table-column>
  210. <el-table-column
  211. align="right"
  212. label="上传资料"
  213. prop="dataQty"
  214. min-width="160"
  215. show-overflow-tooltip
  216. v-if="detailList.examineStatus == 'WAIT'"
  217. >
  218. <template slot-scope="scope">
  219. <el-input v-model="scope.row.dataQty"></el-input>
  220. </template>
  221. </el-table-column>
  222. <el-table-column
  223. align="right"
  224. label="收差金额"
  225. prop="diffAmount"
  226. min-width="160"
  227. show-overflow-tooltip
  228. v-if="detailList.examineStatus !== 'WAIT'"
  229. >
  230. <template slot-scope="scope">
  231. {{ scope.row.diffAmount | numToFixed }}
  232. </template>
  233. </el-table-column>
  234. <el-table-column
  235. align="right"
  236. label="收差金额"
  237. prop="diffAmount"
  238. min-width="160"
  239. show-overflow-tooltip
  240. v-if="detailList.examineStatus == 'WAIT'"
  241. >
  242. <template slot-scope="scope">
  243. <el-input v-model="scope.row.diffAmount"></el-input>
  244. </template>
  245. </el-table-column>
  246. </el-table>
  247. </div>
  248. </div>
  249. <h3 class="gdzl">工程资料</h3>
  250. <el-button
  251. :disabled="isDis"
  252. class="batchDownload"
  253. type="primary"
  254. size="small"
  255. @click="batchDownloadFn"
  256. >批量下载</el-button
  257. >
  258. <el-divider></el-divider>
  259. <!-- 列表 -->
  260. <div class="mymain-container">
  261. <div class="table">
  262. <el-table
  263. v-loading="listLoading"
  264. :data="detailList.dataList"
  265. element-loading-text="Loading"
  266. border
  267. fit
  268. highlight-current-row
  269. stripe
  270. >
  271. <el-table-column
  272. align="center"
  273. label="资料描述"
  274. prop="dataDescribe"
  275. min-width="160"
  276. show-overflow-tooltip
  277. ></el-table-column>
  278. <el-table-column
  279. align="center"
  280. label="原文件名"
  281. prop="fileName"
  282. min-width="160"
  283. show-overflow-tooltip
  284. ></el-table-column>
  285. <el-table-column
  286. align="center"
  287. label="缩略图"
  288. prop="fileUrl"
  289. min-width="160"
  290. show-overflow-tooltip
  291. >
  292. <template slot-scope="scope">
  293. <el-image
  294. ref="img"
  295. :src="imageURL + scope.row.fileUrl"
  296. v-if="checkFileType(scope.row.fileUrl) == 'image'"
  297. style="width: 120px; height: 120px"
  298. fit="cover"
  299. :preview-src-list="[imageURL + scope.row.fileUrl]"
  300. >
  301. </el-image>
  302. <img
  303. class="file"
  304. src="@/assets/common/word.png"
  305. v-if="checkFileType(scope.row.fileUrl) == 'word'"
  306. />
  307. <img
  308. class="file"
  309. src="@/assets/common/excel.png"
  310. v-if="checkFileType(scope.row.fileUrl) == 'excel'"
  311. />
  312. <img
  313. class="file"
  314. src="@/assets/common/ppt.png"
  315. v-if="checkFileType(scope.row.fileUrl) == 'ppt'"
  316. />
  317. <img
  318. class="file"
  319. src="@/assets/common/pdf.png"
  320. v-if="checkFileType(scope.row.fileUrl) == 'pdf'"
  321. />
  322. <img
  323. v-if="checkFileType(scope.row.fileUrl) == 'file'"
  324. class="file aaa"
  325. src="@/assets/common/zip.jpeg"
  326. />
  327. </template>
  328. </el-table-column>
  329. <el-table-column
  330. align="center"
  331. label="下载文件名称"
  332. prop="fileName"
  333. min-width="160"
  334. show-overflow-tooltip
  335. >
  336. <template slot-scope="scope">
  337. {{ "资料_" + scope.row.fileName }}
  338. </template>
  339. </el-table-column>
  340. <el-table-column
  341. align="center"
  342. label="操作"
  343. min-width="160"
  344. show-overflow-tooltip
  345. >
  346. <template slot-scope="scope">
  347. <el-button
  348. type="text"
  349. class="textColor"
  350. @click="downLoadFn(scope.row.fileUrl)"
  351. >下载</el-button
  352. >
  353. </template>
  354. </el-table-column>
  355. </el-table>
  356. </div>
  357. </div>
  358. <el-divider></el-divider>
  359. <div class="diy-table-1">
  360. <el-row :gutter="0">
  361. <el-col :xs="12" :sm="12" :lg="12" class="item">
  362. <div class="label">申请人</div>
  363. <div class="value">{{ detailList.createBy }}</div>
  364. </el-col>
  365. <el-col :xs="12" :sm="12" :lg="12" class="item">
  366. <div class="label">申请日期</div>
  367. <div class="value">{{ detailList.createTime }}</div>
  368. </el-col>
  369. <el-col :xs="12" :sm="24" :lg="24" class="item">
  370. <div class="label">申请退押金</div>
  371. <div class="value">{{ detailList.applyNote }}</div>
  372. </el-col>
  373. </el-row>
  374. </div>
  375. <h3
  376. v-if="
  377. detailList.examineStatus == 'WAIT' ||
  378. detailList.examineStatus == 'FAIL' ||
  379. detailList.examineStatus == 'OK'
  380. "
  381. >
  382. 审批
  383. </h3>
  384. <el-divider
  385. v-if="
  386. detailList.examineStatus == 'WAIT' ||
  387. detailList.examineStatus == 'FAIL' ||
  388. detailList.examineStatus == 'OK'
  389. "
  390. ></el-divider>
  391. <div v-if="detailList.examineStatus == 'WAIT'" class="diy-table-1">
  392. <el-row :gutter="0">
  393. <el-col :xs="12" :sm="12" :lg="12" class="item">
  394. <div class="label">验收人</div>
  395. <div class="value">{{ this.checkBy }}</div>
  396. </el-col>
  397. <el-col :xs="12" :sm="12" :lg="12" class="item dateS">
  398. <div class="label">验收日期</div>
  399. <div class="value">
  400. <el-date-picker
  401. disabled
  402. prefix-icon="''"
  403. class="selectStyle"
  404. type="datetime"
  405. placeholder="系统自动生成"
  406. default-time="00:00:00"
  407. value-format="yyyy-MM-dd HH:mm:ss"
  408. >
  409. </el-date-picker>
  410. </div>
  411. </el-col>
  412. <el-col :xs="12" :sm="24" :lg="24" class="item">
  413. <div class="label">是否退押</div>
  414. <div class="value">
  415. <el-radio-group v-model="isRefundDeposit">
  416. <el-radio :label="true">是</el-radio>
  417. <el-radio :label="false">否</el-radio>
  418. </el-radio-group>
  419. </div>
  420. </el-col>
  421. <el-col :xs="12" :sm="24" :lg="24" class="item">
  422. <div class="label">验收说明</div>
  423. <div class="value">
  424. <el-input v-model="checkNote" placeholder="请输入内容"></el-input>
  425. </div>
  426. </el-col>
  427. </el-row>
  428. </div>
  429. <div
  430. v-if="
  431. detailList.examineStatus == 'OK' || detailList.examineStatus == 'FAIL'
  432. "
  433. class="diy-table-1"
  434. >
  435. <el-row :gutter="0">
  436. <el-col :xs="12" :sm="12" :lg="12" class="item">
  437. <div class="label">验收人</div>
  438. <div class="value">{{ detailList.checkBy }}</div>
  439. </el-col>
  440. <el-col :xs="12" :sm="12" :lg="12" class="item dateS">
  441. <div class="label">验收日期</div>
  442. <div class="value">
  443. <el-date-picker
  444. disabled
  445. prefix-icon="''"
  446. class="selectStyle"
  447. v-model="detailList.checkDate"
  448. type="datetime"
  449. placeholder=""
  450. default-time="00:00:00"
  451. value-format="yyyy-MM-dd HH:mm:ss"
  452. >
  453. </el-date-picker>
  454. </div>
  455. </el-col>
  456. <el-col :xs="12" :sm="24" :lg="24" class="item">
  457. <div class="label">是否退押</div>
  458. <div class="value">
  459. <el-radio-group v-model="detailList.isRefundDeposit">
  460. <el-radio disabled :label="true">是</el-radio>
  461. <el-radio disabled :label="false">否</el-radio>
  462. </el-radio-group>
  463. </div>
  464. </el-col>
  465. <el-col :xs="12" :sm="24" :lg="24" class="item dateS">
  466. <div class="label">验收说明</div>
  467. <div class="value">
  468. <el-input
  469. disabled
  470. v-model="detailList.checkNote"
  471. placeholder="请输入内容"
  472. ></el-input>
  473. </div>
  474. </el-col>
  475. <el-col :xs="12" :sm="24" :lg="24" class="item dateS">
  476. <div class="label">审批通过后备注</div>
  477. <div class="value">
  478. <el-input
  479. v-model="detailList.examineAfterRemark"
  480. placeholder="请输入内容"
  481. ></el-input>
  482. </div>
  483. </el-col>
  484. </el-row>
  485. </div>
  486. <br />
  487. <!-- 按钮 -->
  488. <!-- detailList.examineStatus != 'OK' || detailList.examineStatus != 'FAIL' -->
  489. <div class="btn-group clearfix">
  490. <div class="fl">
  491. <el-button
  492. v-if="detailList.examineStatus == 'WAIT'"
  493. type="primary"
  494. size="small"
  495. @click="adoptFn"
  496. >审批通过</el-button
  497. >
  498. <el-button
  499. v-if="detailList.examineStatus == 'WAIT'"
  500. type="primary"
  501. size="small"
  502. @click="rejectFn"
  503. >审批驳回</el-button
  504. >
  505. <el-button
  506. v-if="detailList.examineStatus == 'OK'"
  507. type="primary"
  508. size="small"
  509. @click="saveFn"
  510. >保存</el-button
  511. >
  512. </div>
  513. </div>
  514. </div>
  515. </template>
  516. <script>
  517. import { downloadFiles } from "@/utils/util";
  518. import IMAGEUPLOAD from "@/components/Common/image-upload.vue";
  519. import { mapGetters } from "vuex";
  520. import {
  521. getDepositManageDetail,
  522. getDepositManageExamine,
  523. getDepositManageDownZip,
  524. getDepositManageEdit,
  525. } from "@/api/engin_deposit/refund_list";
  526. export default {
  527. props: {
  528. detailId: {
  529. type: String,
  530. required: true,
  531. },
  532. },
  533. components: { IMAGEUPLOAD },
  534. computed: {
  535. ...mapGetters(["name"]),
  536. },
  537. data() {
  538. return {
  539. isDis: true,
  540. imageURL: this.$imageUrl,
  541. title: "审批",
  542. imageURL: this.$imageUrl,
  543. listLoading: false, // 列表加载loading
  544. dataList: [], // 列表数据
  545. detailList: {},
  546. checkBy: "",
  547. checkDate: "",
  548. isRefundDeposit: true,
  549. checkNote: "",
  550. };
  551. },
  552. created() {
  553. console.log(this.$imageUrl, 8888);
  554. this.checkBy = this.name;
  555. this.getData({ id: this.detailId });
  556. },
  557. methods: {
  558. //审批通过后可以编辑
  559. async saveFn() {
  560. console.log(this.detailList);
  561. await getDepositManageEdit(this.detailList);
  562. this.$message.success("保存成功");
  563. this.goBack();
  564. this.$emit("updateList");
  565. },
  566. //批量下载
  567. async batchDownloadFn() {
  568. downloadFiles("/deposit-manage/downZip", { parentId: this.detailId });
  569. },
  570. //下载
  571. downLoadFn(v) {
  572. window.open(this.imageURL + v);
  573. },
  574. // 检查文件类型
  575. checkFileType(url) {
  576. if (!url) return "";
  577. const fileSuffix = url.substring(url.lastIndexOf(".") + 1);
  578. if (["jpg", "jpeg", "png"].includes(fileSuffix)) {
  579. return "image";
  580. } else if (["doc", "docx", "dot", "wps", "wpt"].includes(fileSuffix)) {
  581. return "word";
  582. } else if (["xls", "xlsx", "xlt", "et", "ett"].includes(fileSuffix)) {
  583. return "excel";
  584. } else if (
  585. ["ppt", "pptx", "dps", "dpt", "pot", "pps"].includes(fileSuffix)
  586. ) {
  587. return "ppt";
  588. } else if (["pdf"].includes(fileSuffix)) {
  589. return "pdf";
  590. } else if (["zip", "rar", "gz", "apk"].includes(fileSuffix)) {
  591. return "file";
  592. } else {
  593. return "";
  594. }
  595. },
  596. //审批驳回
  597. async rejectFn() {
  598. this.$confirm("此操作将审批订单, 是否继续?", "提示", {
  599. confirmButtonText: "确定",
  600. cancelButtonText: "取消",
  601. type: "warning",
  602. })
  603. .then(() => {
  604. // if (!this.detailList.installDate) {
  605. // this.$message.error("请选择安装时间");
  606. // return;
  607. // }
  608. let data = {
  609. ...this.detailList,
  610. checkBy: this.checkBy,
  611. // checkDate: this.checkDate,
  612. isRefundDeposit: this.isRefundDeposit,
  613. checkNote: this.checkNote,
  614. examineResult: 0,
  615. };
  616. getDepositManageExamine(data)
  617. .then((res) => {
  618. if (!res.data) {
  619. this.goBack();
  620. this.$emit("updateList");
  621. } else {
  622. this.$confirm("审批成功!是否跳转下一张待审批订单?", "提示", {
  623. confirmButtonText: "跳转",
  624. cancelButtonText: "取消",
  625. type: "warning",
  626. })
  627. .then(() => {
  628. this.$successMsg("进入下一张待审批订单");
  629. this.detailList = res.data;
  630. })
  631. .catch(() => {
  632. this.goBack();
  633. this.$emit("updateList");
  634. });
  635. }
  636. })
  637. .finally((res) => {});
  638. })
  639. .catch(() => {});
  640. // if (!this.detailList.installDate) {
  641. // this.$message.error("请选择安装时间");
  642. // return;
  643. // }
  644. // let data = {
  645. // ...this.detailList,
  646. // checkBy: this.checkBy,
  647. // // checkDate: this.checkDate,
  648. // isRefundDeposit: this.isRefundDeposit,
  649. // checkNote: this.checkNote,
  650. // examineResult: 0,
  651. // };
  652. // await getDepositManageExamine(data);
  653. // this.$message.success("审批驳回");
  654. // this.goBack();
  655. // this.$emit("updateList");
  656. },
  657. //审批通过
  658. async adoptFn() {
  659. this.$confirm("此操作将审批订单, 是否继续?", "提示", {
  660. confirmButtonText: "确定",
  661. cancelButtonText: "取消",
  662. type: "warning",
  663. })
  664. .then(() => {
  665. // if (!this.detailList.installDate) {
  666. // this.$message.error("请选择安装时间");
  667. // return;
  668. // }
  669. let data = {
  670. ...this.detailList,
  671. checkBy: this.checkBy,
  672. // checkDate: this.checkDate,
  673. isRefundDeposit: this.isRefundDeposit,
  674. checkNote: this.checkNote,
  675. examineResult: 1,
  676. };
  677. getDepositManageExamine(data)
  678. .then((res) => {
  679. if (!res.data) {
  680. this.goBack();
  681. this.$emit("updateList");
  682. } else {
  683. this.$confirm("审批成功!是否跳转下一张待审批订单?", "提示", {
  684. confirmButtonText: "跳转",
  685. cancelButtonText: "取消",
  686. type: "warning",
  687. })
  688. .then(() => {
  689. this.$successMsg("进入下一张待审批订单");
  690. this.detailList = res.data;
  691. })
  692. .catch(() => {
  693. this.goBack();
  694. this.$emit("updateList");
  695. });
  696. }
  697. })
  698. .finally((res) => {});
  699. })
  700. .catch(() => {});
  701. // if (!this.detailList.installDate) {
  702. // this.$message.error("请选择安装时间");
  703. // return;
  704. // }
  705. // let data = {
  706. // ...this.detailList,
  707. // checkBy: this.checkBy,
  708. // // checkDate: this.checkDate,
  709. // isRefundDeposit: this.isRefundDeposit,
  710. // checkNote: this.checkNote,
  711. // examineResult: 1,
  712. // };
  713. // await getDepositManageExamine(data);
  714. // this.$message.success("审批通过");
  715. // this.goBack();
  716. // this.$emit("updateList");
  717. },
  718. async getData(data) {
  719. const res = await getDepositManageDetail(data);
  720. console.log(res);
  721. if (res.data.dataList.length == 0) {
  722. this.isDis = true;
  723. } else {
  724. this.isDis = false;
  725. }
  726. res.data.items.forEach((item) => {
  727. // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
  728. item.sums1 = ["hasSendQty", "dataQty", "qty"];
  729. item.sums2 = ["totalAmount", "diffAmount", "price"];
  730. });
  731. this.detailList = res.data;
  732. if (
  733. res.data.examineStatus == "SAVE" ||
  734. res.data.examineStatus == "OK" ||
  735. res.data.examineStatus == "FAIL"
  736. ) {
  737. this.title = "详情";
  738. }
  739. },
  740. goBack() {
  741. this.$parent.showSurrender = true;
  742. },
  743. },
  744. };
  745. </script>
  746. <style lang="scss" scoped>
  747. .aaa {
  748. height: 64px;
  749. width: 64px;
  750. }
  751. .dateS {
  752. .value {
  753. padding: 0;
  754. }
  755. }
  756. .batchDownload {
  757. float: right;
  758. margin-top: 9px;
  759. }
  760. .gdzl {
  761. display: inline-block;
  762. }
  763. .dateStyle {
  764. width: 100%;
  765. }
  766. .label {
  767. width: 150px !important;
  768. }
  769. .selectStyle {
  770. width: 100%;
  771. }
  772. </style>