From fd35a7076c61a789853a34511dbb1689e5658678 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 30 一月 2024 14:17:26 +0800
Subject: [PATCH] 生产调度bug修改
---
src/views/quality/processInspect/processInspect-form.vue | 28 +++++++++++++++++++++++++---
1 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/src/views/quality/processInspect/processInspect-form.vue b/src/views/quality/processInspect/processInspect-form.vue
index 7695830..ba99dd7 100644
--- a/src/views/quality/processInspect/processInspect-form.vue
+++ b/src/views/quality/processInspect/processInspect-form.vue
@@ -27,6 +27,11 @@
<el-form-item label="杞﹂棿璁㈠崟鍙�" prop="moNo">
<el-input @blur="selectInfoByOrderId" :disabled="processInspectVo.id != null"
v-model="processInspectVo.moNo" placeholder="璇疯緭鍏ヨ溅闂磋鍗曞彿" autocomplete="off" >
+ <!-- <el-button
+ slot="append"
+ icon="el-icon-search"
+ :disabled="resultVal!=null"
+ @click="queryCode"></el-button> -->
<el-button
slot="append"
icon="el-icon-full-screen"
@@ -119,7 +124,11 @@
default-expand-all style="width: 100%"
ref="table"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }">
- <el-table-column type="index" label="搴忓彿" show-overflow-tooltip width="60"></el-table-column>
+ <el-table-column type="index" prop="parentIndex" label="搴忓彿" width="60">
+ <template scope="scope">
+ <span v-if="scope.row.isIndex">{{scope.row.parentIndex}}</span>
+ </template>
+ </el-table-column>
<el-table-column label="椤圭洰" prop="father" show-overflow-tooltip width="140"></el-table-column>
<el-table-column prop="iname" label="鎸囨爣" show-overflow-tooltip width="140"></el-table-column>
<el-table-column prop="iunit" label="鍗曚綅" show-overflow-tooltip width="140"></el-table-column>
@@ -251,6 +260,7 @@
<el-button type="primary" @click="deviceCode = false">纭� 瀹�</el-button>
</span>
</el-dialog>
+ <processPart :paramObj="paramObj" :currshowlist.sync="workshop" />
</div>
</template>
@@ -263,15 +273,17 @@
updateProcessInsProduct,
updateProcessInspectsById,
} from '@/api/quality/processInspect'
+import processPart from '@/views/common/processinspect-part'
import { selectDevice } from '@/api/quality/processInspect'
import qrCodeApp from '@/views/common/qrCodeApp'
import { validatePositiveInteger } from '@/util/validate'
export default {
components:{
- qrCodeApp
+ qrCodeApp,processPart
},
data() {
return {
+ paramObj:{},
qrcode: false,
row: null,
proIndex: 0,
@@ -291,6 +303,7 @@
resultVal: null,
technologyList: [],
deviceList: [],
+ workshop:false,//杞﹂棿寮圭獥
hasChildren: true,
optionsSamplename: [],
// 娣诲姞鍒�
@@ -335,6 +348,13 @@
this.init()
},
methods: {
+ queryCode(){
+ this.workshop = true
+ console.log(this.workshop);
+ // this.paramObj = {
+ // code: this.dataForm.code
+ // }
+ },
cancelCodeDialog(){
this.qrcode = false
},
@@ -464,7 +484,9 @@
this.processInspectVo.unit = result.punit
this.processInspectVo.quantity = result.quantity
let userList = []
- result.children.forEach(item => {
+ result.children.forEach((item,index) => {
+ item.isIndex = true;
+ item.parentIndex = index + 1;
item.iid = Math.random()
if (item.children != undefined) {
item.children.forEach(obj => {
--
Gitblit v1.9.3