|
@@ -26,13 +26,13 @@
|
|
|
<el-col :span="1.5" :offset="18" v-if="setrd % 2 == 0">
|
|
|
<el-button
|
|
|
type="danger"
|
|
|
- @click="applyBtn"
|
|
|
+ @click="infoBtn"
|
|
|
v-hasPermi="['bmProject:project:pass']"
|
|
|
>审核</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="danger"
|
|
|
- @click="backBtn"
|
|
|
+ @click="infoBtn"
|
|
|
v-hasPermi="['bmProject:project:reject']"
|
|
|
>驳回</el-button
|
|
|
>
|
|
@@ -155,10 +155,7 @@ import {
|
|
|
updateProduct,
|
|
|
exportProduct,
|
|
|
} from "@/api/production/production.js";
|
|
|
-import{
|
|
|
- setExamine,
|
|
|
- setReject
|
|
|
-} from "@/api/projectInfo/info.js";
|
|
|
+
|
|
|
export default {
|
|
|
name: "production",
|
|
|
data() {
|
|
@@ -315,7 +312,7 @@ export default {
|
|
|
.then(function () {
|
|
|
setExamine({
|
|
|
code: 1,
|
|
|
- bmProjectId:this.bmProjectId,
|
|
|
+ bmProjectId: scope.id,
|
|
|
});
|
|
|
})
|
|
|
.then(() => {
|
|
@@ -323,39 +320,41 @@ export default {
|
|
|
this.msgSuccess("提交成功");
|
|
|
});
|
|
|
},
|
|
|
- applyBtn() {
|
|
|
- this.$confirm("是否确认审核", "提醒", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- })
|
|
|
- .then(function () {
|
|
|
- return setExamine({
|
|
|
- code: 3,
|
|
|
- bmProjectId: this.bmProjectId,
|
|
|
- });
|
|
|
+
|
|
|
+ infoBtn(scrop) {
|
|
|
+ if (scrop.projectStatus % 2 == 1) {
|
|
|
+ this.$confirm("是否确认审核", "提醒", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- this.getList();
|
|
|
- this.msgSuccess("审核成功");
|
|
|
- });
|
|
|
- },
|
|
|
- backBtn() {
|
|
|
- this.$confirm("是否确认驳回", "提醒", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- })
|
|
|
- .then(function () {
|
|
|
- return setReject({
|
|
|
- code: 2,
|
|
|
- bmProjectId: scrop.id,
|
|
|
+ .then(function () {
|
|
|
+ return setExamine({
|
|
|
+ code: 3,
|
|
|
+ bmProjectId: scrop.id,
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.msgSuccess("审核成功");
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$confirm("是否确认驳回", "提醒", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- this.getList();
|
|
|
- this.msgSuccess("驳回成功");
|
|
|
- });
|
|
|
+ .then(function () {
|
|
|
+ return setReject({
|
|
|
+ code: 2,
|
|
|
+ bmProjectId: scrop.id,
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.msgSuccess("驳回成功");
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
// 取消按钮
|
|
|
cancel() {
|