liuying
2024-04-25 b4882e617627d537f405774b6576af1de154714d
iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsContainerPackaging/index.vue
@@ -6,29 +6,31 @@
      <div class="table-page-search-wrapper" v-if="hasPerm('WmsContainerPackaging:page')">
        <a-form layout="inline">
          <a-row :gutter="48">
            <a-col :md="8" :sm="24">
              <a-form-item label="容器类型ID">
                <a-input v-model="queryParam.containerTypeId" allow-clear placeholder="请输入容器类型ID"/>
                     <!-- <a-col :md="8" :sm="24">
              <a-form-item label="容器类型">
                <a-input v-model="queryParam.containerTypeId" allow-clear placeholder="请输入容器类型"/>
              </a-form-item>
            </a-col>
            </a-col> -->
            <a-col :md="8" :sm="24">
              <a-form-item label="容器类型名称">
                <a-input v-model="queryParam.containerTypeName" allow-clear placeholder="请输入容器类型名称"/>
              </a-form-item>
            </a-col><template v-if="advanced">
              <a-col :md="8" :sm="24">
                <a-form-item label="物料类型ID">
                  <a-input v-model="queryParam.materialTypeId" allow-clear placeholder="请输入物料类型ID"/>
                           <a-form-item label="物料类型">
                              <a-input v-model="queryParam.materialTypeId" allow-clear placeholder="请输入物料类型" />
                </a-form-item>
              </a-col>
              <a-col :md="8" :sm="24">
                <a-form-item label="物料类型编号">
                  <a-input v-model="queryParam.materialTypeCode" allow-clear placeholder="请输入物料类型编号"/>
                              <a-input v-model="queryParam.materialTypeCode" allow-clear
                                 placeholder="请输入物料类型编号" />
                </a-form-item>
              </a-col>
              <a-col :md="8" :sm="24">
                <a-form-item label="物料类型名称">
                  <a-input v-model="queryParam.materialTypeName" allow-clear placeholder="请输入物料类型名称"/>
                              <a-input v-model="queryParam.materialTypeName" allow-clear
                                 placeholder="请输入物料类型名称" />
                </a-form-item>
              </a-col>
              <a-col :md="8" :sm="24">
@@ -41,7 +43,10 @@
            <a-col :md="8" :sm="24">
               <a-form-item label="创建时间">
                  <a-range-picker style="width: 100%" :placeholder="['开始时间', '结束时间']"  :show-time="{
format: 'HH:mm:ss',  defaultValue: [moment('00:00:00', 'HH:mm:ss'),moment('23:59:59', 'HH:mm:ss')]}" v-model="queryParam.createdTime"  value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss"   @change="onChangecreatedTime"/>
                                 format: 'HH:mm:ss', defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('23:59:59', 'HH:mm:ss')]
                              }"
                                 v-model="queryParam.createdTime" value-format="YYYY-MM-DD HH:mm:ss"
                                 format="YYYY-MM-DD HH:mm:ss" @change="onChangecreatedTime" />
               </a-form-item>
            </a-col>
@@ -51,7 +56,10 @@
            <a-col :md="8" :sm="24">
               <a-form-item label="更新时间">
                  <a-range-picker style="width: 100%" :placeholder="['开始时间', '结束时间']"  :show-time="{
format: 'HH:mm:ss',  defaultValue: [moment('00:00:00', 'HH:mm:ss'),moment('23:59:59', 'HH:mm:ss')]}" v-model="queryParam.updatedTime"  value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss"   @change="onChangeupdatedTime"/>
                                 format: 'HH:mm:ss', defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('23:59:59', 'HH:mm:ss')]
                              }"
                                 v-model="queryParam.updatedTime" value-format="YYYY-MM-DD HH:mm:ss"
                                 format="YYYY-MM-DD HH:mm:ss" @change="onChangeupdatedTime" />
               </a-form-item>
            </a-col>
@@ -83,31 +91,30 @@
    </a-card>
   </div>
    <a-card :bordered="false">
      <s-table
        ref="table"
        :columns="columns"
        :data="loadData"
        :alert="true"
      @changeTablePage="pageInfo = $event"
      :scroll="{x: true,y:tableHeight}"
        :rowKey="(record) => record.id"
         <s-table ref="table" :columns="columns" :data="loadData" :alert="true" @changeTablePage="pageInfo = $event"
            :scroll="{ x: true, y: tableHeight }" :rowKey="(record) => record.id"
        :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }">
        <template class="table-operator" slot="operator" v-if="hasPerm('WmsContainerPackaging:add')" >
      <div ref="actionBar" class="actionBar">
         <a-button type="info" v-if="hasPerm('sysExcelTemplate:importExcel')" icon="upload" @click="$refs.excelForm.index()">
                  <a-button type="info" v-if="hasPerm('sysExcelTemplate:importExcel')" icon="upload"
                     @click="$refs.excelForm.index()">
            导入
          </a-button>
          <a-button type="info" v-if="hasPerm('WmsContainerPackaging:exportExcel')" icon="download" @click="WmsContainerPackagingToExcel()">
                  <a-button type="info" v-if="hasPerm('WmsContainerPackaging:exportExcel')" icon="download"
                     @click="WmsContainerPackagingToExcel()">
            导出
          </a-button>
         <a-button type="primary" v-if="hasPerm('WmsContainerPackaging:add')" icon="plus" @click="$refs.addForm.add()">新增容器关系</a-button>
                  <a-button type="primary" v-if="hasPerm('WmsContainerPackaging:add')" icon="plus"
                     @click="$refs.addForm.add()">新增容器关系</a-button>
      </div>
      </template>
        <span slot="action" slot-scope="text, record">
         
         <a v-if="hasPerm('WmsContainerPackaging:edit')" @click="$refs.editForm.edit(record)">编辑</a>
          <a-divider type="vertical" v-if="hasPerm('WmsContainerPackaging:edit') & hasPerm('WmsContainerPackaging:delete')"/>
          <a-popconfirm v-if="hasPerm('WmsContainerPackaging:delete')" placement="topRight" title="确认删除?" @confirm="() => WmsContainerPackagingDelete(record)">
               <a-divider type="vertical"
                  v-if="hasPerm('WmsContainerPackaging:edit') & hasPerm('WmsContainerPackaging:delete')" />
               <a-popconfirm v-if="hasPerm('WmsContainerPackaging:delete')" placement="topRight" title="确认删除?"
                  @confirm="() => WmsContainerPackagingDelete(record)">
            <a>删除</a>
          </a-popconfirm>
        </span>
@@ -152,26 +159,26 @@
   align: 'center',
   customRender: (text, record, index) => `${index + 1 + (this.pageInfo.current - 1) * this.pageInfo.pageSize}`
   },
   {
   title: '容器类型ID',
   align: 'center',
   customHeaderCell: () => {
   return {
    style: {
   'min-width': '130px'//最小列宽设置
    }
    }
   },
   customCell: () => {
   return {
   style: {
   'min-width': '130px'//最小列宽设置
   }
   }
   },
   sorter: true,
   dataIndex: 'containerTypeId'
   },
            // {
            //    title: '容器类型Id',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '130px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '130px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'containerTypeId'
            // },
   {
   title: '容器类型名称',
   align: 'center',
@@ -192,26 +199,26 @@
   sorter: true,
   dataIndex: 'containerTypeName'
   },
   {
   title: '物料类型ID',
   align: 'center',
   customHeaderCell: () => {
   return {
    style: {
   'min-width': '130px'//最小列宽设置
    }
    }
   },
   customCell: () => {
   return {
   style: {
   'min-width': '130px'//最小列宽设置
   }
   }
   },
   sorter: true,
   dataIndex: 'materialTypeId'
   },
            // {
            //    title: '物料类型Id',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '130px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '130px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'materialTypeId'
            // },
   {
   title: '物料类型编号',
   align: 'center',
@@ -492,7 +499,7 @@
  .table-operator {
    margin-bottom: 18px;
  }
  button {
    margin-right: 8px;
  }
</style>
}</style>