From e20c8cf7ad6d2a85817c5627fc9ee7c755884d5b Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 02 十一月 2023 09:22:53 +0800
Subject: [PATCH] 1.统计报表 加上车间名称的查询条件
---
src/views/mouldManager/mouldCheckStand.vue | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/src/views/mouldManager/mouldCheckStand.vue b/src/views/mouldManager/mouldCheckStand.vue
index 8f4084b..1eacea2 100644
--- a/src/views/mouldManager/mouldCheckStand.vue
+++ b/src/views/mouldManager/mouldCheckStand.vue
@@ -3,7 +3,7 @@
<div class="body" :style="{height:mainHeight+'px'}">
<div class="bodyTopButtonGroup" style="justify-content: space-between">
<el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">鏂板</el-button>
- <!-- <el-button v-waves icon="el-icon-download" @click="upload">瀵煎叆</el-button>-->
+ <el-button v-waves type="success" icon="el-icon-download" @click="$router.push('./../systemSetting/dataImport?fileCode=13_1')">瀵煎叆</el-button>
</div>
<div class="bodyTopFormGroup">
@@ -664,15 +664,19 @@
},
mouldDialogVisibleConfirm() {
const treeKey = this.$refs.tree.getCheckedKeys()
-
+ const arr = []
this.tree[0].children.forEach(i => {
- i.flag = treeKey.includes(i.code) ? 'Y' : 'N'
+ // i.flag = treeKey.includes(i.code) ? 'Y' : 'N'
+ if (treeKey.includes(i.code)) {
+ arr.push({
+ code: i.code,
+ name: i.name.split('/')[1].trim()
+ })
+ }
})
- if (treeKey.length === 0) {
- return this.$message.info('涓嶈兘涓虹┖锛�')
- }
+
this.$store.state.app.buttonIsDisabled = true
- SaveCheckStanedAssociationMould(this.tree[0].children, this.checkstand_code).then(res => {
+ SaveCheckStanedAssociationMould(arr, this.checkstand_code).then(res => {
if (res.code === '200') {
this.$notify.success('缁戝畾鎴愬姛锛�')
this.mouldDialogVisible = false
--
Gitblit v1.9.3