| | |
| | | </a-form-item> |
| | | </a-col><a-col :md="8" :sm="24"> |
| | | <a-form-item label="库位类型"> |
| | | <a-input-number v-model="queryParam.placeType" style="width: 100%" allow-clear placeholder="请输入库位类型"/> |
| | | <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> |
| | | <a-col :md="8" :sm="24"> |
| | | <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-form-item label="存放单位"> |
| | | <a-input v-model="queryParam.stockUnit" allow-clear placeholder="请输入存放单位"/> |
| | | </a-form-item> |
| | | </a-col><a-col :md="8" :sm="24"> |
| | | <a-form-item label="库位属性"> |
| | | <a-input-number v-model="queryParam.placeStatus" style="width: 100%" allow-clear placeholder="请输入库位属性"/> |
| | | <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> |
| | | <a-col :md="8" :sm="24"> |
| | |
| | | |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | <a-col :md="8" :sm="24"> |
| | | <a-form-item label="创建者名称"> |
| | | <a-input v-model="queryParam.createdUserName" allow-clear placeholder="请输入创建者名称"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="8" :sm="24"> |
| | | <a-form-item label="修改者名称"> |
| | | <a-input v-model="queryParam.updatedUserName" allow-clear placeholder="请输入修改者名称"/> |
| | | </a-form-item> |
| | | </a-col> </template> |
| | | </template> |
| | | |
| | | <a-col :md="8" :sm="24" > |
| | | <span class="table-page-search-submitButtons"> |
| | |
| | | <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"> |
| | | {{ 'place_type' | dictType(text) }} |
| | | </span> |
| | | <span slot="placeStatusscopedSlots" slot-scope="text"> |
| | | {{ 'place_status' | dictType(text) }} |
| | | </span> |
| | | <span slot="isSrmPlacescopedSlots" slot-scope="text"> |
| | | <div v-if="text===true "> |
| | | <a-tag color="green">是</a-tag> |
| | |
| | | customHeaderCell: () => { |
| | | return { |
| | | style: { |
| | | 'min-width': '80px'//最小列宽设置 |
| | | 'min-width': '120px'//最小列宽设置 |
| | | } |
| | | } |
| | | }, |
| | | customCell: () => { |
| | | return { |
| | | style: { |
| | | 'min-width': '80px'//最小列宽设置 |
| | | 'min-width': '120px'//最小列宽设置 |
| | | } |
| | | } |
| | | }, |
| | | sorter: true, |
| | | dataIndex: 'placeType' |
| | | dataIndex: 'placeType', |
| | | scopedSlots: { customRender: 'placeTypescopedSlots' } |
| | | }, |
| | | { |
| | | title: '库位类型名称', |
| | |
| | | dataIndex: 'placeTypeName' |
| | | }, |
| | | { |
| | | title: '存放单位', |
| | | align: 'center', |
| | | customHeaderCell: () => { |
| | | return { |
| | | style: { |
| | | 'min-width': '120px'//最小列宽设置 |
| | | } |
| | | } |
| | | }, |
| | | customCell: () => { |
| | | return { |
| | | style: { |
| | | 'min-width': '120px'//最小列宽设置 |
| | | } |
| | | } |
| | | }, |
| | | sorter: true, |
| | | dataIndex: 'stockUnit' |
| | | }, |
| | | { |
| | | title: '库位属性', |
| | | align: 'center', |
| | | customHeaderCell: () => { |
| | | return { |
| | | style: { |
| | | 'min-width': '80px'//最小列宽设置 |
| | | 'min-width': '120px'//最小列宽设置 |
| | | } |
| | | } |
| | | }, |
| | | customCell: () => { |
| | | return { |
| | | style: { |
| | | 'min-width': '80px'//最小列宽设置 |
| | | 'min-width': '120px'//最小列宽设置 |
| | | } |
| | | } |
| | | }, |
| | | sorter: true, |
| | | dataIndex: 'placeStatus' |
| | | dataIndex: 'placeStatus', |
| | | scopedSlots: { customRender: 'placeStatusscopedSlots' } |
| | | }, |
| | | { |
| | | title: '是否堆垛机库位', |
| | |
| | | return res.data |
| | | }) |
| | | }, |
| | | placeTypeData: [], |
| | | placeStatusData: [], |
| | | selectedRowKeys: [], |
| | | selectedRows: [] |
| | | } |
| | |
| | | } |
| | | }); |
| | | } |
| | | const placeTypeOption = this.$options |
| | | this.placeTypeData = placeTypeOption.filters['dictData']('place_type') |
| | | const placeStatusOption = this.$options |
| | | this.placeStatusData = placeStatusOption.filters['dictData']('place_status') |
| | | const isSrmPlaceOption = this.$options |
| | | this.isSrmPlaceData = isSrmPlaceOption.filters['dictData']('yes_true_false') |
| | | const isRgvPlaceOption = this.$options |