src/components/do/b1-inspect-order-plan/circuit-parameters1.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/do/b1-inspect-order-plan/circuit-parameters2.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/do/b1-inspect-order-plan/circuit-parameters3.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/do/b1-inspect-order-plan/circuit-parameters1.vue
@@ -5,22 +5,22 @@ <el-col :span="17"> <el-row> <el-col :span="23" style="display: flex;flex-wrap: wrap;"> <table border="1" cellpadding="10" style="margin: 4px 10px 10px 0;width: 32%;" v-for="(item,index) in insProductNew" :key="index + 'ppp'" v-show="isMore?true:(index<3?true:false)"> <table border="1" cellpadding="10" style="margin: 4px 10px 10px 0;width: 32%;" v-for="(item, index) in insProductNew" :key="index + 'ppp'" v-show="isMore ? true : (index < 3 ? true : false)"> <tr> <td style="text-align: center;background: #F0F1F5;"> <el-tooltip effect="dark" :content="item.inspectionItemSubclass" placement="top-start"><span style="display: inline-block;width: 95px;" class="single-line-ellipsis">{{ item.inspectionItemSubclass }}</span> <el-tooltip effect="dark" :content="item.inspectionItemSubclass" placement="top-start"><span style="display: inline-block;width: 95px;" class="single-line-ellipsis">{{ item.inspectionItemSubclass }}</span> </el-tooltip> </td> <td> <el-input size="small" placeholder="设备名称" v-model="item.equipName" readonly></el-input> </td> <td> <el-select v-model="item.equipValue" placeholder="设备编码" size="small" :disabled="state>1" @focus="methodFocus(item)" @change="m=>handleEquip(m,item)"> <el-option v-for="m in item.equipOptions" :key="m.value" :label="m.value" :value="m.value"> <el-select v-model="item.equipValue" placeholder="设备编码" size="small" :disabled="state > 1" @focus="methodFocus(item)" @change="m => handleEquip(m, item)"> <el-option v-for="m in item.equipOptions" :key="m.value" :label="m.value" :value="m.value"> </el-option> </el-select> </td> @@ -34,14 +34,19 @@ </el-row> </el-col> <el-col :span="7"> <div style="display: flex;align-items: center;justify-content: flex-end;flex-wrap: wrap;" class="btns" v-if="!isLook"> <el-button type="primary" size="small" @click="addList(allBandList,'频段')" :disabled="state>1" style="margin: 4px;">添加频段</el-button> <el-button type="success" size="small" @click="addList(angleList)" :disabled="state>1" style="margin: 4px;">添加角度</el-button> <el-button size="small" @click="deleteList(angleList.length-1,angleList)" :disabled="state>1" style="margin: 4px;" type="danger">删除角度</el-button> <div style="display: flex;align-items: center;justify-content: flex-end;flex-wrap: wrap;" class="btns" v-if="!isLook"> <el-button type="primary" size="small" @click="addList(allBandList, '频段')" :disabled="state > 1" style="margin: 4px;">添加频段</el-button> <el-button type="success" size="small" @click="addList(angleList)" :disabled="state > 1" style="margin: 4px;">添加角度</el-button> <el-button size="small" @click="deleteList(angleList.length - 1, angleList)" :disabled="state > 1" style="margin: 4px;" type="danger">删除角度</el-button> </div> </el-col> </el-row> <el-row :gutter="5" style="font-size: 18px;font-weight: 700;background: #F0F1F5;padding: 16px 0;box-sizing: border-box;width: 100%;"> <el-row :gutter="5" style="font-size: 18px;font-weight: 700;background: #F0F1F5;padding: 16px 0;box-sizing: border-box;width: 100%;"> <el-col :span="2"> <div style="text-align: center;">检验项目</div> </el-col> @@ -62,23 +67,23 @@ <div class="circuit-parameters-item-title"> <span>频段:</span> <el-select v-model="h.band" placeholder="请选择" size="small" style="width: 200px;" :disabled="state>1"> <el-option v-for="item in bandList" :key="item.value" :label="item.label" :value="item.value"> <el-option v-for="item in bandList" :key="item.value" :label="item.label" :value="item.value"> </el-option> </el-select> <el-button size="small" @click="deleteList(y,allBandList,'删除频段')" :disabled="state>1" style="margin-left: 16px;" type="danger">删除频段</el-button> <el-button type="primary" size="small" @click="addList(h.projectList,'互调')" style="margin-left: 16px;" :disabled="state>1" v-show="!isLook&&intermodulationNum>0">添加互调</el-button> <el-button size="small" @click="deleteList(y, allBandList, '删除频段')" :disabled="state > 1" style="margin-left: 16px;" type="danger">删除频段</el-button> <el-button type="primary" size="small" @click="addList(h.projectList, '互调')" style="margin-left: 16px;" :disabled="state > 1" v-show="!isLook && intermodulationNum > 0">添加互调</el-button> <!-- <el-button size="small" @click="deleteList(0,h.projectList,'互调')" :disabled="state>1" v-show="!isLook&&intermodulationNum>0">删除互调</el-button> --> <el-button type="primary" size="small" @click="save(h,y)" :disabled="state>1" :loading="loading[y]" v-show="!isLook">保 存</el-button> <el-button type="primary" size="small" @click="save(h, y)" :disabled="state > 1" :loading="loading[y]" v-show="!isLook">保 存</el-button> </div> <el-divider></el-divider> <div class="circuit-parameters-item-content"> <template v-for="(n,j) in h.projectList"> <!-- 电压驻波比 --> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('驻波比')||n.inspectionItemSubclass.includes('隔离度')"> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('驻波比') || n.inspectionItemSubclass.includes('隔离度')"> <el-col :span="2"> <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> </el-col> @@ -101,25 +106,30 @@ </tr> <tr v-for="(item,index) in n.angleList" :key="index + 'eee'"> <td> <el-input size="small" placeholder="角度" v-model="item.value" @blur="handleAngle(item.value,index,h.band)" :disabled="state>1"></el-input> <el-input size="small" placeholder="角度" v-model="item.value" @blur="handleAngle(item.value, index, h.band)" :disabled="state > 1"></el-input> </td> <td v-for="(m,i) in n.portList" :key="i+'ggg'"> <el-input size="small" placeholder="最差值" v-model="n.value[index][i]" v-if="n.value[index]" :disabled="state>1"></el-input> <el-input size="small" placeholder="最差值" v-model="n.value[index][i]" v-if="n.value[index]" :disabled="state > 1"></el-input> </td> </tr> </table> </div> </el-col> <el-col :span="1"> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m=>changePort(m,n.portList)" :disabled="state>1"></el-input-number> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m => changePort(m, n.portList)" :disabled="state > 1"></el-input-number> </el-col> <el-col :span="1"> <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'不合格':(n.result===1?'合格':(n.result===3?'不判定':(n.result===3?'不判定':'待定'))) }} <div style="text-align: center;" :class="{ red: n.result === 0, green: n.result === 1 }">{{ n.result === 0 ? '不合格' : (n.result === 1 ? '合格' : (n.result === 3 ? '不判定' : (n.result === 3 ?'不判定':'待定'))) }} </div> </el-col> </el-row> <!-- 互调 --> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('互调')"> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('互调')"> <el-col :span="2"> <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> </el-col> @@ -137,15 +147,15 @@ <td :colspan="n.portList.length+1"> <div style="display: flex;align-items: center;"> <!-- <el-input size="small" placeholder="频段" v-model="n.often" :disabled="state>1" @blur="handlePort(n)"></el-input> --> <el-select v-model="n.often" placeholder="请选择" size="small" style="width: 200px;" :disabled="state>1"> <el-option v-for="item in bandList0" :key="item.value" :label="item.label" <el-select v-model="n.often" placeholder="请选择" size="small" style="width: 200px;" :disabled="state > 1"> <el-option v-for="item in bandList0" :key="item.value" :label="item.label" :value="item.value"> </el-option> </el-select> <el-button type="danger" icon="el-icon-delete" circle size="small" @click="deleteList(j,h.projectList,'互调')" :disabled="state>1" v-show="!isLook&&intermodulationNum>0" style="margin-left: 20px;"></el-button> <el-button type="danger" icon="el-icon-delete" circle size="small" @click="deleteList(j, h.projectList, '互调')" :disabled="state > 1" v-show="!isLook && intermodulationNum > 0" style="margin-left: 20px;"></el-button> </div> </td> </tr> @@ -164,25 +174,30 @@ </tr> <tr v-for="(item,index) in n.angleList" :key="index + 'eee'"> <td> <el-input size="small" placeholder="角度" v-model="item.value" :disabled="state>1" @blur="handleAngle(item.value,index,h.band)"></el-input> <el-input size="small" placeholder="角度" v-model="item.value" :disabled="state > 1" @blur="handleAngle(item.value, index, h.band)"></el-input> </td> <td v-for="(m,i) in n.portList" :key="i+'ggg'"> <el-input size="small" placeholder="最差值" v-model="n.value[index][i]" v-if="n.value[index]" :disabled="state>1"></el-input> <el-input size="small" placeholder="最差值" v-model="n.value[index][i]" v-if="n.value[index]" :disabled="state > 1"></el-input> </td> </tr> </table> </div> </el-col> <el-col :span="1"> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m=>changePort(m,n.portList)" :disabled="state>1"></el-input-number> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m => changePort(m, n.portList)" :disabled="state > 1"></el-input-number> </el-col> <el-col :span="1"> <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'不合格':(n.result===1?'合格':(n.result===3?'不判定':(n.result===3?'不判定':'待定'))) }} <div style="text-align: center;" :class="{ red: n.result === 0, green: n.result === 1 }">{{ n.result === 0 ? '不合格' : (n.result === 1 ? '合格' : (n.result === 3 ? '不判定' : (n.result === 3 ?'不判定':'待定'))) }} </div> </el-col> </el-row> <!-- 幅度偏差/最大相位偏差 --> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('偏差')"> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('偏差')"> <el-col :span="2"> <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> </el-col> @@ -210,25 +225,30 @@ </tr> <tr v-for="(item,index) in n.angleList" :key="index + 'eee'"> <td> <el-input size="small" placeholder="角度" v-model="item.value" :disabled="state>1" @blur="handleAngle(item.value,index,h.band)"></el-input> <el-input size="small" placeholder="角度" v-model="item.value" :disabled="state > 1" @blur="handleAngle(item.value, index, h.band)"></el-input> </td> <td v-for="(m,i) in n.portList" :key="i+'ggg'"> <el-input size="small" placeholder="最差值" v-model="n.value[index][i]" v-if="n.value[index]" :disabled="state>1"></el-input> <el-input size="small" placeholder="最差值" v-model="n.value[index][i]" v-if="n.value[index]" :disabled="state > 1"></el-input> </td> </tr> </table> </div> </el-col> <el-col :span="1"> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m=>changePort(m,n.portList)" :disabled="state>1"></el-input-number> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m => changePort(m, n.portList)" :disabled="state > 1"></el-input-number> </el-col> <el-col :span="1"> <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'不合格':(n.result===1?'合格':(n.result===3?'不判定':'待定')) }} <div style="text-align: center;" :class="{ red: n.result === 0, green: n.result === 1 }">{{ n.result === 0 ? '不合格' : (n.result === 1 ? '合格' : (n.result === 3 ?'不判定':'待定')) }} </div> </el-col> </el-row> <!-- 最大耦合度/最小耦合度 --> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('耦合度')"> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('耦合度')"> <el-col :span="2"> <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> </el-col> @@ -245,23 +265,27 @@ <td>角度</td> <td> <div style="display: flex;align-items: center;"> <el-input size="small" placeholder="频点" v-model="n.often" :disabled="state>1" @blur="handlePort(n)"></el-input> <el-input size="small" placeholder="频点" v-model="n.often" :disabled="state > 1" @blur="handlePort(n)"></el-input> </div> </td> </tr> <tr v-for="(item,index) in n.angleList" :key="index + 'eee'"> <td> <el-input size="small" placeholder="角度" v-model="item.value" :disabled="state>1" @blur="handleAngle(item.value,index,h.band)"></el-input> <el-input size="small" placeholder="角度" v-model="item.value" :disabled="state > 1" @blur="handleAngle(item.value, index, h.band)"></el-input> </td> <td> <el-input size="small" placeholder="最差值" v-model="n.value[index][0]" :disabled="state>1"></el-input> <el-input size="small" placeholder="最差值" v-model="n.value[index][0]" :disabled="state > 1"></el-input> </td> </tr> </table> </div> </el-col> <el-col :span="1"> <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'不合格':(n.result===1?'合格':(n.result===3?'不判定':'待定')) }} <div style="text-align: center;" :class="{ red: n.result === 0, green: n.result === 1 }">{{ n.result === 0 ? '不合格' : (n.result === 1 ? '合格' : (n.result === 3 ?'不判定':'待定')) }} </div> </el-col> </el-row> @@ -662,7 +686,8 @@ headers: { 'Content-Type': 'application/json' }, noQs:true}).then(res => { noQs: true }).then(res => { if (res.code === 201) { this.$message.error('删除失败') return @@ -835,7 +860,8 @@ headers: { 'Content-Type': 'application/json' }, noQs:true}).then(res => { noQs: true }).then(res => { this.$set( this.loading, y, false) // this.loading[y] = false if (res.code === 201) { @@ -883,12 +909,14 @@ } arr0.push(obj0) }) let res = await this.$axios.post(this.$api.insOrderPlan.saveInsContext2s, {insProductResultDtos:arr0 let res = await this.$axios.post(this.$api.insOrderPlan.saveInsContext2s, { insProductResultDtos: arr0 }, { headers: { 'Content-Type': 'application/json' }, noQs:true}) noQs: true }) if(res.code===201){ this.$message.error('保存失败') return false @@ -939,6 +967,7 @@ position: relative; overflow: visible; } .circuit-parameters-item{ margin-bottom: 10px; border: 1px solid #eee; @@ -946,46 +975,57 @@ box-sizing: border-box; border-radius: 8px; } .circuit-parameters-item-title{ display: flex; align-items: center; } .thermal-table{ min-width: calc(100% - 10px); table-layout: fixed; } .thermal-table td,.thermal-table th { min-width: 70px; .thermal-table td, .thermal-table th { min-width: 120px; text-align: center; font-size: 14px; word-wrap: break-word; white-space: normal; padding: 5px; } .thermal-table .el-input{ display: flex; align-items: center; } .equip{ display: flex; align-items: center; } .red{ color: red; } .green{ color: green; } >>>.el-input-number { display: inline-flex; flex-direction: column !important; line-height: 26px; } >>>.el-input-number__increase, >>>.el-input-number__decrease { >>>.el-input-number__increase, >>>.el-input-number__decrease { width: 26px; height: 26px; } >>>.el-input-number__increase{ top: 36px; left: 10px; @@ -994,6 +1034,7 @@ background: #3A7BFA; color: #fff; } >>>.el-input-number__decrease{ top: -30px; border: 0px; @@ -1002,9 +1043,11 @@ background: #F56C6C; color: #fff; } >>>.el-input-number .el-input{ width: 50px; } >>>.el-input-number .el-input__inner{ width: 50px; padding: 0; src/components/do/b1-inspect-order-plan/circuit-parameters2.vue
@@ -5,22 +5,23 @@ <el-col :span="17"> <el-row> <el-col :span="23" style="display: flex;flex-wrap: wrap;"> <table border="1" cellpadding="10" style="margin: 4px 10px 10px 0;width: 32%;" v-for="(item,index) in insProductNew" :key="index + 'ppp'" v-show="isMore?true:(index<3?true:false)"> <table border="1" cellpadding="10" style="margin: 4px 10px 10px 0;width: 32%;" v-for="(item, index) in insProductNew" :key="index + 'ppp'" v-show="isMore ? true : (index < 3 ? true : false)"> <tr> <td style="text-align: center;background: #F0F1F5;"> <el-tooltip effect="dark" :content="item.inspectionItemSubclass" placement="top-start"><span style="display: inline-block;width: 95px;" class="single-line-ellipsis">{{ item.inspectionItemSubclass }}</span> <el-tooltip effect="dark" :content="item.inspectionItemSubclass" placement="top-start"><span style="display: inline-block;width: 95px;" class="single-line-ellipsis">{{ item.inspectionItemSubclass }}</span> </el-tooltip> </td> <td> <el-input size="small" placeholder="设备名称" v-model="item.equipName" readonly></el-input> </td> <td> <el-select v-model="item.equipValue" placeholder="设备编码" size="small" :disabled="state>1" @focus="methodFocus(item)" @change="m=>handleEquip(m,item)"> <el-option v-for="m in item.equipOptions" :key="m.value" :label="m.value" :value="m.value"> <el-select v-model="item.equipValue" placeholder="设备编码" size="small" :disabled="state > 1" @focus="methodFocus(item)" @change="m => handleEquip(m, item)"> <el-option v-for="m in item.equipOptions" :key="m.value" :label="m.value" :value="m.value"> </el-option> </el-select> </td> @@ -35,13 +36,17 @@ </el-col> <el-col :span="7" v-if="!isLook"> <div style="display: flex;align-items: center;justify-content: flex-end;" class="btns"> <el-button type="primary" size="small" @click="addList(allBandList,'频段')" :disabled="state>1" style="margin: 4px;">添加频段</el-button> <el-button type="success" size="small" @click="addList(angleList)" v-if="!(state>1)&&intermodulationNum>0" style="margin: 4px;">添加角度</el-button> <el-button size="small" @click="deleteList(angleList.length-1,angleList)" v-if="!(state>1)&&intermodulationNum>0" style="margin: 4px;" type="danger">删除角度</el-button> <el-button type="primary" size="small" @click="addList(allBandList, '频段')" :disabled="state > 1" style="margin: 4px;">添加频段</el-button> <el-button type="success" size="small" @click="addList(angleList)" v-if="!(state > 1) && intermodulationNum > 0" style="margin: 4px;">添加角度</el-button> <el-button size="small" @click="deleteList(angleList.length - 1, angleList)" v-if="!(state > 1) && intermodulationNum > 0" style="margin: 4px;" type="danger">删除角度</el-button> </div> </el-col> </el-row> <el-row :gutter="5" style="font-size: 18px;font-weight: 700;background: #F0F1F5;padding: 16px 0;box-sizing: border-box;width: 100%;"> <el-row :gutter="5" style="font-size: 18px;font-weight: 700;background: #F0F1F5;padding: 16px 0;box-sizing: border-box;width: 100%;"> <el-col :span="2"> <div style="text-align: center;">检验项目</div> </el-col> @@ -62,23 +67,23 @@ <div class="circuit-parameters-item-title"> <span>频段:</span> <el-select v-model="h.band" placeholder="请选择" size="small" style="width: 200px;" :disabled="state>1"> <el-option v-for="item in bandList" :key="item.value" :label="item.label" :value="item.value"> <el-option v-for="item in bandList" :key="item.value" :label="item.label" :value="item.value"> </el-option> </el-select> <el-button size="small" @click="deleteList(y,allBandList,'删除频段')" :disabled="state>1" style="margin-left: 16px;" type="danger">删除频段</el-button> <el-button type="primary" size="small" @click="addList(h.projectList,'互调')" style="margin-left: 16px;" v-if="intermodulationNum>0&&!(state>1)">添加互调</el-button> <el-button size="small" @click="deleteList(y, allBandList, '删除频段')" :disabled="state > 1" style="margin-left: 16px;" type="danger">删除频段</el-button> <el-button type="primary" size="small" @click="addList(h.projectList, '互调')" style="margin-left: 16px;" v-if="intermodulationNum > 0 && !(state > 1)">添加互调</el-button> <!-- <el-button size="small" @click="deleteList(0,h.projectList,'互调')" v-if="intermodulationNum>0&&!(state>1)">删除互调</el-button> --> <el-button type="primary" size="small" @click="save(h,y)" :disabled="state>1" :loading="loading[y]" style="margin-left: 16px;" v-show="!isLook">保 存</el-button> <el-button type="primary" size="small" @click="save(h, y)" :disabled="state > 1" :loading="loading[y]" style="margin-left: 16px;" v-show="!isLook">保 存</el-button> </div> <el-divider></el-divider> <div class="circuit-parameters-item-content"> <template v-for="(n,j) in h.projectList"> <!-- 电压驻波比/同极化隔离度/异极化隔离度 --> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('驻波比')||n.inspectionItemSubclass.includes('隔离度')"> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('驻波比') || n.inspectionItemSubclass.includes('隔离度')"> <el-col :span="2"> <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> </el-col> @@ -104,22 +109,26 @@ <span>最差值</span> </td> <td v-for="(m,i) in n.portList" :key="i+'ggg'"> <el-input size="small" placeholder="最差值" v-model="n.value[0][i]" v-if="n.value" :disabled="state>1"></el-input> <el-input size="small" placeholder="最差值" v-model="n.value[0][i]" v-if="n.value" :disabled="state > 1"></el-input> </td> </tr> </table> </div> </el-col> <el-col :span="1"> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m=>changePort(m,n.portList)" :disabled="state>1"></el-input-number> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m => changePort(m, n.portList)" :disabled="state > 1"></el-input-number> </el-col> <el-col :span="1"> <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'不合格':(n.result===1?'合格':(n.result===3?'不判定':'待定')) }} <div style="text-align: center;" :class="{ red: n.result === 0, green: n.result === 1 }">{{ n.result === 0 ? '不合格' : (n.result === 1 ? '合格' : (n.result === 3 ? '不判定' : '待定')) }} </div> </el-col> </el-row> <!-- 互调 --> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('互调')"> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('互调')"> <el-col :span="2"> <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> </el-col> @@ -137,15 +146,15 @@ <td :colspan="n.portList.length+1"> <div style="display: flex;align-items: center;"> <!-- <el-input size="small" placeholder="频点" v-model="n.often" :disabled="state>1" @blur="handlePort(n)"></el-input> --> <el-select v-model="n.often" placeholder="请选择" size="small" style="width: 200px;" :disabled="state>1"> <el-option v-for="item in bandList0" :key="item.value" :label="item.label" <el-select v-model="n.often" placeholder="请选择" size="small" style="width: 200px;" :disabled="state > 1"> <el-option v-for="item in bandList0" :key="item.value" :label="item.label" :value="item.value"> </el-option> </el-select> <el-button type="danger" icon="el-icon-delete" circle size="small" @click="deleteList(j,h.projectList,'互调')" :disabled="state>1" v-show="!isLook&&intermodulationNum>0" style="margin-left: 20px;"></el-button> <el-button type="danger" icon="el-icon-delete" circle size="small" @click="deleteList(j, h.projectList, '互调')" :disabled="state > 1" v-show="!isLook && intermodulationNum > 0" style="margin-left: 20px;"></el-button> </div> </td> </tr> @@ -159,20 +168,24 @@ </tr> <tr v-for="(item,index) in n.angleList" :key="index + 'eee'"> <td> <el-input size="small" placeholder="角度" v-model="item.value" :disabled="state>1" @blur="handleAngle(item.value,index,h.band)"></el-input> <el-input size="small" placeholder="角度" v-model="item.value" :disabled="state > 1" @blur="handleAngle(item.value, index, h.band)"></el-input> </td> <td v-for="(m,i) in n.portList" :key="i+'ggg'"> <el-input size="small" placeholder="最差值" v-model="n.value[index][i]" v-if="n.value[index]" :disabled="state>1"></el-input> <el-input size="small" placeholder="最差值" v-model="n.value[index][i]" v-if="n.value[index]" :disabled="state > 1"></el-input> </td> </tr> </table> </div> </el-col> <el-col :span="1"> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m=>changePort(m,n.portList)" :disabled="state>1"></el-input-number> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m => changePort(m, n.portList)" :disabled="state > 1"></el-input-number> </el-col> <el-col :span="1"> <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'不合格':(n.result===1?'合格':(n.result===3?'不判定':'待定')) }} <div style="text-align: center;" :class="{ red: n.result === 0, green: n.result === 1 }">{{ n.result === 0 ? '不合格' : (n.result === 1 ? '合格' : (n.result === 3 ? '不判定' : '待定')) }} </div> </el-col> </el-row> @@ -535,7 +548,8 @@ headers: { 'Content-Type': 'application/json' }, noQs:true}).then(res => { noQs: true }).then(res => { if (res.code === 201) { this.$message.error('删除失败') return @@ -711,7 +725,8 @@ headers: { 'Content-Type': 'application/json' }, noQs:true}).then(res => { noQs: true }).then(res => { this.$set( this.loading, y, false) // this.loading[y] = false if (res.code === 201) { @@ -759,12 +774,14 @@ } arr0.push(obj0) }) let res = await this.$axios.post(this.$api.insOrderPlan.saveInsContext2s, {insProductResultDtos:arr0 let res = await this.$axios.post(this.$api.insOrderPlan.saveInsContext2s, { insProductResultDtos: arr0 }, { headers: { 'Content-Type': 'application/json' }, noQs:true}) noQs: true }) if(res.code===201){ this.$message.error('保存失败') return false @@ -819,46 +836,57 @@ box-sizing: border-box; border-radius: 8px; } .circuit-parameters-item-title{ display: flex; align-items: center; } .thermal-table{ min-width: calc(100% - 10px); table-layout: fixed; } .thermal-table td,.thermal-table th { min-width: 70px; .thermal-table td, .thermal-table th { min-width: 120px; text-align: center; font-size: 14px; word-wrap: break-word; white-space: normal; padding: 5px; } .thermal-table .el-input{ display: flex; align-items: center; } .equip{ display: flex; align-items: center; } .red{ color: red; } .green{ color: green; } >>>.el-input-number { display: inline-flex; flex-direction: column !important; line-height: 26px; } >>>.el-input-number__increase, >>>.el-input-number__decrease { >>>.el-input-number__increase, >>>.el-input-number__decrease { width: 26px; height: 26px; } >>>.el-input-number__increase{ top: 36px; left: 10px; @@ -867,6 +895,7 @@ background: #3A7BFA; color: #fff; } >>>.el-input-number__decrease{ top: -30px; border: 0px; @@ -875,9 +904,11 @@ background: #F56C6C; color: #fff; } >>>.el-input-number .el-input{ width: 50px; } >>>.el-input-number .el-input__inner{ width: 50px; padding: 0; src/components/do/b1-inspect-order-plan/circuit-parameters3.vue
@@ -5,22 +5,23 @@ <el-col :span="17"> <el-row> <el-col :span="23" style="display: flex;flex-wrap: wrap;"> <table border="1" cellpadding="10" style="margin: 4px 10px 10px 0;width: 32%;" v-for="(item,index) in insProductNew" :key="index + 'ppp'" v-show="isMore?true:(index<3?true:false)"> <table border="1" cellpadding="10" style="margin: 4px 10px 10px 0;width: 32%;" v-for="(item, index) in insProductNew" :key="index + 'ppp'" v-show="isMore ? true : (index < 3 ? true : false)"> <tr> <td style="text-align: center;background: #F0F1F5;"> <el-tooltip effect="dark" :content="item.inspectionItemSubclass" placement="top-start"><span style="display: inline-block;width: 95px;" class="single-line-ellipsis">{{ item.inspectionItemSubclass }}</span> <el-tooltip effect="dark" :content="item.inspectionItemSubclass" placement="top-start"><span style="display: inline-block;width: 95px;" class="single-line-ellipsis">{{ item.inspectionItemSubclass }}</span> </el-tooltip> </td> <td> <el-input size="small" placeholder="设备名称" v-model="item.equipName" readonly></el-input> </td> <td> <el-select v-model="item.equipValue" placeholder="设备编码" size="small" :disabled="state>1" @focus="methodFocus(item)" @change="m=>handleEquip(m,item)"> <el-option v-for="m in item.equipOptions" :key="m.value" :label="m.value" :value="m.value"> <el-select v-model="item.equipValue" placeholder="设备编码" size="small" :disabled="state > 1" @focus="methodFocus(item)" @change="m => handleEquip(m, item)"> <el-option v-for="m in item.equipOptions" :key="m.value" :label="m.value" :value="m.value"> </el-option> </el-select> </td> @@ -34,12 +35,15 @@ </el-row> </el-col> <el-col :span="7"> <div style="display: flex;align-items: center;justify-content: flex-end;flex-wrap: wrap;" class="btns" v-if="!isLook"> <el-button type="primary" size="small" @click="addList(allBandList,'频段')" :disabled="state>1" style="margin: 4px;">添加频段</el-button> <div style="display: flex;align-items: center;justify-content: flex-end;flex-wrap: wrap;" class="btns" v-if="!isLook"> <el-button type="primary" size="small" @click="addList(allBandList, '频段')" :disabled="state > 1" style="margin: 4px;">添加频段</el-button> </div> </el-col> </el-row> <el-row :gutter="5" style="font-size: 18px;font-weight: 700;background: #F0F1F5;padding: 16px 0;box-sizing: border-box;width: 100%;"> <el-row :gutter="5" style="font-size: 18px;font-weight: 700;background: #F0F1F5;padding: 16px 0;box-sizing: border-box;width: 100%;"> <el-col :span="2"> <div style="text-align: center;">检验项目</div> </el-col> @@ -60,21 +64,20 @@ <div class="circuit-parameters-item-title"> <span>频段:</span> <el-select v-model="h.band" placeholder="请选择" size="small" style="width: 200px;" :disabled="state>1"> <el-option v-for="item in bandList" :key="item.value" :label="item.label" :value="item.value"> <el-option v-for="item in bandList" :key="item.value" :label="item.label" :value="item.value"> </el-option> </el-select> <el-button size="small" @click="deleteList(y,allBandList,'删除频段')" :disabled="state>1" style="margin-left: 16px;" type="danger">删除频段</el-button> <el-button type="primary" size="small" @click="save(h,y)" :disabled="state>1" :loading="loading[y]" v-show="!isLook">保 存</el-button> <el-button size="small" @click="deleteList(y, allBandList, '删除频段')" :disabled="state > 1" style="margin-left: 16px;" type="danger">删除频段</el-button> <el-button type="primary" size="small" @click="save(h, y)" :disabled="state > 1" :loading="loading[y]" v-show="!isLook">保 存</el-button> </div> <el-divider></el-divider> <div class="circuit-parameters-item-content"> <template v-for="(n,j) in h.projectList"> <!-- 电压驻波比 --> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('驻波比')||n.inspectionItemSubclass.includes('隔离度')||n.inspectionItemSubclass.includes('带外抑制')||n.inspectionItemSubclass.includes('带内波动')||n.inspectionItemSubclass.includes('插入损耗')"> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('驻波比') || n.inspectionItemSubclass.includes('隔离度') || n.inspectionItemSubclass.includes('带外抑制') || n.inspectionItemSubclass.includes('带内波动') || n.inspectionItemSubclass.includes('插入损耗')"> <el-col :span="2"> <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> </el-col> @@ -100,22 +103,27 @@ 最差值 </td> <td v-for="(m,i) in n.portList" :key="i+'ggg'"> <el-input size="small" placeholder="最差值" v-model="n.value[0][i]" v-if="n.value[0]" :disabled="state>1"></el-input> <el-input size="small" placeholder="最差值" v-model="n.value[0][i]" v-if="n.value[0]" :disabled="state > 1"></el-input> </td> </tr> </table> </div> </el-col> <el-col :span="1"> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m=>changePort(m,n.portList)" :disabled="state>1"></el-input-number> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m => changePort(m, n.portList)" :disabled="state > 1"></el-input-number> </el-col> <el-col :span="1"> <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'不合格':(n.result===1?'合格':(n.result===3?'不判定':(n.result===3?'不判定':'待定'))) }} <div style="text-align: center;" :class="{ red: n.result === 0, green: n.result === 1 }">{{ n.result === 0 ? '不合格' : (n.result === 1 ? '合格' : (n.result === 3 ? '不判定' : (n.result === 3 ? '不判定' : '待定'))) }} </div> </el-col> </el-row> <!-- 互调 --> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('互调')"> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('互调')"> <el-col :span="2"> <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> </el-col> @@ -133,11 +141,9 @@ <td :colspan="n.portList.length+1"> <div style="display: flex;align-items: center;"> <!-- <el-input size="small" placeholder="频段" v-model="n.often" :disabled="state>1" @blur="handlePort(n)"></el-input> --> <el-select v-model="n.often" placeholder="请选择" size="small" style="width: 200px;" :disabled="state>1"> <el-option v-for="item in bandList0" :key="item.value" :label="item.label" <el-select v-model="n.often" placeholder="请选择" size="small" style="width: 200px;" :disabled="state > 1"> <el-option v-for="item in bandList0" :key="item.value" :label="item.label" :value="item.value"> </el-option> </el-select> @@ -157,22 +163,27 @@ 最差值 </td> <td v-for="(m,i) in n.portList" :key="i+'ggg'"> <el-input size="small" placeholder="最差值" v-model="n.value[0][i]" v-if="n.value[0]" :disabled="state>1"></el-input> <el-input size="small" placeholder="最差值" v-model="n.value[0][i]" v-if="n.value[0]" :disabled="state > 1"></el-input> </td> </tr> </table> </div> </el-col> <el-col :span="1"> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m=>changePort(m,n.portList)" :disabled="state>1"></el-input-number> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m => changePort(m, n.portList)" :disabled="state > 1"></el-input-number> </el-col> <el-col :span="1"> <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'不合格':(n.result===1?'合格':(n.result===3?'不判定':(n.result===3?'不判定':'待定'))) }} <div style="text-align: center;" :class="{ red: n.result === 0, green: n.result === 1 }">{{ n.result === 0 ? '不合格' : (n.result === 1 ? '合格' : (n.result === 3 ? '不判定' : (n.result === 3 ? '不判定' : '待定'))) }} </div> </el-col> </el-row> <!-- 幅度偏差/最大相位偏差 --> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('偏差')"> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('偏差')"> <el-col :span="2"> <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> </el-col> @@ -198,22 +209,26 @@ 最差值 </td> <td v-for="(m,i) in n.portList" :key="i+'ggg'"> <el-input size="small" placeholder="最差值" v-model="n.value[0][i]" v-if="n.value[0]" :disabled="state>1"></el-input> <el-input size="small" placeholder="最差值" v-model="n.value[0][i]" v-if="n.value[0]" :disabled="state > 1"></el-input> </td> </tr> </table> </div> </el-col> <el-col :span="1"> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m=>changePort(m,n.portList)" :disabled="state>1"></el-input-number> <el-input-number v-model="n.portNum" :min="1" :max="100" label="数量" size="small" @change="m => changePort(m, n.portList)" :disabled="state > 1"></el-input-number> </el-col> <el-col :span="1"> <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'不合格':(n.result===1?'合格':(n.result===3?'不判定':'待定')) }} <div style="text-align: center;" :class="{ red: n.result === 0, green: n.result === 1 }">{{ n.result === 0 ? '不合格' : (n.result === 1 ? '合格' : (n.result === 3 ? '不判定' : '待定')) }} </div> </el-col> </el-row> <!-- 最大耦合度/最小耦合度 --> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('耦合度')"> <el-row :gutter="5" style="margin: 12px 0 0;display: flex;align-items: center;" v-if="n.inspectionItemSubclass.includes('耦合度')"> <el-col :span="2"> <div style="text-align: center;">{{ n.inspectionItemSubclass }}</div> </el-col> @@ -246,7 +261,8 @@ </div> </el-col> <el-col :span="1"> <div style="text-align: center;" :class="{red:n.result===0,green:n.result===1}">{{ n.result===0?'不合格':(n.result===1?'合格':(n.result===3?'不判定':'待定')) }} <div style="text-align: center;" :class="{ red: n.result === 0, green: n.result === 1 }">{{ n.result === 0 ? '不合格' : (n.result === 1 ? '合格' : (n.result === 3 ? '不判定' : '待定')) }} </div> </el-col> </el-row> @@ -557,7 +573,8 @@ headers: { 'Content-Type': 'application/json' }, noQs:true}).then(res => { noQs: true }).then(res => { if (res.code === 201) { this.$message.error('删除失败') return @@ -708,7 +725,8 @@ headers: { 'Content-Type': 'application/json' }, noQs:true}).then(res => { noQs: true }).then(res => { this.$set( this.loading, y, false) // this.loading[y] = false if (res.code === 201) { @@ -755,12 +773,14 @@ } arr0.push(obj0) }) let res = await this.$axios.post(this.$api.insOrderPlan.saveInsContext2s, {insProductResultDtos:arr0 let res = await this.$axios.post(this.$api.insOrderPlan.saveInsContext2s, { insProductResultDtos: arr0 }, { headers: { 'Content-Type': 'application/json' }, noQs:true}) noQs: true }) if(res.code===201){ this.$message.error('保存失败') return false @@ -809,6 +829,7 @@ position: relative; overflow: visible; } .circuit-parameters-item{ margin-bottom: 10px; border: 1px solid #eee; @@ -816,46 +837,57 @@ box-sizing: border-box; border-radius: 8px; } .circuit-parameters-item-title{ display: flex; align-items: center; } .thermal-table{ min-width: calc(100% - 10px); table-layout: fixed; } .thermal-table td,.thermal-table th { min-width: 70px; .thermal-table td, .thermal-table th { min-width: 120px; text-align: center; font-size: 14px; word-wrap: break-word; white-space: normal; padding: 5px; } .thermal-table .el-input{ display: flex; align-items: center; } .equip{ display: flex; align-items: center; } .red{ color: red; } .green{ color: green; } >>>.el-input-number { display: inline-flex; flex-direction: column !important; line-height: 26px; } >>>.el-input-number__increase, >>>.el-input-number__decrease { >>>.el-input-number__increase, >>>.el-input-number__decrease { width: 26px; height: 26px; } >>>.el-input-number__increase{ top: 36px; left: 10px; @@ -864,6 +896,7 @@ background: #3A7BFA; color: #fff; } >>>.el-input-number__decrease{ top: -30px; border: 0px; @@ -872,9 +905,11 @@ background: #F56C6C; color: #fff; } >>>.el-input-number .el-input{ width: 50px; } >>>.el-input-number .el-input__inner{ width: 50px; padding: 0;