| | |
| | | type: Object, |
| | | default: null |
| | | }, |
| | | expandRowKeys: { |
| | | type: Array, |
| | | default: ()=>[] |
| | | } |
| | | }, |
| | | render: (h, data) => { |
| | | const params = { |
| | |
| | | name: 'TTable', |
| | | components: { exSlot, advancedSearchDialog, zttdraggable }, |
| | | props: { |
| | | expandRowKeys: { |
| | | type: Array, |
| | | default: ()=>[] |
| | | }, |
| | | rowKey: { |
| | | type: String, |
| | | default: ()=>{ |
| | |
| | | :toolbarMaxLength="4" |
| | | :paramArr="type" |
| | | ref="customerOrderTable" |
| | | :expandRowKeys="expandRowKeys" |
| | | > |
| | | <template #toolbar> |
| | | <el-dropdown |
| | |
| | | selectTime: null, |
| | | exportTime: null, |
| | | }, |
| | | expandRowKeys: [], |
| | | expandRowKeys: null, |
| | | dataRule: { |
| | | exportTime: [ |
| | | { required: true, message: '导出日期不能为空', trigger: 'change' }, |
| | |
| | | this.getData() |
| | | }, |
| | | |
| | | getData() { |
| | | this.$refs.customerOrderTable.getDataList() |
| | | async getData() { |
| | | await this.$refs.customerOrderTable.getDataList() |
| | | this.$refs.customerOrderTable.tableData.forEach((ele) => { |
| | | this.$refs.customerOrderTable.$refs.lmesTable.toggleRowExpansion(ele,false) |
| | | }) |
| | | this.expandRowKeys && this.$refs.customerOrderTable.$refs.lmesTable.toggleRowExpansion(this.expandRowKeys,true) |
| | | }, |
| | | // 获取数据列表去除已完成状态的 |
| | | handleDataList(command) { |
| | |
| | | this.$refs.addSampleForm.init(row ? row.contractNo : null) |
| | | }) |
| | | } |
| | | this.expandRowKeys=[row.id] |
| | | this.$refs.customerOrderTable.tableData.forEach((item) => { |
| | | if(item.children&&item.children.find(m=>m.id==row.id)){ |
| | | this.expandRowKeys = item; |
| | | } |
| | | }) |
| | | }, |
| | | // 新增样品订单 |
| | | addSampleCustomerOrder() { |
| | |
| | | if (this.empiricalValueAddMaxNumber != this.empiricalValueAdd - 1) { |
| | | this.empiricalValueAdd = this.empiricalValueAdd - 1; |
| | | // this.changeRowResult() |
| | | this.saveTable() |
| | | this.inspectionItems.forEach(i => { |
| | | i.empiricalValueAddss.splice(this.empiricalValueAdd, 1); |
| | | }); |
| | | this.saveTable() |
| | | } |
| | | } |
| | | }, |
| | |
| | | if (_than.empiricalValueAddMaxNumber != _than.empiricalValueAdd - 1) { |
| | | _than.empiricalValueAdd = _than.empiricalValueAdd - 1; |
| | | // _than.changeRowResult() |
| | | _than.saveTable(); |
| | | _than.inspectionItems.forEach(i => { |
| | | if(i.children){ |
| | | i.children.forEach(ele=>{ |
| | |
| | | }) |
| | | } |
| | | }); |
| | | _than.saveTable(); |
| | | } |
| | | } |
| | | }, |
| | |
| | | if(this.list){ |
| | | this.list.forEach(e=>{ |
| | | if(e.children){ |
| | | e.children.forEach(i=>{ |
| | | e.children.map(i=>{ |
| | | if(i.testValueList.length>1){ |
| | | let arr = i.testValue.split(",") |
| | | arr.splice((arr.length-1),1) |
| | | i.testValueList = i.testValueList.splice(i.testValueList.length-1,1) |
| | | return i |
| | | // let arr = i.testValue.split(",") |
| | | // arr.splice((arr.length-1),1) |
| | | // let obj = { |
| | | // deviceId: i.deviceId, |
| | | // rpId: i.rpId, |
| | |
| | | if (this.empiricalValueAdd - 1 > 0) { |
| | | if (this.empiricalValueAddMaxNumber != this.empiricalValueAdd - 1) { |
| | | this.empiricalValueAdd = this.empiricalValueAdd - 1; |
| | | this.changeRowResult() |
| | | // this.changeRowResult() |
| | | this.list.forEach(i => { |
| | | if(i.children){ |
| | | i.children.forEach(ele=>{ |
| | |
| | | }) |
| | | } |
| | | }); |
| | | this.saveTable() |
| | | } |
| | | } |
| | | }, |