From 5f13420b2258ae2741fae9b1d77963db9e43d222 Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期四, 10 四月 2025 13:06:39 +0800 Subject: [PATCH] 优化原辅材下单10% --- src/views/business/materialOrder/customsInspection.vue | 41 +++++------------------------------------ 1 files changed, 5 insertions(+), 36 deletions(-) diff --git a/src/views/business/materialOrder/customsInspection.vue b/src/views/business/materialOrder/customsInspection.vue index 6864494..3677dda 100644 --- a/src/views/business/materialOrder/customsInspection.vue +++ b/src/views/business/materialOrder/customsInspection.vue @@ -153,20 +153,6 @@ <div style="display: flex;justify-content: space-between;background-color: #F5F7FB;margin-bottom: 6px"> <div v-if="active == 1"> <el-form :inline="true" :model="addObj1" label-width="90px"> - <el-form-item label="鏍峰搧鍨嬪彿:" style="margin-bottom: 6px;margin-top: 6px"> - <el-select v-model="model" :placeholder="active > 1 ? '' : '璇疯緭鍏�'" allow-create clearable - default-first-option filterable size="small" @change="changeModel"> - <el-option v-for="item in models" :key="item.value" :label="item.label" :value="item.value"> - </el-option> - </el-select> - </el-form-item> - <el-form-item label="妫�楠屾爣鍑�:" style="margin-bottom: 6px;margin-top: 6px"> - <el-select v-model="standardMethodListId" :loading="methodLoad" :placeholder="active > 1 ? '' : '璇疯緭鍏�'" - clearable size="small" @change="changeStandardMethodListId" @focus="methodFocus" multiple> - <el-option v-for="item in methods" :key="item.id" :label="item.code" :value="item.id"> - </el-option> - </el-select> - </el-form-item> <el-form-item label="闄勪欢鏌ョ湅:" style="margin-bottom: 6px;margin-top: 6px"> <el-button type="text" @click="handleFileDialog"> <i class="el-icon-document"></i> @@ -307,8 +293,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="scope.row.method" placeholder="璇疯緭鍏�" size="mini" - @input="searchFilterList" /> + <el-input v-if="active == 1" v-model="methodS" placeholder="璇疯緭鍏�" size="mini" @input="searchFilterList" /> </div> </template> </el-table-column> @@ -1062,7 +1047,10 @@ }, sampleList: sampleList.map(a => { a.standardMethodListId = JSON.stringify(a.standardMethodListId) - a.insProduct = this.fullProductList + a.insProduct = this.fullProductList.map(item => ({ + ...item, + state: 1 + })) if (a.modelNum) { // 鏍规嵁x鍙峰垽鏂瀷鍙峰弬鏁颁笌鏍峰搧鍨嬪彿鐨勬嫾鎺ヤ綅缃� // 渚嬪脳4锛屽氨涓�500ML脳4锛�4脳锛屽氨涓�4脳500ML @@ -1614,25 +1602,6 @@ }, 200) }).catch(err => { console.log('err-', err) - }) - }, - // 閫夋嫨鏍峰搧鍨嬪彿鐨勫洖璋� - changeModel() { - this.sampleList.forEach(a => { - let obj = this.sampleIds.find(b => b == a.id) - if (obj) { - a.model = this.model - } - }) - }, - // 閫夋嫨妫�楠屾爣鍑嗙殑鍥炶皟 - changeStandardMethodListId() { - this.sampleList.forEach(a => { - let obj = this.sampleIds.find(b => b == a.id) - if (obj) { - a.standardMethodListId = this.standardMethodListId - this.methodChange(this.standardMethodListId, a) - } }) }, // 鎷兼帴鏍峰搧鏍戠殑瀛楃涓� -- Gitblit v1.9.3