check.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  1. <template>
  2. <div class="app-container">
  3. <div v-show="!isShowPrint">
  4. <div class="main-title" style="margin-top: 0">
  5. <div class="title">仓库提货确认</div>
  6. </div>
  7. <div>
  8. <el-form
  9. ref="screenForm"
  10. :model="screenForm"
  11. label-width="96px"
  12. size="mini"
  13. label-position="right"
  14. >
  15. <el-row :gutter="20">
  16. <el-col :xs="24" :sm="8" :lg="6">
  17. <el-form-item label="提货人手机号" prop="phone">
  18. <el-input
  19. v-model="screenForm.phone"
  20. placeholder="请输入提货人手机号"
  21. ></el-input>
  22. </el-form-item>
  23. </el-col>
  24. <el-col :xs="24" :sm="3" :lg="3">
  25. <el-button
  26. size="mini"
  27. type="primary"
  28. @click="getCode"
  29. :disabled="!screenForm.phone || countDown != 60"
  30. >{{
  31. countDown == 60 ? getCodeText : "重新获取(" + countDown + "s)"
  32. }}</el-button
  33. >
  34. </el-col>
  35. <el-col :xs="24" :sm="8" :lg="8">
  36. <el-form-item label="验证码" prop="code">
  37. <el-input
  38. v-model="screenForm.code"
  39. placeholder="请输入验证码"
  40. ></el-input>
  41. </el-form-item>
  42. </el-col>
  43. <el-col :xs="24" :sm="3" :lg="3">
  44. <el-button
  45. size="mini"
  46. type="primary"
  47. :disabled="!screenForm.phone || !screenForm.code"
  48. @click="getPickupManInfo"
  49. >确 认</el-button
  50. >
  51. </el-col>
  52. </el-row>
  53. <el-row :gutter="20">
  54. <el-col :xs="24" :sm="8" :lg="8">
  55. <el-form-item label="提货人姓名" prop="name">
  56. <!-- <el-input v-model="screenForm.name" placeholder="请通过手机验证获取" ></el-input> -->
  57. <el-select
  58. style="width: 100%"
  59. v-model="screenForm.name"
  60. placeholder="请选提货人姓名"
  61. clearable
  62. filterable
  63. @change="onChage"
  64. >
  65. <el-option
  66. v-for="item in userList"
  67. :key="item.id"
  68. :label="`${item.takerName} - ${item.customerName}`"
  69. :value="item.id"
  70. >
  71. </el-option>
  72. </el-select>
  73. </el-form-item>
  74. </el-col>
  75. <el-col :xs="24" :sm="8" :lg="8">
  76. <el-form-item label="提货人身份证" prop="idCard">
  77. <el-input
  78. v-model="screenForm.idCard"
  79. placeholder="请通过手机验证获取"
  80. readonly
  81. ></el-input>
  82. </el-form-item>
  83. </el-col>
  84. </el-row>
  85. <el-row :gutter="20">
  86. <el-col :xs="24" :sm="8" :lg="8">
  87. <el-form-item label="经销商" prop="customerName">
  88. <el-input
  89. v-model="screenForm.customerName"
  90. placeholder="经销商"
  91. readonly
  92. ></el-input>
  93. </el-form-item>
  94. </el-col>
  95. <el-col :xs="24" :sm="8" :lg="8">
  96. <el-form-item label="仓库" prop="warehouse">
  97. <el-select
  98. v-model="screenForm.warehouse"
  99. placeholder="请选择仓库"
  100. filterable
  101. clearable
  102. style="width: 100%"
  103. >
  104. <el-option
  105. :label="item.name"
  106. :value="item.id"
  107. v-for="(item, index) in warehouseList"
  108. :key="index"
  109. ></el-option>
  110. </el-select>
  111. </el-form-item>
  112. </el-col>
  113. <el-col :xs="24" :sm="5" :lg="5">
  114. <el-button size="mini" type="primary" @click="getList"
  115. >查 询</el-button
  116. >
  117. </el-col>
  118. </el-row>
  119. <el-row :gutter="20">
  120. <el-col :xs="24" :sm="24" :lg="24">
  121. <el-form-item prop="status" label-width="0">
  122. <el-radio-group
  123. v-model="screenForm.status"
  124. size="mini"
  125. @change="getList()"
  126. >
  127. <el-radio-button
  128. v-for="(item, index) in statusList"
  129. :key="index"
  130. :label="item.value"
  131. >{{ item.label }}</el-radio-button
  132. >
  133. </el-radio-group>
  134. </el-form-item>
  135. </el-col>
  136. </el-row>
  137. </el-form>
  138. </div>
  139. <div class="main-title">
  140. <div class="title">提货单</div>
  141. <div class="fr">
  142. <ExportButton :exUrl="'pick/storeExport'" :exParams="exParams" />
  143. </div>
  144. </div>
  145. <div class="mymain-container">
  146. <div class="table">
  147. <el-table
  148. ref="table"
  149. v-loading="listLoading"
  150. :data="dataList"
  151. element-loading-text="Loading"
  152. border
  153. fit
  154. highlight-current-row
  155. stripe
  156. @select="handleSelect"
  157. @select-all="handleSelectAll"
  158. >
  159. <el-table-column
  160. align="left"
  161. type="selection"
  162. width="55"
  163. ></el-table-column>
  164. <!-- <el-table-column align="left" label="操作" width="100" fixed="left">
  165. <template slot-scope="scope">
  166. <el-button type="text" @click="toPrint(scope.row)">打印</el-button>
  167. </template>
  168. </el-table-column> -->
  169. <el-table-column
  170. align="left"
  171. label="状态"
  172. min-width="100"
  173. show-overflow-tooltip
  174. >
  175. <template slot-scope="scope">
  176. {{
  177. scope.row.printNum
  178. ? "已打单(" + scope.row.printNum + ")"
  179. : "未打单"
  180. }}
  181. </template>
  182. </el-table-column>
  183. <el-table-column
  184. align="left"
  185. label="信息密钥"
  186. prop="informationKey"
  187. min-width="120"
  188. show-overflow-tooltip
  189. >
  190. <template slot-scope="scope">
  191. <CopyButton :copyText="scope.row.informationKey" />
  192. <span>{{ scope.row.informationKey }}</span>
  193. </template>
  194. </el-table-column>
  195. <el-table-column
  196. align="left"
  197. label="经销商编码"
  198. prop="customerNumber"
  199. min-width="100"
  200. show-overflow-tooltip
  201. >
  202. <template slot-scope="scope">
  203. <CopyButton :copyText="scope.row.customerNumber" />
  204. <span>{{ scope.row.customerNumber }}</span>
  205. </template>
  206. </el-table-column>
  207. <el-table-column
  208. align="left"
  209. label="经销商名称"
  210. prop="customerName"
  211. min-width="250"
  212. show-overflow-tooltip
  213. >
  214. <template slot-scope="scope">
  215. <CopyButton :copyText="scope.row.customerName" />
  216. <span>{{ scope.row.customerName }}</span>
  217. </template>
  218. </el-table-column>
  219. <el-table-column
  220. align="left"
  221. label="预约日期"
  222. prop="pickTime"
  223. min-width="120"
  224. show-overflow-tooltip
  225. >
  226. <template slot-scope="scope">
  227. {{ scope.row.pickTime | dateToDayFilter }}
  228. </template>
  229. </el-table-column>
  230. <el-table-column
  231. align="left"
  232. label="提货时段"
  233. min-width="100"
  234. show-overflow-tooltip
  235. >
  236. <template slot-scope="scope">
  237. {{ scope.row.pickStatus == "1" ? "上午" : "下午" }}
  238. </template>
  239. </el-table-column>
  240. <el-table-column
  241. align="left"
  242. label="销售订单号"
  243. prop="mainOrderId"
  244. min-width="160"
  245. show-overflow-tooltip
  246. >
  247. <template slot-scope="scope">
  248. <CopyButton
  249. :copyText="
  250. scope.row.orderType == 'HOME' ||
  251. scope.row.orderType == 'TRADE'
  252. ? scope.row.enginOrderNo
  253. : scope.row.mainOrderId
  254. "
  255. />
  256. <span>{{
  257. scope.row.orderType == "HOME" ||
  258. scope.row.orderType == "TRADE"
  259. ? scope.row.enginOrderNo
  260. : scope.row.mainOrderId
  261. }}</span>
  262. </template>
  263. </el-table-column>
  264. <el-table-column
  265. align="left"
  266. label="发货申请单号"
  267. prop="invoiceId"
  268. min-width="130"
  269. show-overflow-tooltip
  270. >
  271. <template slot-scope="scope">
  272. <CopyButton :copyText="scope.row.invoiceId" />
  273. <span>{{ scope.row.invoiceId }}</span>
  274. </template>
  275. </el-table-column>
  276. <el-table-column
  277. align="left"
  278. label="销售类型"
  279. prop="saleTypeName"
  280. min-width="100"
  281. show-overflow-tooltip
  282. ></el-table-column>
  283. <el-table-column
  284. align="left"
  285. label="物料编码"
  286. prop="materialCode"
  287. min-width="120"
  288. show-overflow-tooltip
  289. >
  290. <template slot-scope="scope">
  291. <CopyButton :copyText="scope.row.materialCode" />
  292. <span>{{ scope.row.materialCode }}</span>
  293. </template>
  294. </el-table-column>
  295. <el-table-column
  296. align="left"
  297. label="产品编码"
  298. prop="materialOldNumber"
  299. min-width="140"
  300. show-overflow-tooltip
  301. >
  302. <template slot-scope="scope">
  303. <CopyButton :copyText="scope.row.materialOldNumber" />
  304. <span>{{ scope.row.materialOldNumber }}</span>
  305. </template>
  306. </el-table-column>
  307. <el-table-column
  308. align="left"
  309. label="产品名称"
  310. prop="materialName"
  311. min-width="160"
  312. show-overflow-tooltip
  313. >
  314. <template slot-scope="scope">
  315. <CopyButton :copyText="scope.row.materialName" />
  316. <span>{{ scope.row.materialName }}</span>
  317. </template>
  318. </el-table-column>
  319. <el-table-column
  320. align="left"
  321. label="规格型号"
  322. prop="specification"
  323. min-width="350"
  324. show-overflow-tooltip
  325. >
  326. <template slot-scope="scope">
  327. <CopyButton :copyText="scope.row.specification" />
  328. <span>{{ scope.row.specification }}</span>
  329. </template>
  330. </el-table-column>
  331. <el-table-column
  332. align="left"
  333. label="单位"
  334. prop="unit"
  335. min-width="100"
  336. show-overflow-tooltip
  337. ></el-table-column>
  338. <el-table-column
  339. align="left"
  340. label="数量"
  341. prop="refundableQty"
  342. min-width="100"
  343. show-overflow-tooltip
  344. ></el-table-column>
  345. <!-- <el-table-column align="left" label="单价" prop="price" min-width="100" show-overflow-tooltip></el-table-column>
  346. <el-table-column align="left" label="金额" prop="payAmount" min-width="100" show-overflow-tooltip></el-table-column>
  347. <el-table-column align="left" label="使用返利金额" prop="payRebateAmount" min-width="120" show-overflow-tooltip></el-table-column>
  348. <el-table-column align="left" label="格力折扣" prop="totalDiscAmount" min-width="100" show-overflow-tooltip></el-table-column> -->
  349. <el-table-column
  350. align="left"
  351. label="仓库"
  352. prop="correspondName"
  353. min-width="160"
  354. show-overflow-tooltip
  355. ></el-table-column>
  356. <el-table-column
  357. align="left"
  358. label="提货方式"
  359. prop="pickType"
  360. min-width="100"
  361. show-overflow-tooltip
  362. >
  363. <template slot-scope="scope">
  364. {{ scope.row.pickType == "1" ? "自提" : "物流快递" }}
  365. </template>
  366. </el-table-column>
  367. <el-table-column
  368. align="left"
  369. label="提货人/物流公司"
  370. prop="takerName"
  371. min-width="160"
  372. show-overflow-tooltip
  373. >
  374. <template slot-scope="scope">
  375. {{
  376. scope.row.pickType == "1"
  377. ? scope.row.takerName
  378. : scope.row.pickLogistics
  379. }}
  380. </template>
  381. </el-table-column>
  382. </el-table>
  383. </div>
  384. </div>
  385. <!-- <div class="pagination clearfix">
  386. <div class="fr">
  387. <el-pagination
  388. @size-change="handleSizeChange"
  389. @current-change="handleCurrentChange"
  390. :current-page="currentPage"
  391. :page-sizes="[10, 20, 30, 50]"
  392. :page-size="10"
  393. layout="total, sizes, prev, pager, next, jumper"
  394. :total="listTotal">
  395. </el-pagination>
  396. </div>
  397. </div> -->
  398. <div class="page-footer">
  399. <div class="footer">
  400. <el-button
  401. type="primary"
  402. @click="toPrint"
  403. :disabled="tableSelection.length < 1"
  404. v-if="$checkBtnRole('print', $route.meta.roles)"
  405. >打印发货单</el-button
  406. >
  407. </div>
  408. </div>
  409. </div>
  410. <el-dialog
  411. title="密码确认"
  412. :visible.sync="isShowDialog"
  413. :show-close="false"
  414. width="40%"
  415. :close-on-click-modal="false"
  416. >
  417. <el-form
  418. ref="dialogForm"
  419. :model="dialogForm"
  420. :rules="dialogFormRules"
  421. label-position="right"
  422. label-width="70px"
  423. >
  424. <el-row :gutter="20">
  425. <el-col :xs="24" :sm="24" :lg="24">
  426. <el-form-item label="密码" prop="password">
  427. <el-input
  428. v-model="dialogForm.password"
  429. autocomplete="off"
  430. placeholder="请输入密码"
  431. ></el-input>
  432. </el-form-item>
  433. </el-col>
  434. <el-col :xs="24" :sm="12" :lg="12">
  435. <el-form-item label="操作人" prop="createMan">
  436. <el-input v-model="dialogForm.createMan" readonly></el-input>
  437. </el-form-item>
  438. </el-col>
  439. <el-col :xs="24" :sm="12" :lg="12" style="height: 51px">
  440. <el-form-item label="操作日期" prop="createDate">
  441. <el-date-picker
  442. v-model="dialogForm.createDate"
  443. readonly
  444. type="date"
  445. value-format="yyyy-MM-dd"
  446. style="width: 100%"
  447. placeholder="选择日期"
  448. >
  449. </el-date-picker>
  450. </el-form-item>
  451. </el-col>
  452. </el-row>
  453. </el-form>
  454. <div slot="footer" class="dialog-footer">
  455. <el-button @click="cancelDialogForm">取 消</el-button>
  456. <el-button type="primary" @click="submitDialogForm">确 定</el-button>
  457. </div>
  458. </el-dialog>
  459. <print-preview ref="preView" />
  460. <!-- <PickupPrint :listItem="queryItem" v-if="isShowPrint" @backListFormDetail="backList" /> -->
  461. </div>
  462. </template>
  463. <script>
  464. import {
  465. getPickupList,
  466. getCode,
  467. getPickupManInfo,
  468. checkPassword,
  469. getWarehouseList,
  470. getDetailPrintDisString,
  471. } from "@/api/supply/pickup";
  472. import print from "@/mixin/print";
  473. import { getDealerList, getListCustomer } from "@/api/basic_data/dealer";
  474. import PickupPrint from "@/views/supply/pickup/components/pickup_print";
  475. import printPreview from "./components/design/preview.vue";
  476. export default {
  477. components: {
  478. PickupPrint,
  479. printPreview,
  480. },
  481. mixins: [print],
  482. data() {
  483. return {
  484. currentPage: 1, // 当前页码
  485. pageSize: 10, // 每页数量
  486. listTotal: 0, // 列表总数
  487. dataList: null, // 列表数据
  488. listLoading: false, // 列表加载loading
  489. screenForm: {
  490. // 筛选表单数据
  491. phone: "",
  492. code: "",
  493. name: "",
  494. idCard: "",
  495. manId: "",
  496. status: 0,
  497. customerName: "",
  498. warehouse: "",
  499. customerId: "",
  500. },
  501. statusList: [
  502. { label: "未打单", value: 0 },
  503. { label: "已打单", value: 1 },
  504. ],
  505. warehouseList: [],
  506. getCodeText: "获取验证码",
  507. countDown: 60,
  508. timer: null,
  509. tableSelection: [],
  510. queryItem: {},
  511. isShowPrint: false,
  512. dealerList: [],
  513. isShowDialog: false,
  514. dialogForm: {
  515. password: "",
  516. createMan: "",
  517. createDate: "",
  518. },
  519. dialogFormRules: {
  520. password: [{ required: true, message: "请输入密码", trigger: "blur" }],
  521. },
  522. userList: [],
  523. isShowDialog: false,
  524. };
  525. },
  526. computed: {
  527. exParams() {
  528. return {
  529. takerId: this.screenForm.manId,
  530. status: this.screenForm.status,
  531. };
  532. },
  533. },
  534. created() {
  535. // this.getDealerList()
  536. this.getWarehouseList();
  537. },
  538. // activated(){
  539. // this.initPrint()
  540. // },
  541. mounted() {
  542. this.initPrint();
  543. },
  544. methods: {
  545. getDate() {
  546. var date = new Date();
  547. var seperator1 = "-";
  548. var year = date.getFullYear();
  549. var month = date.getMonth() + 1;
  550. var strDate = date.getDate();
  551. if (month >= 1 && month <= 9) {
  552. month = "0" + month;
  553. }
  554. if (strDate >= 0 && strDate <= 9) {
  555. strDate = "0" + strDate;
  556. }
  557. var currentdate = year + seperator1 + month + seperator1 + strDate;
  558. return currentdate;
  559. },
  560. async getDealerList() {
  561. const res = await getDealerList({ pageNum: 1, pageSize: -1 });
  562. this.dealerList = res.data.records;
  563. },
  564. // 获取仓库列表
  565. getWarehouseList() {
  566. getWarehouseList({
  567. pageNum: 1,
  568. pageSize: -1,
  569. }).then((res) => {
  570. this.warehouseList = res.data.records;
  571. });
  572. },
  573. // 获取短信验证码
  574. getCode() {
  575. getCode({ mobile: this.screenForm.phone }).then((res) => {
  576. this.$successMsg("短信已发送");
  577. this.countDown--;
  578. this.timer = setInterval(() => {
  579. this.countDown--;
  580. if (this.countDown == 0) {
  581. this.countDown = 60;
  582. this.getCodeText = "重新获取";
  583. clearInterval(this.timer);
  584. }
  585. }, 1000);
  586. });
  587. },
  588. // 获取提货人信息
  589. getPickupManInfo() {
  590. getPickupManInfo({
  591. mobile: this.screenForm.phone,
  592. code: this.screenForm.code,
  593. }).then((res) => {
  594. this.$successMsg("验证成功");
  595. this.screenForm.name = `${res.data[0].takerName} - ${res.data[0].customerName}`;
  596. this.screenForm.idCard = res.data[0].identity;
  597. this.screenForm.manId = res.data[0].id;
  598. this.screenForm.customerName = res.data[0].customerName;
  599. this.screenForm.customerId = res.data[0].customerId;
  600. this.userList = res.data;
  601. this.getListCustomer();
  602. });
  603. },
  604. onChage(e) {
  605. const userInfo = this.userList.filter((k) => {
  606. return e === k.id;
  607. });
  608. this.screenForm.name = `${userInfo[0].takerName} - ${userInfo[0].customerName}`;
  609. this.screenForm.idCard = userInfo[0].identity;
  610. this.screenForm.manId = userInfo[0].id;
  611. this.screenForm.customerName = userInfo[0].customerName;
  612. this.screenForm.customerId = userInfo[0].customerId;
  613. },
  614. getListCustomer() {
  615. getListCustomer({
  616. keyword: "",
  617. phone: this.screenForm.phone,
  618. pageNum: 1,
  619. pageSize: -1,
  620. }).then((res) => {
  621. this.dealerList = res.data.records;
  622. // this.screenForm.customerNumber = this.dataList[0].number
  623. });
  624. },
  625. // 查询列表
  626. getList() {
  627. console.log(this.screenForm.customerId);
  628. if (!this.screenForm.manId) {
  629. return this.$errorMsg("请先查询提货人信息");
  630. }
  631. if (!this.screenForm.warehouse) {
  632. return this.$errorMsg("请选择仓库");
  633. }
  634. this.listLoading = true;
  635. let params = {
  636. pageNum: 1,
  637. pageSize: -1,
  638. // takerId: this.screenForm.manId,
  639. status: this.screenForm.status,
  640. takerPhone: this.screenForm.phone,
  641. // customerName:this.screenForm.customerName,
  642. correspondId: this.screenForm.warehouse,
  643. customerId: this.screenForm.customerId,
  644. };
  645. getPickupList(params).then((res) => {
  646. this.dataList = res.data.records;
  647. this.listTotal = res.data.total;
  648. this.listLoading = false;
  649. });
  650. },
  651. // 更改每页数量
  652. handleSizeChange(val) {
  653. this.pageSize = val;
  654. this.currentPage = 1;
  655. this.getList();
  656. },
  657. // 更改当前页
  658. handleCurrentChange(val) {
  659. this.currentPage = val;
  660. this.getList();
  661. },
  662. backList() {
  663. this.queryItem = {};
  664. this.isShowPrint = false;
  665. },
  666. handleSelect(selection, row) {
  667. this.$refs.table.toggleRowSelection(row);
  668. this.dataList.forEach((item) => {
  669. if (item.informationKey === row.informationKey) {
  670. this.$refs.table.toggleRowSelection(item);
  671. }
  672. });
  673. this.tableSelection = this.$refs.table.selection;
  674. },
  675. handleSelectAll(selection) {
  676. this.tableSelection = this.$refs.table.selection;
  677. },
  678. // 检查是否一致
  679. isAllEqual(array) {
  680. if (array.length > 0) {
  681. return !array.some(function (item, index) {
  682. return item.informationKey !== array[0].informationKey;
  683. });
  684. } else {
  685. return true;
  686. }
  687. },
  688. // 点击打印
  689. async toPrint() {
  690. const params = [];
  691. const len = this.tableSelection.length;
  692. this.queryItem = this.tableSelection;
  693. for (let i = len; i > 0; i--) {
  694. params.push({
  695. id: this.tableSelection[i - 1].id,
  696. invoiceId: this.tableSelection[i - 1].invoiceId,
  697. });
  698. }
  699. const { data } = await getDetailPrintDisString(params);
  700. console.log(data);
  701. if (data) {
  702. this.$confirm(<p class="text">{data}</p>, "提示", {
  703. confirmButtonText: "确定",
  704. cancelButtonText: "取消",
  705. customClass: "text",
  706. })
  707. .then(() => {
  708. if (this.tableSelection[0].printNum) {
  709. this.dialogForm.createMan = JSON.parse(
  710. localStorage.getItem("supply_user")
  711. ).nickName;
  712. this.dialogForm.createDate = this.getDate();
  713. this.isShowDialog = true;
  714. }
  715. })
  716. } else {
  717. this.getDateil(this.tableSelection, "getDtailPrintDis");
  718. this.$refs.preView.show(this.hiprintTemplate, this.outputData);
  719. }
  720. },
  721. // 关闭弹窗
  722. cancelDialogForm() {
  723. this.isShowDialog = false;
  724. this.$refs.dialogForm.resetFields();
  725. },
  726. // 提交 弹窗
  727. submitDialogForm() {
  728. this.$refs.dialogForm.validate((valid) => {
  729. if (valid) {
  730. let params = {
  731. shipId: this.queryItem[0].invoiceId,
  732. password: this.dialogForm.password,
  733. };
  734. checkPassword(params).then((res) => {
  735. this.cancelDialogForm();
  736. this.getDateil(this.tableSelection, "getDtailPrintDis");
  737. this.$refs.preView.show(this.hiprintTemplate, this.outputData);
  738. });
  739. }
  740. });
  741. },
  742. },
  743. };
  744. </script>
  745. <style lang="scss" scoped>
  746. .main-title {
  747. display: flex;
  748. justify-content: space-between;
  749. align-items: center;
  750. height: 60px;
  751. border-bottom: 1px solid #dcdfe6;
  752. margin-bottom: 20px;
  753. .title {
  754. font-size: 16px;
  755. font-weight: 600;
  756. padding-left: 10px;
  757. }
  758. }
  759. .text {
  760. word-break: break-all !important;
  761. }
  762. </style>