ZY
2024-09-25 2191824072549f0da35d73686a075e59b0196321
zy-asrs-admin/src/views/out/platformDetl/index.vue
copy from zy-asrs-admin/src/views/base/cacheSite/index.vue copy to zy-asrs-admin/src/views/out/platformDetl/index.vue
File was copied from zy-asrs-admin/src/views/base/cacheSite/index.vue
@@ -11,7 +11,7 @@
const router = useRouter();
const TABLE_KEY = 'table-cacheSite';
const TABLE_KEY = 'table-platformDetl';
let currentPage = 1;
let pageSize = 10;
const searchInput = ref("")
@@ -32,91 +32,126 @@
const columns = [
  {
    title: formatMessage('db.man_cache_site.channel', '通道'),
    dataIndex: 'channel',
    title: formatMessage('db.man_platform_detl.platform_id', '集货ID'),
    dataIndex: 'platformId$',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('channel'),
    ...getColumnSearchProps('platformId$'),
  },
  {
    title: formatMessage('db.man_cache_site.site_no', '站点编号'),
    dataIndex: 'siteNo',
    title: formatMessage('db.man_platform_detl.platform_no', '集货编号'),
    dataIndex: 'platformNo',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('siteNo'),
    ...getColumnSearchProps('platformNo'),
  },
  {
    title: formatMessage('db.man_cache_site.site_status', '站点状态'),
    dataIndex: 'siteStatus$',
    title: formatMessage('db.man_platform_detl.order_id', '订单'),
    dataIndex: 'orderId',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('siteStatus$'),
    ...getColumnSearchProps('orderId'),
  },
  {
    title: formatMessage('db.man_cache_site.order_id', '订单ID'),
    dataIndex: 'orderId$',
    title: formatMessage('db.man_platform_detl.order_detl_id', '订单明细'),
    dataIndex: 'orderDetlId$',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('orderId$'),
    ...getColumnSearchProps('orderDetlId$'),
  },
  {
    title: formatMessage('db.man_cache_site.order_no', '订单编号'),
    dataIndex: 'orderNo',
    title: formatMessage('db.man_platform_detl.task_detl_id', '任务明细'),
    dataIndex: 'taskDetlId$',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('orderNo'),
    ...getColumnSearchProps('taskDetlId$'),
  },
  // {
  //   title: formatMessage('db.man_cache_site.status', '状态'),
  //   dataIndex: 'status$',
  //   width: 140,
  //   ellipsis: true,
  //   ...getColumnSearchProps('status$'),
  // },
  // {
  //   title: formatMessage('db.man_cache_site.create_time', '添加时间'),
  //   dataIndex: 'createTime$',
  //   width: 140,
  //   ellipsis: true,
  //   ...getColumnSearchProps('createTime$'),
  // },
  // {
  //   title: formatMessage('db.man_cache_site.create_by', '添加人员'),
  //   dataIndex: 'createBy$',
  //   width: 140,
  //   ellipsis: true,
  //   ...getColumnSearchProps('createBy$'),
  // },
  {
    title: formatMessage('db.man_cache_site.update_time', '修改时间'),
    title: formatMessage('db.man_platform_detl.matnr', '商品编号'),
    dataIndex: 'matnr',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('matnr'),
  },
  {
    title: formatMessage('db.man_platform_detl.batch', '批号'),
    dataIndex: 'batch',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('batch'),
  },
  {
    title: formatMessage('db.man_platform_detl.field_params', '索引字段'),
    dataIndex: 'fieldParams',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('fieldParams'),
  },
  {
    title: formatMessage('db.man_platform_detl.anfme', '需求数量'),
    dataIndex: 'anfme',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('anfme'),
  },
  {
    title: formatMessage('db.man_platform_detl.qty', '实际数量'),
    dataIndex: 'qty',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('qty'),
  },
  {
    title: formatMessage('db.man_platform_detl.status', '状态'),
    dataIndex: 'status$',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('status$'),
  },
  {
    title: formatMessage('db.man_platform_detl.create_time', '添加时间'),
    dataIndex: 'createTime$',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('createTime$'),
  },
  {
    title: formatMessage('db.man_platform_detl.create_by', '添加人员'),
    dataIndex: 'createBy$',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('createBy$'),
  },
  {
    title: formatMessage('db.man_platform_detl.update_time', '修改时间'),
    dataIndex: 'updateTime$',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('updateTime$'),
  },
  {
    title: formatMessage('db.man_cache_site.update_by', '修改人员'),
    title: formatMessage('db.man_platform_detl.update_by', '修改人员'),
    dataIndex: 'updateBy$',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('updateBy$'),
  },
  {
    title: formatMessage('db.man_cache_site.memo', '备注'),
    title: formatMessage('db.man_platform_detl.memo', '备注'),
    dataIndex: 'memo',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('memo'),
  },
  {
    title: formatMessage('common.operation', '操作'),
    name: 'oper',
    dataIndex: 'oper',
    key: 'oper',
    width: 140,
    fixed: 'right',
  },
  // {
  //   title: formatMessage('common.operation', '操作'),
  //   name: 'oper',
  //   dataIndex: 'oper',
  //   key: 'oper',
  //   width: 140,
  //   fixed: 'right',
  // },
];
const hasSelected = computed(() => state.selectedRowKeys.length > 0);
@@ -135,7 +170,7 @@
function getPage() {
  state.loading = true;
  post('/api/cacheSite/page', {
  post('/api/platformDetl/page', {
    current: currentPage,
    pageSize: pageSize,
    condition: searchInput.value
@@ -169,7 +204,7 @@
    onOk: async () => {
      const hide = message.loading(formatMessage('common.loading', '请求中'));
      try {
        post('/api/cacheSite/remove/' + rows.map((row) => row.id).join(','), {}).then(resp => {
        post('/api/platformDetl/remove/' + rows.map((row) => row.id).join(','), {}).then(resp => {
          let result = resp.data;
          if (result.code === 200) {
            message.success(result.msg);
@@ -187,7 +222,7 @@
}
const handleExport = async (intl) => {
  postBlob('/api/cacheSite/export', {}).then(result => {
  postBlob('/api/platformDetl/export', {}).then(result => {
    const blob = new Blob([result.data], { type: 'application/vnd.ms-excel' });
    window.location.href = window.URL.createObjectURL(blob);
    return true;
@@ -213,7 +248,7 @@
<script>
export default {
  name: '播种站点'
  name: '集货库存'
}
</script>
@@ -224,7 +259,7 @@
      <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '请输入')"
        style="width: 200px;" @search="onSearch" />
      <div class="table-header-right">
        <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '添加') }}</a-button>
        <!-- <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '添加') }}</a-button> -->
        <a-button @click="handleExport">{{ formatMessage('page.export', '导出') }}</a-button>
      </div>
    </div>