liu
4 天以前 6373c12e97dc5d52ad87271d1adb6743b0052607
src/views/erp/purchase/invoice/modules/purchase-order-select.vue
@@ -7,7 +7,7 @@
import { DICT_TYPE } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { Input, Modal } from 'ant-design-vue';
import { Input, message, Modal } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import {
@@ -76,6 +76,7 @@
  },
  gridOptions: {
    columns: [
      { type: 'radio', width: 50, fixed: 'left' },
      { field: 'no', title: '订单单号', width: 200, fixed: 'left' },
      { field: 'supplierName', title: '供应商', minWidth: 120 },
      {
@@ -87,6 +88,12 @@
      {
        field: 'totalPrice',
        title: '含税金额',
        formatter: 'formatAmount2',
        minWidth: 120,
      },
      {
        field: 'remainInvoicePrice',
        title: '未开票金额',
        formatter: 'formatAmount2',
        minWidth: 120,
      },
@@ -109,6 +116,7 @@
            pageNo: page.currentPage,
            pageSize: page.pageSize,
            status: 20, // 仅展示已审核通过的采购订单
            remainPriceEnable: true, // 仅展示剩余可开票金额大于 0 的订单(金额已开完的不展示)
            ...formValues,
          });
        },
@@ -147,6 +155,7 @@
/** 确认选择采购订单 */
function handleOk() {
  if (!order.value?.id) {
    message.warning('请选择采购订单');
    return;
  }
  emit('update:modelValue', order.value.id);