From 616a71ebbb82d6143768a17bf4ab84b860bb82e0 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期二, 21 五月 2024 14:53:12 +0800
Subject: [PATCH] 修改产品追溯
---
src/views/technology/document/document-form.vue | 40 +++++++++++++++++++++++-----------------
1 files changed, 23 insertions(+), 17 deletions(-)
diff --git a/src/views/technology/document/document-form.vue b/src/views/technology/document/document-form.vue
index 19348cf..e101abb 100644
--- a/src/views/technology/document/document-form.vue
+++ b/src/views/technology/document/document-form.vue
@@ -7,7 +7,7 @@
<h2 v-if="!editable">鏌ョ湅-宸ヨ壓鏂囦欢</h2>
</div>
<div class="btn-group header-right" v-if="editable">
- <el-button @click="save()">淇濆瓨</el-button>
+ <el-button type="primary" @click="save()">淇濆瓨</el-button>
</div>
</div>
<div class="page-main">
@@ -24,10 +24,12 @@
<el-row>
<el-col :span="6">
<el-form-item prop="name" label="鏂囦欢鍚嶇О">
+ <el-tooltip class="item" effect="dark" :content="dataForm.name" >
<el-input
v-model="dataForm.name"
placeholder="鏂囦欢鍚嶇О"
></el-input>
+ </el-tooltip>
</el-form-item>
</el-col>
<el-col :span="6">
@@ -102,7 +104,7 @@
</el-col> -->
<el-col :span="6">
<el-form-item label="浜у搧闆朵欢鍙�" prop="partNo">
- <el-input v-model="dataForm.partNo" placeholder="璇烽�夋嫨闆朵欢">
+ <el-input disabled v-model="dataForm.partNo" placeholder="璇烽�夋嫨闆朵欢">
<el-button
slot="append"
icon="el-icon-search"
@@ -113,7 +115,9 @@
</el-col>
<el-col :span="6">
<el-form-item label="浜у搧闆朵欢鎻忚堪" prop="partName">
+ <el-tooltip class="item" effect="dark" :content="dataForm.partName" >
<el-input v-model="dataForm.partName" disabled> </el-input>
+ </el-tooltip>
</el-form-item>
</el-col>
</el-row>
@@ -128,10 +132,10 @@
</el-col>
<el-col :span="6">
<el-form-item label="BOM" prop="bomId">
- <el-select
- :disabled="dataForm.id != null"
- v-model="dataForm.bomId"
- placeholder=""
+ <el-select
+ :disabled="dataForm.id != null"
+ v-model="dataForm.bomId"
+ placeholder=""
style="width: 100%;"
filterable>
<el-option
@@ -145,10 +149,10 @@
</el-col>
<el-col :span="6">
<el-form-item label="宸ヨ壓璺嚎缂栧彿" prop="routingList">
- <el-select
- :disabled="dataForm.id != null"
- v-model="dataForm.routingId"
- placeholder=""
+ <el-select
+ :disabled="dataForm.id != null"
+ v-model="dataForm.routingId"
+ placeholder=""
style="width: 100%;"
filterable>
<el-option
@@ -168,7 +172,7 @@
style="width:100%"
></el-input>
</el-form-item>
- </el-col>
+ </el-col>
<el-col :span="6">
<el-form-item label="澶囨敞" prop="remark">
<el-input
@@ -259,7 +263,8 @@
>
<TeststandardDialog
:editable="editable"
- :documentId="Number(dataForm.id)"
+ :key="dataForm.id"
+ :documentId="dataForm.id"
>
</TeststandardDialog>
</el-tab-pane>
@@ -430,7 +435,7 @@
宸ュ簭鍙傛暟
</div>
</div>
-
+
<!-- <div class="document-bom-div" v-show="item.showBom">
<el-tooltip
class="item"
@@ -532,7 +537,7 @@
:richContent="ele.remark"
></rich-text>
</el-tab-pane> -->
- <el-tab-pane label="妫�娴嬫爣鍑�">
+ <!-- <el-tab-pane label="妫�娴嬫爣鍑�">
<checkStandardTable
ref="documentTestStandardTable"
:dataFormId="dataForm.id"
@@ -551,7 +556,7 @@
refreshTestStandardInfo
"
></checkStandardTable>
- </el-tab-pane>
+ </el-tab-pane> -->
<!-- <el-tab-pane label="鎶芥瑙勫垯">
<div>
<div style="padding: 0px 20px;">
@@ -782,14 +787,15 @@
saveLctJson,
getLctJson,
routingChildCheck,
- qryDocSamplingRule
+ qryDocSamplingRule,
+ getTestStandardParams
} from '@/api/technology/document'
import { delDocumentSamplingRule } from '@/api/quality/documentsamplingrule'
import { getObj as getTechnologyDetail } from '@/api/technology/routing'
import { getObj as getStructureDetail } from '@/api/technology/completeproductstructure'
import { fetchList as getBomList } from '@/api/technology/completeproductstructure'
import { getRouting } from '@/api/technology/document'
-import { getTestStandardParams } from '@/api/quality/teststandard'
+//import { getTestStandardParams } from '@/api/quality/teststandard'
import { remote } from '@/api/admin/dict'
import { fetchList as getStandard } from '@/api/quality/standardbind'
import { getStore } from '@/util/store.js'
--
Gitblit v1.9.3