From 14515b095bcf8bd9c91b3819f8762d42777d8948 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 10 四月 2025 11:04:37 +0800
Subject: [PATCH] 原辅材下单提交
---
src/views/business/productOrder/components/add.vue | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/views/business/productOrder/components/add.vue b/src/views/business/productOrder/components/add.vue
index b6afc93..aa85fa8 100644
--- a/src/views/business/productOrder/components/add.vue
+++ b/src/views/business/productOrder/components/add.vue
@@ -352,16 +352,16 @@
</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>
@@ -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