|
@@ -43,7 +43,7 @@
|
|
type="primary"
|
|
type="primary"
|
|
v-if="
|
|
v-if="
|
|
edit_form.status === '0' &&
|
|
edit_form.status === '0' &&
|
|
- (duty === '7' || duty === '3' || duty === '4')
|
|
|
|
|
|
+ (duty === '8' || duty === '7' || duty === '3' || duty === '4')
|
|
"
|
|
"
|
|
@click="handleTransfer"
|
|
@click="handleTransfer"
|
|
>转派</el-button
|
|
>转派</el-button
|
|
@@ -55,7 +55,10 @@
|
|
(edit_form.status === '2' ||
|
|
(edit_form.status === '2' ||
|
|
edit_form.status === '6' ||
|
|
edit_form.status === '6' ||
|
|
edit_form.status === '7') &&
|
|
edit_form.status === '7') &&
|
|
- (duty === '7' || duty === '3' || duty === '4') &&
|
|
|
|
|
|
+ ( duty === '8' ||
|
|
|
|
+ duty === '7' ||
|
|
|
|
+ duty === '3' ||
|
|
|
|
+ duty === '4') &&
|
|
reviewType === duty
|
|
reviewType === duty
|
|
"
|
|
"
|
|
@click="handleApprove"
|
|
@click="handleApprove"
|
|
@@ -126,21 +129,25 @@
|
|
<template v-slot:footer
|
|
<template v-slot:footer
|
|
><div>
|
|
><div>
|
|
<div v-if="type === '1'">
|
|
<div v-if="type === '1'">
|
|
- <el-button @click="handleTurn('finish')" type="primary">结束</el-button>
|
|
|
|
- <el-button @click="handleTurn('transfer')"
|
|
|
|
- >转副总审批</el-button
|
|
|
|
|
|
+ <el-button @click="handleTurn('finish')" type="primary"
|
|
|
|
+ >结束</el-button
|
|
>
|
|
>
|
|
|
|
+ <el-button @click="handleTurn('transfer')">转副总审批</el-button>
|
|
<el-button @click="handleTurn('transfermanger')"
|
|
<el-button @click="handleTurn('transfermanger')"
|
|
>转总经理审批</el-button
|
|
>转总经理审批</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
<div v-else-if="type === '2'">
|
|
<div v-else-if="type === '2'">
|
|
- <el-button @click="handleTurn('finish')" type="primary">结束</el-button>
|
|
|
|
- <el-button @click="handleTurn('return')" type="primary">退回</el-button>
|
|
|
|
- <el-button @click="handleTurn('back')" type="primary">打回</el-button>
|
|
|
|
- <el-button @click="handleTurn('transfer')"
|
|
|
|
- >转总经理审批</el-button
|
|
|
|
|
|
+ <el-button @click="handleTurn('finish')" type="primary"
|
|
|
|
+ >结束</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button @click="handleTurn('return')" type="primary"
|
|
|
|
+ >退回</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button @click="handleTurn('back')" type="primary"
|
|
|
|
+ >打回</el-button
|
|
>
|
|
>
|
|
|
|
+ <el-button @click="handleTurn('transfer')">转总经理审批</el-button>
|
|
</div>
|
|
</div>
|
|
<div v-else>
|
|
<div v-else>
|
|
<el-button @click="handleTurn('back')">打回</el-button>
|
|
<el-button @click="handleTurn('back')">打回</el-button>
|
|
@@ -228,6 +235,9 @@
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<div>
|
|
<div>
|
|
|
|
+ <!-- <el-button class="margin-right-10" @click="newSave()" type="primary"
|
|
|
|
+ >保存修改</el-button
|
|
|
|
+ > -->
|
|
<el-button
|
|
<el-button
|
|
class="margin-right-10"
|
|
class="margin-right-10"
|
|
@click.prevent="handleCharge('add')"
|
|
@click.prevent="handleCharge('add')"
|
|
@@ -295,6 +305,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ // rowList: [],
|
|
page: 1,
|
|
page: 1,
|
|
idx: "",
|
|
idx: "",
|
|
rows: 10,
|
|
rows: 10,
|
|
@@ -413,6 +424,7 @@ export default {
|
|
],
|
|
],
|
|
},
|
|
},
|
|
trackList: [],
|
|
trackList: [],
|
|
|
|
+ creatloginNameStr: "", //发起人name
|
|
// 顶部form
|
|
// 顶部form
|
|
table_form: [
|
|
table_form: [
|
|
{
|
|
{
|
|
@@ -607,13 +619,17 @@ export default {
|
|
...this.table_search,
|
|
...this.table_search,
|
|
page: this.page,
|
|
page: this.page,
|
|
pageSize: this.rows,
|
|
pageSize: this.rows,
|
|
- id : this.getUrlKey("id")//获取地址栏参数
|
|
|
|
|
|
+ id: this.getUrlKey("id"), //获取地址栏参数
|
|
});
|
|
});
|
|
// 职位
|
|
// 职位
|
|
this.duty = JSON.parse(sessionStorage.userInfo).duty;
|
|
this.duty = JSON.parse(sessionStorage.userInfo).duty;
|
|
// 根据职位判定 科室经理7、分管副总 4 、总经理 3 、职员 9
|
|
// 根据职位判定 科室经理7、分管副总 4 、总经理 3 、职员 9
|
|
console.log(this.duty, "duty");
|
|
console.log(this.duty, "duty");
|
|
switch (this.duty) {
|
|
switch (this.duty) {
|
|
|
|
+ // 科室副经理
|
|
|
|
+ case "8":
|
|
|
|
+ this.type = "1";
|
|
|
|
+ break;
|
|
// 科室经理
|
|
// 科室经理
|
|
case "7":
|
|
case "7":
|
|
this.type = "1";
|
|
this.type = "1";
|
|
@@ -694,6 +710,8 @@ export default {
|
|
},
|
|
},
|
|
// 编辑按钮
|
|
// 编辑按钮
|
|
handleEdit(row) {
|
|
handleEdit(row) {
|
|
|
|
+ console.log(row.loginNameStr);
|
|
|
|
+ this.creatloginNameStr = row.loginNameStr;
|
|
this.visible = true;
|
|
this.visible = true;
|
|
this.edit_visible = true;
|
|
this.edit_visible = true;
|
|
this.edit_form = row;
|
|
this.edit_form = row;
|
|
@@ -717,6 +735,9 @@ export default {
|
|
break;
|
|
break;
|
|
case "1":
|
|
case "1":
|
|
this.reviewType = "7";
|
|
this.reviewType = "7";
|
|
|
|
+ if(this.duty==='8'){
|
|
|
|
+ this.reviewType = "8";
|
|
|
|
+ }
|
|
break;
|
|
break;
|
|
case "2":
|
|
case "2":
|
|
this.reviewType = "4";
|
|
this.reviewType = "4";
|
|
@@ -733,6 +754,7 @@ export default {
|
|
// 查看按钮
|
|
// 查看按钮
|
|
handleCheck(row) {
|
|
handleCheck(row) {
|
|
this.edit_form = row;
|
|
this.edit_form = row;
|
|
|
|
+ console.log(row.status + "status");
|
|
this.edit_visible = false;
|
|
this.edit_visible = false;
|
|
this.id = row.id;
|
|
this.id = row.id;
|
|
this.visible = true;
|
|
this.visible = true;
|
|
@@ -967,7 +989,10 @@ export default {
|
|
}).then(({ data }) => {
|
|
}).then(({ data }) => {
|
|
this.transfer_list_orgin = data
|
|
this.transfer_list_orgin = data
|
|
.filter((el) => {
|
|
.filter((el) => {
|
|
- return el.loginNoStr !== loginNoStr;
|
|
|
|
|
|
+ return (
|
|
|
|
+ el.loginNoStr !== loginNoStr &&
|
|
|
|
+ el.loginNameStr !== this.creatloginNameStr
|
|
|
|
+ );
|
|
})
|
|
})
|
|
.map((el) => ({
|
|
.map((el) => ({
|
|
...el,
|
|
...el,
|
|
@@ -1020,7 +1045,7 @@ export default {
|
|
break;
|
|
break;
|
|
case "transfer":
|
|
case "transfer":
|
|
// reviewType 2.副总经理 3总经理
|
|
// reviewType 2.副总经理 3总经理
|
|
- if (this.duty === "7") {
|
|
|
|
|
|
+ if (this.duty === "7"||this.duty === "8") {
|
|
reqdata.reviewType = 2;
|
|
reqdata.reviewType = 2;
|
|
reqdata.operateName = "转副总审批";
|
|
reqdata.operateName = "转副总审批";
|
|
request = 1;
|
|
request = 1;
|
|
@@ -1176,6 +1201,51 @@ export default {
|
|
this.receiver_table_list = data;
|
|
this.receiver_table_list = data;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // newSave() {
|
|
|
|
+ // const sheet_name = window.luckysheet.getSheet().name;
|
|
|
|
+ // const data = window.luckysheet.getSheet(sheet_name);
|
|
|
|
+ // const workbook_name = window.luckysheet.getWorkbookName();
|
|
|
|
+ // console.log(sheet_name);
|
|
|
|
+ // console.log(data);
|
|
|
|
+ // console.log(workbook_name);
|
|
|
|
+ // // 经理提交
|
|
|
|
+ // this.rowList.shift();
|
|
|
|
+ // let reqdata = {
|
|
|
|
+ // rowIndex: [...new Set(this.rowList)]
|
|
|
|
+ // .sort(function (a, b) {
|
|
|
|
+ // return a - b;
|
|
|
|
+ // })
|
|
|
|
+ // .join(","),
|
|
|
|
+ // rowContent: [...new Set(this.rowList)]
|
|
|
|
+ // .sort(function (a, b) {
|
|
|
|
+ // return a - b;
|
|
|
|
+ // })
|
|
|
|
+ // .map((el) => {
|
|
|
|
+ // return data.data[el];
|
|
|
|
+ // }),
|
|
|
|
+ // };
|
|
|
|
+ // this.$http({
|
|
|
|
+ // url: "/market/CMKIssued/CMKIssuedSubmit", // 提交
|
|
|
|
+ // method: "post",
|
|
|
|
+ // headers: {
|
|
|
|
+ // "Content-Type": "application/json",
|
|
|
|
+ // },
|
|
|
|
+ // data: {
|
|
|
|
+ // id: this.template_id,
|
|
|
|
+ // templateContent: JSON.stringify(data),
|
|
|
|
+ // templateName: workbook_name,
|
|
|
|
+ // issuedId: this.edit_form.id,
|
|
|
|
+ // // rowJson: JSON.stringify(reqdata),
|
|
|
|
+ // },
|
|
|
|
+ // });
|
|
|
|
+ // },
|
|
|
|
+ // updated: function ({ range }) {
|
|
|
|
+ // const middle = range.map((el) => {
|
|
|
|
+ // return that.paramsArr(el.row[0], el.row[1]);
|
|
|
|
+ // });
|
|
|
|
+ // let changedList = middle.join(",").split(",");
|
|
|
|
+ // this.rowList.push(...changedList);
|
|
|
|
+ // },
|
|
// 关闭方法
|
|
// 关闭方法
|
|
handleCancel(data) {
|
|
handleCancel(data) {
|
|
switch (data) {
|
|
switch (data) {
|