|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
<el-button-group style="display: flex;margin: 0px 0 10px 80%; height: 35px">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
@click.native="finishAccept()"
|
|
|
|
|
@click.native="checkFinish()"
|
|
|
|
|
>完成审核
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
@ -123,7 +123,7 @@
|
|
|
|
|
<script>
|
|
|
|
|
import A from "../../plugins/KeyScaner"
|
|
|
|
|
import {updateStatus, enterCodeWeb, thirdUpdateStatus} from "@/api/inout/order";
|
|
|
|
|
import {getAcceptOrder, acceptClear, acceptAddCode} from "@/api/inout/acceptOrder";
|
|
|
|
|
import {getAcceptOrder, acceptClear, acceptAddCode, getAcceptStatus} from "@/api/inout/acceptOrder";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -256,7 +256,7 @@ export default {
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.finishAccept();
|
|
|
|
|
this.postAccept();
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
@ -281,55 +281,74 @@ export default {
|
|
|
|
|
event.currentTarget.select();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
finishAccept() {
|
|
|
|
|
this.$confirm('审核未完成,是否强制完成审核此单据?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
let query = {
|
|
|
|
|
orderId: this.orderQuery.billNo,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if (this.reviewType != null && this.reviewType == 2) {
|
|
|
|
|
|
|
|
|
|
thirdUpdateStatus(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success("核对成功!");
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
this.$emit('childByValue', 1)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
checkFinish() {
|
|
|
|
|
let query = {
|
|
|
|
|
orderId: this.orderQuery.billNo,
|
|
|
|
|
};
|
|
|
|
|
getAcceptStatus(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
let tip = "审核结果正确,是否立即完成审核?";
|
|
|
|
|
this.finishAccept(tip);
|
|
|
|
|
} else {
|
|
|
|
|
let tip = "审核未完成,是否强制完成审核此单据?";
|
|
|
|
|
this.finishAccept(tip);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
updateStatus(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success("审核成功!");
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
this.$emit('childByValue', 1)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finishAccept(tip) {
|
|
|
|
|
this.$confirm(tip, '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.postAccept();
|
|
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
// this.$message.info('回退失败');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
postAccept() {
|
|
|
|
|
let query = {
|
|
|
|
|
orderId: this.orderQuery.billNo,
|
|
|
|
|
};
|
|
|
|
|
if (this.reviewType != null && this.reviewType == 2) {
|
|
|
|
|
thirdUpdateStatus(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success("核对成功!");
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
this.$emit('childByValue', 1)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
updateStatus(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success("审核成功!");
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
this.$emit('childByValue', 1)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
renewAccept() {
|
|
|
|
|
let query = {
|
|
|
|
|