| | |
| | | <template> |
| | | <div v-loading="loading" class="inspection"> |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;text-align: left;">æ£éªå详æ
|
| | | <el-col :span="12" style="padding-left: 20px;text-align: left;" v-once>æ£éªå详æ
|
| | | </el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-col :span="12" style="text-align: right;" v-once> |
| | | <!-- <el-button size="small" type="primary" @click="fiberOpticVisible=true" v-if="fiberOptic.length>0">å
çº¤åæ¢</el-button> |
| | | <el-button size="small" type="primary" @click="fiberOpticTapeVisible=true" v-if="fiberOpticTape.length>0">å
çº¤å¸¦åæ¢</el-button> |
| | | <el-button size="small" type="primary" @click="bushingVisible=true" v-if="bushing.length>0">å¥ç®¡åæ¢</el-button> --> |
| | |
| | | <el-input clearable v-model="insOrder.appointed" disabled size="small" placeholder="请è¾å
¥"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å½åæ ·å使°:"> |
| | | <el-tag v-if="currentKey">{{ `NO.${currentKey}` }}</el-tag> |
| | | <el-tag v-show="currentKey">{{ `NO.${currentKey}` }}</el-tag> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div class="center"> |
| | | <div class="search" style="text-align: left;display: flex;align-items: center;justify-content: space-between;"> |
| | | <div style="display: flex;align-items: center;"> |
| | | <span v-if="tableList.length>0">æ£éªæ¨¡æ¿ï¼</span> |
| | | <span v-show="tableList.length>0">æ£éªæ¨¡æ¿ï¼</span> |
| | | <el-radio-group v-model="currentTable" size="small"> |
| | | <el-radio-button :label="item.templateId" v-for="(item,index) in tableLists" :key="index" |
| | | size="small">{{ item.templateName }}</el-radio-button> |
| | | </el-radio-group> |
| | | </div> |
| | | <div style="display: flex;align-items: center;"> |
| | | <span v-if="fibers.length>0"> å
纤带ï¼</span> |
| | | <el-select v-model="currentTab" placeholder="è¯·éæ©" @change="m=>handleChange(m,1)" v-if="fibers.length>0" size="small"> |
| | | <span v-show="fibers.length>0"> å
纤带ï¼</span> |
| | | <el-select v-model="currentTab" placeholder="è¯·éæ©" @change="m=>handleChange(m,1)" v-show="fibers.length>0" size="small"> |
| | | <el-option |
| | | v-for="item in fibers" |
| | | :key="item.value" |
| | |
| | | <el-tag :type="item.state==1?'success':'danger'" style="float: right;margin-top: 5px;" size="small">{{ item.state==1?'å·²æ£':'æªæ£' }}</el-tag> |
| | | </el-option> |
| | | </el-select> |
| | | <span v-if="fiber.length>0"> å
纤ï¼</span> |
| | | <el-select v-model="currentTab" placeholder="è¯·éæ©" @change="m=>handleChange(m,2)" v-if="fiber.length>0" size="small"> |
| | | <span v-show="fiber.length>0"> å
纤ï¼</span> |
| | | <el-select v-model="currentTab" placeholder="è¯·éæ©" @change="m=>handleChange(m,2)" v-show="fiber.length>0" size="small"> |
| | | <el-option |
| | | v-for="item in fiber" |
| | | :label="item.bushColor+'-'+item.color" |
| | |
| | | <el-tag :type="item.state==1?'success':'danger'" style="float: right;margin-top: 5px;" size="small">{{ item.state==1?'å·²æ£':'æªæ£' }}</el-tag> |
| | | </el-option> |
| | | </el-select> |
| | | <el-form :inline="true" :model="otherForm" class="form-inline" label-width="50px" style="padding-top: 0;padding-left: 10px;" v-if="PROJECT=='æ£æµä¸å¿'"> |
| | | <el-form :inline="true" :model="otherForm" class="form-inline" label-width="50px" style="padding-top: 0;padding-left: 10px;" v-show="PROJECT=='æ£æµä¸å¿'"> |
| | | <el-form-item label="温度:" style="margin-bottom: 0;"> |
| | | <el-input v-model="otherForm.temperature" :disabled="state>1" size="small" placeholder="" style="width: 90px;" @change="m=>subOtherForm(m,'temperature')" ></el-input> |
| | | <span style="margin-left: 4px;">â</span> |
| | |
| | | <span style="margin-left: 4px;">%</span> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-button type="primary" size="small" v-if="dataAcquisitionEidt>0&&PROJECT=='æ£æµä¸å¿'&&state==1" @click="getDataAcquisitionDevice" :loading="dataAcquisitionLoading">æ°æ®éé</el-button> |
| | | <el-button :type="dataAcquisitionEidtAble?'':'primary'" size="small" v-if="dataAcquisitionEidt>0&&PROJECT=='æ£æµä¸å¿'&&collected&&state==1" @click="dataAcquisitionEidtAble=!dataAcquisitionEidtAble">{{dataAcquisitionEidtAble?'å
³éç¼è¾':'ç¼è¾æ°é'}}</el-button> |
| | | <el-button type="primary" size="small" v-show="dataAcquisitionEidt>0&&PROJECT=='æ£æµä¸å¿'&&state==1" @click="getDataAcquisitionDevice" :loading="dataAcquisitionLoading">æ°æ®éé</el-button> |
| | | <el-button :type="dataAcquisitionEidtAble?'':'primary'" size="small" v-show="dataAcquisitionEidt>0&&PROJECT=='æ£æµä¸å¿'&&collected&&state==1" @click="dataAcquisitionEidtAble=!dataAcquisitionEidtAble">{{dataAcquisitionEidtAble?'å
³éç¼è¾':'ç¼è¾æ°é'}}</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="center-box" id="nav" v-loading="tableLoading" v-if="!tableLists.find(m=>m.templateId==currentTable)||(tableLists.find(m=>m.templateId==currentTable).templateName!='æ¸©åº¦å¾ªç¯æ£éªåå§è®°å½'&&tableLists.find(m=>m.templateId==currentTable).templateName!='çå¾ªç¯æ£éªåå§è®°å½')"> |
| | |
| | | <tbody> |
| | | <tr v-for="(m,i) in item.arr" :key="i"> |
| | | <td :id='item.templateId+"-"+n.i+"-"+n.r+"-"+n.c' v-for="(n,j) in m" :key="j" |
| | | v-if="n.v.mc==undefined || Object.keys(n.v.mc).length === 4" :colspan="n.v.mc&&n.v.mc.cs?n.v.mc.cs:1" |
| | | v-show="n.v.mc==undefined || Object.keys(n.v.mc).length === 4" :colspan="n.v.mc&&n.v.mc.cs?n.v.mc.cs:1" |
| | | :rowspan="n.v.mc&&n.v.mc.rs?n.v.mc.rs:1" |
| | | :style="`background:${n.v.bg?n.v.bg:''};color:${n.v.fc};font-size:${n.v.fs}px;width:${handleWidth(n)}px !important;height:${item.style.rowlen[n.r]}px;font-wight:${n.v.bl?'bold':''};`"> |
| | | <div class="content" :class="`content-h-${n.v.ht} content-v-${n.v.vt}`" |
| | |
| | | v-else-if="getInspectionValueType(n.i) == 4">/</span> |
| | | </template> |
| | | <template v-else-if="n.v.ps!=undefined && n.v.ps.value==='ç»è®º'"> |
| | | <el-select v-if="(getInspectionValueType(n.i) == 2 || getInspectionValueType(n.i) == 5) && state==1&&PROJECT=='è£
å¤çµç¼'" |
| | | <el-select v-show="(getInspectionValueType(n.i) == 2 || getInspectionValueType(n.i) == 5) && state==1&&PROJECT=='è£
å¤çµç¼'" |
| | | class="table_input" v-model="n.v.v" @change="saveInsContext()"> |
| | | <el-option label="åæ ¼" :value="1"></el-option> |
| | | <el-option label="ä¸åæ ¼" :value="0"></el-option> |
| | | </el-select> |
| | | <template v-if="PROJECT=='æ£æµä¸å¿'||PROJECT=='è£
å¤çµç¼'&&getInspectionValueType(n.i) != 2 "> |
| | | <template v-show="PROJECT=='æ£æµä¸å¿'||PROJECT=='è£
å¤çµç¼'&&getInspectionValueType(n.i) != 2 "> |
| | | <span v-if="n.v.v===1" :style="`font-family:${n.v.ff} !important;color: green;`">åæ ¼</span> |
| | | <span v-else-if="n.v.v===0" :style="`font-family:${n.v.ff} !important;color: red;`">ä¸åæ ¼</span> |
| | | <span v-else :style="`font-family:${n.v.ff} !important;`">å¾
å®</span> |
| | |
| | | </template> |
| | | <template v-else-if="n.v.ps!=undefined && n.v.ps.value==='æ ·åç¼å·'"> |
| | | <div style="display: flex;flex-wrap: nowrap;align-items: center;width: 100%" :title="currentSample.sampleCode"> |
| | | <i class="el-icon-caret-left table_caret" style="width: 16px;" @click="caretSample(-1)" v-if="!currentFiberOpticTape&&!currentFiberOptic"></i> |
| | | <i class="el-icon-caret-left table_caret" style="width: 16px;" @click="caretSample(-1)" v-show="!currentFiberOpticTape&&!currentFiberOptic"></i> |
| | | <div :style="`font-family:${n.v.ff} !important;overflow: hidden;white-space: nowrap;width: calc(100% - 32px);`">{{currentSample.sampleCode}}</div> |
| | | <i class="el-icon-caret-right table_caret" style="width: 16px;" |
| | | v-if="!currentFiberOpticTape&&!currentFiberOptic"@click="caretSample(1)"></i> |
| | | v-show="!currentFiberOpticTape&&!currentFiberOptic"@click="caretSample(1)"></i> |
| | | </div> |
| | | </template> |
| | | <template v-else-if="n.v.ps!=undefined && n.v.ps.value==='æ ·ååå·'"> |
| | |
| | | <template v-else-if="n.v.ps!=undefined && n.v.ps.value==='å
纤带'"> |
| | | <div style="display: flex;flex-wrap: nowrap;align-items: center;"> |
| | | <i class="el-icon-caret-left table_caret" @click="caretTape(-1) |
| | | " v-if="currentFiberOpticTape"></i> |
| | | " v-show="currentFiberOpticTape"></i> |
| | | <div :style="`font-family:${n.v.ff} !important;`">{{currentFiberOpticTape?currentFiberOpticTape.code:''}}</div> |
| | | <i class="el-icon-caret-right table_caret" |
| | | v-if="currentFiberOpticTape" |
| | | v-show="currentFiberOpticTape" |
| | | @click="caretTape(1)"></i> |
| | | </div> |
| | | </template> |
| | | <template v-else-if="n.v.ps!=undefined && n.v.ps.value==='å
纤'"> |
| | | <div style="display: flex;flex-wrap: nowrap;align-items: center;"> |
| | | <i class="el-icon-caret-left table_caret" @click="caretOptic(-1)" |
| | | v-if="currentFiberOptic"></i> |
| | | v-show="currentFiberOptic"></i> |
| | | <div :style="`font-family:${n.v.ff} !important;`">{{currentFiberOptic?currentFiberOptic.color:''}} |
| | | </div> |
| | | <i |
| | | v-if="currentFiberOptic" class="el-icon-caret-right table_caret" @click="caretOptic(1)"></i> |
| | | v-show="currentFiberOptic" class="el-icon-caret-right table_caret" @click="caretOptic(1)"></i> |
| | | </div> |
| | | </template> |
| | | <span v-else :style="`font-family:${n.v.ff} !important;`" v-html="getValue(n.v)" ></span> |
| | | <span v-else :style="`font-family:${n.v.ff} !important;`" v-html="getValue(n.v)" v-once></span> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | |
| | | prop="resValue" |
| | | label="è¡°åå·®" |
| | | align="center" |
| | | v-if="wareForm.inspectionItemSubclass!='20(常温)'" |
| | | v-show="wareForm.inspectionItemSubclass!='20(常温)'" |
| | | min-width="90" :key="(new Date())+'4'"> |
| | | <template slot="header"> |
| | | {{ 'è¡°åå·®'+(index+1) }} |
| | |
| | | prop="insResult" |
| | | label="ç»è®º" |
| | | align="center" |
| | | min-width="70" v-if="wareForm.inspectionItemSubclass!='20(常温)'" :key="(new Date())+'5'"> |
| | | min-width="70" v-show="wareForm.inspectionItemSubclass!='20(常温)'" :key="(new Date())+'5'"> |
| | | <template slot="header"> |
| | | {{ 'ç»è®º'+(index+1) }} |
| | | </template> |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="å¾ªç¯æ¬¡æ°:" v-if="thermalCyclingInfo.inspectionItemClass=='ç´æµçµé»'"> |
| | | <el-form-item label="å¾ªç¯æ¬¡æ°:" v-show="thermalCyclingInfo.inspectionItemClass=='ç´æµçµé»'"> |
| | | <el-input-number v-model="thermalCyclingInfo.inspectionItem" :min="1" :max="thermalCyclingInfo.max" label="" style="margin-top:4px;width: 190px;" size="small" @change="thermalCyclingChange"></el-input-number> |
| | | </el-form-item> |
| | | <el-button type="primary" size="small" style="margin-bottom: 22px;margin-left: 30px;" @click="handleAddThermal" v-if="state==1">æ°å¢</el-button> |
| | | <el-button size="small" style="margin-bottom: 22px;" @click="handleDeleteThermal" v-if="state==1">å é¤</el-button> |
| | | <el-button type="primary" size="small" style="margin-bottom: 22px;margin-left: 30px;" @click="handleAddThermal" v-show="state==1">æ°å¢</el-button> |
| | | <el-button size="small" style="margin-bottom: 22px;" @click="handleDeleteThermal" v-show="state==1">å é¤</el-button> |
| | | </el-form> |
| | | <div class="table-container" v-loading="thermalCyclingLoading"> |
| | | <table border="1" cellpadding="10" class="thermal-table"> |
| | |
| | | <el-input clearable size="small" placeholder="" v-model="item.arr[i].value0" :disabled="state>1" @change="m=>saveThermalCycling(m,item,'value0')"></el-input> |
| | | <span style="font-size: 12px;margin-left: 13px;margin-right: 13px;"> â</span> |
| | | </div> |
| | | <div style="display: flex;align-items: center;" v-if="item.name!='ç¯å¢æ¸©åº¦'&&thermalCyclingInfo.inspectionItemClass=='ç´æµçµé»'"> |
| | | <div style="display: flex;align-items: center;" v-show="item.name!='ç¯å¢æ¸©åº¦'&&thermalCyclingInfo.inspectionItemClass=='ç´æµçµé»'"> |
| | | <label style="width: 100px;white-space: nowrap;font-size: 12px;">ç´æµçµé»:</label> |
| | | <el-input clearable size="small" :disabled="state>1" placeholder="" v-model="item.arr[i].value1" @change="saveThermalCycling"></el-input> |
| | | <span style="margin-left: 5px;font-size: 12px;"> Ω/km</span> |
| | |
| | | accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar' :headers="headers" :on-change="beforeUpload" |
| | | style="width: 80px !important;" |
| | | :on-error="onError" ref='upload'> |
| | | <el-button size="small" type="primary" v-if="state==1">éä»¶ä¸ä¼ </el-button></el-upload> |
| | | <el-button size="small" type="primary" v-show="state==1">éä»¶ä¸ä¼ </el-button></el-upload> |
| | | <ValueTable class="value-table" ref="fileList" :url="$api.insOrderPlan.getFileList" |
| | | :componentData="componentData0" |
| | | :delUrl="$api.insOrderPlan.delfile" |
| | |
| | | <el-drawer title="å
çº¤åæ¢" :visible.sync="fiberOpticVisible" :size="500"> |
| | | <el-table class="el-table" ref="fiberOpticTable" :data="fiberOptic" height="100%" tooltip-effect="dark" border |
| | | highlight-current-row @row-click="handleChangeOptic" :row-class-name="tableRowClassName" |
| | | :current-row-key="currentKey2" :row-key="record=>record.index" v-if="fiberOpticVisible"> |
| | | :current-row-key="currentKey2" :row-key="record=>record.index" v-show="fiberOpticVisible"> |
| | | <el-table-column type="index" align="center" label="åºå·" width="70px" :key="Math.random()"> |
| | | </el-table-column> |
| | | <el-table-column prop="bushColor" label="管å¥è²æ " min-width="100px" show-overflow-tooltip></el-table-column> |
| | |
| | | <el-drawer title="å
çº¤å¸¦åæ¢" :visible.sync="fiberOpticTapeVisible" :size="500"> |
| | | <el-table class="el-table" ref="fiberOpticTapeTable" :data="fiberOpticTape" height="100%" tooltip-effect="dark" border |
| | | highlight-current-row @row-click="handleChangeTape" :row-class-name="tableRowClassName" |
| | | :current-row-key="currentKey1" :row-key="record=>record.index" v-if="fiberOpticTapeVisible"> |
| | | :current-row-key="currentKey1" :row-key="record=>record.index" v-show="fiberOpticTapeVisible"> |
| | | <el-table-column type="index" align="center" label="åºå·" width="70px" :key="Math.random()"> |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="å
纤带ç¼å·" min-width="110px" show-overflow-tooltip></el-table-column> |
| | |
| | | <el-drawer title="å¥ç®¡åæ¢" :visible.sync="bushingVisible" :size="500"> |
| | | <el-table class="el-table" ref="bushingTable" :data="bushing" height="100%" tooltip-effect="dark" border |
| | | highlight-current-row @row-click="handleChangeBushing" :row-class-name="tableRowClassName" |
| | | :current-row-key="currentKey0" :row-key="record=>record.index" v-if="bushingVisible"> |
| | | :current-row-key="currentKey0" :row-key="record=>record.index" v-show="bushingVisible"> |
| | | <el-table-column type="index" align="center" label="åºå·" width="70px" :key="Math.random()"> |
| | | </el-table-column> |
| | | <el-table-column prop="color" label="ç®¡è²æ " min-width="100px" show-overflow-tooltip></el-table-column> |
| | |
| | | <el-drawer title="æ ·å忢" :visible.sync="sampleVisible" :size="500"> |
| | | <el-table class="el-table" ref="productTable" :data="sampleProduct" height="100%" tooltip-effect="dark" border |
| | | highlight-current-row @row-click="handleChangeSample" :row-class-name="tableRowClassName" |
| | | :current-row-key="currentKey" :row-key="record=>record.index" v-if="sampleVisible"> |
| | | :current-row-key="currentKey" :row-key="record=>record.index" v-show="sampleVisible"> |
| | | <el-table-column type="index" align="center" label="åºå·" width="70px" :key="Math.random()"> |
| | | </el-table-column> |
| | | <el-table-column prop="sampleCode" label="æ ·åç¼å·" min-width="100px" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="model" label="æ ·ååå·" min-width="100px" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="insState" label="æ£æµç¶æ" width="100px" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <el-tag v-for="(item, i) in typeList" :key="i" v-if="item.value == scope.row.insState" :type="item.type" |
| | | <el-tag v-for="(item, i) in typeList" :key="i" v-show="item.value == scope.row.insState" :type="item.type" |
| | | size="medium" style="margin-right: 5px;">{{item.label}}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </el-table-column> |
| | | <!-- æ£éªå伿ä¸ä¸ªæ¯å¦æé
奿 ·ååæ®µæ§å¶æ¾ç¤º --> |
| | | <el-table-column prop="joinModel" label="é
奿 ·ååå·" min-width="130px" show-overflow-tooltip |
| | | v-if="insOrder.mating>0"></el-table-column> |
| | | v-show="insOrder.mating>0"></el-table-column> |
| | | <el-table-column prop="joinName" label="é
奿 ·ååç§°" min-width="130px" show-overflow-tooltip |
| | | v-if="insOrder.mating>0"></el-table-column> |
| | | v-show="insOrder.mating>0"></el-table-column> |
| | | <el-table-column prop="joinNum" label="é
奿 ·åæ°é" min-width="130px" show-overflow-tooltip |
| | | v-if="insOrder.mating>0"></el-table-column> |
| | | v-show="insOrder.mating>0"></el-table-column> |
| | | </el-table> |
| | | </el-drawer> |
| | | <el-drawer title="ä»»å¡åæ¢" :visible.sync="taskVisible" :size="500"> |
| | |
| | | :componentData="componentData" :key="upIndex" style="height: 100%;"/> |
| | | </el-drawer> |
| | | <el-dialog title="æ£éªå¤æ ¸" :visible.sync="reviewDia" width="500px"> |
| | | <div class="body" style="display: flex;padding: 10px;" v-if="reviewDia"> |
| | | <div class="body" style="display: flex;padding: 10px;" v-show="reviewDia"> |
| | | <div class="search_label" style="width: 150px;"><span class="required-span">* </span>ä¸éè¿ççç±ï¼</div> |
| | | <div class="search_input" style="width: 100%;"> |
| | | <el-input size="small" clearable v-model="noReason" type="textarea" :autosize="{ minRows: 4}"></el-input> |
| | |
| | | return |
| | | } |
| | | this.dataAcquisitionInfo = res.data |
| | | // å Worker åéæ¶æ¯ï¼å¼å§å¤çé»è¾ |
| | | this.worker0.postMessage(JSON.stringify({ |
| | | dataAcquisitionInfo: this.dataAcquisitionInfo, |
| | | list:this.tableList[0].arr |
| | | })); |
| | | try { |
| | | // å Worker åéæ¶æ¯ï¼å¼å§å¤çé»è¾ |
| | | this.worker0.postMessage(JSON.stringify({ |
| | | dataAcquisitionInfo: this.dataAcquisitionInfo, |
| | | list:this.tableList[0].arr |
| | | })); |
| | | } catch (error) { |
| | | console.log(1111,error); |
| | | } |
| | | // çå¬ Worker è¿åçç»æ |
| | | this.worker0.onmessage = (event) => { |
| | | let result = JSON.parse(event.data); |
| | |
| | | this.tableLists = this.currentSample.insProduct.filter(m => { |
| | | let num0 = mySet1.size; |
| | | if (m.templateId != null&&m.template != null) { |
| | | mySet1.add(JSON.stringify({ |
| | | template: m.template, |
| | | templateId: m.templateId |
| | | })) |
| | | try { |
| | | mySet1.add(JSON.stringify({ |
| | | template: m.template, |
| | | templateId: m.templateId |
| | | })) |
| | | } catch (error) { |
| | | console.log(222,error); |
| | | } |
| | | } |
| | | let num1 = mySet1.size; |
| | | if (num1 > num0) { |
| | |
| | | this.tableLists = list.filter(m => { |
| | | let num0 = mySet1.size; |
| | | if (m.templateId != null&&m.template != null) { |
| | | mySet1.add(JSON.stringify({ |
| | | template: m.template, |
| | | templateId: m.templateId |
| | | })) |
| | | try { |
| | | mySet1.add(JSON.stringify({ |
| | | template: m.template, |
| | | templateId: m.templateId |
| | | })) |
| | | } catch (error) { |
| | | console.log(333,error); |
| | | } |
| | | } |
| | | let num1 = mySet1.size; |
| | | if (num1 > num0) { |
| | |
| | | n.v.v = n.v.v.replace('/', '') |
| | | } |
| | | } |
| | | // å Worker åéæ¶æ¯ï¼å¼å§å¤çé»è¾ |
| | | this.worker.postMessage(JSON.stringify({ |
| | | code: code, |
| | | tableList:this.tableList, |
| | | excelMethodList:this.excelMethodList, |
| | | comparisonList:this.comparisonList, |
| | | currentSample:this.currentSample, |
| | | PROJECT:this.PROJECT, |
| | | param:this.param |
| | | })); |
| | | try { |
| | | // å Worker åéæ¶æ¯ï¼å¼å§å¤çé»è¾ |
| | | this.worker.postMessage(JSON.stringify({ |
| | | code: code, |
| | | tableList:this.tableList, |
| | | excelMethodList:this.excelMethodList, |
| | | comparisonList:this.comparisonList, |
| | | currentSample:this.currentSample, |
| | | PROJECT:this.PROJECT, |
| | | param:this.param |
| | | })); |
| | | } catch (error) { |
| | | console.log(444,error); |
| | | } |
| | | |
| | | // çå¬ Worker è¿åçç»æ |
| | | this.worker.onmessage = (event) => { |
| | |
| | | } |
| | | this.tableList[0].insProductResult[m].push(obj); |
| | | }) |
| | | try { |
| | | this.tableList[0].insProductResult[m] = JSON.stringify(this.tableList[0].insProductResult[m]) |
| | | } catch (error) { |
| | | console.log(555,error); |
| | | } |
| | | } |
| | | this.tableList[0].insProductResult[m] = JSON.stringify(this.tableList[0].insProductResult[m]) |
| | | break; |
| | | case 'insValue': |
| | | if (value && value.length > 0) { |
| | |
| | | } |
| | | this.tableList[0].insProductResult[m].push(obj); |
| | | }) |
| | | try { |
| | | this.tableList[0].insProductResult[m] = JSON.stringify(this.tableList[0].insProductResult[m]) |
| | | } catch (error) { |
| | | console.log(666,error); |
| | | } |
| | | } |
| | | this.tableList[0].insProductResult[m] = JSON.stringify(this.tableList[0].insProductResult[m]) |
| | | break; |
| | | case 'equipValue': |
| | | if (value && value.length > 0) { |
| | |
| | | } |
| | | this.tableList[0].insProductResult[m].push(obj); |
| | | }) |
| | | try { |
| | | this.tableList[0].insProductResult[m] = JSON.stringify(this.tableList[0].insProductResult[m]) |
| | | } catch (error) { |
| | | console.log(777,error); |
| | | } |
| | | } |
| | | this.tableList[0].insProductResult[m] = JSON.stringify(this.tableList[0].insProductResult[m]) |
| | | break; |
| | | case 'equipName': |
| | | if (value && value.length > 0) { |
| | |
| | | } |
| | | this.tableList[0].insProductResult[m].push(obj); |
| | | }) |
| | | try { |
| | | this.tableList[0].insProductResult[m] = JSON.stringify(this.tableList[0].insProductResult[m]) |
| | | } catch (error) { |
| | | console.log(888,error); |
| | | } |
| | | } |
| | | this.tableList[0].insProductResult[m] = JSON.stringify(this.tableList[0].insProductResult[m]) |
| | | break; |
| | | case 'resValue': |
| | | this.tableList[0].lastValue = value?value.v.v:'' |
| | |
| | | return |
| | | }, |
| | | saveInsContext() { |
| | | // console.profile() |
| | | // console.log(1111,this.param) |
| | | if(this.param){ |
| | | this.$axios.post(this.$api.insOrderPlan.saveInsContext, { |
| | | param: JSON.stringify(this.param) |
| | | }).then(res => { |
| | | if (res.code == 201) { |
| | | this.$message.error('ä¿å失败') |
| | | return |
| | | } |
| | | this.$message.success('å·²ä¿å') |
| | | }) |
| | | try { |
| | | if(this.param){ |
| | | this.$axios.post(this.$api.insOrderPlan.saveInsContext, { |
| | | param: JSON.stringify(this.param) |
| | | }).then(res => { |
| | | if (res.code == 201) { |
| | | this.$message.error('ä¿å失败') |
| | | return |
| | | } |
| | | this.$message.success('å·²ä¿å') |
| | | }) |
| | | } |
| | | }catch (error) { |
| | | console.log(999,error); |
| | | } |
| | | }, |
| | | changeEquip(val, n) { |