Commit 52c0334a authored by zhengke's avatar zhengke

修改

parent 6e0755d9
...@@ -535,7 +535,6 @@ ...@@ -535,7 +535,6 @@
queryEmployee({}).then(res => { queryEmployee({}).then(res => {
if(res.Code==1){ if(res.Code==1){
this.searchList = res.Data; this.searchList = res.Data;
console.log(res,'数据');
} }
}).catch(() => { }).catch(() => {
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item :label="$t('system.table_company')"> <el-form-item :label="$t('system.table_company')">
<el-select v-model="msg.RB_Branch_Id" :placeholder="$t('rule.company')" @change="getDepartmentMsg.RB_Branch_Id = msg.RB_Branch_Id, getDepartment(),msg.RB_Depart_Id = -2"> <el-select v-model="msg.RB_Branch_Id" :placeholder="$t('rule.company')" @change="getDepartment(msg.RB_Branch_Id),msg.RB_Depart_Id = -2">
<el-option :value="-1" :label="$t('pub.unlimitedSel')"></el-option> <el-option :value="-1" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in CompanyList' <el-option v-for='item in CompanyList'
:label='item.SName' :label='item.SName'
...@@ -82,12 +82,12 @@ ...@@ -82,12 +82,12 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item :label="$t('admin.admin_Department')"> <el-form-item :label="$t('admin.admin_Department')">
<el-select v-model="msg.RB_Depart_Id" :placeholder="$t('rule.qxzbmen')" @change="employeeMsg.DepartmentId = msg.RB_Depart_Id, getEmployee(), msg.UpdateBy='-1'"> <el-select v-model="msg.RB_Depart_Id" :placeholder="$t('rule.qxzbmen')" @change="getEmployee(msg.RB_Depart_Id), msg.UpdateBy='-1'">
<el-option :value="-2" :label="$t('pub.unlimitedSel')"></el-option> <el-option :value="-2" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in DepartmentList' <el-option v-for='item in DepartmentList'
:label='item.DepartmentName' :label='item.DeptName'
:value='item.DepartmentID' :value='item.DeptId'
:key='item.DepartmentID'> :key='item.DeptId'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -97,9 +97,9 @@ ...@@ -97,9 +97,9 @@
<el-select filterable v-model='msg.UpdateBy'> <el-select filterable v-model='msg.UpdateBy'>
<el-option value="-1" :label="$t('pub.unlimitedSel')"></el-option> <el-option value="-1" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in EmployeeList' <el-option v-for='item in EmployeeList'
:label='item.EmName' :label='item.EmployeeName'
:value='item.EmployeeId' :value='item.Id'
:key='item.EmployeeId'> :key='item.Id'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -221,6 +221,13 @@ ...@@ -221,6 +221,13 @@
import { import {
getSchoolPage getSchoolPage
} from '../../../api/school/index' } from '../../../api/school/index'
import {
queryEmployee
} from '../../../api/users/user'
import {
getDeptPage,
} from '../../../api/system/dept'
export default { export default {
data(){ data(){
return { return {
...@@ -242,20 +249,6 @@ ...@@ -242,20 +249,6 @@
RB_Group_Id:'0', RB_Group_Id:'0',
Status:'0', Status:'0',
}, },
getDepartmentMsg:{// 部门
RB_Group_Id:'',
RB_Branch_Id:'',
Status:0,
ParentId:-1,
Tier:0,
},
employeeMsg:{ // 员工
GroupId:'',
BranchId:-1,
DepartmentId:0,
PostId:0,
IsLeave:0,
},
dataList: [], dataList: [],
CompanyList: [], CompanyList: [],
DepartmentList: [], DepartmentList: [],
...@@ -282,12 +275,9 @@ ...@@ -282,12 +275,9 @@
created(){ created(){
this.getList() this.getList()
let userInfo = this.getLocalStorage(); // 读取缓存数据 let userInfo = this.getLocalStorage(); // 读取缓存数据
this.getCompanyMsg.RB_Group_Id = this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = userInfo.Group_Id; // 集团ID this.getCompanyMsg.RB_Group_Id = userInfo.Group_Id; // 集团ID
this.EmId=userInfo.Id; this.EmId=userInfo.Id;
let ActionMenuCode=userInfo.ActionMenuCode; let ActionMenuCode=userInfo.ActionMenuCode;
// if(ActionMenuCode.indexOf('F_CreateBranchMoneyAllot')!=-1){
// this.btnShow=true;
// }
}, },
methods:{ methods:{
getList: function () { // 获取列表数据 getList: function () { // 获取列表数据
...@@ -333,12 +323,30 @@ ...@@ -333,12 +323,30 @@
}) })
}, },
getDepartment: function () { //获取部门列表 getDepartment: function (id) { //获取部门列表
this.apipost('admin_get_DepartmentGetList', this.getDepartmentMsg, res => { let msg={
if(res.data.resultCode == 1) { pageIndex: 1,
this.DepartmentList = res.data.data; pageSize: 999,
} rowsPerPage: 12,
}, err => {}) DeptName: "", //部门名称
DeptId: 0, //部门编号
Status: "-1",
School_Id: 0,
DeptTier: 0,
ParentId: 0,
}
msg.School_Id = id;
getDeptPage(msg).then(res => {
console.log(res,'数据');
this.DepartmentList=res.Data.PageData;
}).catch(() => {
})
// this.apipost('admin_get_DepartmentGetList', this.getDepartmentMsg, res => {
// if(res.data.resultCode == 1) {
// this.DepartmentList = res.data.data;
// }
// }, err => {})
}, },
timeAdd: function (t) { // 日期格式 timeAdd: function (t) { // 日期格式
if (t===1) { if (t===1) {
...@@ -366,12 +374,24 @@ ...@@ -366,12 +374,24 @@
} }
}, err => {}) }, err => {})
}, },
getEmployee() { //员工 getEmployee(id) { //员工
this.apipost('admin_get_EmployeeGetList', this.employeeMsg, res => { var qMsg = {
if(res.data.resultCode == 1) { Dept_Id: 0
this.EmployeeList = res.data.data; }
queryEmployee(qMsg).then(res => {
if(res.Code==1){
console.log(res,'数据1111');
this.EmployeeList = res.Data;
} }
}, err => {}) }).catch(() => {
})
// this.apipost('admin_get_EmployeeGetList', this.employeeMsg, res => {
// if(res.data.resultCode == 1) {
// this.EmployeeList = res.data.data;
// }
// }, err => {})
}, },
goAddurl(url){ goAddurl(url){
// this.$router.push({ name: url,query:{fengs: 1,blank: 'y', tab: '新增资金调拨'}}) // this.$router.push({ name: url,query:{fengs: 1,blank: 'y', tab: '新增资金调拨'}})
...@@ -411,9 +431,9 @@ ...@@ -411,9 +431,9 @@
}, },
mounted(){ mounted(){
this.getCompanyList() this.getCompanyList()
this.getDepartment() this.getDepartment(0)
this.GetStatusList() this.GetStatusList()
this.getEmployee() this.getEmployee(0)
} }
} }
</script> </script>
...@@ -2285,7 +2285,6 @@ ...@@ -2285,7 +2285,6 @@
this.currentPage = 1; this.currentPage = 1;
}, },
goUrl(path, id, Conditon, pageIndex) { goUrl(path, id, Conditon, pageIndex) {
console.log( path, 'path');
// return; // return;
this.$router.push({ this.$router.push({
path:'/financial/financalDocument/' + path, path:'/financial/financalDocument/' + path,
......
...@@ -103,11 +103,6 @@ ...@@ -103,11 +103,6 @@
<div class="query-box"> <div class="query-box">
<el-form class="iis_info_box clearfix" label-width="110px"> <el-form class="iis_info_box clearfix" label-width="110px">
<el-row> <el-row>
<el-col :span="4" :gutter="35">
<el-form-item label="团号">
<el-input placeholder v-model="msg.TCNUM"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
<el-form-item label="订单号"> <el-form-item label="订单号">
<el-input placeholder v-model="msg.OrderId"></el-input> <el-input placeholder v-model="msg.OrderId"></el-input>
...@@ -134,7 +129,7 @@ ...@@ -134,7 +129,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35" style="display:none;">
<el-form-item label="发票类型"> <el-form-item label="发票类型">
<el-select v-model="msg.InvoiceApplyType" filterable > <el-select v-model="msg.InvoiceApplyType" filterable >
<el-option :value="1" label="跟团游"></el-option> <el-option :value="1" label="跟团游"></el-option>
...@@ -274,7 +269,7 @@ ...@@ -274,7 +269,7 @@
eDate: '', eDate: '',
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
InvoiceApplyType: 1, InvoiceApplyType: 3,
RB_Branch_Id:-1 RB_Branch_Id:-1
}, },
productionDate: [], productionDate: [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment