| | |
| | | sampleName: null, |
| | | state: null, |
| | | }, |
| | | isSerialConnected: false, // 新增状态变量,串口连接状态 |
| | | id: null, |
| | | changeType: null, |
| | | insOrder: {}, |
| | |
| | | this.$refs.purchaseDialog.$refs["purchaseForm"].resetFields(); |
| | | this.purchaseDialog = false; |
| | | }, |
| | | |
| | | // 数据采集 |
| | | getDataAcquisitionDevice() { |
| | | // connect() |
| | | if (this.isSerialConnected) { |
| | | connect(); |
| | | } |
| | | // return |
| | | let itemIds = []; |
| | | this.currentSample.insProduct.forEach((item) => { |
| | |
| | | this.dataAcquisitionLoading = false; |
| | | }); |
| | | }, |
| | | // 假设存在一个方法用于更新串口连接状态 |
| | | // updateSerialConnectionStatus(status) { |
| | | // this.isSerialConnected = status; |
| | | // }, |
| | | |
| | | objectOrder(obj) { |
| | | let newkey = Object.keys(obj).sort(); |
| | | let newObj = {}; |
| | |
| | | }; |
| | | } |
| | | let list = this.tableList[0].arr; |
| | | console.log(this.tableList[0]); |
| | | // 循环页面列表信息,判断数采数据对应页面列表信息的检验项是哪个,并给当前检验项绑定设备信息 |
| | | list.forEach((item, index) => { |
| | | let num0 = 0; |