| | |
| | | <!-- çµè·¯è¯éª --> |
| | | <div v-else-if="tableLists.find(m=>m.templateId==currentTable).templateName.includes('çµè·¯è¯éª')" style="width: 100%;overflow-x: auto;overflow-y: visible;"> |
| | | <!-- <Circuit></Circuit> --> |
| | | <CircuitParameters1 v-if="currentTableState==0" :insProduct="currentSample.insProduct" :orderId="id" :sampleId="currentSample.id" :state="state"></CircuitParameters1> |
| | | <CircuitParameters2 v-if="currentTableState==1" :insProduct="currentSample.insProduct" :orderId="id" :sampleId="currentSample.id" :state="state"></CircuitParameters2> |
| | | <CircuitParameters1 v-if="currentTableState==0" :insProduct="currentSample.insProduct" :orderId="id" :sampleId="currentSample.id" :state="state" :num="currentSample.num1"></CircuitParameters1> |
| | | <CircuitParameters2 v-if="currentTableState==1" :insProduct="currentSample.insProduct" :orderId="id" :sampleId="currentSample.id" :state="state" :num="currentSample.num1"></CircuitParameters2> |
| | | </div> |
| | | <el-upload :action="action" |
| | | :data="{ |
| | |
| | | if(this.param){ |
| | | this.$axios.post(this.$api.insOrderPlan.saveInsContext, { |
| | | param: JSON.stringify(this.param), |
| | | currentTable:this.currentTable |
| | | currentTable:this.currentTable, |
| | | num:this.currentSample.num1 |
| | | }).then(res => { |
| | | if (res.code == 201) { |
| | | this.$message.error('ä¿å失败') |
| | |
| | | |
| | | <script> |
| | | export default { |
| | | props:['insProduct','orderId','sampleId','state'], |
| | | props:['insProduct','orderId','sampleId','state','num'], |
| | | data() { |
| | | return { |
| | | value: "", |
| | |
| | | // åå§åæ°æ® |
| | | initData(){ |
| | | // å¤çé¡¹ç® |
| | | this.insProductNew = JSON.parse(JSON.stringify(this.insProduct)) |
| | | this.insProductNew = JSON.parse(JSON.stringify(this.insProduct)).filter(m=>m.inspectionItem.includes('çµè·¯è¯éª')) |
| | | this.insProductNew.forEach(async item => { |
| | | // è·å设å¤å表 |
| | | item.equipOptions = await this.getEquipOptions(item) |
| | |
| | | often:n.often, |
| | | equipName:n.equipName, |
| | | equipValue:n.equipValue, |
| | | frequency:n.frequency |
| | | frequency:n.frequency, |
| | | sonLaboratory:item.sonLaboratory |
| | | } |
| | | this.$set(obj,'portList', n.port?portList:[]) |
| | | this.$set(obj,'angleList', n.angle?angleList:[]) |
| | |
| | | }).then(() => { |
| | | this.$axios.post(this.$api.insOrderPlan.deleteInsContext, { |
| | | frequency:list[index].band, |
| | | productIds:list[index].projectList.map(m=>m.id) |
| | | productIds:list[index].projectList.map(m=>m.id), |
| | | num:this.num |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | |
| | | list.splice(index+1, 0, obj) |
| | | }else if(type=='颿®µ'){ |
| | | let obj = JSON.parse(JSON.stringify(list[0])); |
| | | console.log(2222,obj) |
| | | obj.band = '' |
| | | obj.projectList.forEach(item=>{ |
| | | item.often = '' |
| | |
| | | |
| | | <script> |
| | | export default { |
| | | props:['insProduct','orderId','sampleId','state'], |
| | | props:['insProduct','orderId','sampleId','state','num'], |
| | | data() { |
| | | return { |
| | | value: "", |
| | |
| | | // åå§åæ°æ® |
| | | initData(){ |
| | | // å¤çé¡¹ç® |
| | | this.insProductNew = JSON.parse(JSON.stringify(this.insProduct)) |
| | | this.insProductNew = JSON.parse(JSON.stringify(this.insProduct)).filter(m=>m.inspectionItem.includes('çµè·¯è¯éª')) |
| | | this.insProductNew.forEach(async item => { |
| | | // è·å设å¤å表 |
| | | item.equipOptions = await this.getEquipOptions(item) |
| | |
| | | often:n.often, |
| | | equipName:n.equipName, |
| | | equipValue:n.equipValue, |
| | | frequency:n.frequency |
| | | frequency:n.frequency, |
| | | sonLaboratory:item.sonLaboratory |
| | | } |
| | | this.$set(obj,'portList', n.port?portList:[]) |
| | | this.$set(obj,'angleList', n.angle?angleList:[]) |
| | |
| | | }).then(() => { |
| | | this.$axios.post(this.$api.insOrderPlan.deleteInsContext, { |
| | | frequency:list[index].band, |
| | | productIds:list[index].projectList.map(m=>m.id) |
| | | productIds:list[index].projectList.map(m=>m.id), |
| | | num:this.num |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | |
| | | list.splice(index+1, 0, obj) |
| | | }else if(type=='颿®µ'){ |
| | | let obj = JSON.parse(JSON.stringify(list[0])); |
| | | console.log(2222,obj) |
| | | obj.band = '' |
| | | obj.projectList.forEach(item=>{ |
| | | item.often = '' |
| | |
| | | cancelButtonText: "ä¸çæ", |
| | | type: "success", |
| | | distinguishCancelAndClose: true, |
| | | }).then(() => { |
| | | this.$axios.post(this.$api.insReport.isReport, { |
| | | id:row.id, |
| | | state:1 |
| | | }).then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.$message.success("å·²çæ") |
| | | this.refreshTable() |
| | | }).catch(err => { |
| | | |
| | | console.log(err) |
| | | }) |
| | | }).catch((e) => { |
| | | console.log(e) |
| | | if(e=='cancel'){ |
| | | beforeClose: (action, instance, done) => { |
| | | if (action === 'confirm') { |
| | | instance.confirmButtonLoading = true; |
| | | this.$axios.post(this.$api.insReport.isReport, { |
| | | id:row.id, |
| | | state:1 |
| | | }).then(res => { |
| | | instance.confirmButtonLoading = false; |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.$message.success("å·²çæ") |
| | | this.refreshTable() |
| | | done(); |
| | | }).catch(err => { |
| | | console.log(err) |
| | | instance.confirmButtonLoading = false; |
| | | }) |
| | | } else if(action === 'cancel'){ |
| | | instance.cancelButtonLoading = true; |
| | | this.$axios.post(this.$api.insReport.isReport, { |
| | | id:row.id, |
| | | state:0 |
| | | }).then(res => { |
| | | instance.cancelButtonLoading = false; |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.refreshTable() |
| | | done(); |
| | | this.$message.success("已忶çæ") |
| | | }).catch(err => { |
| | | instance.cancelButtonLoading = false; |
| | | console.log(err) |
| | | }) |
| | | }else{ |
| | | done(); |
| | | } |
| | | } |
| | | }).then(() => { |
| | | |
| | | }).catch((e) => { |
| | | console.log(e) |
| | | }) |
| | | } |
| | | } |
| | |
| | | inspectorList.push(user.name) |
| | | } |
| | | this.inspectorList = inspectorList |
| | | this.state = 1; |
| | | this.orderId = row.id |
| | | this.version = row.version |
| | | this.orderStateId = row.orderStateId |
| | | this.state = 1; |
| | | }, |
| | | handleConnect(row){ |
| | | this.orderId = row.id |