From e4c5b0f332afbc2b4fe8abf07f348e8a1d278562 Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期四, 10 四月 2025 10:34:32 +0800 Subject: [PATCH] 原辅材和成品下单调整,前端加起始时间、终止时间、试验条件等原始记录模板信息 --- src/views/business/productOrder/components/add.vue | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/business/productOrder/components/add.vue b/src/views/business/productOrder/components/add.vue index b6afc93..d052ad3 100644 --- a/src/views/business/productOrder/components/add.vue +++ b/src/views/business/productOrder/components/add.vue @@ -352,20 +352,20 @@ </span> </template> </el-table-column> - <el-table-column label="鏉′欢" min-width="140" prop="radius" show-overflow-tooltip> + <el-table-column label="璇曢獙鏉′欢" min-width="140" prop="radius" show-overflow-tooltip> <template slot-scope="scope"> <el-input v-if="(active == 1 || tabIndex == 4) && (isAskOnlyRead || isSpecial)" v-model="scope.row.radius" - :autosize="{ minRows: 1, maxRows: 3 }" clearable placeholder="鏉′欢" size="small" type="textarea" + :autosize="{ minRows: 1, maxRows: 3 }" clearable placeholder="璇曢獙鏉′欢" size="small" type="textarea" @change="e => requestChange(e, scope.row, 'radius')"> </el-input> <span v-else>{{ scope.row.radius }}</span> </template> </el-table-column> - <el-table-column label="璇曢獙鏂规硶" min-width="120" prop="methodS" show-overflow-tooltip> + <el-table-column label="璇曢獙鏂规硶" min-width="120" prop="method" 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="methodS" placeholder="璇疯緭鍏�" size="mini" + <el-input v-if="active == 1" v-model="scope.row.method" placeholder="璇疯緭鍏�" size="mini" @input="searchFilterList" /> </div> </template> @@ -856,6 +856,11 @@ }; this.addObj.type = String(this.addObj.type) this.sampleList = this.HaveJson(res.data.sampleProduct); + this.sampleList.forEach(m => { + if (m.standardMethodListId) { + m.standardMethodListId = JSON.parse(m.standardMethodListId) + } + }) this.specialStandardMethod = this.sampleList[0].specialStandardMethod this.getProNum() this.addObj.sampleNum = this.sampleList.length @@ -1304,6 +1309,9 @@ }) } else { // 甯歌鎻愪氦 + sampleList.forEach(m => { + m.standardMethodListId = JSON.stringify(m.standardMethodListId) + }) addInsOrder({ insOrder: this.addObj, sampleList: sampleList }).then(res => { this.saveLoad = false this.$message.success('宸叉彁浜�') -- Gitblit v1.9.3