曹睿
9 天以前 a9c3543f4b4fa5a092a8dea688aedc2b2adbd576
src/views/procurementManagement/procurementLedger/index.vue
@@ -9,7 +9,7 @@
          placeholder="请输入"
          @change="handleQuery"
          clearable
          prefix-icon="Search"
          :prefix-icon="Search"
        />
        <el-button type="primary" @click="handleQuery" style="margin-left: 10px"
          >搜索</el-button
@@ -513,6 +513,7 @@
  productList,
  getPurchaseById,
  getOptions,
  createPurchaseNo,
} from "@/api/procurementManagement/procurementLedger.js";
const { proxy } = getCurrentInstance();
const tableData = ref([]);
@@ -645,11 +646,11 @@
  purchaseListPage({ ...searchForm.value, ...page })
    .then((res) => {
      tableLoading.value = false;
      tableData.value = res.records;
      tableData.value = res.data.records;
      tableData.value.map((item) => {
        item.children = [];
      });
      total.value = res.total;
      total.value = res.data.total;
      expandedRowKeys.value = [];
    })
    .catch(() => {
@@ -701,6 +702,11 @@
  form.value = {};
  productData.value = [];
  fileList.value = [];
  if (operationType.value == "add") {
    createPurchaseNo().then((res) => {
      form.value.purchaseContractNumber = res.data;
    });
  }
  userListNoPage().then((res) => {
    userList.value = res.data;
  });