|
@@ -101,32 +101,44 @@
|
|
|
/>
|
|
|
<el-table-column label="营级审批状态" align="center" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-col v-if="scope.row.unitPeopleState == 1">未处理</el-col>
|
|
|
- <el-col v-if="scope.row.unitPeopleState == 2">已审批</el-col>
|
|
|
+ <el-col v-if="scope.row.unitPeopleState == 1" style="color: #ff4949"
|
|
|
+ >未处理</el-col
|
|
|
+ >
|
|
|
+ <el-col v-if="scope.row.unitPeopleState == 2" style="color: #13ce66"
|
|
|
+ >已审批</el-col
|
|
|
+ >
|
|
|
<el-col
|
|
|
v-if="scope.row.unitPeopleState == 3"
|
|
|
:title="scope.row.unitPeopleRemark"
|
|
|
+ style="color: #00eaff"
|
|
|
>已驳回</el-col
|
|
|
>
|
|
|
<el-col
|
|
|
v-if="scope.row.unitPeopleState == 4"
|
|
|
:title="scope.row.unitPeopleRemark"
|
|
|
+ style="color: #1d96ff"
|
|
|
>特殊审批</el-col
|
|
|
>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="初审状态" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-col v-if="scope.row.chushenState == 1">未处理</el-col>
|
|
|
- <el-col v-if="scope.row.chushenState == 2">已审批</el-col>
|
|
|
+ <el-col v-if="scope.row.chushenState == 1" style="color: #ff4949"
|
|
|
+ >未处理</el-col
|
|
|
+ >
|
|
|
+ <el-col v-if="scope.row.chushenState == 2" style="color: #13ce66"
|
|
|
+ >已审批</el-col
|
|
|
+ >
|
|
|
<el-col
|
|
|
v-if="scope.row.chushenState == 3"
|
|
|
:title="scope.row.chushenRemark"
|
|
|
+ style="color: #00eaff"
|
|
|
>已驳回</el-col
|
|
|
>
|
|
|
<el-col
|
|
|
v-if="scope.row.chushenState == 4"
|
|
|
:title="scope.row.chushenRemark"
|
|
|
+ style="color: #1d96ff"
|
|
|
>特殊审批</el-col
|
|
|
>
|
|
|
</template>
|
|
@@ -134,16 +146,22 @@
|
|
|
<el-table-column label="一级审批人" align="center" prop="peopleoneName" />
|
|
|
<el-table-column label="一级审批状态" align="center" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-col v-if="scope.row.peopleoneState == 1">未处理</el-col>
|
|
|
- <el-col v-if="scope.row.peopleoneState == 2">已审批</el-col>
|
|
|
+ <el-col v-if="scope.row.peopleoneState == 1" style="color: #ff4949"
|
|
|
+ >未处理</el-col
|
|
|
+ >
|
|
|
+ <el-col v-if="scope.row.peopleoneState == 2" style="color: #13ce66"
|
|
|
+ >已审批</el-col
|
|
|
+ >
|
|
|
<el-col
|
|
|
v-if="scope.row.peopleoneState == 3"
|
|
|
:title="scope.row.peopleoneRemark"
|
|
|
+ style="color: #00eaff"
|
|
|
>已驳回</el-col
|
|
|
>
|
|
|
<el-col
|
|
|
v-if="scope.row.peopleoneState == 4"
|
|
|
:title="scope.row.peopleoneRemark"
|
|
|
+ style="color: #1d96ff"
|
|
|
>特殊审批</el-col
|
|
|
>
|
|
|
</template>
|
|
@@ -151,16 +169,22 @@
|
|
|
<el-table-column label="二级审批人" align="center" prop="peopletwoName" />
|
|
|
<el-table-column label="二级审批状态" align="center" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-col v-if="scope.row.peopletwoState == 1">未处理</el-col>
|
|
|
- <el-col v-if="scope.row.peopletwoState == 2">已审批</el-col>
|
|
|
+ <el-col v-if="scope.row.peopletwoState == 1" style="color: #ff4949"
|
|
|
+ >未处理</el-col
|
|
|
+ >
|
|
|
+ <el-col v-if="scope.row.peopletwoState == 2" style="color: #13ce66"
|
|
|
+ >已审批</el-col
|
|
|
+ >
|
|
|
<el-col
|
|
|
v-if="scope.row.peopletwoState == 3"
|
|
|
:title="scope.row.peopletwoRemark"
|
|
|
+ style="color: #00eaff"
|
|
|
>已驳回</el-col
|
|
|
>
|
|
|
<el-col
|
|
|
v-if="scope.row.peopletwoState == 4"
|
|
|
:title="scope.row.peopletwoRemark"
|
|
|
+ style="color: #1d96ff"
|
|
|
>特殊审批</el-col
|
|
|
>
|
|
|
</template>
|
|
@@ -172,16 +196,22 @@
|
|
|
/>
|
|
|
<el-table-column label="三级审批状态" align="center" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-col v-if="scope.row.peoplethreeState == 1">未处理</el-col>
|
|
|
- <el-col v-if="scope.row.peoplethreeState == 2">已审批</el-col>
|
|
|
+ <el-col v-if="scope.row.peoplethreeState == 1" style="color: #ff4949"
|
|
|
+ >未处理</el-col
|
|
|
+ >
|
|
|
+ <el-col v-if="scope.row.peoplethreeState == 2" style="color: #13ce66"
|
|
|
+ >已审批</el-col
|
|
|
+ >
|
|
|
<el-col
|
|
|
v-if="scope.row.peoplethreeState == 3"
|
|
|
:title="scope.row.peoplethreeRemark"
|
|
|
+ style="color: #00eaff"
|
|
|
>已驳回</el-col
|
|
|
>
|
|
|
<el-col
|
|
|
v-if="scope.row.peoplethreeState == 4"
|
|
|
:title="scope.row.peoplethreeRemark"
|
|
|
+ style="color: #1d96ff"
|
|
|
>特殊审批</el-col
|
|
|
>
|
|
|
</template>
|
|
@@ -193,22 +223,109 @@
|
|
|
width="200"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="btc"
|
|
|
- type="text"
|
|
|
- v-show="scope.row.isTeShu == '1' && scope.row.status == '1'"
|
|
|
- @click="handleTeShuShenPi(scope.row)"
|
|
|
- v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
|
|
|
- >特殊审批</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- size="btc"
|
|
|
- type="text"
|
|
|
- v-if="scope.row.status == '1' && scope.row.isTeShu != '1'"
|
|
|
- @click="handleShenPi(scope.row)"
|
|
|
- v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
|
|
|
- >审批</el-button
|
|
|
- >
|
|
|
+ <div v-if="scope.row.isTeShu == '1'">
|
|
|
+ <!-- 1 -->
|
|
|
+ <el-button
|
|
|
+ size="btc"
|
|
|
+ type="text"
|
|
|
+ v-if="
|
|
|
+ scope.row.peopleoneState == '1' &&
|
|
|
+ scope.row.shenpijiedian == '3'
|
|
|
+ "
|
|
|
+ @click="handleTeShuShenPi(scope.row)"
|
|
|
+ v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
|
|
|
+ >特殊审批</el-button
|
|
|
+ >
|
|
|
+ <!-- 2 -->
|
|
|
+ <el-button
|
|
|
+ size="btc"
|
|
|
+ type="text"
|
|
|
+ v-if="
|
|
|
+ scope.row.peopletwoState == '1' &&
|
|
|
+ scope.row.shenpijiedian == '4'
|
|
|
+ "
|
|
|
+ @click="handleTeShuShenPi(scope.row)"
|
|
|
+ v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
|
|
|
+ >特殊审批</el-button
|
|
|
+ >
|
|
|
+ <!-- 3 -->
|
|
|
+ <el-button
|
|
|
+ size="btc"
|
|
|
+ type="text"
|
|
|
+ v-if="
|
|
|
+ scope.row.peoplethreeState == '1' &&
|
|
|
+ scope.row.shenpijiedian == '5'
|
|
|
+ "
|
|
|
+ @click="handleTeShuShenPi(scope.row)"
|
|
|
+ v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
|
|
|
+ >特殊审批</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div v-if="scope.row.status == '1' && scope.row.isTeShu != '1'">
|
|
|
+ <!-- 1 -->
|
|
|
+ <el-button
|
|
|
+ size="btc"
|
|
|
+ type="text"
|
|
|
+ v-if="
|
|
|
+ scope.row.unitPeopleState == '1' &&
|
|
|
+ scope.row.shenpijiedian == '1' &&
|
|
|
+ scope.row.yingjicaozuoren == 'yingji'
|
|
|
+ "
|
|
|
+ @click="handleShenPi(scope.row)"
|
|
|
+ v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
|
|
|
+ >审批</el-button
|
|
|
+ >
|
|
|
+ <!-- 2 -->
|
|
|
+ <el-button
|
|
|
+ size="btc"
|
|
|
+ type="text"
|
|
|
+ v-if="
|
|
|
+ scope.row.chushenState == '1' &&
|
|
|
+ scope.row.shenpijiedian == '2' &&
|
|
|
+ scope.row.chushenyuan == 'chushen'
|
|
|
+ "
|
|
|
+ @click="handleShenPi(scope.row)"
|
|
|
+ v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
|
|
|
+ >审批</el-button
|
|
|
+ >
|
|
|
+
|
|
|
+ <!-- 3 -->
|
|
|
+ <el-button
|
|
|
+ size="btc"
|
|
|
+ type="text"
|
|
|
+ v-if="
|
|
|
+ scope.row.peopleoneState == '1' &&
|
|
|
+ scope.row.shenpijiedian == '3'
|
|
|
+ "
|
|
|
+ @click="handleShenPi(scope.row)"
|
|
|
+ v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
|
|
|
+ >审批</el-button
|
|
|
+ >
|
|
|
+ <!-- 4 -->
|
|
|
+ <el-button
|
|
|
+ size="btc"
|
|
|
+ type="text"
|
|
|
+ v-if="
|
|
|
+ scope.row.peopletwoState == '1' &&
|
|
|
+ scope.row.shenpijiedian == '4'
|
|
|
+ "
|
|
|
+ @click="handleShenPi(scope.row)"
|
|
|
+ v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
|
|
|
+ >审批</el-button
|
|
|
+ >
|
|
|
+ <!-- 5 -->
|
|
|
+ <el-button
|
|
|
+ size="btc"
|
|
|
+ type="text"
|
|
|
+ v-if="
|
|
|
+ scope.row.peoplethreeState == '1' &&
|
|
|
+ scope.row.shenpijiedian == '5'
|
|
|
+ "
|
|
|
+ @click="handleShenPi(scope.row)"
|
|
|
+ v-hasPermi="['militaryvehicleManagement:thebusApply:edit']"
|
|
|
+ >审批</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
<el-button
|
|
|
size="btu"
|
|
|
type="text"
|
|
@@ -217,7 +334,7 @@
|
|
|
>修改</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
- size="btc"
|
|
|
+ size="btd"
|
|
|
type="text"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['militaryvehicleManagement:thebusApply:remove']"
|
|
@@ -668,8 +785,6 @@ import {
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import { getZhuChiRen, getDept } from "@/api/militaryvehicleManagement/thebus";
|
|
|
-// 查询字典
|
|
|
-import { getDicts } from "@/api/system/dict/data";
|
|
|
|
|
|
import {
|
|
|
listThebusConfig,
|
|
@@ -788,54 +903,52 @@ export default {
|
|
|
this.$refs["formsTe"].validateField("teShuYuanYing", (valid) => {
|
|
|
if (!valid) {
|
|
|
if (this.form.id != null) {
|
|
|
- this.thebusApplyList.forEach((item) => {
|
|
|
- if (item.shenpijiedian == "1") {
|
|
|
- this.form.isTongguo = "0";
|
|
|
- this.form.yjtsYuanyin = this.form.teShuYuanYing;
|
|
|
- this.form.isTeShu = "1";
|
|
|
- exportThebusYin(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
- this.opensTe = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- } else if (item.shenpijiedian == "2") {
|
|
|
- this.form.isTongguo = "0";
|
|
|
- this.form.cstsYuanyin = this.form.teShuYuanYing;
|
|
|
- this.form.isTeShu = "1";
|
|
|
- exportThebusChu(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
- this.opensTe = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- } else if (item.shenpijiedian == "3") {
|
|
|
- this.form.isTongguo = "0";
|
|
|
- this.form.ojtsYuanyin = this.form.teShuYuanYing;
|
|
|
- this.form.isTeShu = "1";
|
|
|
- exportThebusOne(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
- this.getList();
|
|
|
- this.opensTe = false;
|
|
|
- });
|
|
|
- } else if (item.shenpijiedian == "4") {
|
|
|
- this.form.isTongguo = "0";
|
|
|
- this.form.tjtsYuanyin = this.form.teShuYuanYing;
|
|
|
- this.form.isTeShu = "1";
|
|
|
- exportThebusTwo(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
- this.getList();
|
|
|
- this.opensTe = false;
|
|
|
- });
|
|
|
- } else if (item.shenpijiedian == "5") {
|
|
|
- this.form.isTongguo = "0";
|
|
|
- this.form.sjtsYuanyin = this.form.teShuYuanYing;
|
|
|
- this.form.isTeShu = "1";
|
|
|
- exportThebusThree(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
- this.getList();
|
|
|
- this.opensTe = false;
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ if (this.form.shenpijiedian == "1") {
|
|
|
+ this.form.isTongguo = "0";
|
|
|
+ this.form.yjtsYuanyin = this.form.teShuYuanYing;
|
|
|
+ this.form.isTeShu = "1";
|
|
|
+ exportThebusYin(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.opensTe = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ } else if (this.form.shenpijiedian == "2") {
|
|
|
+ this.form.isTongguo = "0";
|
|
|
+ this.form.cstsYuanyin = this.form.teShuYuanYing;
|
|
|
+ this.form.isTeShu = "1";
|
|
|
+ exportThebusChu(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.opensTe = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ } else if (this.form.shenpijiedian == "3") {
|
|
|
+ this.form.isTongguo = "0";
|
|
|
+ this.form.ojtsYuanyin = this.form.teShuYuanYing;
|
|
|
+ this.form.isTeShu = "1";
|
|
|
+ exportThebusOne(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.getList();
|
|
|
+ this.opensTe = false;
|
|
|
+ });
|
|
|
+ } else if (this.form.shenpijiedian == "4") {
|
|
|
+ this.form.isTongguo = "0";
|
|
|
+ this.form.tjtsYuanyin = this.form.teShuYuanYing;
|
|
|
+ this.form.isTeShu = "1";
|
|
|
+ exportThebusTwo(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.getList();
|
|
|
+ this.opensTe = false;
|
|
|
+ });
|
|
|
+ } else if (this.form.shenpijiedian == "5") {
|
|
|
+ this.form.isTongguo = "0";
|
|
|
+ this.form.sjtsYuanyin = this.form.teShuYuanYing;
|
|
|
+ this.form.isTeShu = "1";
|
|
|
+ exportThebusThree(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.getList();
|
|
|
+ this.opensTe = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -845,54 +958,52 @@ export default {
|
|
|
this.$refs["formsTe"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (this.form.id != null) {
|
|
|
- this.thebusApplyList.forEach((item) => {
|
|
|
- if (item.shenpijiedian == "1") {
|
|
|
- this.form.isTongguo = "1";
|
|
|
- this.form.yjtsYuanyin = this.form.teShuYuanYing;
|
|
|
- this.form.isTeShu = "1";
|
|
|
- exportThebusYin(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
- this.opensTe = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- } else if (item.shenpijiedian == "2") {
|
|
|
- this.form.isTongguo = "1";
|
|
|
- this.form.cstsYuanyin = this.form.teShuYuanYing;
|
|
|
- this.form.isTeShu = "1";
|
|
|
- exportThebusChu(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
- this.opensTe = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- } else if (item.shenpijiedian == "3") {
|
|
|
- this.form.isTongguo = "1";
|
|
|
- this.form.ojtsYuanyin = this.form.teShuYuanYing;
|
|
|
- this.form.isTeShu = "1";
|
|
|
- exportThebusOne(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
- this.getList();
|
|
|
- this.opensTe = false;
|
|
|
- });
|
|
|
- } else if (item.shenpijiedian == "4") {
|
|
|
- this.form.isTongguo = "1";
|
|
|
- this.form.tjtsYuanyin = this.form.teShuYuanYing;
|
|
|
- this.form.isTeShu = "1";
|
|
|
- exportThebusTwo(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
- this.getList();
|
|
|
- this.opensTe = false;
|
|
|
- });
|
|
|
- } else if (item.shenpijiedian == "5") {
|
|
|
- this.form.isTongguo = "1";
|
|
|
- this.form.sjtsYuanyin = this.form.teShuYuanYing;
|
|
|
- this.form.isTeShu = "1";
|
|
|
- exportThebusThree(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
- this.getList();
|
|
|
- this.opensTe = false;
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ if (this.form.shenpijiedian == "1") {
|
|
|
+ this.form.isTongguo = "1";
|
|
|
+ this.form.yjtsYuanyin = this.form.teShuYuanYing;
|
|
|
+ this.form.isTeShu = "1";
|
|
|
+ exportThebusYin(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.opensTe = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ } else if (this.form.shenpijiedian == "2") {
|
|
|
+ this.form.isTongguo = "1";
|
|
|
+ this.form.cstsYuanyin = this.form.teShuYuanYing;
|
|
|
+ this.form.isTeShu = "1";
|
|
|
+ exportThebusChu(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.opensTe = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ } else if (this.form.shenpijiedian == "3") {
|
|
|
+ this.form.isTongguo = "1";
|
|
|
+ this.form.ojtsYuanyin = this.form.teShuYuanYing;
|
|
|
+ this.form.isTeShu = "1";
|
|
|
+ exportThebusOne(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.getList();
|
|
|
+ this.opensTe = false;
|
|
|
+ });
|
|
|
+ } else if (this.form.shenpijiedian == "4") {
|
|
|
+ this.form.isTongguo = "1";
|
|
|
+ this.form.tjtsYuanyin = this.form.teShuYuanYing;
|
|
|
+ this.form.isTeShu = "1";
|
|
|
+ exportThebusTwo(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.getList();
|
|
|
+ this.opensTe = false;
|
|
|
+ });
|
|
|
+ } else if (this.form.shenpijiedian == "5") {
|
|
|
+ this.form.isTongguo = "1";
|
|
|
+ this.form.sjtsYuanyin = this.form.teShuYuanYing;
|
|
|
+ this.form.isTeShu = "1";
|
|
|
+ exportThebusThree(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.getList();
|
|
|
+ this.opensTe = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -913,102 +1024,96 @@ export default {
|
|
|
},
|
|
|
// 审批通过
|
|
|
submitFormShenPi() {
|
|
|
- this.thebusApplyList.forEach((item) => {
|
|
|
+ if (this.form.shenpijiedian == "1") {
|
|
|
+ console.log("营级");
|
|
|
+ this.form.isTongguo = "0";
|
|
|
if (this.form.id != null) {
|
|
|
- if (item.shenpijiedian == "1") {
|
|
|
- this.form.isTongguo = "0";
|
|
|
- exportThebusYin(this.form).then((response) => {
|
|
|
- console.log("营级");
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
+ exportThebusYin(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.opens = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } else if (this.form.shenpijiedian == "2") {
|
|
|
+ console.log("初级");
|
|
|
+ this.form.isTongguo = "0";
|
|
|
+ exportThebusChu(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.opens = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ } else if (this.form.shenpijiedian == "3") {
|
|
|
+ this.form.isTongguo = "0";
|
|
|
+ console.log("一级");
|
|
|
+ exportThebusOne(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.getList();
|
|
|
+ this.opens = false;
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ } else if (this.form.shenpijiedian == "4") {
|
|
|
+ this.form.isTongguo = "0";
|
|
|
+ console.log("二级");
|
|
|
+ exportThebusTwo(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.getList();
|
|
|
+ this.opens = false;
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ } else if (this.form.shenpijiedian == "5") {
|
|
|
+ this.form.isTongguo = "0";
|
|
|
+ console.log("三级");
|
|
|
+ exportThebusThree(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("审批成功");
|
|
|
+ this.getList();
|
|
|
+ this.opens = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 审批不通过
|
|
|
+ cancelShenPi() {
|
|
|
+ this.$refs["forms"].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ if (this.form.shenpijiedian == "1") {
|
|
|
+ this.form.isTongguo = "1";
|
|
|
+ this.form.unitPeopleRemark = this.form.routes;
|
|
|
+ exportThebusYin(this.form).then((res) => {
|
|
|
this.opens = false;
|
|
|
this.getList();
|
|
|
});
|
|
|
return;
|
|
|
- } else if (item.shenpijiedian == "2") {
|
|
|
- this.form.isTongguo = "0";
|
|
|
- exportThebusChu(this.form).then((response) => {
|
|
|
- console.log("初级");
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
+ } else if (this.form.shenpijiedian == "2") {
|
|
|
+ this.form.isTongguo = "1";
|
|
|
+ this.form.chushenRemark = this.form.routes;
|
|
|
+ exportThebusChu(this.form).then((res) => {
|
|
|
this.opens = false;
|
|
|
this.getList();
|
|
|
});
|
|
|
return;
|
|
|
- } else if (item.shenpijiedian == "3") {
|
|
|
- this.form.isTongguo = "0";
|
|
|
- exportThebusOne(this.form).then((response) => {
|
|
|
- console.log("一级");
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
- this.getList();
|
|
|
+ } else if (this.form.shenpijiedian == "3") {
|
|
|
+ this.form.isTongguo = "1";
|
|
|
+ this.form.peopleoneRemark = this.form.routes;
|
|
|
+ exportThebusOne(this.form).then((res) => {
|
|
|
this.opens = false;
|
|
|
+ this.getList();
|
|
|
});
|
|
|
return;
|
|
|
- } else if (item.shenpijiedian == "4") {
|
|
|
- this.form.isTongguo = "0";
|
|
|
- exportThebusTwo(this.form).then((response) => {
|
|
|
- console.log("二级");
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
- this.getList();
|
|
|
+ } else if (this.form.shenpijiedian == "4") {
|
|
|
+ this.form.isTongguo = "1";
|
|
|
+ this.form.peopletwoRemark = this.form.routes;
|
|
|
+ exportThebusTwo(this.form).then((res) => {
|
|
|
this.opens = false;
|
|
|
+ this.getList();
|
|
|
});
|
|
|
return;
|
|
|
- } else if (item.shenpijiedian == "5") {
|
|
|
- this.form.isTongguo = "0";
|
|
|
- exportThebusThree(this.form).then((response) => {
|
|
|
- console.log("三级");
|
|
|
- this.$modal.msgSuccess("审批成功");
|
|
|
- this.getList();
|
|
|
+ } else if (this.form.shenpijiedian == "5") {
|
|
|
+ this.form.isTongguo = "1";
|
|
|
+ this.form.peoplethreeRemark = this.form.routes;
|
|
|
+ exportThebusThree(this.form).then((res) => {
|
|
|
this.opens = false;
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- // 审批不通过
|
|
|
- cancelShenPi() {
|
|
|
- this.$refs["forms"].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- if (this.form.id != null) {
|
|
|
- this.thebusApplyList.forEach((item) => {
|
|
|
- if (item.shenpijiedian == "1") {
|
|
|
- this.form.isTongguo = "1";
|
|
|
- this.form.unitPeopleRemark = this.form.routes;
|
|
|
- exportThebusYin(this.form).then((res) => {
|
|
|
- this.opens = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- return;
|
|
|
- } else if (item.shenpijiedian == "2") {
|
|
|
- this.form.isTongguo = "1";
|
|
|
- this.form.chushenRemark = this.form.routes;
|
|
|
- exportThebusChu(this.form).then((res) => {
|
|
|
- this.opens = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- return;
|
|
|
- } else if (item.shenpijiedian == "3") {
|
|
|
- this.form.isTongguo = "1";
|
|
|
- this.form.peopleoneRemark = this.form.routes;
|
|
|
- exportThebusOne(this.form).then((res) => {
|
|
|
- this.opens = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- return;
|
|
|
- } else if (item.shenpijiedian == "4") {
|
|
|
- this.form.isTongguo = "1";
|
|
|
- this.form.peopletwoRemark = this.form.routes;
|
|
|
- exportThebusTwo(this.form).then((res) => {
|
|
|
- this.opens = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- return;
|
|
|
- } else if (item.shenpijiedian == "5") {
|
|
|
- this.form.isTongguo = "1";
|
|
|
- this.form.peoplethreeRemark = this.form.routes;
|
|
|
- exportThebusThree(this.form).then((res) => {
|
|
|
- this.opens = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- }
|
|
|
+ this.getList();
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -1016,6 +1121,7 @@ export default {
|
|
|
},
|
|
|
// 审批按钮
|
|
|
handleShenPi(row) {
|
|
|
+ console.log(row);
|
|
|
this.reset();
|
|
|
this.getTreeList();
|
|
|
this.getYingJi();
|
|
@@ -1034,7 +1140,6 @@ export default {
|
|
|
},
|
|
|
// 选择审批模板触发
|
|
|
shenPiThemplate(data) {
|
|
|
- console.log(data);
|
|
|
this.form.peopleoneName = data.oneshenpirenname;
|
|
|
this.form.peopletwoName = data.twoshenpirenname;
|
|
|
this.form.peoplethreeName = data.threeshenpirenname;
|
|
@@ -1079,6 +1184,11 @@ export default {
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
listThebusApply(this.queryParams).then((response) => {
|
|
|
+ console.log(
|
|
|
+ (response.rows.unitPeopleState == "1" ||
|
|
|
+ response.rows.status == "1") &&
|
|
|
+ response.rows.isCaoZuo != null
|
|
|
+ );
|
|
|
this.thebusApplyList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|