From b46bc2dba51a3885a68e4c58316b41a31ea16bb2 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 14 二月 2023 13:35:03 +0800
Subject: [PATCH] 1.存货档案修改
---
src/views/jcsz/adsz.vue | 44 +++++++++++++++++++++++++++++---------------
1 files changed, 29 insertions(+), 15 deletions(-)
diff --git a/src/views/jcsz/adsz.vue b/src/views/jcsz/adsz.vue
index b59f802..4a607cf 100644
--- a/src/views/jcsz/adsz.vue
+++ b/src/views/jcsz/adsz.vue
@@ -3,7 +3,7 @@
<div class="body" :style="{height:mainHeight+'px'}">
<div class="body_left">
<div style="margin:10px 0">
- <i class="el-icon-s-comment" style="color:#42b983;" /> 杞﹂棿淇℃伅锛�
+ <i class="el-icon-s-comment" :style="{color:$store.state.settings.theme}" /> 杞﹂棿淇℃伅锛�
</div>
<el-input
v-model="filterText"
@@ -29,12 +29,13 @@
<div :style="{height: (contentHeight+51)+'px'}">
<div class="pane_top">
<div style="display: flex;align-items: center">
- <div class="bar" />
+ <div class="bar" :style="{background:$store.state.settings.theme}" />
<div>鍝嶅簲浜哄憳</div>
<el-button
+ v-waves
icon="el-icon-circle-plus-outline"
:disabled="allowClose"
- :style="{color:allowClose?'#6f6e6f':'#42b983'}"
+ :style="{color:allowClose?'#6f6e6f':$store.state.settings.theme}"
style="height: 30px;line-height: 30px;font-size: 22px;padding:10px;background-color: #fafafa"
@click="responseUserClick"
/>
@@ -45,7 +46,7 @@
</div>
<div style="margin-left: 5px;cursor: pointer">
<el-tooltip class="item" effect="dark" content="褰撳墠鍛煎彨绫诲瀷(鍚敤/鍏抽棴)" placement="top">
- <i class="el-icon-question" />
+ <i class="el-icon-question" :style="{color:$store.state.settings.theme}" />
</el-tooltip>
</div>
</div>
@@ -58,6 +59,7 @@
:closable="!allowClose"
type="success"
style="margin-right: 10px;margin-bottom: 10px"
+ :style="{color:$store.state.settings.theme}"
@close="val=>tagClose(val,item,tag)"
>
{{ tag.username }}
@@ -68,6 +70,7 @@
</el-tab-pane>
</el-tabs>
<el-button
+
style="position: absolute;top: 15px;right:10px;z-index: 1000"
icon="el-icon-setting"
@click="setting"
@@ -78,6 +81,7 @@
<!-- 鑷畾涔夊懠鍙被鍨�-->
<el-dialog
+ v-el-drag-dialog
title="鑷畾涔夊懠鍙被鍨�"
:visible.sync="settingDialogVisible"
width="800px"
@@ -87,6 +91,7 @@
@close="handleClose"
>
<el-button
+ v-waves
type="primary"
style="margin-bottom: 10px;"
icon="el-icon-circle-plus-outline"
@@ -147,10 +152,10 @@
>
<template slot-scope="{row}">
<div class="operationClass">
- <el-button v-if="row.isVisible===1" type="text" @click="saveRow(row)">淇濆瓨</el-button>
- <el-button v-if="row.isVisible===1" type="text" @click="cancelRow(row)">鍙栨秷</el-button>
- <!-- <el-button v-if="row.isVisible===0" type="text" @click="editRow(row)">缂栬緫</el-button>-->
- <el-button v-if="row.isVisible===0" type="text" @click="delRow(row)">鍒犻櫎</el-button>
+ <el-button v-if="row.isVisible===1" v-waves type="text" @click="saveRow(row)">淇濆瓨</el-button>
+ <el-button v-if="row.isVisible===1" v-waves type="text" @click="cancelRow(row)">鍙栨秷</el-button>
+ <!-- <el-button v-waves v-if="row.isVisible===0" type="text" @click="editRow(row)">缂栬緫</el-button>-->
+ <el-button v-if="row.isVisible===0" v-waves type="text" @click="delRow(row)">鍒犻櫎</el-button>
</div>
</template>
</el-table-column>
@@ -158,12 +163,13 @@
<span slot="footer" class="dialog-footer">
<div class="footerButton">
- <el-button @click="dialogVisibleCancel">杩� 鍥�</el-button>
+ <el-button v-waves @click="dialogVisibleCancel">杩� 鍥�</el-button>
</div>
</span>
</el-dialog>
<el-dialog
+ v-el-drag-dialog
title="鍝嶅簲浜哄憳"
:visible.sync="userDialogVisible"
width="800px"
@@ -182,13 +188,14 @@
closable
type="success"
style="margin-right: 10px;margin-bottom: 10px"
+ :style="{color:$store.state.settings.theme}"
@close="val=>userTagClose(val,tag)"
>
{{ tag.username }}
</el-tag>
</div>
<div>
- <i class="el-icon-s-comment" style="color:#42b983;margin: 20px 10px 20px 0" />浜哄憳锛�
+ <i class="el-icon-s-comment" :style="{color:$store.state.settings.theme}" style="margin: 20px 10px 20px 0" />浜哄憳锛�
</div>
<div
style=" background-color: #fafafa; padding: 10px; min-height: 420px;"
@@ -218,8 +225,9 @@
<span slot="footer" class="dialog-footer">
<div class="footerButton">
- <el-button @click="dialogVisibleUserCancel">鍙� 娑�</el-button>
+ <el-button v-waves @click="dialogVisibleUserCancel">鍙� 娑�</el-button>
<el-button
+ v-waves
type="primary"
:loading="$store.state.app.buttonIsDisabled"
:disabled="$store.state.app.buttonIsDisabled"
@@ -242,10 +250,12 @@
AnDengTypeSearch,
DeleteAnDengType
} from '@/api/jcsz'
+import elDragDialog from '@/directive/el-drag-dialog'
+import waves from '@/directive/waves'
export default {
name: 'Zzjg',
-
+ directives: { elDragDialog, waves },
data() {
return {
mainHeight: 0,
@@ -369,6 +379,10 @@
})
},
async saveRow(row) {
+ console.log(row)
+ if (row.code.toString().trim() === '' || row.name.toString().trim() === '') {
+ return this.$message.info('绫诲瀷缂栫爜鎴栧悕绉颁笉鑳戒负绌猴紒')
+ }
const res = await AddUpdateAnDengType([row])
if (res.code === '200') {
await this.setting()
@@ -556,7 +570,7 @@
width: 4px;
height: 20px;
border-radius: 2px;
- background-color: $main_color;
+ //background-color: $main_color;
margin-right: 10px;
}
}
@@ -569,9 +583,9 @@
.body_left_tree {
::v-deep .is-current > .el-tree-node__content {
- background-color: $main_color !important;
+ background-color: #dedcdc !important;
font-weight: bolder;
- color: #FFFFFF;
+ //color: #FFFFFF;
}
}
</style>
--
Gitblit v1.9.3