|
|
|
|
@ -15,11 +15,12 @@ |
|
|
|
|
@size-change="sizeChange" |
|
|
|
|
@refresh-change="refreshChange" |
|
|
|
|
@on-load="onLoad" |
|
|
|
|
@sort-change="sortChange" |
|
|
|
|
> |
|
|
|
|
<template #menu-left> </template> |
|
|
|
|
<template #menu-right> </template> |
|
|
|
|
<template #menu="scope"> |
|
|
|
|
<el-button type="text" @click="warehousing(scope.row)"> 入库 </el-button> |
|
|
|
|
<el-button type="text" @click="warehousing(scope.row)" v-if="permission.warehouseTransfer_inStorage"> 入库 </el-button> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<!-- 入库数量 --> |
|
|
|
|
@ -69,7 +70,7 @@ import { |
|
|
|
|
getLocationData, |
|
|
|
|
addIssue, |
|
|
|
|
} from '@/api/storeManagement/warehouseTransfer'; |
|
|
|
|
|
|
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
@ -104,30 +105,44 @@ export default { |
|
|
|
|
menuAlign: 'center', |
|
|
|
|
showOverflowTooltip: true, |
|
|
|
|
column: [ |
|
|
|
|
{ label: '出库单号', prop: 'outCode', search: true, width: 120 }, |
|
|
|
|
{ label: '材料编号', prop: 'goodsCode', search: true, width: 180 }, |
|
|
|
|
{ label: '出库数量', prop: 'outQuantity', width: 120 }, |
|
|
|
|
{ label: '出库人', prop: 'checkUser', width: 120 }, |
|
|
|
|
{ label: '入库数量', prop: 'putQuantity', width: 140 }, |
|
|
|
|
{ label: '入库库房', prop: 'shId', width: 140 }, |
|
|
|
|
{ label: '入库库位', prop: 'location', width: 140 }, |
|
|
|
|
{ label: '材料名称', prop: 'goodsName', search: true, width: 120 }, |
|
|
|
|
{ label: '物料规格', prop: 'specifications', width: 120 }, |
|
|
|
|
{ label: '型号/牌号', prop: 'materialModel', width: 120 }, |
|
|
|
|
{ label: '单位', prop: 'unitName', width: 120 }, |
|
|
|
|
{ label: '批次号', prop: 'batchCode', search: true, width: 120 }, |
|
|
|
|
{ label: '炉批号', prop: 'prtWoCode', width: 120 }, |
|
|
|
|
{ label: '单价', prop: 'unitPrice', width: 120 }, |
|
|
|
|
{ label: '检验编号', prop: 'checkCode', search: true, width: 120 }, |
|
|
|
|
{ label: '到期日期', prop: 'scrapCycle', width: 120 }, |
|
|
|
|
{ label: '出库单号', prop: 'outCode', search: true, width: 120,sortable: 'custom', }, |
|
|
|
|
{ label: '材料编号', prop: 'goodsCode', search: true, width: 180,sortable: 'custom', }, |
|
|
|
|
{ label: '出库数量', prop: 'outQuantity', width: 120,sortable: 'custom', }, |
|
|
|
|
{ label: '出库人', prop: 'checkUser', width: 120,sortable: 'custom', }, |
|
|
|
|
{ label: '入库数量', prop: 'putQuantity', width: 140,sortable: 'custom', }, |
|
|
|
|
{ label: '入库库房', prop: 'shId', width: 140,sortable: 'custom', }, |
|
|
|
|
{ label: '入库库位', prop: 'location', width: 140,sortable: 'custom', }, |
|
|
|
|
{ label: '材料名称', prop: 'goodsName', search: true, width: 120,sortable: 'custom', }, |
|
|
|
|
{ label: '物料规格', prop: 'specifications', width: 120,sortable: 'custom', }, |
|
|
|
|
{ label: '型号/牌号', prop: 'materialModel', width: 120,sortable: 'custom', }, |
|
|
|
|
{ label: '单位', prop: 'unitName', width: 120,sortable: 'custom', }, |
|
|
|
|
{ label: '批次号', prop: 'batchCode', search: true, width: 120,sortable: 'custom', }, |
|
|
|
|
{ label: '炉批号', prop: 'prtWoCode', width: 120,sortable: 'custom', }, |
|
|
|
|
{ label: '单价', prop: 'unitPrice', width: 120,sortable: 'custom', }, |
|
|
|
|
{ label: '检验编号', prop: 'checkCode', search: true, width: 120, }, |
|
|
|
|
{ label: '到期日期', prop: 'scrapCycle', width: 120,sortable: 'custom', }, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
...mapGetters(['permission']), |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
this.getWare(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 排序 |
|
|
|
|
sortChange({ prop, order }) { |
|
|
|
|
this.query.descs = undefined; |
|
|
|
|
this.query.ascs = undefined; |
|
|
|
|
let orderByFieldKey = order === 'descending' ? 'descs' : 'ascs'; |
|
|
|
|
this.query[orderByFieldKey] = !prop |
|
|
|
|
? undefined |
|
|
|
|
: prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase(); |
|
|
|
|
// 重新加载数据 |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}, |
|
|
|
|
async onLoad() { |
|
|
|
|
this.loading = true; |
|
|
|
|
try { |
|
|
|
|
|