瀏覽代碼

采购付款 付款类型调整

lxf 1 年之前
父節點
當前提交
dda6c0f917

+ 6 - 6
src/components/process/PurchasePayment.vue

@@ -112,7 +112,7 @@ const route = useRoute();
 const { proxy } = getCurrentInstance();
 const supplierList = ref([]);
 const invoiceType = ref([]);
-const fundsPaymentMethod = ref([]);
+const payMethod = ref([]);
 const accountList = ref([]);
 const contractList = ref([]);
 let formData = reactive({
@@ -273,9 +273,9 @@ const formConfig = computed(() => {
     },
     {
       type: "select",
-      label: "付款方式",
+      label: "付款类型",
       prop: "payType",
-      data: fundsPaymentMethod.value,
+      data: payMethod.value,
       itemWidth: 50,
     },
     {
@@ -325,7 +325,7 @@ const formConfig = computed(() => {
 const rules = ref({
   supplyId: [{ required: true, message: "请选择供应商", trigger: "change" }],
   invoiceType: [{ required: true, message: "请选择发票类型", trigger: "change" }],
-  payType: [{ required: true, message: "请选择付款方式", trigger: "change" }],
+  payType: [{ required: true, message: "请选择付款类型", trigger: "change" }],
   // accountManagementId: [{ required: true, message: "请选择付款账户", trigger: "change" }],
   purchaseId: [{ required: true, message: "请选择采购合同", trigger: "change" }],
   money: [{ required: true, message: "请输入付款金额", trigger: "blur" }],
@@ -358,12 +358,12 @@ const getDict = () => {
     .post("/dictTenantData/page", {
       pageNum: 1,
       pageSize: 999,
-      dictCode: "funds_payment_method",
+      dictCode: "pay_method",
       tenantId: useUserStore().user.tenantId,
     })
     .then((res) => {
       if (res.rows && res.rows.length > 0) {
-        fundsPaymentMethod.value = res.rows.map((item) => {
+        payMethod.value = res.rows.map((item) => {
           return {
             label: item.dictValue,
             value: item.dictKey,

+ 5 - 5
src/views/purchaseManage/purchasePayment/payment/index.vue

@@ -39,7 +39,7 @@ import PaymentPDF from "@/components/PDF/paymentPDF.vue";
 
 const { proxy } = getCurrentInstance();
 const payStatus = ref([]);
-const fundsPaymentMethod = ref([]);
+const payMethod = ref([]);
 const accountList = ref([]);
 const userList = ref([]);
 const status = ref([
@@ -114,12 +114,12 @@ const config = computed(() => {
     },
     {
       attrs: {
-        label: "付款方式",
+        label: "付款类型",
         prop: "payType",
         width: 160,
       },
       render(type) {
-        return proxy.dictValueLabel(type, fundsPaymentMethod.value);
+        return proxy.dictValueLabel(type, payMethod.value);
       },
     },
     {
@@ -215,12 +215,12 @@ const getDict = () => {
     .post("/dictTenantData/page", {
       pageNum: 1,
       pageSize: 999,
-      dictCode: "funds_payment_method",
+      dictCode: "pay_method",
       tenantId: useUserStore().user.tenantId,
     })
     .then((res) => {
       if (res.rows && res.rows.length > 0) {
-        fundsPaymentMethod.value = res.rows.map((item) => {
+        payMethod.value = res.rows.map((item) => {
           return {
             label: item.dictValue,
             value: item.dictKey,