diff --git a/src/views/accounting/attachment/index.vue b/src/views/accounting/attachment/index.vue
index da4adb79..60c82c64 100644
--- a/src/views/accounting/attachment/index.vue
+++ b/src/views/accounting/attachment/index.vue
@@ -169,25 +169,6 @@
style="margin-top: 20px"
>
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
{});
},
+ handleSelectVoucher() {
+ this.$refs.VoucherSelect.showFlag = true;
+ },
+ onVoucherSelected(obj) {
+ console.log(obj);
+ if (obj != undefined && obj != null) {
+ this.form.voucherNum = obj.voucherNum;
+ }
+ },
},
};
diff --git a/src/views/accounting/flow/index.vue b/src/views/accounting/flow/index.vue
index 47a444bf..df44e435 100644
--- a/src/views/accounting/flow/index.vue
+++ b/src/views/accounting/flow/index.vue
@@ -188,22 +188,27 @@
-
-
+
-
-
-
+
+
+
@@ -266,10 +271,11 @@ import {
} from "@/api/accounting/flow";
import { getAccessToken, getTenantId } from "@/utils/auth";
import { getVoucherPage } from "@/api/accounting/voucher";
+import VoucherSelect from "@/components/VoucherSelect/single.vue";
export default {
name: "Flow",
- components: {},
+ components: { VoucherSelect },
data() {
return {
optType: undefined,
@@ -429,11 +435,6 @@ export default {
this.title = "修改审批流程";
});
},
- //凭证选择
- handleSelectVoucher(val) {
- this.form.voucherId = val.id;
- this.form.voucherNum = val.voucherNum;
- },
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
@@ -521,6 +522,15 @@ export default {
.catch(() => {});
});
},
+ handleSelectVoucher() {
+ this.$refs.VoucherSelect.showFlag = true;
+ },
+ onVoucherSelected(obj) {
+ console.log(obj);
+ if (obj != undefined && obj != null) {
+ this.form.voucherNum = obj.voucherNum;
+ }
+ },
},
};