| | |
| | | name: "ZTTable", |
| | | filters: { |
| | | typeFn(val, row) { |
| | | // console.log(val, row, '11111111'); |
| | | if (typeof val === "function") { |
| | | return val(row); |
| | | } else return val; |
| | |
| | | // 渲染章 |
| | | drawStamps(x, y, index) { |
| | | var img = new Image(); |
| | | console.log(this.stampsName) |
| | | // 设置图片源 |
| | | img.src = require("@/assets/stamps/" + this.stampsName + ".png"); // 替换为你的图片链接 |
| | | let that = this |
| | |
| | | onScroll(){}, |
| | | scrollFn() { |
| | | let content = this.$refs.content |
| | | // console.log(22222,content.scrollTop + content.clientHeight+1,content.scrollHeight) |
| | | if (content.scrollTop + content.clientHeight+2 >= content.scrollHeight) { |
| | | // console.log(1111,this.finishLoding) |
| | | if(!this.finishLoding){ |
| | | this.loadMore() |
| | | }else{ |
| | |
| | | NProgress.start() |
| | | if (getToken()) { |
| | | to.meta.title && store.dispatch('settings/setTitle', to.meta.title) |
| | | console.log(to.path) |
| | | /* has token*/ |
| | | if (to.path === '/login') { |
| | | next({ path: '/' }) |
| | |
| | | * 字典请求,方法签名为function(dictMeta: DictMeta): Promise |
| | | */ |
| | | request: (dictMeta) => { |
| | | console.log(`load dict ${dictMeta.type}`) |
| | | return Promise.resolve([]) |
| | | }, |
| | | /** |
| | |
| | | let min = null; |
| | | if (val && val.length > 0) { |
| | | val = val.filter((item) => item != null && item !== ""); |
| | | // console.log(val) |
| | | if (val.length > 0) { |
| | | min = Math.min(...val); |
| | | } |
| | |
| | | fouList.forEach((item) => { |
| | | f = f.replace(new RegExp(item, "g"), ""); |
| | | }); |
| | | // console.log('f',f) |
| | | let arr = f.split(",").filter((item) => { |
| | | return ( |
| | | item && /[a-zA-Z]/.test(item) && item != "undefined" && item != "null" |
| | |
| | | // 查看报告 |
| | | handleIssued(row) { |
| | | // todo: 查看报告组件 |
| | | console.log(this.javaApi) |
| | | this.currentInfo = row; |
| | | let fileName = row.url |
| | | let fileType = "docx" |
| | |
| | | this.bindCurrentInfo = row; |
| | | getBindingProductByProductId({ productId: row.insProductId }) |
| | | .then((res) => { |
| | | // console.log(res) |
| | | this.bindTableData = res.data; |
| | | this.bindDialogVisible = true; |
| | | }) |
| | |
| | | productId: this.bindCurrentInfo.insProductId, |
| | | }) |
| | | .then((res) => { |
| | | // console.log(res) |
| | | this.bindAddTableData = res.data; |
| | | this.bindAddDialogVisible = true; |
| | | }) |
| | |
| | | this.dataAcquisitionInfo = {}; |
| | | this.getData = []; |
| | | for (let i in this.objectOrder(data)) { |
| | | console.log("i---", i); |
| | | let obj = {}; |
| | | if (i.includes("@")) { |
| | | obj = { |
| | |
| | | }, |
| | | // 保存湿度、温度数据 |
| | | subOtherForm(m, type) { |
| | | console.log("m---", m); |
| | | write({ |
| | | [type]: type === "remark" ? m : Number(m), |
| | | id: this.insOrder.id, |
| | |
| | | } |
| | | }, |
| | | saveMethod(sampleList){ |
| | | console.log('sampleList----', sampleList) |
| | | this.saveLoad = true |
| | | if (this.addObj.quarterItemId) { |
| | | this.addObj.quarterItemId = this.addObj.quarterItemId[1] |
| | |
| | | if (node.data.code === '[3]') { |
| | | this.sampleViewEn = val.sampleTypeEn |
| | | } else if (node.data.code === '[4]') { |
| | | console.log('node.data---', node.data) |
| | | if (node.data.children!==null && node.data.children.length>0) { |
| | | this.sampleViewEn = val.sampleEn |
| | | } |
| | |
| | | }).then(res => { |
| | | if (res.code === 200 && res.data.length > 0) { |
| | | res.data.forEach(item => { |
| | | console.log('item---', item) |
| | | item.sendTime = item.sendTime && item.sendTime.substring(0, 10) |
| | | item.sampleNumber = item.qtyArrived + item.buyUnitMeas |
| | | this.$set(item, 'barcode', item.entrustCode) |
| | |
| | | // 方法集合 |
| | | methods: { |
| | | async getInsOrder(operationType, item) { |
| | | console.log('operationType----', operationType) |
| | | this.operationType = operationType |
| | | this.info = item |
| | | // 查询已提交的数据 |
| | |
| | | }) |
| | | .then(() => { |
| | | deleteAuxiliaryWorkingHours({ id: row.id }).then((res) => { |
| | | console.log('res',res) |
| | | if (res.code == 200){ |
| | | this.$message.success("删除成功"); |
| | | this.refresh(); |
| | |
| | | }; |
| | | }, |
| | | mounted() { |
| | | console.log(22222, this.currentRow); |
| | | this.entity.productListId = this.currentRow.id; |
| | | this.searchTableData(); |
| | | }, |