parent
036cdd90d3
commit
8b4a8e02ba
@ -0,0 +1,308 @@ |
|||||||
|
<template> |
||||||
|
<div class="app-container"> |
||||||
|
<div class="search-box"> |
||||||
|
<el-form |
||||||
|
:inline="true" |
||||||
|
:model="queryParams" |
||||||
|
> |
||||||
|
<el-form-item |
||||||
|
label="盘点方式" |
||||||
|
prop="invWay" |
||||||
|
> |
||||||
|
<el-radio-group v-model="queryParams.invWay"> |
||||||
|
<el-radio label="open">明盘</el-radio> |
||||||
|
<el-radio label="close">盲盘</el-radio> |
||||||
|
</el-radio-group> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item label="单据编号"> |
||||||
|
<el-input |
||||||
|
v-model="queryParams.invOrderNo" |
||||||
|
placeholder="请输入单据编号" |
||||||
|
clearable |
||||||
|
></el-input> |
||||||
|
</el-form-item> |
||||||
|
|
||||||
|
<el-form-item label="货位"> |
||||||
|
<el-input |
||||||
|
v-model="queryParams.locationCode" |
||||||
|
placeholder="请输货位" |
||||||
|
clearable |
||||||
|
></el-input> |
||||||
|
</el-form-item> |
||||||
|
<el-form-item> |
||||||
|
<el-button |
||||||
|
type="primary" |
||||||
|
@click="getList" |
||||||
|
>搜索</el-button> |
||||||
|
<el-button @click="resetQuery">重置</el-button> |
||||||
|
</el-form-item> |
||||||
|
<div class="opt-box-right"> |
||||||
|
<el-button |
||||||
|
@click="returnBack" |
||||||
|
type="primary" |
||||||
|
>返回上一级</el-button> |
||||||
|
</div> |
||||||
|
</el-form> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class=" layout-full"> |
||||||
|
<heavy-table |
||||||
|
class="heavy-table tablem" |
||||||
|
highlight-current-row |
||||||
|
:data="BaseBillInPlanList" |
||||||
|
:loading="loading" |
||||||
|
:paging="paging" |
||||||
|
:config="tableConfig" |
||||||
|
style="margin-top:38px" |
||||||
|
:tableProps="tableProps" |
||||||
|
@current-change="handleCurrentChange" |
||||||
|
@handleUpdate="handleUpdate" |
||||||
|
@handleDetail="handleDetail" |
||||||
|
> |
||||||
|
</heavy-table> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
import { IniteminCancel, selectBusinItemInDtlList, InPlanCancel, selectBusinItemInDtlListExport } from '@/api/wms/busFunctions/inManagement/planInStore' |
||||||
|
import { getReportDetailList } from '@/api/libraryManage/inventory' |
||||||
|
import moment from 'moment' |
||||||
|
export default { |
||||||
|
name: 'PayInto', |
||||||
|
dicts: ['inv_type_dict', 'inv_status'], |
||||||
|
|
||||||
|
data() { |
||||||
|
const _that = this |
||||||
|
return { |
||||||
|
paging: { |
||||||
|
page: 1, // 当前页 |
||||||
|
size: 50, // 页面大小 |
||||||
|
total: 0 |
||||||
|
}, |
||||||
|
// 创建日期 |
||||||
|
dateRange: [], |
||||||
|
//已完成合计 |
||||||
|
exportList: [], |
||||||
|
tableConfig: [ |
||||||
|
{ |
||||||
|
label: '序号', |
||||||
|
prop: 'index', |
||||||
|
type: 'index', |
||||||
|
istrue: true, |
||||||
|
width: 60 |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '商品编号', |
||||||
|
prop: 'goodNo', |
||||||
|
istrue: true |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '商品名称', |
||||||
|
prop: 'goodName', |
||||||
|
istrue: true |
||||||
|
}, |
||||||
|
|
||||||
|
{ |
||||||
|
label: '显示货位', |
||||||
|
prop: 'locationName', |
||||||
|
istrue: true |
||||||
|
}, |
||||||
|
|
||||||
|
{ |
||||||
|
label: '区域编号', |
||||||
|
prop: 'areaCode', |
||||||
|
istrue: true |
||||||
|
}, |
||||||
|
|
||||||
|
{ |
||||||
|
label: '盘点单号', |
||||||
|
prop: 'invOrderNo', |
||||||
|
istrue: true |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '批号', |
||||||
|
prop: 'batchNo', |
||||||
|
istrue: true |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '盘点数量', |
||||||
|
prop: 'invQty', |
||||||
|
istrue: true |
||||||
|
}, |
||||||
|
|
||||||
|
{ |
||||||
|
label: '库存数量', |
||||||
|
prop: 'quantity', |
||||||
|
istrue: true |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '库别', |
||||||
|
prop: 'storageName', |
||||||
|
istrue: true |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '货位分组', |
||||||
|
prop: 'locationGroup', |
||||||
|
istrue: true |
||||||
|
}, |
||||||
|
{ |
||||||
|
label: '执行盘点时间', |
||||||
|
prop: 'execTime', |
||||||
|
istrue: true |
||||||
|
}, |
||||||
|
|
||||||
|
{ |
||||||
|
label: '单位', |
||||||
|
prop: 'unit', |
||||||
|
istrue: true, |
||||||
|
'min-width': 100 |
||||||
|
} |
||||||
|
], |
||||||
|
tableProps: { |
||||||
|
'max-height': 550 |
||||||
|
}, |
||||||
|
//派生列表 |
||||||
|
DeriveList: [], |
||||||
|
//逻辑列表 |
||||||
|
AreaList: [], |
||||||
|
// 遮罩层 |
||||||
|
loading: true, |
||||||
|
//日期范围 |
||||||
|
dateRange: '', |
||||||
|
// 显示搜索条件 |
||||||
|
showSearch: true, |
||||||
|
// 区域表格数据 |
||||||
|
BaseBillInPlanList: [], |
||||||
|
// 弹出层标题 |
||||||
|
title: '', |
||||||
|
// 属性 |
||||||
|
jsonFields: {}, |
||||||
|
// 是否显示弹出层 |
||||||
|
open: false, |
||||||
|
// 是否显示分配货位弹出层 |
||||||
|
openAllocation: false, |
||||||
|
// 查询参数 |
||||||
|
queryParams: { |
||||||
|
pageNum: 1, |
||||||
|
pageSize: 50 |
||||||
|
}, |
||||||
|
// 表单参数 |
||||||
|
form: {} |
||||||
|
} |
||||||
|
}, |
||||||
|
created() { |
||||||
|
this.queryParams.planId = this.$route.query.planId |
||||||
|
this.getList() |
||||||
|
this.jsonFields = {} |
||||||
|
this.tableConfig.forEach((item) => { |
||||||
|
this.jsonFields[item.label] = item.prop |
||||||
|
}) |
||||||
|
}, |
||||||
|
|
||||||
|
methods: { |
||||||
|
returnBack() { |
||||||
|
this.$router.go(-1) |
||||||
|
}, |
||||||
|
|
||||||
|
// 分页 |
||||||
|
handleCurrentChange(val) { |
||||||
|
if (Object.prototype.toString.call(val) === '[object Object]') { |
||||||
|
this.queryParams.pageSize = val.size |
||||||
|
this.paging.size = val.size |
||||||
|
this.getList() |
||||||
|
} else { |
||||||
|
this.paging.page = val |
||||||
|
this.queryParams.pageNum = val |
||||||
|
this.getList() |
||||||
|
} |
||||||
|
}, |
||||||
|
/** 查询区域列表 */ |
||||||
|
getList() { |
||||||
|
this.allNum = 0 |
||||||
|
this.loading = true |
||||||
|
getReportDetailList(this.queryParams).then((response) => { |
||||||
|
response.rows.forEach((item) => { |
||||||
|
if (item.inStatus == '3') { |
||||||
|
this.allNum += item.ttQtyRct |
||||||
|
} else { |
||||||
|
this.otherNum += item.ttQtyRct |
||||||
|
} |
||||||
|
}) |
||||||
|
this.BaseBillInPlanList = response.rows |
||||||
|
this.paging.total = response.total |
||||||
|
this.loading = false |
||||||
|
}) |
||||||
|
// inventoryAudit({ ...this.queryParams }).then((res) => { |
||||||
|
// this.exportList = res |
||||||
|
// }) |
||||||
|
}, |
||||||
|
// 取消按钮 |
||||||
|
cancel() { |
||||||
|
this.open = false |
||||||
|
this.reset() |
||||||
|
}, |
||||||
|
// 表单重置 |
||||||
|
reset() { |
||||||
|
this.form = { |
||||||
|
id: null, |
||||||
|
logicAreaName: nulls |
||||||
|
} |
||||||
|
this.resetForm('form') |
||||||
|
}, |
||||||
|
/** 搜索按钮操作 */ |
||||||
|
handleQuery() { |
||||||
|
this.queryParams.pageNum = 1 |
||||||
|
// console.log(this.queryParams) |
||||||
|
this.getList() |
||||||
|
}, |
||||||
|
/** 重置按钮操作 */ |
||||||
|
resetQuery() { |
||||||
|
this.queryParams.ttPart = '' |
||||||
|
this.queryParams.inStatus = '' |
||||||
|
this.resetForm('queryForm') |
||||||
|
this.handleQuery() |
||||||
|
}, |
||||||
|
//删除 |
||||||
|
handleDelete(row) { |
||||||
|
// console.log(row) |
||||||
|
this.$confirm('确定取消缴库吗?', '确认', { |
||||||
|
confirmButtonText: '确定', |
||||||
|
cancelButtonText: '取消', |
||||||
|
type: 'warning' |
||||||
|
}).then(() => { |
||||||
|
IniteminCancel(row.id).then((response) => { |
||||||
|
this.$modal.msgSuccess('取消缴库成功') |
||||||
|
this.open = false |
||||||
|
if (this.paging.total % 10 === 1) { |
||||||
|
this.queryParams.pageNum == 1 ? this.queryParams.pageNum : (this.queryParams.pageNum = this.queryParams.pageNum - 1) |
||||||
|
} |
||||||
|
this.getList() |
||||||
|
}) |
||||||
|
}) |
||||||
|
}, |
||||||
|
|
||||||
|
// 分配货位 |
||||||
|
handleDetail(row) { |
||||||
|
this.openAllocation = true |
||||||
|
}, |
||||||
|
/** 修改按钮操作 */ |
||||||
|
handleUpdate(row) { |
||||||
|
let tempRow = JSON.parse(JSON.stringify(row)) |
||||||
|
this.reset() |
||||||
|
let data = { |
||||||
|
id: tempRow.id, |
||||||
|
qrCode: tempRow.qrCode, |
||||||
|
derive: tempRow.derive, |
||||||
|
logicAreaName: tempRow.logicAreaName, |
||||||
|
derive: tempRow.derive, |
||||||
|
remark: tempRow.remark |
||||||
|
} |
||||||
|
this.form = data |
||||||
|
this.open = true |
||||||
|
this.title = '编辑' |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
</script> |
||||||
Loading…
Reference in new issue