|
@@ -90,6 +90,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
plain
|
|
|
+ v-if="level===4"
|
|
|
icon="el-icon-plus"
|
|
|
size="mini"
|
|
|
@click="handleAdd"
|
|
@@ -97,7 +98,7 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleImport(true)" v-hasPermi="['gljt:temp:exprot']"
|
|
|
+ <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleImport(true)" v-if="level===4"
|
|
|
>导入
|
|
|
</el-button>
|
|
|
</el-col>
|
|
@@ -160,6 +161,7 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
+ v-if="level===4"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
>修改</el-button>
|
|
|
<!--<el-button-->
|
|
@@ -183,8 +185,8 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
+ v-if="level===4"
|
|
|
@click="handleDelete(scope.row,scope.$index)"
|
|
|
- v-hasPermi="['gljt:temp:exprot']"
|
|
|
>删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -356,14 +358,23 @@
|
|
|
<div style="display: flex">
|
|
|
<div style="flex: 2" class="grid2">
|
|
|
<el-form-item label="开户银行" prop="khyh">
|
|
|
- <el-cascader
|
|
|
- style="width: 100%;"
|
|
|
- :props="props"
|
|
|
- :options="dict.tree.C0044"
|
|
|
- v-model="form.khyh"
|
|
|
- placeholder="请选择开户银行"
|
|
|
- clearable
|
|
|
- />
|
|
|
+ <el-select v-model="form.khyh" placeholder="请选择开户银行">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in khyhOpt"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <!--<el-cascader-->
|
|
|
+ <!--style="width: 100%;"-->
|
|
|
+ <!--:props="props"-->
|
|
|
+ <!--:options="dict.tree.C0044"-->
|
|
|
+ <!--v-model="form.khyh"-->
|
|
|
+ <!--placeholder="请选择开户银行"-->
|
|
|
+ <!--clearable-->
|
|
|
+ <!--/>-->
|
|
|
</el-form-item>
|
|
|
<el-form-item label="银行网点" prop="khwd">
|
|
|
<el-input v-model="form.khwd" placeholder="请输入银行网点" />
|
|
@@ -723,6 +734,9 @@
|
|
|
import {Constant} from '@/utils/constant';
|
|
|
import {delSwzm} from "@/api/gljt/swzm";
|
|
|
import {getToken} from "@/utils/auth";
|
|
|
+ import {
|
|
|
+ getKhyh
|
|
|
+ } from "@/api/gljt/qxpz";
|
|
|
const axios = require('axios');
|
|
|
export default {
|
|
|
name: "GljtLr",
|
|
@@ -735,6 +749,29 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ async getKhyh(){
|
|
|
+ let xzqh='';
|
|
|
+ if (this.form.xzqh !== null) {
|
|
|
+ if (Array.isArray(this.form.xzqh)) {
|
|
|
+ xzqh = this.form.xzqh[this.form.xzqh.length - 1];
|
|
|
+ } else {
|
|
|
+ let data = JSON.parse(this.form.xzqh);
|
|
|
+ xzqh = data[data.length - 1];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(xzqh){
|
|
|
+ let res= await getKhyh({xzqh:xzqh})
|
|
|
+ this.khyhOpt=res.data;
|
|
|
+ // getKhyh({xzqh:xzqh}).then(res=>{
|
|
|
+ // // console.log(res)
|
|
|
+ // this.khyhOpt=res.data;
|
|
|
+ // })
|
|
|
+ }else{
|
|
|
+ this.khyhOpt=[];
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ khyhOpt:[],
|
|
|
isUser:false,
|
|
|
pickerOptions: {
|
|
|
shortcuts: [{
|
|
@@ -920,10 +957,17 @@
|
|
|
{ required: true, message: "始发年月不能为空", trigger: "blur" },
|
|
|
{ max: 8, message: "开始发放月份不能超过8个字符", trigger: "blur" },
|
|
|
],
|
|
|
- }
|
|
|
+ },
|
|
|
+ level:0,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ this.level=0;
|
|
|
+ let ancestors=this.user.userData.dept.ancestors;
|
|
|
+ if(ancestors)
|
|
|
+ {
|
|
|
+ this.level=ancestors.split(',').length
|
|
|
+ }
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
@@ -1109,6 +1153,10 @@
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
this.reset();
|
|
|
+ if (this.user.userData.dept.locationCode) {
|
|
|
+ this.form.xzqh = [this.user.userData.dept.locationCode];
|
|
|
+ }
|
|
|
+ this.getKhyh();
|
|
|
this.open = true;
|
|
|
this.title = "新增存量老人信息";
|
|
|
},
|
|
@@ -1177,6 +1225,7 @@
|
|
|
this.form.xzqh = this.form.xzqhCode
|
|
|
? JSON.stringify(this.form.xzqhCode.split(","))
|
|
|
: [];
|
|
|
+ this.getKhyh();
|
|
|
/****** sks 需要改动的地方 start ******/
|
|
|
// this.copyForm=this.deepCopy(response.data)
|
|
|
/****** sks 需要改动的地方 end ******/
|