|
|
|
@ -148,6 +148,18 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="入库仓库"> |
|
|
|
<el-select v-model="searchData.inWarehouse" placeholder="请选择入库仓库" clearable filterable style="width: 100%"> |
|
|
|
<el-option |
|
|
|
v-for="item in warehouseList" |
|
|
|
:key="item.warehouseId" |
|
|
|
:label="item.warehouseName" |
|
|
|
:value="item.warehouseId"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -268,6 +280,7 @@ |
|
|
|
<script> |
|
|
|
import { searchInboundNotificationReport, getSiteList } from "@/api/report/inboundNotificationReport.js"; |
|
|
|
import { getDepartmentList } from "@/api/qc/Inbound_notification.js"; |
|
|
|
import { getWarehouseList } from "@/api/wms/wms.js"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "inboundNotificationReport", |
|
|
|
@ -288,12 +301,15 @@ export default { |
|
|
|
endDate: '', |
|
|
|
queryRelatedOrderNo: '', |
|
|
|
queryRelatedOrderLineNo: '', |
|
|
|
departmentNo: '' |
|
|
|
departmentNo: '', |
|
|
|
inWarehouse: '' |
|
|
|
}, |
|
|
|
// Site列表 |
|
|
|
siteList: [], |
|
|
|
// 部门列表 |
|
|
|
departmentList: [], |
|
|
|
// 仓库列表 |
|
|
|
warehouseList: [], |
|
|
|
// 搜索展开状态 |
|
|
|
searchExpanded: true, |
|
|
|
// 加载状态 |
|
|
|
@ -366,6 +382,7 @@ export default { |
|
|
|
created() { |
|
|
|
this.getSiteList(); |
|
|
|
this.loadDepartmentList(); |
|
|
|
this.loadWarehouseList(); |
|
|
|
this.calculateTableHeight(); |
|
|
|
window.addEventListener('resize', this.calculateTableHeight); |
|
|
|
}, |
|
|
|
@ -449,7 +466,8 @@ export default { |
|
|
|
endDate: '', |
|
|
|
queryRelatedOrderNo: '', |
|
|
|
queryRelatedOrderLineNo: '', |
|
|
|
departmentNo: '' |
|
|
|
departmentNo: '', |
|
|
|
inWarehouse: '' |
|
|
|
}; |
|
|
|
this.pageIndex = 1; |
|
|
|
this.resetSummaryData(); |
|
|
|
@ -547,6 +565,14 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 加载仓库列表 |
|
|
|
loadWarehouseList() { |
|
|
|
getWarehouseList({ userName: this.$store.state.user.name }).then(({ data }) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.warehouseList = data.rows || []; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 根据完成率获取进度条颜色 |
|
|
|
getProgressColor(percentage) { |
|
|
|
if (percentage >= 100) { |
|
|
|
|