|
|
@@ -1167,38 +1167,34 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
if (name == "撤销申请") {
|
|
|
- this.$refs.form.validate((valid, done) => {
|
|
|
- done();
|
|
|
- if (!valid) return;
|
|
|
- // 付费对象
|
|
|
- if (!this.form.corpId) {
|
|
|
- return this.$message.error("请选择付费对象");
|
|
|
- }
|
|
|
- this.form.billNoFormat = "FFSQ";
|
|
|
- this.form.businessTypeCode = "FFSQ";
|
|
|
- this.form.businessType = "FFSQ";
|
|
|
- let obj = {
|
|
|
- ...this.form
|
|
|
- };
|
|
|
- this.$confirm("是否撤销申请?", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(() => {
|
|
|
- const loading = this.$loading({
|
|
|
- lock: true,
|
|
|
- text: "加载中",
|
|
|
- spinner: "el-icon-loading",
|
|
|
- background: "rgba(255,255,255,0.7)"
|
|
|
- });
|
|
|
- srevokeSettlementApproveV1(obj)
|
|
|
- .then(res => {
|
|
|
- this.getDetail(res.data.data.id);
|
|
|
- })
|
|
|
- .finally(() => {
|
|
|
- loading.close();
|
|
|
- });
|
|
|
+ // 付费对象
|
|
|
+ if (!this.form.corpId) {
|
|
|
+ return this.$message.error("请选择付费对象");
|
|
|
+ }
|
|
|
+ this.form.billNoFormat = "FFSQ";
|
|
|
+ this.form.businessTypeCode = "FFSQ";
|
|
|
+ this.form.businessType = "FFSQ";
|
|
|
+ let obj = {
|
|
|
+ ...this.form
|
|
|
+ };
|
|
|
+ this.$confirm("是否撤销申请?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: "加载中",
|
|
|
+ spinner: "el-icon-loading",
|
|
|
+ background: "rgba(255,255,255,0.7)"
|
|
|
});
|
|
|
+ srevokeSettlementApproveV1(obj)
|
|
|
+ .then(res => {
|
|
|
+ this.getDetail(res.data.data.id);
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
@@ -1248,7 +1244,7 @@ export default {
|
|
|
}
|
|
|
if (name == "billDate") {
|
|
|
await this.checkRate(this.form.curCode, this.form.billDate, null, 2, this.form.branchId);
|
|
|
- this.$set(this.form, "exrate", this.getExchangeRate(this.form.curCode,"C", 2));
|
|
|
+ this.$set(this.form, "exrate", this.getExchangeRate(this.form.curCode, "C", 2));
|
|
|
}
|
|
|
if (name == "curCode") {
|
|
|
await this.checkRate(row.code, this.form.billDate, null, 2, this.form.branchId);
|