| | |
| | | </li> |
| | | </ul> |
| | | <lims-table |
| | | highlightCurrentRow |
| | | isSelection |
| | | :tableData="tableData" |
| | | :height="tableHeight + ''" |
| | |
| | | fullscreen |
| | | > |
| | | <lims-table |
| | | highlightCurrentRow |
| | | :heigt="'80vh'" |
| | | :tableData="dataLooktableData" |
| | | :column="dataLookcolumn" |
| | |
| | | import getLodop from "@/utils/lodop"; |
| | | import Add from "./add.vue"; |
| | | import { mapGetters } from "vuex"; |
| | | import LimsTable from "../../../components/Table/lims-table.vue"; |
| | | import LimsTable from "@/components/Table/lims-table.vue"; |
| | | export default { |
| | | components: { |
| | | limsTable, |
| | |
| | | prop: "sampleName", |
| | | minWidth: "160px", |
| | | width: "160px", |
| | | dataType: "link", |
| | | linkEvent: { |
| | | method: "showDetails", |
| | | vueComponent: this, |
| | | }, |
| | | }, |
| | | { |
| | | label: "样品编号", |
| | |
| | | this.beginPrint(this.qrData); |
| | | }); |
| | | this.printDialogVisible = false; |
| | | |
| | | // PrintJS({ |
| | | // printable: "printMOrder", //页面 |
| | | // type: "html", //文档类型 |
| | | // maxWidth: 360, |
| | | // style: `@page { |
| | | // margin:0; |
| | | // size: 400px 75px collapse; |
| | | // margin-top:3px; |
| | | // &:first-of-type{ |
| | | // margin-top:0 !important; |
| | | // } |
| | | // } |
| | | // html{ |
| | | // zoom:100%; |
| | | // } |
| | | // @media print{ |
| | | // width: 400px; |
| | | // height: 75px; |
| | | // margin:0; |
| | | // }`, |
| | | // onPrintDialogClose: (this.erexcel = false), |
| | | // targetStyles: ["*"], // 使用dom的所有样式,很重要 |
| | | // font_size: "0.15cm", |
| | | // }); |
| | | }, |
| | | print() { |
| | | if (this.multipleSelection.length == 0) { |
| | |
| | | } |
| | | }, |
| | | refresh() { |
| | | this.componentData.entity = this.HaveJson(this.entityCopy); |
| | | this.upIndex++; |
| | | this.queryParams = { |
| | | entrustCode: "", |
| | | outEntrustCode: "", |
| | | sampleName: "", |
| | | sampleModel: "", |
| | | sampleCode: "", |
| | | startAndEndTime: [], |
| | | name: "", |
| | | engineering: "", |
| | | production: "", |
| | | }; |
| | | this.refreshTable(); |
| | | }, |
| | | // 权限分配 |
| | | getPower(radio) { |
| | | let power = JSON.parse(sessionStorage.getItem("power")); |
| | | let up = false; |
| | | let del = false; |
| | | let revoke = false; |
| | | let check = false; |
| | | let checkUpdate = false; |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == "upInsOrder") { |
| | | up = true; |
| | | } |
| | | if (power[i].menuMethod == "updateStatus") { |
| | | revoke = true; |
| | | } |
| | | if (power[i].menuMethod == "upInsOrderOfState") { |
| | | check = true; |
| | | } |
| | | if (power[i].menuMethod == "checkUpdate") { |
| | | checkUpdate = true; |
| | | } |
| | | } |
| | | if (!up) { |
| | | this.componentData.do.splice(5, 1); |
| | | } |
| | | if (!checkUpdate) { |
| | | this.componentData.do.splice(4, 1); |
| | | } |
| | | if (!revoke) { |
| | | this.componentData.do.splice(3, 1); |
| | | } |
| | | if (!check) { |
| | | this.componentData.do.splice(2, 1); |
| | | } |
| | | }, |
| | | handleClose() { |
| | | this.verifyDialogVisible = false; |
| | |
| | | this.exportCheckedDate = []; |
| | | this.dialogVisible1 = false; |
| | | }, |
| | | // 详情 |
| | | selectAllByOne(row) { |
| | | this.active = 2; |
| | | // console.log(row); |
| | | // //打开弹框 |
| | | // this.dialogVisible = true; |
| | | // //row = 点击对应行值 |
| | | // //复制给formData |
| | | // this.formData = this.HaveJson(row); |
| | | this.currentId = row.id; |
| | | this.examine = 1; |
| | | // 查看详情 |
| | | showDetails(row) { |
| | | this.$router.push({ |
| | | name: "showDetails", |
| | | query: { |
| | | active: 2, |
| | | currentId: row.id, |
| | | examine: 1, |
| | | isReview: true, |
| | | }, |
| | | }); |
| | | }, |
| | | // 数据查看 |
| | | handleDataLook(row) { |
| | |
| | | }, |
| | | // 下单 |
| | | playOrder(num) { |
| | | // this.active = num; |
| | | // this.examine = 0; |
| | | this.$router.push({ |
| | | name: "addOrder", |
| | | params: {}, |
| | | query: { |
| | | active: num, |
| | | examine: 0, |
| | | }, |
| | | }); |
| | | this.active = num; |
| | | this.examine = 0; |
| | | // this.refreshTable(); |
| | | }, |
| | | handleTab(m, i) { |
| | | this.tabIndex = i; |