Commit d8b59590 authored by 黄奎's avatar 黄奎

页面修改

parent 9a158669
......@@ -374,6 +374,7 @@
type: Number,
default: null
},
//1-当前登录人自己创建,3-不是当前登录人创建
BelongType: {
type: Number,
default: null
......@@ -435,9 +436,9 @@
QQ: "",
WeChatNo: ""
},
NeedData: [],
noEdit: false,
isHaveOrder: false,
NeedData: [],//客户需求列表
noEdit: false,//是否可以修改编辑客户信息
isHaveOrder: false, //学员是否有订单
userInfo: {}, //当前登录人员
};
},
......@@ -454,13 +455,16 @@
this.getCustomTypeList();
this.getStudentDorpDown();
this.getGetNeedsList();
this.getStuOrderPage();
if (this.saveObj && this.saveObj.StuId > 0) {
this.customMsg.StuId = this.saveObj.StuId;
this.checkMsg.StuId = this.saveObj.StuId;
if (this.saveObj) {
if (this.saveObj.StuId > 0) {
this.customMsg.StuId = this.saveObj.StuId;
this.checkMsg.StuId = this.saveObj.StuId;
}
if (this.saveObj.noEdit && this.saveObj.noEdit == true) {
this.noEdit = true;
}
}
},
watch: {
......@@ -731,7 +735,6 @@
);
});
},
init() {
const tempDate = this.stuData;
this.customObj.StuId = tempDate.StuId;
......@@ -756,11 +759,10 @@
this.customObj.WeChatNo = tempDate.WeChatNo;
this.customObj.StuNeeds = tempDate.StuNeeds;
this.customObj.StuTel = tempDate.StuTel;
if (this.customObj.StuId > 0) {
//有订单
if (tempDate.OrderCount && tempDate.OrderCount > 0) {
this.isHaveOrder = true;
}
},
//新增协助人员
addAssist() {
......@@ -810,27 +812,6 @@
this.customObj.StuSourceId = "";
this.customObj.PlatformName = "";
},
getStuOrderPage() {
let customMsg = {
pageIndex: 1,
pageSize: 10,
StuId: 0
};
if (this.saveObj) {
customMsg.StuId = this.saveObj.StuId;
}
queryStuOrderPage(customMsg).then(res => {
if (res.Code == 1) {
if (this.customObj.StuId > 0) {
if (res.Data.PageData.length > 0) {
this.isHaveOrder = true;
} else {
this.isHaveOrder = false;
}
}
}
});
}
}
};
</script>
......
......@@ -176,7 +176,6 @@
<template v-slot:body-cell-CurseManager="props">
<q-td :props="props" v-html="getCurseManager(props.row)"></q-td>
</template>
<template v-slot:body-cell-OrderCount="props">
<q-td :props="props" v-if="props.row.OrderCount == 0" class="text-grey-4">未报名</q-td>
<q-td :props="props" v-if="props.row.OrderCount > 0" class="bg-negative text-white"
......@@ -433,7 +432,6 @@
field: "StuChannelName",
align: "left"
},
{
name: "CreateTimeStr",
label: "创建时间",
......@@ -456,13 +454,13 @@
stuOption: null,
isShowAdd: false,
selection: [],
isShowTransfer: false,
isShowTransfer: false,//是否显示转订单弹窗
BelongType: 1,
pushMode: false,
pushMode: false,//是否显示推送按钮
pushing: false,
assistListFormat: [],
checkType: 1,
isShowAbroad: false,
checkType: 1, //打开右侧弹窗类型
isShowAbroad: false, //是否显示转留学就业订单弹窗
userInfo: {}, //当前登录人员
};
},
......@@ -478,13 +476,13 @@
created() {
this.userInfo = this.getLocalStorage();
this.formatAssistList();
this.initAuth();
},
mounted() {},
computed: {
...mapGetters(["logo", "name"])
},
methods: {
//是否有查看客户来源和来源关联人权限
IsShowStuSourceIdName(item) {
var isHaveAuth = false;
if (this.userInfo && this.userInfo.ActionMenuList && this.userInfo.ActionMenuList.length >
......@@ -510,8 +508,7 @@
"客户资料.xls"
);
},
//初始化权限
initAuth() {},
//服务人员转化
formatAssistList() {
this.assistListFormat = [];
this.dataList.forEach(x => {
......@@ -631,6 +628,7 @@
obj.Status = obj.Status == 1 ? 0 : 1;
});
},
//刷新列表
refreshStuList() {
this.$emit("success");
this.selection = [];
......
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