1
Huangxiaoqiang-03
2024-10-23 c05003c73bbe527478bccc55efe25c19068b6f50
´úÂë¹ÜÀí/WMS/WIDESEA_WMSClient/src/views/stock/stockInfoDetail.vue
@@ -1,16 +1,7 @@
<template>
    <view-grid
      ref="grid"
      :columns="columns"
      :detail="detail"
      :editFormFields="editFormFields"
      :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields"
      :searchFormOptions="searchFormOptions"
      :table="table"
      :extend="extend"
    >
  <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
    :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
    :table="table" :extend="extend">
    </view-grid>
  </template>
    <script>
@@ -39,61 +30,42 @@
      const editFormOptions = ref([
        [
          {
            title: "设备编号",
          title: "物料编号",
            required: true,
            field: "deviceCode",
          field: "materielCode",
            type: "string",
          },
          {
            title: "设备名称",
          title: "单据编号",
            required: true,
            field: "deviceName",
          field: "materielName",
            type: "string",
          },
          {
            title: "设备类型",
          title: "批次号",
            required: true,
            field: "deviceType",
          field: "orderNo",
            type: "string",
          },
          {
            title: "设备状态",
          title: "序列号",
            required: true,
            field: "deviceStatus",
          field: "serialNumber",
            type: "string",
          },
        ],
        [
          { title: "设备IP", required: true, field: "deviceIp", type: "string" },
          {
            title: "设备端口",
            required: true,
            field: "devicePort",
            type: "string",
          },
          {
            title: "PLC类型",
            required: true,
            field: "devicePlcType",
            type: "string",
          },
          {
            title: "备注",
            field: "deviceRemark",
            type: "string",
          },
        ],
      ]);
      const searchFormFields = ref({
        deviceCode: "",
        deviceType: "",
        deviceStatus: "",
      materielCode: "",
      materielName: "",
      orderNo: "",
      });
      const searchFormOptions = ref([
        [
          { title: "设备编号", field: "deviceCode" },
          { title: "设备类型", field: "deviceType" },
          { title: "设备状态", field: "deviceStatus" },
        { title: "物料编号", field: "materielCode" },
        { title: "物料名称", field: "materielName" },
        { title: "单据编号", field: "orderNo" },
        ],
      ]);
      const columns = ref([
@@ -169,6 +141,7 @@
          type: "string",
          width: 120,
          align: "left",
        bind: { key: "outStockStatus", data: [] },
        },
        {
          field: "creater",
@@ -225,4 +198,3 @@
    },
  });
  </script>