| | |
| | | this.$set(this.addObj, 'workShopName', res.data.workShopName) |
| | | this.$set(this.addObj, 'workShopId', res.data.workShopId) |
| | | this.$set(this.addObj, 'inspectionType', this.customsInspection.inspectionType) |
| | | console.log(111111, this.addObj) |
| | | if (this.orderType == 1) { |
| | | this.$set(this.addObj, 'orderType', 'Quarterly inspection') |
| | | } |
| | |
| | | }, |
| | | // 选择检验标准回调 |
| | | methodChange(val, row) { |
| | | if (val === null || val === '') return |
| | | if (!val || val.length < 1) return |
| | | if (this.sampleList.length > 1) { |
| | | // 有两条样品时,第二条样品信息和第一条保持一致 |
| | | this.sampleList.forEach(item => { |
| | |
| | | this.getProductLoad = false |
| | | // 直接将查询结果赋值给 productList |
| | | // this.fullProductList = res.data |
| | | this.productList = res.data.forEach(m => { |
| | | this.productList = res.data.map(m => { |
| | | m.state = 1 |
| | | return m |
| | | }) |
| | | this.productList0 = res.data.forEach(m => { |
| | | this.productList0 = res.data.map(m => { |
| | | m.state = 1 |
| | | return m |
| | | }) |
| | | this.$refs.sampleTable.setCurrentRow(row) |
| | | setTimeout(() => { |