|
@@ -12,6 +12,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { approvePass,batchOperation } from "@/api/approveData/main";
|
|
|
+ import {offset} from "@/api/basicData/salesOrder";
|
|
|
|
|
|
export default {
|
|
|
name: "check",
|
|
@@ -116,26 +117,66 @@
|
|
|
this.checkData.auditName = this.form.auditName
|
|
|
this.checkData.auditMsg = this.form.auditMsg
|
|
|
this.checkData.auditOpTime = this.form.auditOpTime
|
|
|
- approvePass(this.checkData).then(res=>{
|
|
|
- if(res.data.success){
|
|
|
- this.$message.success("操作成功!")
|
|
|
- this.$emit("choceCheckFun")
|
|
|
- }
|
|
|
- if(!this.checkDetail){
|
|
|
- //关闭付费申请页面
|
|
|
- let tag = this.$store.getters.tagList.filter(ele => ele.label === "付费申请")[0]
|
|
|
- this.$store.commit('DEL_TAG', tag)
|
|
|
- this.$store.commit("PQ_OUT_DETAIL");
|
|
|
- let tag1 = this.$store.getters.tagList.filter(ele => ele.label === "审批数据")[0]
|
|
|
- this.$store.commit('DEL_TAG', tag1)
|
|
|
- this.$router.push({
|
|
|
- path: "/approveData/index",
|
|
|
- query: {check:'refresh'},
|
|
|
- });
|
|
|
- }
|
|
|
- }).finally(()=>{
|
|
|
- this.buttonLoading = false
|
|
|
- })
|
|
|
+ if (this.checkData.checkType === "YPJ-XSJH" && operate === 1){
|
|
|
+ offset({id: this.checkData.billId}).then(res => {
|
|
|
+ if (res.data.data == '操作成功') {
|
|
|
+ this.checkData = this.detailData.check;
|
|
|
+ this.checkDialog = true;
|
|
|
+ } else {
|
|
|
+ this.$confirm(res.data.data, {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ approvePass(this.checkData).then(res=>{
|
|
|
+ if(res.data.success){
|
|
|
+ this.$message.success("操作成功!")
|
|
|
+ this.$emit("choceCheckFun")
|
|
|
+ }
|
|
|
+ if(!this.checkDetail){
|
|
|
+ //关闭付费申请页面
|
|
|
+ let tag = this.$store.getters.tagList.filter(ele => ele.label === "付费申请")[0]
|
|
|
+ this.$store.commit('DEL_TAG', tag)
|
|
|
+ this.$store.commit("PQ_OUT_DETAIL");
|
|
|
+ let tag1 = this.$store.getters.tagList.filter(ele => ele.label === "审批数据")[0]
|
|
|
+ this.$store.commit('DEL_TAG', tag1)
|
|
|
+ this.$router.push({
|
|
|
+ path: "/approveData/index",
|
|
|
+ query: {check:'refresh'},
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).finally(()=>{
|
|
|
+ this.buttonLoading = false
|
|
|
+ })
|
|
|
+ }).catch(()=>{
|
|
|
+ this.buttonLoading = false
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(()=>{
|
|
|
+ this.buttonLoading = false
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ approvePass(this.checkData).then(res=>{
|
|
|
+ if(res.data.success){
|
|
|
+ this.$message.success("操作成功!")
|
|
|
+ this.$emit("choceCheckFun")
|
|
|
+ }
|
|
|
+ if(!this.checkDetail){
|
|
|
+ //关闭付费申请页面
|
|
|
+ let tag = this.$store.getters.tagList.filter(ele => ele.label === "付费申请")[0]
|
|
|
+ this.$store.commit('DEL_TAG', tag)
|
|
|
+ this.$store.commit("PQ_OUT_DETAIL");
|
|
|
+ let tag1 = this.$store.getters.tagList.filter(ele => ele.label === "审批数据")[0]
|
|
|
+ this.$store.commit('DEL_TAG', tag1)
|
|
|
+ this.$router.push({
|
|
|
+ path: "/approveData/index",
|
|
|
+ query: {check:'refresh'},
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).finally(()=>{
|
|
|
+ this.buttonLoading = false
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
}
|