|
@@ -41,7 +41,7 @@
|
|
|
type="primary"
|
|
|
v-if="
|
|
|
edit_form.status === '0' &&
|
|
|
- (duty === '7' || duty === '2' || duty === '1')
|
|
|
+ (duty === '7' || duty === '3' || duty === '4')
|
|
|
"
|
|
|
@click="handleTransfer"
|
|
|
>转派</el-button
|
|
@@ -58,7 +58,7 @@
|
|
|
type="primary"
|
|
|
v-if="
|
|
|
edit_form.status === '2' &&
|
|
|
- (duty === '7' || duty === '2' || duty === '1') &&
|
|
|
+ (duty === '7' || duty === '3' || duty === '4') &&
|
|
|
reviewType === duty
|
|
|
"
|
|
|
@click="handleApprove"
|
|
@@ -487,12 +487,14 @@ export default {
|
|
|
],
|
|
|
};
|
|
|
},
|
|
|
- watch:{
|
|
|
- duty(){
|
|
|
- if(this.duty==='9'){
|
|
|
- this.table_config = this.table_config.filter(el=>el.props!=='receiverName')
|
|
|
+ watch: {
|
|
|
+ duty() {
|
|
|
+ if (this.duty === "9") {
|
|
|
+ this.table_config = this.table_config.filter(
|
|
|
+ (el) => el.props !== "receiverName"
|
|
|
+ );
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
this.handleInit({
|
|
@@ -502,7 +504,7 @@ export default {
|
|
|
});
|
|
|
// 职位
|
|
|
this.duty = JSON.parse(sessionStorage.userInfo).duty;
|
|
|
- // 根据职位判定 科室经理7、分管副总 2 、总经理 1 、职员 9
|
|
|
+ // 根据职位判定 科室经理7、分管副总 4 、总经理 3 、职员 9
|
|
|
console.log(this.duty, "duty");
|
|
|
switch (this.duty) {
|
|
|
// 科室经理
|
|
@@ -510,11 +512,11 @@ export default {
|
|
|
this.type = "1";
|
|
|
break;
|
|
|
// 分管副总
|
|
|
- case "2":
|
|
|
+ case "4":
|
|
|
this.type = "2";
|
|
|
break;
|
|
|
// 总经理
|
|
|
- case "1":
|
|
|
+ case "3":
|
|
|
this.type = "3";
|
|
|
break;
|
|
|
}
|
|
@@ -586,10 +588,10 @@ export default {
|
|
|
this.reviewType = "7";
|
|
|
break;
|
|
|
case "2":
|
|
|
- this.reviewType = "2";
|
|
|
+ this.reviewType = "4";
|
|
|
break;
|
|
|
case "3":
|
|
|
- this.reviewType = "1";
|
|
|
+ this.reviewType = "3";
|
|
|
break;
|
|
|
}
|
|
|
// if (reviewType) {
|
|
@@ -802,7 +804,7 @@ export default {
|
|
|
reqdata.reviewType = 2;
|
|
|
reqdata.operateName = "转副总审批";
|
|
|
request = 1;
|
|
|
- } else if (this.duty === "2") {
|
|
|
+ } else if (this.duty === "4") {
|
|
|
reqdata.reviewType = 3;
|
|
|
request = 1;
|
|
|
reqdata.operateName = "转总经理审批";
|
|
@@ -823,9 +825,9 @@ export default {
|
|
|
case "return":
|
|
|
reqdata.status = "0";
|
|
|
reqdata.operateName = "退回";
|
|
|
- if (this.duty === "2") {
|
|
|
+ if (this.duty === "4") {
|
|
|
reqdata.reviewType = 1;
|
|
|
- } else if (this.duty === "1") {
|
|
|
+ } else if (this.duty === "3") {
|
|
|
reqdata.reviewType = 2;
|
|
|
}
|
|
|
console.log(reqdata, "reqdata");
|