alreadyDetail.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. <template>
  2. <!-- 已出库 -->
  3. <div>
  4. <!-- <div class="common-card">
  5. <h3>订单状态</h3>
  6. <yl-step></yl-step>
  7. </div> -->
  8. <div class="common-card">
  9. <h3>基本信息</h3>
  10. <el-form :model="listForm" ref="listform" label-width="200px" class="grid-form-class">
  11. <div class="form-body">
  12. <div class="flex-css">
  13. <el-form-item label="出库单号" prop="delvOrdId">
  14. <div class="content">
  15. {{ listForm.delvOrdId }}
  16. </div>
  17. </el-form-item>
  18. <el-form-item label="订单号" prop="purcOrdId">
  19. <div class="content">
  20. {{ listForm.purcOrdId }}
  21. </div>
  22. </el-form-item>
  23. <el-form-item label="采购品种数" prop="detlCnt">
  24. <div class="content">
  25. {{ listForm.detlCnt }}
  26. </div>
  27. </el-form-item>
  28. </div>
  29. <div class="flex-css">
  30. <el-form-item label="采购总数量" prop="qtySum">
  31. <div class="content">
  32. {{ listForm.qtySum }}
  33. </div>
  34. </el-form-item>
  35. <el-form-item label="采购总金额" prop="purcAmt">
  36. <div class="content">
  37. {{ listForm.purcAmt }}
  38. </div>
  39. </el-form-item>
  40. <el-form-item label="来源部门" prop="deptName">
  41. <div class="content">
  42. {{ listForm.deptName }}
  43. </div>
  44. </el-form-item>
  45. </div>
  46. <div class="flex-css">
  47. <el-form-item label="客户名称" prop="branchName">
  48. <div class="content">
  49. {{ listForm.branchName }}
  50. </div>
  51. </el-form-item>
  52. <el-form-item label="出库人" prop="docmker">
  53. <div class="content">
  54. {{ listForm.docmker }}
  55. </div>
  56. </el-form-item>
  57. <el-form-item label="当前状态" prop="delvOrdStas">
  58. <div class="content" v-if="listForm.delvOrdStas ==='C'">
  59. 已出库
  60. </div>
  61. <div class="content" v-if="listForm.delvOrdStas ==='R'">
  62. 被驳回
  63. </div>
  64. <div class="content" v-if="listForm.delvOrdStas ==='D'">
  65. 部分出库
  66. </div>
  67. <div class="content" v-if="listForm.delvOrdStas ==='Y'">
  68. 已入库
  69. </div>
  70. <div class="content" v-if="listForm.delvOrdStas ==='P'">
  71. 部分入库
  72. </div>
  73. </el-form-item>
  74. </div>
  75. <div class="flex-css">
  76. <el-form-item label="出库时间" prop="docmkDate">
  77. <div class="content">
  78. {{ listForm.docmkDate }}
  79. </div>
  80. </el-form-item>
  81. </div>
  82. </div>
  83. </el-form>
  84. </div>
  85. <div class="common-card">
  86. <h3>商品明细</h3>
  87. <el-form :model="listQuery" ref="listQuery" :inline="true" label-width="90px">
  88. <el-form-item size="mini" label="生产企业" prop="prodEntp" class="long">
  89. <el-input v-model="listQuery.prodEntp" placeholder="请输入生产企业"></el-input>
  90. </el-form-item>
  91. <el-form-item size="mini" label="是否集采" prop="isFas" class="long">
  92. <el-select v-model="listQuery.isFas" placeholder="请选择是否集采" clearable>
  93. <el-option
  94. v-for="item in isFasData"
  95. :key="item.value"
  96. :label="item.name"
  97. :value="item.value"
  98. ></el-option>
  99. </el-select>
  100. </el-form-item>
  101. <el-form-item size="mini" label="注册证号" prop="regcertno" class="long">
  102. <el-input v-model="listQuery.regcertno" placeholder="请输入注册证号"></el-input>
  103. </el-form-item>
  104. <el-form-item>
  105. <el-button type="primary" @click="getData()">查询</el-button>
  106. <el-button @click="reset">重置</el-button>
  107. </el-form-item>
  108. </el-form>
  109. <el-table
  110. :data="tableData"
  111. v-loading="loding"
  112. element-loading-text="加载中..."
  113. border
  114. :span-method="handleSpan"
  115. >
  116. <template slot="empty">
  117. <img src="@/assets/nopage.png" alt />
  118. <p>暂无数据</p>
  119. </template>
  120. <el-table-column fixed type="index" label="序号" width="60"/>
  121. <el-table-column label="耗材编码" prop="prodCode" />
  122. <el-table-column label="医保编码" prop="hiCode" />
  123. <el-table-column label="耗材信息" width="300">
  124. <template slot-scope="scope">
  125. <mcs-info :info="scope.row"></mcs-info>
  126. </template>
  127. </el-table-column>
  128. <el-table-column label="规格" prop="spec" />
  129. <el-table-column label="型号" prop="mol" />
  130. <el-table-column label="材质" prop="matl" />
  131. <el-table-column label="是否集采" prop="isFas" >
  132. <template #default="{ row }">
  133. <span v-if="row.isFas == '0'">否</span>
  134. <span v-if="row.isFas == '1'">是</span>
  135. </template>
  136. </el-table-column>
  137. <el-table-column label="包装" prop="convrat" width="120px">
  138. <template #default="{ row }">
  139. <span>{{row.purcUnt}} ({{row.convrat}}{{row.prcUnt}}/{{row.purcUnt}})</span>
  140. </template>
  141. </el-table-column>
  142. <el-table-column label="批次号" prop="lotNum" />
  143. <el-table-column label="生产日期" prop="manuDate" width="100px"/>
  144. <el-table-column label="有效期至" prop="prodExpy" width="100px"/>
  145. <el-table-column label="需求数量" prop="purcCnt" />
  146. <el-table-column label="UDI码" prop="purcCnt" >
  147. </el-table-column>
  148. <el-table-column label="剩余出库量" prop="toDelvCnt" width="90px"/>
  149. <el-table-column label="本次出库量" prop="delvCnt" width="90px"/>
  150. <el-table-column label="客户验收数量" prop="shppCnt" width="100px"/>
  151. <el-table-column label="客户拒收数量" prop="returnCnt" width="100px"/>
  152. <el-table-column label="报关单" prop="invoFileId" >
  153. <template slot-scope="scope">
  154. <yl-upload
  155. :fileId="scope.row.invoFileId"
  156. readonly
  157. v-if="scope.row.invoFileId"
  158. >
  159. </yl-upload>
  160. </template>
  161. </el-table-column>
  162. <!-- <el-table-column label="随货单" prop="dyntFileId" /> -->
  163. <el-table-column label="备注" prop="memo" />
  164. <!-- <el-table-column label="同行单" prop="dyntFileId" width="100">
  165. <template slot-scope="scope">
  166. <yl-upload
  167. :fileId="scope.row.dyntFileId"
  168. readonly
  169. v-if="scope.row.dyntFileId"
  170. >
  171. </yl-upload> -->
  172. <!-- <div style="display:flex;justify-content: space-between;align-items: center;" v-if="scope.row.dyntFileId"> -->
  173. <!-- <el-button type="text" @click="openPdf(scope.row)">
  174. {{ scope.row.dyntFileId }}
  175. </el-button> -->
  176. <!-- <el-button
  177. type="text"
  178. @click="handleTong(scope.$index,scope.row)"
  179. >选择同行单</el-button
  180. > -->
  181. <!-- </div>
  182. <div v-else>
  183. <el-button
  184. type="text"
  185. @click="handleTong(scope.$index,scope.row)"
  186. >选择同行单</el-button
  187. >
  188. </div> -->
  189. <!-- </template>
  190. </el-table-column> -->
  191. </el-table>
  192. <div class="foot-button" style="margin-top:30px;">
  193. <!-- <el-button type="danger" @click="handleOrderEnd" :loading="endLoad">结束订单</el-button> -->
  194. <el-button type="primary" @click="handleBack" :loading="endLoad">返 回</el-button>
  195. </div>
  196. </div>
  197. <!-- 选择发票 -->
  198. <el-dialog
  199. title="选择发票"
  200. :visible.sync="dialogFa"
  201. width="55%">
  202. <el-form :model="faForm" ref="faform" :inline="true">
  203. <el-form-item label="发票信息" prop="aa">
  204. <el-input v-model="faForm.aa" placeholder="请输入发票名称"></el-input>
  205. </el-form-item>
  206. <el-form-item>
  207. <el-button type="primary" @click="getFaData('search')">查询</el-button>
  208. <el-button @click="faReset">重置</el-button>
  209. </el-form-item>
  210. </el-form>
  211. <el-table
  212. v-loading="faLoading"
  213. element-loading-text="加载中"
  214. :data="faData"
  215. fit
  216. stripe
  217. border
  218. >
  219. <template slot="empty">
  220. <img src="@/assets/nopage.png" alt />
  221. <p>暂无数据</p>
  222. </template>
  223. <el-table-column type="index" label="序号" width="60"/>
  224. <el-table-column label="发票名称" prop="aa" />
  225. <el-table-column label="开票金额" prop="" />
  226. <el-table-column label="发票号码" prop="" />
  227. <el-table-column label="开票时间" prop="" />
  228. <el-table-column label="上传时间" prop="" />
  229. <el-table-column fixed="right" label="操作" width="100">
  230. <template slot-scope="scope">
  231. <el-button type="primary" plain @click="handleRow(scope.row)"
  232. >选择</el-button
  233. >
  234. </template>
  235. </el-table-column>
  236. </el-table>
  237. <!--分页-->
  238. <yl-pagination
  239. v-show="faTotal > 0"
  240. :total="faTotal"
  241. :page.sync="faForm.current"
  242. :limit.sync="faForm.size"
  243. @pagination="getFaData"
  244. />
  245. </el-dialog>
  246. <!-- 选择同行单 -->
  247. <el-dialog
  248. title="选择同行单"
  249. :visible.sync="dialogTong"
  250. width="55%">
  251. <el-form :model="tongForm" ref="tongform" :inline="true">
  252. <el-form-item label="发票信息" prop="aa">
  253. <el-input v-model="tongForm.aa" placeholder="请输入同行单名称"></el-input>
  254. </el-form-item>
  255. <el-form-item>
  256. <el-button type="primary" @click="getTongData('search')">查询</el-button>
  257. <el-button @click="TongReset">重置</el-button>
  258. </el-form-item>
  259. </el-form>
  260. <el-table
  261. v-loading="tongLoading"
  262. element-loading-text="加载中"
  263. :data="tongData"
  264. fit
  265. stripe
  266. border
  267. >
  268. <template slot="empty">
  269. <img src="@/assets/nopage.png" alt />
  270. <p>暂无数据</p>
  271. </template>
  272. <el-table-column type="index" label="序号" width="60"/>
  273. <el-table-column label="票据名称" prop="aa" />
  274. <el-table-column label="票据金额" prop="" />
  275. <el-table-column label="票据单号" prop="" />
  276. <el-table-column label="开票时间" prop="" />
  277. <el-table-column label="上传时间" prop="" />
  278. <el-table-column fixed="right" label="操作" width="100">
  279. <template slot-scope="scope">
  280. <el-button type="primary" plain @click="handleRowTong(scope.row)"
  281. >选择</el-button
  282. >
  283. </template>
  284. </el-table-column>
  285. </el-table>
  286. <!--分页-->
  287. <yl-pagination
  288. v-show="tongTotal > 0"
  289. :total="tongTotal"
  290. :page.sync="tongForm.current"
  291. :limit.sync="tongForm.size"
  292. @pagination="getTongData"
  293. />
  294. </el-dialog>
  295. <!-- PDF预览 -->
  296. <el-dialog
  297. title="PDF预览"
  298. class="dd"
  299. :visible.sync="dialogVisible"
  300. width="70%"
  301. center
  302. >
  303. <iframe :src="pdfSrc" frameborder="0" style="width: 100%; height: 100%"></iframe>
  304. </el-dialog>
  305. <!-- UDI码 -->
  306. <el-dialog
  307. title="UDI码填写"
  308. :visible.sync="udidialog"
  309. width="70%"
  310. >
  311. <el-form :model="udiData" ref="udiData">
  312. <el-table
  313. element-loading-text="加载中"
  314. :data="udiData"
  315. fit
  316. stripe
  317. border
  318. >
  319. <template slot="empty">
  320. <img src="@/assets/nopage.png" alt />
  321. <p>暂无数据</p>
  322. </template>
  323. <el-table-column type="index" label="序号" width="60" />
  324. <el-table-column label="耗材信息" width="230">
  325. <template slot-scope="scope">
  326. <mcs-info :info="scope.row"></mcs-info>
  327. </template>
  328. </el-table-column>
  329. <el-table-column label="规格" prop="spec" />
  330. <el-table-column label="型号" prop="mol" />
  331. <el-table-column label="材质" prop="matl" />
  332. <el-table-column label="是否集采" prop="isFas" >
  333. <template #default="{ row }">
  334. <span v-if="row.isFas == '0'">否</span>
  335. <span v-if="row.isFas == '1'">是</span>
  336. </template>
  337. </el-table-column>
  338. <el-table-column label="批号" prop="lotNum">
  339. </el-table-column>
  340. <el-table-column label="生产日期" prop="manuDate">
  341. </el-table-column>
  342. <el-table-column label="有效期至" prop="prodExpy">
  343. </el-table-column>
  344. <el-table-column label="包装" prop="convrat" width="120px">
  345. <template #default="{ row }">
  346. <span>{{row.purcUnt}} ({{row.convrat}}{{row.prcUnt}}/{{row.purcUnt}})</span>
  347. </template>
  348. </el-table-column>
  349. <el-table-column label="UDI码" prop="udid" width="120"></el-table-column>
  350. </el-table>
  351. </el-form>
  352. </el-dialog>
  353. </div>
  354. </template>
  355. <script>
  356. import ylStep from "@/components/yl-step";
  357. import ylPagination from "@/components/yl-pagination";
  358. import mcsInfo from "@/views/components/mcs-info.vue";
  359. import ylUpload from "@/components/yl-upload";
  360. import { getOrdDetlList,finishDelvOrd } from "@/api/orderManage-sup/index";
  361. export default {
  362. components:{
  363. ylStep,ylPagination,ylUpload,mcsInfo
  364. },
  365. data() {
  366. return {
  367. pdfSrc: "",
  368. dialogVisible: false,
  369. endLoad: false,
  370. listForm: {
  371. delvOrdId:"",
  372. purcOrdId: "",
  373. detlCnt: "",
  374. qtySum: "",
  375. deptName:"",
  376. docmker: "",
  377. docmkDate: "",
  378. delvOrdStas: "",
  379. branchName:"",
  380. purcAmt:"",
  381. },
  382. stasOptions: [
  383. {value: 'A', lable: "未受理"},
  384. {value: 'B', lable: "已受理"},
  385. {value: 'R', lable: "被驳回"},
  386. {value: 'C', lable: "已出库"},
  387. {value: 'D', lable: "部分出库"},
  388. {value: 'Y', lable: "已入库"},
  389. {value: 'P', lable: "部分入库"}
  390. ],
  391. essdrugOptions: ["非基药","基药"],
  392. tableData: [],
  393. loading: false,
  394. // 选择发票
  395. dialogFa: false,
  396. faForm:{
  397. aa: "",
  398. current: 1,
  399. size: 10,
  400. },
  401. faLoading: false,
  402. faData: [],
  403. faTotal: 0,
  404. faIndex: "",
  405. // 选择同行单
  406. dialogTong: false,
  407. tongForm:{
  408. aa: "",
  409. current: 1,
  410. size: 10,
  411. },
  412. tongLoading: false,
  413. tongData: [],
  414. tongTotal: 0,
  415. tongIndex: "",
  416. code: "",
  417. listQuery:{
  418. prodEntp: "",
  419. isFas: "",
  420. regcertno: "",
  421. },
  422. isFasData: [
  423. { value: "1", name: "是" },
  424. { value: "0", name: "否" },
  425. ],
  426. udidialog:false,
  427. }
  428. },
  429. created() {
  430. this.listForm.delvOrdId = this.$route.query.delvOrdId;
  431. this.listForm.purcOrdId = this.$route.query.purcOrdId;
  432. this.listForm.detlCnt = this.$route.query.detlCnt;
  433. this.listForm.qtySum = this.$route.query.qtySum;
  434. this.listForm.deptName = this.$route.query.deptName;
  435. this.listForm.docmker = this.$route.query.docmker;
  436. this.listForm.docmkDate = this.$route.query.docmkDate;
  437. this.listForm.delvOrdStas = this.$route.query.delvOrdStas;
  438. this.listForm.branchName = this.$route.query.branchName
  439. this.listForm.purcAmt = this.$route.query.purcAmt
  440. // this.stasOptions.forEach((i)=>{
  441. // if(i.value == this.$route.query.stas){
  442. // this.listForm.purcOrdStas = i.lable
  443. // }
  444. // })
  445. },
  446. mounted () {
  447. this.getData();
  448. },
  449. methods: {
  450. getData() {
  451. this.listLoading = true;
  452. let data = {
  453. delvOrdId: this.$route.query.delvOrdId,
  454. purcOrdId: this.$route.query.purcOrdId,
  455. spdId:this.$route.query.spdId,
  456. prodEntp:this.listQuery.prodEntp,
  457. isFas:this.listQuery.isFas,
  458. regcertno:this.listQuery.regcertno,
  459. }
  460. getOrdDetlList(data).then((res) => {
  461. this.tableData = res.data;
  462. this.tableData.forEach((i)=>{
  463. i.essdrugType = this.essdrugOptions[i.essdrugType*1]
  464. })
  465. this.listLoading = false;
  466. this.computeCell(this.tableData);
  467. }).catch((err) => {
  468. this.listLoading = false;
  469. });
  470. },
  471. // 筛选合并项
  472. computeCell(tableData) {
  473. this.cellList = [];
  474. this.count = null;
  475. for (let i = 0; i < tableData.length; i++) {
  476. if (i == 0) {
  477. // 先设置第一项
  478. this.cellList.push(1); // 初为1,若下一项和此项相同,就往cellList数组中追加0
  479. this.count = 0;
  480. console.log("索引", 0, this.count);
  481. } else {
  482. // 判断当前项与上项的设备类别是否相同,因为是合并这一列的单元格
  483. if (tableData[i].prodCode == tableData[i - 1].prodCode) {
  484. this.cellList[this.count] += 1; // 增加计数
  485. this.cellList.push(0); // 相等就往cellList数组中追加0
  486. console.log("索引", i, this.count);
  487. } else {
  488. this.cellList.push(1); // 不等就往cellList数组中追加1
  489. this.count = i; // 将索引赋值为计数
  490. console.log("索引", i, this.count);
  491. }
  492. }
  493. }
  494. },
  495. // 合并列
  496. handleSpan({ row, column, rowIndex, columnIndex }){
  497. if (columnIndex === 1 || columnIndex === 2 || columnIndex === 3 || columnIndex === 4
  498. || columnIndex === 5|| columnIndex === 6|| columnIndex === 7|| columnIndex === 8) {
  499. // console.log("单元格数组,若下一项为0,则代表合并上一项", this.cellList);
  500. const rowCell = this.cellList[rowIndex];
  501. if (rowCell > 0) {
  502. const colCell = 1;
  503. // console.log(`动态竖向合并单元格, 第${colCell}列,竖向合并${rowCell}个单元格 `);
  504. return {
  505. rowspan: rowCell,
  506. colspan: colCell,
  507. };
  508. } else {
  509. // 清除原有的单元格,必须要加,否则就会出现单元格会被横着挤到后面了!!!
  510. // 本例中数据是写死的不会出现,数据若是动态后端获取的,就会出现了!!!
  511. return {
  512. rowspan: 0,
  513. colspan: 0,
  514. };
  515. }
  516. }
  517. },
  518. // 预览文件
  519. dataURLtoBlob(e) {
  520. let bstr = atob(e);
  521. let n = bstr.length;
  522. let u8arr = new Uint8Array(n);
  523. while (n--) {
  524. u8arr[n] = bstr.charCodeAt(n);
  525. } //确定解析格式
  526. let blob = new Blob([u8arr], { type: "application/pdf;chartset=UTF-8" });
  527. let url = window.URL.createObjectURL(blob);
  528. return url;
  529. },
  530. // 详情
  531. openPdf(row){
  532. // let file = {
  533. // id: row.fileId,
  534. // };
  535. // uploadCheck(file).then((res) => {
  536. // if (res.success == true) {
  537. // this.dialogVisible = true;
  538. // const a = this.dataURLtoBlob(res.data.fileContent);
  539. // this.pdfSrc = a;
  540. // }
  541. // });
  542. },
  543. // 获取发票信息
  544. getFaData(type) {
  545. if (type == "search") {
  546. this.faForm.current = 1;
  547. }
  548. this.faData = [{aa:"资质文件.pdf",bb:"1111"},{aa:"出库文件.pdf",bb:"2222"}];
  549. this.faTotal = 1
  550. // this.faLoading = true;
  551. },
  552. faReset(){
  553. this.$refs.faForm.resetFields();
  554. this.getFaData();
  555. },
  556. // 选择发票
  557. handleFa(e,row){
  558. this.faIndex = e;
  559. this.dialogFa = true;
  560. this.getFaData();
  561. this.code = "";
  562. this.code = row.id;
  563. },
  564. // 选择发票 确认选择
  565. handleRow(row){
  566. // this.tableData[this.faIndex].fa = row.aa;
  567. this.tableData.forEach((i)=>{
  568. if(i.id == this.code){
  569. i.invoFileId = row.bb;
  570. }
  571. })
  572. this.dialogFa = false;
  573. },
  574. // 获取同行单信息
  575. getTongData(type) {
  576. if (type == "search") {
  577. this.tongForm.current = 1;
  578. }
  579. this.tongData = [{aa:"资质文件.pdf",bb:"1111"},{aa:"出库文件.pdf",bb:"2222"}];
  580. this.tongTotal = 1
  581. // this.tongLoading = true;
  582. },
  583. tongReset(){
  584. this.$refs.tongForm.resetFields();
  585. this.getTongData();
  586. },
  587. // 选择同行单
  588. handleTong(e,row){
  589. this.tongIndex = e;
  590. this.dialogTong = true;
  591. this.getTongData();
  592. this.code = "";
  593. this.code = row.id;
  594. },
  595. // 选择同行单 确认选择
  596. handleRowTong(row){
  597. // this.tableData[this.tongIndex].tong = row.aa;
  598. this.tableData.forEach((i)=>{
  599. if(i.id == this.code){
  600. i.dyntFileId = row.bb;
  601. }
  602. })
  603. this.dialogTong = false;
  604. },
  605. // 结束订单
  606. handleOrderEnd(){
  607. console.log(this.tableData,'tanleData')
  608. // this.tableData.forEach((item) => {
  609. // if (!item.fa || !item.tong) {
  610. // this.$message({
  611. // message: "请选择发票和同行单",
  612. // type: "info",
  613. // });
  614. // throw new Error("请选中发票和同行单");
  615. // }
  616. // })
  617. this.$confirm("确认结束订单", "提示", {
  618. confirmButtonText: "确定",
  619. cancelButtonText: "取消",
  620. type: "warning"
  621. }).then(() => {
  622. let data = {
  623. delvOrdId: this.$route.query.delvOrdId,
  624. }
  625. this.endLoad = true;
  626. finishDelvOrd(data).then((res) => {
  627. this.endLoad = false;
  628. }).catch((err) => {
  629. this.endLoad = false;
  630. });
  631. })
  632. },
  633. // 查看UDI码
  634. handleudi(row){
  635. this.udidialog = true;
  636. let udiObj={
  637. spec:row.spec,
  638. mol:row.mol,
  639. matl:row.matl,
  640. isFas:row.isFas,
  641. lotNum:row.lotNum,
  642. manuDate:row.manuDate,
  643. prodExpy:row.prodExpy,
  644. convrat:row.convrat,
  645. prcUnt:row.prcUnt,
  646. purcUnt:row.purcUnt,
  647. prodName:row.prodName,
  648. regcertno:row.regcertno,
  649. prodEntp:row.prodEntp,
  650. fasBtch:row.fasBtch,
  651. }
  652. // const obj = { a: 1, b: 2 };
  653. const n = 5;
  654. // const copiedObjects = Array.from({ length: n }, () => ({ ...obj }));
  655. // const n = row.udid;
  656. const copiedObjects = Array.from({ length: n }, () => ({ ...udiObj }));
  657. console.log(copiedObjects,"copiedObjects")
  658. this.udiData = copiedObjects
  659. },
  660. // 返回
  661. handleBack() {
  662. this.$router.push({
  663. name: "purOrderDelivery",
  664. query:{spdId:this.$route.query.spdId,activeName:this.$route.query.activeName}
  665. });
  666. },
  667. // 重置
  668. reset(){
  669. this.$refs.listQuery.resetFields();
  670. this.getData()
  671. }
  672. },
  673. }
  674. </script>
  675. <style lang="scss" scoped>
  676. ::v-deep .el-table__body tr.hover-row>td{
  677. background-color: transparent !important;
  678. }
  679. ::v-deep .el-table {
  680. th.el-table__cell.is-leaf,
  681. td.el-table__cell {
  682. border-bottom: 1px solid #eee;
  683. }
  684. }
  685. </style>