Commit 6d1ad692 authored by zhengke's avatar zhengke

修改

parent 67f6d5fc
...@@ -182,4 +182,16 @@ export function queryStuContractPage(data) { ...@@ -182,4 +182,16 @@ export function queryStuContractPage(data) {
method: 'post', method: 'post',
data data
}) })
}
/**
* 转交学员
* @param {JSON参数} data
*/
export function ForwardStudent(data) {
return request({
url: '/User/ForwardStudent',
method: 'post',
data
})
} }
\ No newline at end of file
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<div class="info_item"> <div class="info_item">
<div class="item_label">创建人</div> <div class="item_label">创建人</div>
<div class="item_value"> <div class="item_value">
<q-select filled v-model="customObj.CreateBy" @filter="filterEmployee" use-input :options="myEmployeeList" option-label="EmployeeName" <q-select filled v-model="customObj.CreateBy" disable @filter="filterEmployee" use-input :options="myEmployeeList" option-label="EmployeeName"
option-value="Id" emit-value map-options /> option-value="Id" emit-value map-options />
</div> </div>
</div> </div>
......
...@@ -17,7 +17,15 @@ ...@@ -17,7 +17,15 @@
</div> </div>
</div> </div>
<div class="custom_HRight"> <div class="custom_HRight">
<q-btn color="primary" size="sm" label="创建待办" /> <q-btn color="primary" size="sm" label="转交" @click="isShowTrans=true">
<q-popup-proxy :offset="[10, 10]">
<q-banner v-if="isShowTrans">
<q-select style="margin-top:20px;" filled v-model="transMsg.CreateBy" @filter="filterEmployee" use-input :options="myEmployeeList" option-label="EmployeeName"
option-value="Id" emit-value map-options />
<q-btn label="保存" style="float:right;margin-top:15px" color="accent q-mb-lg" size="sm" @click="saveTransForm" />
</q-banner>
</q-popup-proxy>
</q-btn>
</div> </div>
</div> </div>
<div class="custom_Bottom"> <div class="custom_Bottom">
...@@ -73,6 +81,13 @@ ...@@ -73,6 +81,13 @@
</template> </template>
<script> <script>
import {
queryEmployee
} from '../../../api/users/user'
import {
ForwardStudent
} from '../../../api/customerstudent/customerstudent'
import studentLeft from '../student/student-left'; import studentLeft from '../student/student-left';
import studentRecord from '../student/student-record'; import studentRecord from '../student/student-record';
import studentVisit from '../student/student-visit'; import studentVisit from '../student/student-visit';
...@@ -123,12 +138,21 @@ ...@@ -123,12 +138,21 @@
msg: { msg: {
}, },
baseObj:{}, baseObj:{},
transMsg:{
StuId:1,
CreateBy:''
},
//员工列表
employeeList: [],
myEmployeeList:[],
isShowTrans:false
} }
}, },
mounted() { mounted() {
console.log(this.saveObj,'saveObj'); console.log(this.saveObj,'saveObj');
this.baseObj = this.saveObj; this.baseObj = this.saveObj;
this.getEmployeeList();
}, },
methods: { methods: {
closeCutomer() { closeCutomer() {
...@@ -138,13 +162,38 @@ ...@@ -138,13 +162,38 @@
getckedType(obj){ getckedType(obj){
this.secondType = obj.Id; this.secondType = obj.Id;
}, },
//保存到访 //获取员工列表
saveVisit(){ getEmployeeList() {
queryEmployee({
IsLeave: 1
}).then(res => {
this.employeeList = res.Data;
this.myEmployeeList = res.Data;
})
}, },
//保存约访 //筛选员工
saveYuefang(){ filterEmployee(val, update, abort){
update(() => {
this.myEmployeeList = this.employeeList.filter(
v => v.EmployeeName.indexOf(val) > -1
);
});
},
//保存转交
saveTransForm(){
this.transMsg.StuId = this.baseObj.StuId;
ForwardStudent(this.transMsg).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '转交成功',
position: 'top'
})
}
this.isShowTrans=false;
})
} }
}, },
} }
......
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