css
liuying
2024-04-25 a630b33c48db307e47259078f57e28bdeee45edd
iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsPlace/index.vue
@@ -22,8 +22,10 @@
                </a-form-item>
              </a-col><a-col :md="8" :sm="24">
                <a-form-item label="库位类型">
                  <a-select :allowClear="true" style="width: 100%" v-model="queryParam.placeType" placeholder="请选择库位类型">
                    <a-select-option v-for="(item,index) in placeTypeData" :key="index" :value="item.code">{{ item.name }}</a-select-option>
                              <a-select :allowClear="true" style="width: 100%" v-model="queryParam.placeType"
                                 placeholder="请选择库位类型">
                                 <a-select-option v-for="(item, index) in placeTypeData" :key="index"
                                    :value="item.code">{{ item.name }}</a-select-option>
                  </a-select>
                </a-form-item>
              </a-col>
@@ -31,10 +33,13 @@
                <a-form-item label="库位类型名称">
                  <a-input v-model="queryParam.placeTypeName" allow-clear placeholder="请输入库位类型名称"/>
                </a-form-item> -->
              </a-col><a-col :md="8" :sm="24">
                        <!-- </a-col> -->
                        <a-col :md="8" :sm="24">
                <a-form-item label="库位属性">
                  <a-select :allowClear="true" style="width: 100%" v-model="queryParam.placeStatus" placeholder="请选择库位属性">
                    <a-select-option v-for="(item,index) in placeStatusData" :key="index" :value="item.code">{{ item.name }}</a-select-option>
                              <a-select :allowClear="true" style="width: 100%" v-model="queryParam.placeStatus"
                                 placeholder="请选择库位属性">
                                 <a-select-option v-for="(item, index) in placeStatusData" :key="index"
                                    :value="item.code">{{ item.name }}</a-select-option>
                  </a-select>
                </a-form-item>
              </a-col>
@@ -92,8 +97,10 @@
              </a-col> -->
         <a-col :md="8" :sm="24">
            <a-form-item label="是否激活与任务调度">
               <a-select :allowClear="true" style="width: 100%" v-model="queryParam.isActivateWCS" placeholder="请选择是否激活与任务调度">
                  <a-select-option v-for="(item,index) in isActivateWCSData" :key="index" :value="item.code">{{ item.name }}</a-select-option>
                              <a-select :allowClear="true" style="width: 100%" v-model="queryParam.isActivateWCS"
                                 placeholder="请选择是否激活与任务调度">
                                 <a-select-option v-for="(item, index) in isActivateWCSData" :key="index"
                                    :value="item.code">{{ item.name }}</a-select-option>
               </a-select>
            </a-form-item>
         </a-col>
@@ -113,30 +120,34 @@
                  <a-input v-model="queryParam.areaId" allow-clear placeholder="请输入所在库区"/>
                </a-form-item>
              </a-col>
              <a-col :md="8" :sm="24">
                        <!-- <a-col :md="8" :sm="24">
                <a-form-item label="库区名称">
                  <a-input v-model="queryParam.areaName" 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.verificationCode" allow-clear placeholder="请输入检验码"/>
                </a-form-item>
              </a-col><a-col :md="8" :sm="24">
                <a-form-item label="排">
                  <a-input-number v-model="queryParam.rowNo" style="width: 100%" allow-clear placeholder="请输入排"/>
                              <a-input-number v-model="queryParam.rowNo" style="width: 100%" allow-clear
                                 placeholder="请输入排" />
                </a-form-item>
              </a-col><a-col :md="8" :sm="24">
                <a-form-item label="列">
                  <a-input-number v-model="queryParam.columnNo" style="width: 100%" allow-clear placeholder="请输入列"/>
                              <a-input-number v-model="queryParam.columnNo" style="width: 100%" allow-clear
                                 placeholder="请输入列" />
                </a-form-item>
              </a-col><a-col :md="8" :sm="24">
                <a-form-item label="层">
                  <a-input-number v-model="queryParam.layerNo" style="width: 100%" allow-clear placeholder="请输入层"/>
                              <a-input-number v-model="queryParam.layerNo" style="width: 100%" allow-clear
                                 placeholder="请输入层" />
                </a-form-item>
              </a-col><a-col :md="8" :sm="24">
                <a-form-item label="巷道">
                  <a-input-number v-model="queryParam.laneNo" style="width: 100%" allow-clear placeholder="请输入巷道"/>
                              <a-input-number v-model="queryParam.laneNo" style="width: 100%" allow-clear
                                 placeholder="请输入巷道" />
                </a-form-item>
              </a-col>
              <a-col :md="8" :sm="24">
@@ -175,25 +186,31 @@
                </a-form-item>
              </a-col><a-col :md="8" :sm="24">
                <a-form-item label="入库顺序">
                  <a-input-number v-model="queryParam.inSequence" style="width: 100%" allow-clear placeholder="请输入入库顺序"/>
                              <a-input-number v-model="queryParam.inSequence" style="width: 100%" allow-clear
                                 placeholder="请输入入库顺序" />
                </a-form-item>
              </a-col><a-col :md="8" :sm="24">
                <a-form-item label="出库顺序">
                  <a-input-number v-model="queryParam.outSequence" style="width: 100%" allow-clear placeholder="请输入出库顺序"/>
                              <a-input-number v-model="queryParam.outSequence" style="width: 100%" allow-clear
                                 placeholder="请输入出库顺序" />
                </a-form-item>
              </a-col>
         <a-col :md="8" :sm="24">
            <a-form-item label="是否虚拟">
               <a-select :allowClear="true" style="width: 100%" v-model="queryParam.isVirtually" placeholder="请选择是否虚拟">
                  <a-select-option v-for="(item,index) in isVirtuallyData" :key="index" :value="item.code">{{ item.name }}</a-select-option>
                              <a-select :allowClear="true" style="width: 100%" v-model="queryParam.isVirtually"
                                 placeholder="请选择是否虚拟">
                                 <a-select-option v-for="(item, index) in isVirtuallyData" :key="index"
                                    :value="item.code">{{ item.name }}</a-select-option>
               </a-select>
            </a-form-item>
         </a-col>
      
         <a-col :md="8" :sm="24">
            <a-form-item label="是否禁用">
               <a-select :allowClear="true" style="width: 100%" v-model="queryParam.isDisabled" placeholder="请选择是否禁用">
                  <a-select-option v-for="(item,index) in isDisabledData" :key="index" :value="item.code">{{ item.name }}</a-select-option>
                              <a-select :allowClear="true" style="width: 100%" v-model="queryParam.isDisabled"
                                 placeholder="请选择是否禁用">
                                 <a-select-option v-for="(item, index) in isDisabledData" :key="index"
                                    :value="item.code">{{ item.name }}</a-select-option>
               </a-select>
            </a-form-item>
         </a-col>
@@ -203,7 +220,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>
@@ -213,7 +233,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>
@@ -245,24 +268,21 @@
    </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('WmsPlace: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('WmsPlace:exportExcel')" icon="download" @click="WmsPlaceToExcel()">
                  <a-button type="info" v-if="hasPerm('WmsPlace:exportExcel')" icon="download"
                     @click="WmsPlaceToExcel()">
            导出
          </a-button>
         <a-button type="primary" v-if="hasPerm('WmsPlace:add')" icon="plus" @click="$refs.addForm.add()">新增库位信息</a-button>
                  <a-button type="primary" v-if="hasPerm('WmsPlace:add')" icon="plus"
                     @click="$refs.addForm.add()">新增库位信息</a-button>
      </div>
      </template>
        <span slot="placeTypescopedSlots" slot-scope="text">
@@ -338,7 +358,8 @@
         
         <a v-if="hasPerm('WmsPlace:edit')" @click="$refs.editForm.edit(record)">编辑</a>
          <a-divider type="vertical" v-if="hasPerm('WmsPlace:edit') & hasPerm('WmsPlace:delete')"/>
          <a-popconfirm v-if="hasPerm('WmsPlace:delete')" placement="topRight" title="确认删除?" @confirm="() => WmsPlaceDelete(record)">
               <a-popconfirm v-if="hasPerm('WmsPlace:delete')" placement="topRight" title="确认删除?"
                  @confirm="() => WmsPlaceDelete(record)">
            <a>删除</a>
          </a-popconfirm>
        </span>
@@ -464,26 +485,26 @@
   dataIndex: 'placeType',
   scopedSlots: { customRender: 'placeTypescopedSlots' }
   },
   {
   title: '库位类型名称',
   align: 'center',
   customHeaderCell: () => {
   return {
    style: {
   'min-width': '120px'//最小列宽设置
    }
    }
   },
   customCell: () => {
   return {
   style: {
   'min-width': '120px'//最小列宽设置
   }
   }
   },
   sorter: true,
   dataIndex: 'placeTypeName'
   },
            // {
            //    title: '库位类型名称',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'placeTypeName'
            // },
   {
   title: '库位属性',
   align: 'center',
@@ -505,170 +526,170 @@
   dataIndex: 'placeStatus',
   scopedSlots: { customRender: 'placeStatusscopedSlots' }
   },
   {
   title: '是否堆垛机库位',
   align: 'center',
   customHeaderCell: () => {
   return {
    style: {
   'min-width': '140px'//最小列宽设置
    }
    }
   },
   customCell: () => {
   return {
   style: {
   'min-width': '120px'//最小列宽设置
   }
   }
   },
   sorter: true,
   dataIndex: 'isSrmPlace',
   scopedSlots: { customRender: 'isSrmPlacescopedSlots' }
   },
   {
   title: '堆垛机库位号',
   align: 'center',
   customHeaderCell: () => {
   return {
    style: {
   'min-width': '120px'//最小列宽设置
    }
    }
   },
   customCell: () => {
   return {
   style: {
   'min-width': '120px'//最小列宽设置
   }
   }
   },
   sorter: true,
   dataIndex: 'srmPlaceNo'
   },
   {
   title: '是否RGV库位',
   align: 'center',
   customHeaderCell: () => {
   return {
    style: {
   'min-width': '120px'//最小列宽设置
    }
    }
   },
   customCell: () => {
   return {
   style: {
   'min-width': '120px'//最小列宽设置
   }
   }
   },
   sorter: true,
   dataIndex: 'isRgvPlace',
   scopedSlots: { customRender: 'isRgvPlacescopedSlots' }
   },
   {
   title: 'RGV库位号',
   align: 'center',
   customHeaderCell: () => {
   return {
    style: {
   'min-width': '120px'//最小列宽设置
    }
    }
   },
   customCell: () => {
   return {
   style: {
   'min-width': '120px'//最小列宽设置
   }
   }
   },
   sorter: true,
   dataIndex: 'rgvPlaceNo'
   },
   {
   title: '是否AGV库位',
   align: 'center',
   customHeaderCell: () => {
   return {
    style: {
   'min-width': '120px'//最小列宽设置
    }
    }
   },
   customCell: () => {
   return {
   style: {
   'min-width': '120px'//最小列宽设置
   }
   }
   },
   sorter: true,
   dataIndex: 'isAgvPlace',
   scopedSlots: { customRender: 'isAgvPlacescopedSlots' }
   },
   {
   title: 'AGV库位号',
   align: 'center',
   customHeaderCell: () => {
   return {
    style: {
   'min-width': '120px'//最小列宽设置
    }
    }
   },
   customCell: () => {
   return {
   style: {
   'min-width': '120px'//最小列宽设置
   }
   }
   },
   sorter: true,
   dataIndex: 'agvPlaceNo'
   },
   {
   title: '是否输送线库位',
   align: 'center',
   customHeaderCell: () => {
   return {
    style: {
   'min-width': '120px'//最小列宽设置
    }
    }
   },
   customCell: () => {
   return {
   style: {
   'min-width': '120px'//最小列宽设置
   }
   }
   },
   sorter: true,
   dataIndex: 'isTransPlace',
   scopedSlots: { customRender: 'isTransPlacescopedSlots' }
   },
   {
   title: '输送线库位号',
   align: 'center',
   customHeaderCell: () => {
   return {
    style: {
   'min-width': '120px'//最小列宽设置
    }
    }
   },
   customCell: () => {
   return {
   style: {
   'min-width': '120px'//最小列宽设置
   }
   }
   },
   sorter: true,
   dataIndex: 'transPlaceNo'
   },
            // {
            //    title: '是否堆垛机库位',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '140px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'isSrmPlace',
            //    scopedSlots: { customRender: 'isSrmPlacescopedSlots' }
            // },
            // {
            //    title: '堆垛机库位号',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'srmPlaceNo'
            // },
            // {
            //    title: '是否RGV库位',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'isRgvPlace',
            //    scopedSlots: { customRender: 'isRgvPlacescopedSlots' }
            // },
            // {
            //    title: 'RGV库位号',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'rgvPlaceNo'
            // },
            // {
            //    title: '是否AGV库位',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'isAgvPlace',
            //    scopedSlots: { customRender: 'isAgvPlacescopedSlots' }
            // },
            // {
            //    title: 'AGV库位号',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'agvPlaceNo'
            // },
            // {
            //    title: '是否输送线库位',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'isTransPlace',
            //    scopedSlots: { customRender: 'isTransPlacescopedSlots' }
            // },
            // {
            //    title: '输送线库位号',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'transPlaceNo'
            // },
   {
   title: '是否激活与任务调度',
   align: 'center',
@@ -750,26 +771,26 @@
   sorter: true,
   dataIndex: 'areaId'
   },
   {
   title: '库区名称',
   align: 'center',
   customHeaderCell: () => {
   return {
    style: {
   'min-width': '120px'//最小列宽设置
    }
    }
   },
   customCell: () => {
   return {
   style: {
   'min-width': '120px'//最小列宽设置
   }
   }
   },
   sorter: true,
   dataIndex: 'areaName'
   },
            // {
            //    title: '库区名称',
            //    align: 'center',
            //    customHeaderCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    customCell: () => {
            //       return {
            //          style: {
            //             'min-width': '120px'//最小列宽设置
            //          }
            //       }
            //    },
            //    sorter: true,
            //    dataIndex: 'areaName'
            // },
   {
   title: '检验码',
   align: 'center',
@@ -1328,11 +1349,10 @@
   }
   }
</script>
<style lang="less">
  .table-operator {
<style lang="less">.table-operator {
    margin-bottom: 18px;
  }
  button {
    margin-right: 8px;
  }
</style>
}</style>