From 6b994d09bd7cff484174d3d11355c2e456ce6ac0 Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期五, 11 四月 2025 14:03:01 +0800 Subject: [PATCH] 配置线芯修改 --- src/views/business/productOrder/components/auxiliaryWireCore.vue | 99 ++++++++++++++++++++----------------------------- 1 files changed, 40 insertions(+), 59 deletions(-) diff --git a/src/views/business/productOrder/components/auxiliaryWireCore.vue b/src/views/business/productOrder/components/auxiliaryWireCore.vue index 7545392..7dfe787 100644 --- a/src/views/business/productOrder/components/auxiliaryWireCore.vue +++ b/src/views/business/productOrder/components/auxiliaryWireCore.vue @@ -7,19 +7,15 @@ </el-radio-group> <el-form :model="auxiliaryWireCore" ref="entity" size="small" :inline="true"> <el-form-item label="鑺暟" prop="num"> - <el-select v-model="auxiliaryWireCore.num" allow-create - clearable - default-first-option - filterable - multiple - size="small"> - <el-option v-for="item in quantityList" :key="item.value" :label="item.label" :value="item.value"></el-option> + <el-select v-model="auxiliaryWireCore.num" allow-create clearable default-first-option filterable multiple + size="small"> + <el-option v-for="item in quantityList" :key="item.value" :label="item.label" + :value="item.value"></el-option> </el-select> </el-form-item> <el-form-item label="妫�楠屾爣鍑�" prop="standardMethodListId"> - <el-select v-model="auxiliaryWireCore.standardMethodListId" disabled placeholder="璇烽�夋嫨妫�楠屾爣鍑�" - size="small" - @change="(value)=>methodChange(value)"> + <el-select v-model="auxiliaryWireCore.standardMethodListId" disabled placeholder="璇烽�夋嫨妫�楠屾爣鍑�" size="small" + @change="(value) => methodChange(value)" multiple> <el-option v-for="item in standards" :key="item.id" :label="item.code" :value="item.id"> </el-option> </el-select> @@ -32,23 +28,19 @@ </div> </div> <div class="table"> - <el-table ref="productTable" v-loading="getProductLoad" :data="productList" - :row-class-name="tableRowClassName" border class="el-table" :height="'calc(100vh - 200px)'" - :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" - tooltip-effect="dark" @select="upProductSelect" - @selection-change="selectProduct" @select-all="handleAll"> + <el-table ref="productTable" v-loading="getProductLoad" :data="productList" :row-class-name="tableRowClassName" + border class="el-table" :height="'calc(100vh - 200px)'" + :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" tooltip-effect="dark" @select="upProductSelect" + @selection-change="selectProduct" @select-all="handleAll"> <el-table-column :selectable="selectable" type="selection" width="65"></el-table-column> - <el-table-column label="妫�楠岄」鍒嗙被" min-width="140" prop="inspectionItemClass" show-overflow-tooltip></el-table-column> + <el-table-column label="妫�楠岄」鍒嗙被" min-width="140" prop="inspectionItemClass" + show-overflow-tooltip></el-table-column> <el-table-column label="妫�楠岄」" min-width="140" prop="inspectionItem" show-overflow-tooltip> <template slot="header" slot-scope="scope"> <div style="display: flex;align-items: center;flex-direction: column;font-size: 14px"> <span>妫�楠岄」</span> - <el-input - v-if="active==1" - v-model="inspectionItem" - placeholder="璇疯緭鍏�" - size="mini" - @input="searchFilterList"/> + <el-input v-if="active == 1" v-model="inspectionItem" placeholder="璇疯緭鍏�" size="mini" + @input="searchFilterList" /> </div> </template> </el-table-column> @@ -56,36 +48,31 @@ <template slot="header" slot-scope="scope"> <div style="display: flex;align-items: center;flex-direction: column;font-size: 14px"> <span>妫�楠岄」瀛愰」</span> - <el-input - v-if="active==1" - v-model="inspectionItemSubclass" - placeholder="璇疯緭鍏�" - size="mini" - @input="searchFilterList"/> + <el-input v-if="active == 1" v-model="inspectionItemSubclass" placeholder="璇疯緭鍏�" size="mini" + @input="searchFilterList" /> </div> </template> </el-table-column> <el-table-column label="瑕佹眰鎻忚堪" min-width="220px" prop="tell"> <template slot-scope="scope"> - <el-input v-model="scope.row.tell" :autosize="{ minRows: 1, maxRows: 3}" clearable placeholder="瑕佹眰鎻忚堪" - size="small" type="textarea"></el-input> + <el-input v-model="scope.row.tell" :autosize="{ minRows: 1, maxRows: 3 }" clearable placeholder="瑕佹眰鎻忚堪" + size="small" type="textarea"></el-input> </template> </el-table-column> <el-table-column label="瑕佹眰鍊�" min-width="220px" prop="ask"> <template slot-scope="scope"> - <el-input v-model="scope.row.ask" :autosize="{ minRows: 1, maxRows: 3}" clearable placeholder="瑕佹眰鍊�" - size="small" type="textarea"></el-input> + <el-input v-model="scope.row.ask" :autosize="{ minRows: 1, maxRows: 3 }" clearable placeholder="瑕佹眰鍊�" + size="small" type="textarea"></el-input> </template> </el-table-column> <el-table-column label="鏉′欢" min-width="140" prop="radius" show-overflow-tooltip> <template slot-scope="scope"> - <el-input v-if="!scope.row.inspectionItem.includes('楂樻俯鍘嬪姏璇曢獙')" v-model="scope.row.radius" :autosize="{ minRows: 1, maxRows: 3}" clearable placeholder="瑕佹眰鎻忚堪" - size="small" type="textarea"> + <el-input v-if="!scope.row.inspectionItem.includes('楂樻俯鍘嬪姏璇曢獙')" v-model="scope.row.radius" + :autosize="{ minRows: 1, maxRows: 3 }" clearable placeholder="瑕佹眰鎻忚堪" size="small" type="textarea"> </el-input> <el-select v-if="scope.row.inspectionItem.includes('楂樻俯鍘嬪姏璇曢獙')" v-model="scope.row.radius" clearable - placeholder="鏉′欢" - size="small"> - <el-option v-for="(a,i) in JSON.parse(scope.row.radiusList)" :key="i" :label="a" :value="a"></el-option> + placeholder="鏉′欢" size="small"> + <el-option v-for="(a, i) in JSON.parse(scope.row.radiusList)" :key="i" :label="a" :value="a"></el-option> </el-select> </template> </el-table-column> @@ -93,12 +80,7 @@ <template slot="header" slot-scope="scope"> <div style="display: flex;align-items: center;flex-direction: column;font-size: 14px"> <span>璇曢獙鏂规硶</span> - <el-input - v-if="active==1" - v-model="methodS" - placeholder="璇疯緭鍏�" - size="mini" - @input="searchFilterList"/> + <el-input v-if="active == 1" v-model="methodS" placeholder="璇疯緭鍏�" size="mini" @input="searchFilterList" /> </div> </template> </el-table-column> @@ -113,7 +95,7 @@ <script> import { Tree } from 'element-ui' -import {selectsStandardMethodByFLSSM, selectStandardProductList} from "@/api/business/rawMaterialOrder"; +import { selectsStandardMethodByFLSSM, selectStandardProductList } from "@/api/business/rawMaterialOrder"; export default { props: { active: { @@ -142,7 +124,7 @@ tree: '', standards: [], auxiliaryWireCore: { - standardMethodListId: null, + standardMethodListId: [], insProduct: [], num: [], modelNum: '' @@ -201,17 +183,17 @@ } }, // 瑕佹眰鍊煎彉鍖栨椂 - requestChange(e, row,type) { + requestChange(e, row, type) { this.sampleList.map(item => { if (this.sampleIds.indexOf(item.id) > -1) { item.insProduct.map(i => { - if(i.id == row.id){ - if(row.repetitionTag){ - if(row.repetitionTag==i.repetitionTag){ + if (i.id == row.id) { + if (row.repetitionTag) { + if (row.repetitionTag == i.repetitionTag) { i[type] = e } - }else{ - if(!i.repetitionTag){ + } else { + if (!i.repetitionTag) { i[type] = e } } @@ -250,10 +232,7 @@ this.$refs.productTable.doLayout() }) }, - tableRowClassName({ - row, - rowIndex - }) { + tableRowClassName({ row, rowIndex }) { if (row.state === 0) { return ''; } @@ -301,7 +280,7 @@ } }, methodChange(val) { - if (val === null || val === '') return + if (!val || val.length < 1) return this.getProductLoad = true let standard = this.standards.find(a => a.id === val) this.isAskOnlyRead = standard != null && standard.code === '鎶�鏈姹�'; @@ -315,7 +294,7 @@ selectStandardProductList({ model: this.$parent.addObj.model ? this.$parent.addObj.model : model, modelNum: modelNum, - standardMethodListId: val, + standardMethodListIds: val, factory: selectTreeList.join(" - "), cores: cores, conductorMaterial: conductorMaterial, @@ -380,10 +359,12 @@ display: flex; justify-content: space-between; } + .search_input { display: flex; justify-content: space-between; } + .ins_order_config .has-gutter .el-table__cell .cell { line-height: 30px; background-color: #fafafa; @@ -397,7 +378,7 @@ font-size: 12px; } -.ins_order_config .el-table .warning-row .cell { - color: #3A7BFA; +>>>.warning-row { + color: #1890FF; } </style> -- Gitblit v1.9.3