|
|
@@ -58,7 +58,7 @@
|
|
|
</template>
|
|
|
|
|
|
<template slot-scope="{disabled,size}" slot="categorySearch">
|
|
|
- <avue-input-tree :check-strictly="false" multiple v-model="search.category" placeholder="請選擇內容" type="tree" :dic="typeList" :props="props"></avue-input-tree>
|
|
|
+ <avue-input-tree :check-strictly="false" v-model="search.category" placeholder="請選擇內容" type="tree" :dic="typeList" :props="props"></avue-input-tree>
|
|
|
</template>
|
|
|
|
|
|
<template slot="isTurnIn" slot-scope="{row}">
|
|
|
@@ -88,7 +88,9 @@
|
|
|
</avue-crud>
|
|
|
|
|
|
<el-dialog :append-to-body="true" :modal-append-to-body="false" :destroy-on-close="true" :fullscreen="true" :visible.sync="keepVisible" title="保管人查詢">
|
|
|
- <keypwd-keep></keypwd-keep>
|
|
|
+ <div v-if="keepVisible">
|
|
|
+ <keypwd-keep></keypwd-keep>
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
|
|
|
<el-dialog title="信息確認"
|
|
|
@@ -105,7 +107,7 @@
|
|
|
import {mapGetters} from "vuex";
|
|
|
import {dateFormat} from "@/util/date";
|
|
|
import SelectDialogUser from "@/components/select-dialog/select-dialog-user";
|
|
|
- import { getCurrentDept } from "@/api/system/dept";
|
|
|
+ import { getCurrentDept, getChildsDept } from "@/api/system/dept";
|
|
|
import {getDeptTree, getTree} from "@/api/system/dept";
|
|
|
import KeypwdKeep from "@/views/bank/keypwd-keep";
|
|
|
import {getStandardByCode} from "@/api/bank/handoverstandard";
|
|
|
@@ -532,43 +534,18 @@
|
|
|
})
|
|
|
this.findObject(this.option.column, "orgNo").dicData = dicData;
|
|
|
});
|
|
|
- getCurrentDept().then(res => {
|
|
|
- const data = res.data.data;
|
|
|
- this.currentDept = data;
|
|
|
- this.isManageUser = data.deptCategory == 1;
|
|
|
- if (data.deptCategory != 1){
|
|
|
- //非管理部门
|
|
|
- let $category = this.findObject(this.option.column, 'category');
|
|
|
- let dicDataOld = $category.dicData;
|
|
|
- $category.dicData = [];
|
|
|
- getCurrentUserKeepCategory().then(res => {
|
|
|
- let data = res.data.data;
|
|
|
- if (!data){
|
|
|
- // this.$message.warning("當前用戶暫時並無持有相關鑰匙/密碼/實物!");
|
|
|
- }else{
|
|
|
- let dicDataNew = [];
|
|
|
- dicDataOld.forEach(item => {
|
|
|
- item.disabled = true;
|
|
|
- if (item.hasChildren){
|
|
|
- item.children.forEach(child => {
|
|
|
- child.disabled = child.isSealed == 1;
|
|
|
- if (data.indexOf(child.dictKey) != -1){
|
|
|
- dicDataNew.push(child)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- $category.dicData = dicDataNew;
|
|
|
- }
|
|
|
- });
|
|
|
- }else{
|
|
|
- this.findObject(this.option.column, 'orgNo').disabled = false;
|
|
|
- this.findObject(this.option.column, 'orgName').disabled = false;
|
|
|
- }
|
|
|
|
|
|
- });
|
|
|
+ // this.initCurrentDeptAndKeepCategroy();
|
|
|
},
|
|
|
methods: {
|
|
|
+ initCurrentDeptAndKeepCategroy(){
|
|
|
+ getCurrentDept().then(res => {
|
|
|
+ const data = res.data.data;
|
|
|
+ this.currentDept = data;
|
|
|
+ this.isManageUser = data.deptCategory == 1;
|
|
|
+
|
|
|
+ });
|
|
|
+ },
|
|
|
turnInChange(value){
|
|
|
this.findObject(this.option.column, "receiverNo").rules[0].required = !value;
|
|
|
this.findObject(this.option.column, "receiverName").rules[0].required = !value;
|
|
|
@@ -585,7 +562,7 @@
|
|
|
.then(() => {
|
|
|
getDownloadList(this.query).then(res => {
|
|
|
let data = res.data.data;
|
|
|
- data.forEach(item => {item.isTurnIn = item.isTurnIn == 1 ? true : false})
|
|
|
+ data.forEach(item => {item.isTurnIn = item.isTurnIn == 1 ? true : false;item.categoryShow = item.category;})
|
|
|
this.downLoadData(data, true)
|
|
|
});
|
|
|
})
|
|
|
@@ -629,6 +606,7 @@
|
|
|
})
|
|
|
})
|
|
|
arr.forEach(item => {
|
|
|
+ item.disabled = true;
|
|
|
data.forEach(it => {
|
|
|
if (item.id == it.parentId){
|
|
|
if (!item.children){
|
|
|
@@ -650,7 +628,6 @@
|
|
|
})
|
|
|
}
|
|
|
});
|
|
|
- debugger
|
|
|
this.findObject(this.option.column, 'category').dicData = formDicData;
|
|
|
this.findObject(this.option.column, 'categoryShow').dicData = formDicData;
|
|
|
return arr;
|
|
|
@@ -738,36 +715,68 @@
|
|
|
this.form.number = 1;
|
|
|
this.form.handoverDate = dateFormat(new Date(), "yyyy-MM-dd hh:mm");
|
|
|
|
|
|
- const data = this.currentDept;
|
|
|
- this.form.bankNo = data.bankNo;
|
|
|
- if (data.deptCategory != 1){
|
|
|
- //非管理部门
|
|
|
- this.form.orgNo = data.orgNo;
|
|
|
- this.form.orgName = data.deptName;
|
|
|
- this.form.handoverPersonName = this.userInfo.user_name;
|
|
|
- this.form.handoverPersonNo = this.userInfo.user_ehr;
|
|
|
- this.form.handoverPersonId = this.userInfo.user_id;
|
|
|
- }else{
|
|
|
- this.findObject(this.option.column, 'orgNo').disabled = false;
|
|
|
- this.findObject(this.option.column, 'orgName').disabled = false;
|
|
|
- }
|
|
|
+ const data = this.currentDept;
|
|
|
+ this.form.bankNo = data.bankNo;
|
|
|
+ if (data.deptCategory != 1){
|
|
|
+ //非管理部门
|
|
|
+ this.form.orgNo = data.orgNo;
|
|
|
+ this.form.orgName = data.deptName;
|
|
|
+ this.form.handoverPersonName = this.userInfo.user_name;
|
|
|
+ this.form.handoverPersonNo = this.userInfo.user_ehr;
|
|
|
+ this.form.handoverPersonId = this.userInfo.user_id;
|
|
|
+
|
|
|
+ let $category = this.findObject(this.option.column, 'category');
|
|
|
+ let dicDataOld = this.findObject(this.option.column, 'categoryShow').dicData;
|
|
|
+ $category.dicData = [];
|
|
|
+ getCurrentUserKeepCategory().then(res => {
|
|
|
+ let data = res.data.data;
|
|
|
+ if (!data){
|
|
|
+ // this.$message.warning("當前用戶暫時並無持有相關鑰匙/密碼/實物!");
|
|
|
+ }else{
|
|
|
+ let dicDataNew = [];
|
|
|
+ dicDataOld.forEach(item => {
|
|
|
+ item.disabled = true;
|
|
|
+ if (item.hasChildren){
|
|
|
+ item.children.forEach(child => {
|
|
|
+ child.disabled = child.isSealed == 1;
|
|
|
+ if (data.indexOf(child.dictKey) != -1){
|
|
|
+ dicDataNew.push(child)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ $category.dicData = dicDataNew;
|
|
|
+ this.userKeepList = dicDataNew;
|
|
|
+ }
|
|
|
+ done();
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.findObject(this.option.column, 'orgNo').disabled = false;
|
|
|
+ this.findObject(this.option.column, 'orgName').disabled = false;
|
|
|
+ done();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /*// 支行用户自行添加交接,需要获取当前用户持有的列表作为下拉内容
|
|
|
+ this.findObject(this.option.column, 'sealType').dicData = this.userKeepList;*/
|
|
|
|
|
|
}
|
|
|
if (["edit", "view"].includes(type)) {
|
|
|
getDetail(this.form.id).then(res => {
|
|
|
this.form = res.data.data;
|
|
|
+ done();
|
|
|
});
|
|
|
}
|
|
|
- done();
|
|
|
+ /*done();*/
|
|
|
},
|
|
|
searchReset() {
|
|
|
this.query = {};
|
|
|
this.onLoad(this.page);
|
|
|
},
|
|
|
searchChange(params, done) {
|
|
|
- if (params.category){
|
|
|
+ /*if (params.category){
|
|
|
params.category = params.category.join();
|
|
|
- }
|
|
|
+ }*/
|
|
|
if (params.orgNos){
|
|
|
params.orgNostr = params.orgNos.join();
|
|
|
params.orgNos = '';
|
|
|
@@ -811,6 +820,9 @@
|
|
|
},
|
|
|
onLoad(page, params = {}) {
|
|
|
this.loading = true;
|
|
|
+ params.status = 1;
|
|
|
+ params.process = 3;
|
|
|
+ params.receiverId = this.userInfo.user_id;
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
|
|
|
const data = res.data.data;
|
|
|
this.page.total = data.total;
|
|
|
@@ -822,6 +834,8 @@
|
|
|
this.loading = false;
|
|
|
this.selectionClear();
|
|
|
});
|
|
|
+
|
|
|
+ this.initCurrentDeptAndKeepCategroy();
|
|
|
}
|
|
|
}
|
|
|
};
|