gaoluyang
6 小时以前 07f9f8657d057a38792c3822acc9b08d83478967
src/views/salesManagement/returnOrder/components/formDia.vue
@@ -168,10 +168,10 @@
<script setup>
import { reactive, ref, toRefs, getCurrentInstance } from "vue";
import { returnManagementAdd, returnManagementUpdate, returnManagementGetByShippingId, getSalesLedger, returnManagementGetById } from "@/api/salesManagement/returnOrder.js";
import { getAllCustomerList } from "@/api/customerService/index.js";
import useUserStore from "@/store/modules/user.js";
import { userListNoPageByTenantId } from "@/api/system/user.js";
import { listProject } from "@/api/oaSystem/projectManagement.js";
import {listCustomer} from "@/api/basicData/customer.js";
const { proxy } = getCurrentInstance();
const emit = defineEmits(['close'])
@@ -354,15 +354,14 @@
};
const initCustomers = async () => {
  const res = await getAllCustomerList({});
  if (res?.records) {
    customerNameOptions.value = res.records.map(item => ({
      label: item.customerName,
      value: item.customerName, // Keep value as name if needed for other logic, but request says customerId
      id: item.id,
      code: item.customerCode
    }));
  }
  listCustomer({current: -1,size:-1, type: 0}).then((res) => {
      customerNameOptions.value = res.data.records.map(item => ({
         label: item.customerName,
         value: item.customerName, // Keep value as name if needed for other logic, but request says customerId
         id: item.id,
         code: item.customerCode
      }));
   });
};
const initUsers = async () => {
@@ -406,7 +405,7 @@
  }).then(res => {
    if(res.code === 200){
      outboundOptions.value = res.data.map(item => ({
        label: item.salesContractNo, // Or whatever the outbound number field is
        label: item.shippingNo, // Or whatever the outbound number field is
        value: item.id,
      }))
    }