wangxinhui
2025-04-08 dcecb039035f4b2e82e31c39b74db9402444c536
´úÂë¹ÜÀí/WMS/WIDESEA_WMSClient/src/views/inbound/purchaseOrder.vue
@@ -21,7 +21,7 @@
    const table = ref({
      key: "id",
      footer: "Foots",
      cnName: "入库单",
      cnName: "采购单",
      name: "purchaseOrder",
      url: "/PurchaseOrder/",
      sortName: "id",
@@ -60,44 +60,28 @@
      // ],
    ]);
    const searchFormFields = ref({
      inboundOrderNo: "",
      upperOrderNo: "",
      orderType: "",
      orderStatus: "",
      createType: "",
      creater: "",
      createDate: "",
      purchaseOrderNo: "",
      purchaseOrderType: "",
      purchaseOrderStatus: "",
    });
    const searchFormOptions = ref([
      [
        { title: "单据编号", field: "inboundOrderNo", type: "like" },
        { title: "上游单据编号", field: "upperOrderNo", type: "like" },
        { title: "采购单号", field: "purchaseOrderNo", type: "like" },
        {
          title: "单据类型",
          field: "orderType",
          field: "purchaseOrderType",
          type: "select",
          dataKey: "purchaseType",
          data: [],
        },
        {
          title: "单据状态",
          field: "orderStatus",
          field: "purchaseOrderStatus",
          type: "select",
          dataKey: "inboundState",
          dataKey: "purchaseOrderStatus",
          data: [],
        },
      ],
      [
        {
          title: "创建方式",
          field: "createType",
          type: "select",
          dataKey: "createType",
          data: [],
        },
        { title: "创建者", field: "creater", type: "like" },
        { title: "创建时间", field: "createDate", type: "datetime" },
      ],
      ]
    ]);
    const columns = ref([
      {
@@ -114,7 +98,7 @@
        field: "purchaseOrderNo",
        title: "采购单号",
        type: "string",
        width: 120,
        width: 150,
        align: "left",
        link: true,
      },
@@ -124,13 +108,14 @@
        type: "string",
        width: 150,
        align: "left",
        bind: { key: "purchaseType", data: [] },
        bind: { key: "", data: [{key:'S',value:"标准入库"},{key:'V',value:"寄售补给入库"}] },
      },
      {
        field: "supplierCode",
        title: "供应商编号",
        type: "string",
        width: 150,
        width: 120,
        align: "left",
      },
      {
@@ -146,12 +131,13 @@
        type: "string",
        width: 90,
        align: "left",
        bind: { key: "purchaseOrderStatus", data: [] },
      },
      {
        field: "orderDate",
        title: "下单日期",
        type: "string",
        width: 90,
        width: 160,
        align: "left",
      },
      {
@@ -191,7 +177,7 @@
      },
    ]);
    const detail = ref({
      cnName: "入库单明细",
      cnName: "采购单明细",
      table: "InboundOrderDetail",
      columns: [
        {
@@ -217,7 +203,7 @@
          title: "行号",
          type: "string",
          width: 150,
          align: "left",
          align: "left"
        },
        {
          field: "materielCode",
@@ -232,9 +218,16 @@
          field: "materielName",
          title: "物料名称",
          type: "string",
          width: 150,
          width: 100,
          align: "left"
        },
        {
          field: "materielSpec",
          title: "物料规格",
          type: "select",
          type: "string",
          width: 100,
          align: "left",
          edit: { type: "" },
        },
        // {
        //   field: "batchNo",
@@ -249,7 +242,14 @@
          field: "purchaseDetailQuantity",
          title: "单据数量",
          type: "decimal",
          width: 90,
          width: 100,
          align: "left",
        },
        {
          field:"purchaseDetailReceiveQty",
          title: "已收数量",
          type: "decimal",
          width: 100,
          align: "left",
        },
        {
@@ -261,10 +261,11 @@
        },
        {
          field: "warehouseId",
          title: "仓库编号",
          title: "仓库",
          type: "string",
          width: 200,
          width: 100,
          align: "left",
          bind: { key: "warehouses", data: [] },
        },
        {
          field: "purchaseDetailStatus",
@@ -272,6 +273,7 @@
          type: "string",
          width: 180,
          align: "left",
          bind: { key: "purchaseOrderStatus", data: [] },
        },
        {
          field: "creater",