#
Junjie
2025-02-14 ac4341ea6b66ae02427d39d35f41d42d78b2eb2e
zy-asrs-admin/src/views/out/cacheSite/index.vue
@@ -15,6 +15,12 @@
let currentPage = 1;
let pageSize = 10;
const searchInput = ref("")
const searchParam = ref({
  siteNo: null,
  siteStatus: null,
  orderNo: null,
  platformNo: null,
})
const editChild = ref(null)
const state = reactive({
@@ -52,13 +58,13 @@
    ellipsis: true,
    ...getColumnSearchProps('siteStatus$'),
  },
  {
    title: formatMessage('db.man_cache_site.order_id', '订单ID'),
    dataIndex: 'orderId$',
    width: 140,
    ellipsis: true,
    ...getColumnSearchProps('orderId$'),
  },
  // {
  //   title: formatMessage('db.man_cache_site.order_id', '订单ID'),
  //   dataIndex: 'orderId$',
  //   width: 140,
  //   ellipsis: true,
  //   ...getColumnSearchProps('orderId$'),
  // },
  {
    title: formatMessage('db.man_cache_site.order_no', '订单编号'),
    dataIndex: 'orderNo',
@@ -145,7 +151,8 @@
  post('/api/cacheSite/page', {
    current: currentPage,
    pageSize: pageSize,
    condition: searchInput.value
    condition: searchInput.value,
    _param: searchParam.value,
  }).then((resp) => {
    let result = resp.data;
    if (result.code == 200) {
@@ -388,8 +395,27 @@
  <div>
    <EditView ref="editChild" @tableReload="handleTableReload" />
    <div class="table-header">
      <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '请输入')"
        style="width: 200px;" @search="onSearch" />
      <div>
        <a-input v-model:value="searchParam.siteNo"
          :placeholder="formatMessage('page.cacheSite.siteNo.input', '请输入站点编号')"
          style="width: 140px;margin-right: 10px;" />
        <a-select v-model:value="searchParam.siteStatus" :options="[
          { label: '空站', value: 0 },
          { label: '满站', value: 1 },
          { label: '预约', value: 2 },
        ]" :placeholder="formatMessage('page.cacheSite.siteStatus.input', '请选择站点状态')"
          style="width: 140px;margin-right: 10px;" allowClear>
        </a-select>
        <a-input v-model:value="searchParam.orderNo"
          :placeholder="formatMessage('page.cacheSite.orderNo.input', '请输入订单号')"
          style="width: 140px;margin-right: 10px;" />
        <a-input v-model:value="searchParam.platformNo"
          :placeholder="formatMessage('page.cacheSite.platformNo.input', '请输入集货编号')"
          style="width: 140px;margin-right: 10px;" />
        <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '请输入')"
          style="width: 200px;" @search="onSearch" />
      </div>
      <div class="table-header-right">
        <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '添加') }}</a-button>
        <a-button @click="handleExport">{{ formatMessage('page.export', '导出') }}</a-button>