From bd3410da8a13682ec0bc888539dc35209a2196ba Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 14 七月 2022 16:10:58 +0800
Subject: [PATCH] 1.生产开报工页面开发
---
src/views/zzmx/jpgj.vue | 36 +++++++++++++++++++++++++++---------
1 files changed, 27 insertions(+), 9 deletions(-)
diff --git a/src/views/zzmx/jpgj.vue b/src/views/zzmx/jpgj.vue
index 736c146..5bcb346 100644
--- a/src/views/zzmx/jpgj.vue
+++ b/src/views/zzmx/jpgj.vue
@@ -13,11 +13,14 @@
<el-form-item label="浜у搧鍚嶇О" style=" display: flex;">
<el-select
v-model="form.partcode"
+ filterable
:popper-append-to-body="false"
style="width: 200px"
placeholder="璇烽�夋嫨"
+
@change="partChange"
>
+ <!-- @focus="getPartSelect"-->
<el-option
v-for="item in partArr"
:key="item.partcode"
@@ -29,6 +32,7 @@
<el-form-item label="宸ヨ壓璺嚎" style=" display: flex;">
<el-select
v-model="form.routecode"
+ filterable
:disabled="form.partcode===''"
:popper-append-to-body="false"
style="width: 200px"
@@ -63,6 +67,7 @@
<el-form-item label="鍏宠仈璁惧" style=" display: flex;">
<el-select
v-model="form.eqpcode"
+ filterable
:disabled="form.stepcode===''"
:popper-append-to-body="false"
style="width: 200px"
@@ -176,7 +181,7 @@
>
<template slot-scope="{row}">
<div class="operationClass">
- <el-button type="text" @click="edit('edit',row)">淇敼</el-button>
+ <el-button type="text" @click="edit('edit',row)">缂栬緫</el-button>
<el-button type="text" @click="del(row)">鍒犻櫎</el-button>
</div>
</template>
@@ -197,10 +202,11 @@
</div>
<el-dialog
- :title="operation==='add'?'鏂板':'淇敼'"
+ :title="operation==='add'?'鏂板':'缂栬緫'"
:visible.sync="dialogVisible"
- width="70%"
+ width="1200px"
top="15vh"
+ :fullscreen="isFullscreen"
:close-on-click-modal="false"
@closed="handleClose"
@close="handleClose"
@@ -212,13 +218,16 @@
<el-select
v-show="operation==='add'"
v-model="dialogForm.partcode"
+ filterable
style="width: 220px"
placeholder="璇烽�夋嫨"
:popper-append-to-body="false"
+
@change="partDialogChange"
>
+ <!-- @focus="getPartSelect2"-->
<el-option
- v-for="item in partArr"
+ v-for="item in partArr2"
:key="item.partcode"
:label="item.partname"
:value="item.partcode"
@@ -236,6 +245,7 @@
v-show="operation==='add'"
v-model="dialogForm.routecode"
style="width: 220px"
+ filterable
:disabled="dialogForm.partcode===''"
placeholder="璇烽�夋嫨"
:popper-append-to-body="false"
@@ -426,7 +436,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
- name: 'Zzjg',
+ name: 'JPGJ',
components: {
Pagination
},
@@ -450,6 +460,7 @@
}
}
return {
+ isFullscreen: false,
mainHeight: 0,
tableHeight: 0,
form: {
@@ -463,6 +474,7 @@
rows: 20 // 姣忛〉澶氬皯鏉�
},
partArr: [], // 浜у搧闆嗗悎
+ partArr2: [], // 浜у搧闆嗗悎瀵硅瘽妗�
routeArr: [], // 浜у搧闆嗗悎
stepArr: [], // 浜у搧闆嗗悎
eqpArr: [], // 浜у搧闆嗗悎
@@ -549,6 +561,10 @@
async getPartSelect() {
const { data: res } = await PartSelect()
this.partArr = res
+ },
+ async getPartSelect2() {
+ const { data: res } = await PartSelect()
+ this.partArr2 = res
},
async partChange(val) {
const { data: res } = await PartSelectRpute({ partcode: val })
@@ -724,6 +740,7 @@
add(operation) {
this.operation = operation
this.dialogVisible = true
+ this.getPartSelect2()
},
// 淇敼鎸夐挳
async edit(operation, row) {
@@ -752,12 +769,11 @@
type: 'warning'
}).then(() => {
const data = {
- partcode: this.eqpTable.partcode,
- routecode: this.eqpTable.routecode,
- stepcode: this.eqpTable.stepcode,
+ partcode: row.partcode,
+ routecode: row.route_code,
+ stepcode: row.stepcode,
eqpcode: row.eqp_code
}
- console.log(data)
DeleteBeatRate(data).then(res => {
if (res.code === '200') {
this.$message.success('鍒犻櫎鎴愬姛!')
@@ -783,6 +799,7 @@
this.stepDialogArr = []
this.eqpDialogArr = []
this.$refs.dialogForm.clearValidate()
+ this.getBeatRateSearch()
},
// 瀵硅瘽妗嗗彇娑�
dialogVisibleCancel() {
@@ -815,6 +832,7 @@
this.$nextTick(() => {
this.mainHeight = window.innerHeight - 250
this.tableHeight = this.mainHeight - 100
+ // this.isFullscreen = window.innerHeight < 800
})
}
}
--
Gitblit v1.9.3