Commit 274bbd7a authored by liudong1993's avatar liudong1993

1

parent 065c2aac
......@@ -81,7 +81,7 @@
style="border:1px solid #E6E6E6;" cellspacing="0"
cellpadding="0" v-loading="loading">
<tr>
<th width="260px">{{titleType==1?'公司名称':'员工名称'}}</th>
<th width="260px">{{titleType==1?'公司名称': titleType==2?'员工名称':'预存客户'}}</th>
<th>项目名称</th>
<th>代码</th>
<th width="150px">{{$t('hotel.table_operat')}}</th>
......@@ -135,11 +135,16 @@
<el-option v-for="item in CompanyList" :key="item.Id" :value="item.Id" :label="item.BName"></el-option>
</el-select>
</el-form-item>
<el-form-item v-else label="职员" prop="TargetId">
<el-form-item v-if="titleType==2" label="职员" prop="TargetId">
<el-select filterable v-model='addMsg.TargetId' @change="getType">
<el-option v-for="item in EmployeeList" :key="item.EmployeeId" :value="item.EmployeeId" :label="item.EmName"></el-option>
</el-select>
</el-form-item>
<el-form-item v-if="titleType==4" label="预存客户" prop="TargetId">
<el-select filterable v-model='addMsg.TargetId' @change="getType">
<el-option v-for="item in YCClientList" :key="item.CustomerId" :value="item.CustomerId" :label="item.CustomerName+'/'+item.Contact"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="代码" prop="ItemCode">
......@@ -204,6 +209,10 @@
{
Name: '职员',
Id: 2
},
{
Name: '预存客户',
Id: 4
}
],
msg: {
......@@ -223,7 +232,8 @@
PostId:0,
IsLeave:0,
},
EmployeeList:[]
EmployeeList:[],
YCClientList:[],
}
},
created() {
......@@ -232,6 +242,7 @@
this.getList();
this.getCompanyList()
this.getEmployee()
this.getYCClient()
},
mounted() {
......@@ -291,6 +302,13 @@
}
}, err => {})
},
getYCClient() { //预存客户
this.apipost('Financial_post_GetFinanceDepositPageList', {ClientIdStr: "",QEndDate: "",QStartDate: "",RB_Branch_Id: -1,RemitterName: "",pageIndex: 1,pageSize: 1000}, res => {
if(res.data.resultCode == 1) {
this.YCClientList = res.data.data.pageData;
}
}, err => {})
},
// 获取金蝶项目名称
getType(ID){
// 1公司 2职员
......@@ -300,21 +318,28 @@
this.addMsg.TargetName = item.BName
}
})
}else{
}else if(this.titleType==2){
this.EmployeeList.forEach(item=>{
if(item.EmployeeId==ID){
this.addMsg.TargetName = item.EmName
}
})
}else{
this.YCClientList.forEach(item=>{
if(item.CustomerId==ID){
this.addMsg.TargetName = item.CustomerName+'/'+item.Contact
}
})
}
},
submitForm(addMsg) { //提交创建、修改表单
let that = this;
if(this.titleType==1){
this.rules.TargetId[0].message = '请选择公司名称'
}else{
}else if(this.titleType==2){
this.rules.TargetId[0].message = '请选择职员名称'
}
else {this.rules.TargetId[0].message = '请选择预存名称'}
that.$refs[addMsg].validate((valid) => {
if (valid) {
that.addFlightmodule()
......@@ -376,6 +401,9 @@
if (this.titleType == 2) {
this.text = '编辑金蝶职员项目'
}
if (this.titleType == 4) {
this.text = '编辑金蝶预存客户项目'
}
this.addMsg = JSON.parse(JSON.stringify(item))
}else{
if (this.titleType == 1) {
......@@ -384,6 +412,9 @@
if (this.titleType == 2) {
this.text = '新增金蝶职员项目'
}
if (this.titleType == 4) {
this.text = '新增金蝶预存客户项目'
}
}
this.addShow = true
},
......
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