|
|
@@ -12,6 +12,8 @@
|
|
|
<el-card shadow="never">
|
|
|
<pickingListSearch @search="reload" ref="searchRef" />
|
|
|
|
|
|
+ <!-- <pickingSearch v-else @search="reload" ref="pickingRef" /> -->
|
|
|
+
|
|
|
<ele-split-layout
|
|
|
width="244px"
|
|
|
allow-collapse
|
|
|
@@ -144,14 +146,17 @@
|
|
|
<script>
|
|
|
import AssetTree from '../../components/assetTree.vue';
|
|
|
import pickingListSearch from './pickingListSearch.vue';
|
|
|
+ import pickingSearch from './pickingSearch.vue';
|
|
|
import {
|
|
|
pageeLedgerMain,
|
|
|
assetPage,
|
|
|
listInProduct
|
|
|
} from '@/api/produce/workOrder';
|
|
|
|
|
|
+ import { getOutindetailtwo } from '@/api/produce/picking';
|
|
|
+
|
|
|
export default {
|
|
|
- components: { AssetTree, pickingListSearch },
|
|
|
+ components: { AssetTree, pickingListSearch, pickingSearch },
|
|
|
props: {
|
|
|
isType: {
|
|
|
type: String,
|
|
|
@@ -183,18 +188,8 @@
|
|
|
selection: [],
|
|
|
|
|
|
allSelection: [],
|
|
|
- temporaryList: []
|
|
|
- };
|
|
|
- },
|
|
|
-
|
|
|
- computed: {
|
|
|
- tableKey() {
|
|
|
- return `table-${this.rootCategoryLevelId}`;
|
|
|
- },
|
|
|
-
|
|
|
- // 表格列配置
|
|
|
- columns() {
|
|
|
- return [
|
|
|
+ temporaryList: [],
|
|
|
+ cloumsAll: [
|
|
|
{
|
|
|
width: 45,
|
|
|
type: 'selection',
|
|
|
@@ -391,7 +386,217 @@
|
|
|
}
|
|
|
]
|
|
|
: [])
|
|
|
- ];
|
|
|
+ ]
|
|
|
+ };
|
|
|
+ },
|
|
|
+
|
|
|
+ computed: {
|
|
|
+ tableKey() {
|
|
|
+ return `table-${this.rootCategoryLevelId}`;
|
|
|
+ },
|
|
|
+
|
|
|
+ // 表格列配置
|
|
|
+ columns() {
|
|
|
+ return this.cloumsAll;
|
|
|
+
|
|
|
+ // return [
|
|
|
+ // {
|
|
|
+ // width: 45,
|
|
|
+ // type: 'selection',
|
|
|
+ // columnKey: 'selection',
|
|
|
+ // align: 'center',
|
|
|
+ // reserveSelection: true
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // columnKey: 'index',
|
|
|
+ // label: '序号',
|
|
|
+ // type: 'index',
|
|
|
+ // width: 50,
|
|
|
+ // align: 'center'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'code',
|
|
|
+ // label: '物品编码',
|
|
|
+ // slot: 'code'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'codeNumber',
|
|
|
+ // label: '编号',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'name',
|
|
|
+ // label: '名称',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'brandNum',
|
|
|
+ // label: '牌号',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'specification',
|
|
|
+ // label: '规格',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'modelType',
|
|
|
+ // label: '型号',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // },
|
|
|
+
|
|
|
+ // {
|
|
|
+ // prop: 'batchNo',
|
|
|
+ // label: '批次号',
|
|
|
+ // align: 'center'
|
|
|
+ // },
|
|
|
+ // // {
|
|
|
+ // // prop: 'manualBatchNo',
|
|
|
+ // // label: '批次号',
|
|
|
+ // // align: 'center'
|
|
|
+ // // },
|
|
|
+ // {
|
|
|
+ // prop: 'availableCountBase',
|
|
|
+ // label: '计量库存数量',
|
|
|
+ // sortable: 'custom',
|
|
|
+ // slot: 'availableCountBase',
|
|
|
+ // showOverflowTooltip: true,
|
|
|
+ // width: 130,
|
|
|
+ // align: 'center'
|
|
|
+ // },
|
|
|
+
|
|
|
+ // ...([1, 23, 8].includes(Number(this.rootCategoryLevelId))
|
|
|
+ // ? [
|
|
|
+ // {
|
|
|
+ // prop: 'packingCountBase',
|
|
|
+ // label: '包装库存',
|
|
|
+ // slot: 'packingCountBase',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // : []),
|
|
|
+
|
|
|
+ // {
|
|
|
+ // prop: 'weight',
|
|
|
+ // label: '重量',
|
|
|
+ // showOverflowTooltip: true,
|
|
|
+ // slot: 'weight'
|
|
|
+ // },
|
|
|
+
|
|
|
+ // {
|
|
|
+ // prop: 'expirationDate',
|
|
|
+ // slot: 'expirationDate',
|
|
|
+ // label: '库存保质期',
|
|
|
+ // width: 100
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'expirationTime',
|
|
|
+ // label: '周期倒计时',
|
|
|
+ // showOverflowTooltip: true,
|
|
|
+ // width: 100
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'qualityResult',
|
|
|
+ // slot: 'qualityResult',
|
|
|
+ // label: '质检结果',
|
|
|
+ // showOverflowTooltip: true,
|
|
|
+ // width: 100
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'qualityStatus',
|
|
|
+ // slot: 'qualityStatus',
|
|
|
+ // label: '质检状态',
|
|
|
+ // showOverflowTooltip: true,
|
|
|
+ // width: 100
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'pathName',
|
|
|
+ // width: 230,
|
|
|
+ // label: '仓库',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // },
|
|
|
+
|
|
|
+ // ...(this.rootCategoryLevelId == '4'
|
|
|
+ // ? [
|
|
|
+ // {
|
|
|
+ // prop: 'workstationName',
|
|
|
+ // label: '工位',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // },
|
|
|
+
|
|
|
+ // {
|
|
|
+ // prop: 'runStatus',
|
|
|
+ // label: '状态',
|
|
|
+ // slot: 'runStatus',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // : []),
|
|
|
+
|
|
|
+ // // ...(this.rootCategoryLevelId == '5'
|
|
|
+ // // ? [
|
|
|
+ // // {
|
|
|
+ // // prop: 'dieHoleNum',
|
|
|
+ // // label: '模孔数量',
|
|
|
+ // // showOverflowTooltip: true
|
|
|
+ // // },
|
|
|
+ // // {
|
|
|
+ // // prop: 'mandrelDiameter',
|
|
|
+ // // label: '芯棒直径',
|
|
|
+ // // showOverflowTooltip: true
|
|
|
+ // // },
|
|
|
+ // // {
|
|
|
+ // // prop: 'shrinkEffictive',
|
|
|
+ // // label: '收缩系数',
|
|
|
+ // // showOverflowTooltip: true
|
|
|
+ // // }
|
|
|
+ // // ]
|
|
|
+ // // : []),
|
|
|
+
|
|
|
+ // // ...(this.rootCategoryLevelId == '7'
|
|
|
+ // // ? [
|
|
|
+ // // {
|
|
|
+ // // prop: 'materialQuality',
|
|
|
+ // // label: '材质',
|
|
|
+ // // showOverflowTooltip: true
|
|
|
+ // // },
|
|
|
+
|
|
|
+ // // {
|
|
|
+ // // prop: 'vehicleLen',
|
|
|
+ // // label: '长宽高',
|
|
|
+ // // slot: 'vehicleLen',
|
|
|
+ // // showOverflowTooltip: true
|
|
|
+ // // }
|
|
|
+ // // ]
|
|
|
+ // // : []),
|
|
|
+
|
|
|
+ // ...(this.rootCategoryLevelId == '8'
|
|
|
+ // ? [
|
|
|
+ // {
|
|
|
+ // prop: 'extInfo.slotNum',
|
|
|
+ // label: '槽数',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // : []),
|
|
|
+
|
|
|
+ // ...(this.rootCategoryLevelId == '11'
|
|
|
+ // ? [
|
|
|
+ // {
|
|
|
+ // prop: 'status',
|
|
|
+ // label: '状态',
|
|
|
+ // slot: 'status',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // },
|
|
|
+
|
|
|
+ // {
|
|
|
+ // prop: 'region',
|
|
|
+ // label: '位置',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // : [])
|
|
|
+ // ];
|
|
|
}
|
|
|
},
|
|
|
watch: {},
|
|
|
@@ -409,7 +614,8 @@
|
|
|
if (this.isType == 'pick') {
|
|
|
param.dimension = 1;
|
|
|
|
|
|
- URL = pageeLedgerMain;
|
|
|
+ // URL = pageeLedgerMain;
|
|
|
+ URL = getOutindetailtwo;
|
|
|
} else if (this.isType == 'feed') {
|
|
|
if ([4, 7, 14].includes(Number(this.rootCategoryLevelId))) {
|
|
|
URL = assetPage;
|
|
|
@@ -465,6 +671,11 @@
|
|
|
);
|
|
|
|
|
|
res.list = _list;
|
|
|
+ // if (this.isType == 'pick') {
|
|
|
+ // this.columns = this.cloumsPick;
|
|
|
+ // } else {
|
|
|
+ // this.columns = this.cloumsAll
|
|
|
+ // }
|
|
|
return res;
|
|
|
}
|
|
|
},
|
|
|
@@ -607,7 +818,6 @@
|
|
|
this.allSelection.sort(
|
|
|
(a, b) => a.rootCategoryLevelId - b.rootCategoryLevelId
|
|
|
);
|
|
|
-
|
|
|
this.$emit('allSelection', this.id, this.allSelection);
|
|
|
this.handleClose();
|
|
|
}
|
|
|
@@ -617,7 +827,8 @@
|
|
|
created() {
|
|
|
if (this.isType == 'pick') {
|
|
|
// this.treeIds = '1, 5, 7, 8, 10, 13, 14, 23, 26, 9, 28';
|
|
|
- this.treeIds = '9, 23, 2, 1, 4, 14, 5, 8, 16, 13, 15, 6, 10, 22';
|
|
|
+ // this.treeIds = '9, 23, 2, 1, 4, 14, 5, 8, 16, 13, 15, 6, 10, 22';
|
|
|
+ this.treeIds = '9, 1, 14, 5, 8, 13, 15, 6, 10, 22';
|
|
|
} else if (this.isType == 'feed') {
|
|
|
this.treeIds = '1, 2, 4, 5, 7, 8, 10, 11, 13, 14, 26, 9, 23,28';
|
|
|
} else if (this.isType == 'job') {
|