| | |
| | | <div v-if="deleteDialogVisible" style="height: 70vh;overflow-y: auto;"> |
| | | <lims-table :tableData="componentDataDelete" :column="columnDelete" :isSelection="true" |
| | | :handleSelectionChange="selectDelete" @pagination="paginationDelete" height="500px" |
| | | key="componentDataDelete" :page="pageDelete" :tableLoading="tableLoadingDelete"></lims-table> |
| | | :key="orderId" :page="pageDelete" :tableLoading="tableLoadingDelete"></lims-table> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-row> |
| | |
| | | import { |
| | | checkUpdate, delInsOrder, getSampleByOrderId, |
| | | rawAllInsOrderExport, |
| | | selectInsOrderParameter, selectNoProducts, selectOrderManDay, |
| | | selectInsOrderParameter, |
| | | selectNoProducts, |
| | | getRevocationInsProductList, |
| | | selectOrderManDay, |
| | | updateInspected, |
| | | updateOrderEntrustCode, updateSampleModel, updateStatus, upInsOrder, upPlanUser2 |
| | | } from "@/api/business/productOrder"; |
| | |
| | | }, |
| | | // 点击样品名称 |
| | | selectAllByOne(row) { |
| | | this.$router.push({ |
| | | path: "/productOrder/addView", query: { |
| | | examine: 1, |
| | | active: 2, |
| | | currentId: row.id, |
| | | tabIndex: this.tabIndex, |
| | | } |
| | | }); |
| | | if (this.tabIndex === 4) { |
| | | this.$router.push({ |
| | | path: "/productOrder/addOrder", query: { |
| | | examine: 1, |
| | | active: 2, |
| | | currentId: row.id, |
| | | tabIndex: this.tabIndex, |
| | | } |
| | | }); |
| | | } else { |
| | | this.$router.push({ |
| | | path: "/productOrder/addView", query: { |
| | | examine: 1, |
| | | active: 2, |
| | | currentId: row.id, |
| | | tabIndex: this.tabIndex, |
| | | } |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | // 修改样品型号 |
| | | editSampleModel (row) { |
| | |
| | | this.orderId = row.id |
| | | this.revocationInsProductIds = row.revocationInsProductIds |
| | | this.deleteTilte = '撤销审核' |
| | | // this.getRevocationInsProductList() |
| | | this.deleteDialogVisible = true; |
| | | }, |
| | | getRevocationInsProductList(){ |
| | | this.tableLoadingDelete = true |
| | | getRevocationInsProductList({orderId:this.orderId}).then(res=>{ |
| | | if(res.code===200){ |
| | | this.componentDataDelete = res.data |
| | | } |
| | | this.tableLoadingDelete = false |
| | | }).catch(error=>{ |
| | | console.error(error) |
| | | this.tableLoadingDelete = false |
| | | }) |
| | | }, |
| | | handleNo() { |
| | | if (this.deleteTilte == '撤销') { |
| | |
| | | upPlanUser2({ |
| | | orderId: row.id, |
| | | }).then(res => { |
| | | if (res.code === 200 && res.data.length > 0) { |
| | | this.sonLaboratoryList = []; |
| | | res.data.forEach(m => { |
| | | this.sonLaboratoryList.push({ |
| | | value: m, |
| | | label: m |
| | | }) |
| | | }) |
| | | } |
| | | this.sonLaboratoryList = [ |
| | | { |
| | | value: '新聚', |
| | | label: '新聚' |
| | | } |
| | | ] |
| | | this.distributeData.sonLaboratory = '新聚' |
| | | // if (res.code === 200 && res.data.length > 0) { |
| | | // this.sonLaboratoryList = []; |
| | | // res.data.forEach(m => { |
| | | // this.sonLaboratoryList.push({ |
| | | // value: m, |
| | | // label: m |
| | | // }) |
| | | // }) |
| | | // } |
| | | }) |
| | | }, |
| | | submitForm2() { |