|
@@ -23,6 +23,14 @@
|
|
|
>取消</el-button
|
|
|
>
|
|
|
</el-col>
|
|
|
+ <el-col :span="1.5" :offset="16" v-if="setrd % 2 == 1&&setrd>2">
|
|
|
+ <el-button
|
|
|
+ type="danger"
|
|
|
+ @click="backProBtn"
|
|
|
+ v-hasPermi="['bmProject:project:back']"
|
|
|
+ >撤销审核</el-button
|
|
|
+ >
|
|
|
+ </el-col>
|
|
|
<el-col :span="1.5" :offset="18" v-if="setrd % 2 == 0">
|
|
|
<el-button
|
|
|
type="danger"
|
|
@@ -161,7 +169,7 @@ import {
|
|
|
updateProduct,
|
|
|
exportProduct,
|
|
|
} from "@/api/production/production.js";
|
|
|
-import { setExamine, setReject } from "@/api/projectInfo/info.js";
|
|
|
+import { setExamine, setReject,setBack } from "@/api/projectInfo/info.js";
|
|
|
const defaultSettings = require("@/settings.js");
|
|
|
export default {
|
|
|
name: "production",
|
|
@@ -229,6 +237,26 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ backProBtn(){
|
|
|
+ var that=this
|
|
|
+ this.$prompt("请输入驳回意见", "提醒", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(({ value }) => {
|
|
|
+ return setBack({
|
|
|
+ code: 4,
|
|
|
+ bmProjectId: that.form.bmProjectId,
|
|
|
+ remark:value
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.$router.go(-1);
|
|
|
+ // this.getList();
|
|
|
+ this.msgSuccess("驳回成功");
|
|
|
+ });
|
|
|
+ },
|
|
|
reset() {
|
|
|
var that = this;
|
|
|
that.form = {
|
|
@@ -269,7 +297,7 @@ export default {
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.$router.go(-1);
|
|
|
- this.getList();
|
|
|
+ // this.getList();
|
|
|
this.msgSuccess("审核成功");
|
|
|
});
|
|
|
},
|