常崟地图视角,列表

master
Mr.sun 2 years ago
parent 9236f0488c
commit 2640a7c833
  1. 4
      src/views/config.js
  2. 20
      src/views/libraryManage/inventory/config.js
  3. 132
      src/views/libraryManage/inventory/inventory.vue

@ -244,8 +244,8 @@ var arrRe=[
// topOffsetCell: -8, // 整体向下偏移单元格个数 // topOffsetCell: -8, // 整体向下偏移单元格个数
leftOffsetCell: 0, // 整体向右偏移单元格个数 leftOffsetCell: 0, // 整体向右偏移单元格个数
topOffsetCell: 0, // 整体向下偏移单元格个数 topOffsetCell: 0, // 整体向下偏移单元格个数
textRotation: Math.PI / 2, // 文字旋转 (顺时针90°: -Math.PI / 2) textRotation: -Math.PI / 2, // 文字旋转 (顺时针90°: -Math.PI / 2)
eyePoint: [1, 1800, 0], eyePoint: [-1, 1800, 0],
vehicleType: 1, // 1堆垛机 2四向车 vehicleType: 1, // 1堆垛机 2四向车
mutiLayer: false, // 不同层的货位分多层展示 mutiLayer: false, // 不同层的货位分多层展示
warehouseType: 1, // 1 堆垛机 2 四向车 warehouseType: 1, // 1 堆垛机 2 四向车

@ -11,16 +11,16 @@ export function tableConfig() {
type: "index", type: "index",
istrue: true, istrue: true,
}, },
{ // {
label: "业主编号", // label: "业主编号",
prop: "consignorCode", // prop: "consignorCode",
istrue: true, // istrue: true,
}, // },
{ // {
label: "业主名称", // label: "业主名称",
prop: "consignorName", // prop: "consignorName",
istrue: true, // istrue: true,
}, // },
{ {
label: "显示货位", label: "显示货位",
prop: "locationName", prop: "locationName",

@ -2,8 +2,11 @@
<!-- 盘点计划 --> <!-- 盘点计划 -->
<div class="app-container"> <div class="app-container">
<div class="search-box"> <div class="search-box">
<el-form :inline="true" :model="enterForm"> <el-form
<el-form-item label="业主名称"> :inline="true"
:model="enterForm"
>
<!-- <el-form-item label="业主名称">
<el-select <el-select
v-model="enterForm.consignorId" v-model="enterForm.consignorId"
placeholder="请选择" placeholder="请选择"
@ -34,7 +37,7 @@
> >
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item> -->
<el-form-item label="库区编号"> <el-form-item label="库区编号">
<el-select <el-select
@ -90,7 +93,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="queryTable">搜索</el-button> <el-button
type="primary"
@click="queryTable"
>搜索</el-button>
<el-button @click="resetQuery">重置</el-button> <el-button @click="resetQuery">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -103,8 +109,7 @@
type="primary" type="primary"
@click="generateThePlan" @click="generateThePlan"
:disabled="!handleSelect.length != 0" :disabled="!handleSelect.length != 0"
>生成计划</el-button >生成计划</el-button>
>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<!-- <el-button type="primary" @click="exportBtn">导出</el-button> --> <!-- <el-button type="primary" @click="exportBtn">导出</el-button> -->
@ -112,7 +117,10 @@
</el-row> </el-row>
</div> </div>
</div> </div>
<div class="layout-full" style="margin-bottom: 45px"> <div
class="layout-full"
style="margin-bottom: 45px"
>
<heavy-table <heavy-table
:data="tableData" :data="tableData"
:paging="paging" :paging="paging"
@ -126,30 +134,25 @@
</div> </div>
</template> </template>
<script> <script>
import { tableConfig } from "./config.js"; import { tableConfig } from './config.js'
import { consignorList } from "@/api/warehousing/acceptance"; import { consignorList } from '@/api/warehousing/acceptance'
import { storageList } from "@/api/warehousing/acceptance"; import { storageList } from '@/api/warehousing/acceptance'
import { import { queryGoods, add, listAreaByStorage, exportBtn } from '@/api/libraryManage/inventory'
queryGoods, import { Debounce, getDictLabel } from '@/utils/index'
add,
listAreaByStorage,
exportBtn,
} from "@/api/libraryManage/inventory";
import { Debounce, getDictLabel } from "@/utils/index";
export default { export default {
name: "Inventory", name: 'Inventory',
dicts: ["goods_unit", "inv_type_dict"], dicts: ['goods_unit', 'inv_type_dict'],
data() { data() {
return { return {
tableProps: {}, tableProps: {},
ids: [], ids: [],
enterForm: { enterForm: {
consignorId: "", consignorId: '',
storageId: "", storageId: '',
areaId: "", areaId: '',
locationCode: "", locationCode: '',
invWay: "", invWay: '',
invType: "", invType: ''
}, },
options: [], options: [],
branchList: [], branchList: [],
@ -160,76 +163,73 @@ export default {
paging: { paging: {
page: 1, // page: 1, //
size: 10, // size: 10, //
total: 0, total: 0
}, }
}; }
}, },
mounted() { mounted() {
this.getBasicList(); this.getBasicList()
this.getBasicListsto(); this.getBasicListsto()
}, },
async created() { async created() {
this.tableConfig = await this.getTableHeaderCom( this.tableConfig = await this.getTableHeaderCom('busin_inventory', tableConfig.call(this))
"busin_inventory",
tableConfig.call(this)
);
}, },
methods: { methods: {
// //
getBasicList() { getBasicList() {
consignorList().then((res) => { consignorList().then((res) => {
this.options = res.rows; this.options = res.rows
}); })
}, },
// //
getBasicListsto() { getBasicListsto() {
storageList().then((res) => { storageList().then((res) => {
this.branchList = res.data; this.branchList = res.data
}); })
}, },
// //
selectStoId(val) { selectStoId(val) {
this.enterForm.areaId = ""; this.enterForm.areaId = ''
if (val) { if (val) {
this.listAreaByStorage(val); this.listAreaByStorage(val)
} }
}, },
// //
listAreaByStorage(val) { listAreaByStorage(val) {
listAreaByStorage(val).then((res) => { listAreaByStorage(val).then((res) => {
this.areaIdhList = res.data; this.areaIdhList = res.data
}); })
}, },
// //
handleselection(val) { handleselection(val) {
this.handleSelect = val.map((ele) => ele.id); this.handleSelect = val.map((ele) => ele.id)
this.ids = val.map((ele) => ele.stockId); this.ids = val.map((ele) => ele.stockId)
}, },
// //
resetQuery() { resetQuery() {
this.enterForm = {}; this.enterForm = {}
}, },
// //
queryTable() { queryTable() {
if (!this.enterForm.consignorId) return this.$message("业主名称必填!"); if (!this.enterForm.consignorId) return this.$message('业主名称必填!')
if (!this.enterForm.invWay) return this.$message("盘点方式必选!"); if (!this.enterForm.invWay) return this.$message('盘点方式必选!')
if (!this.enterForm.invType) return this.$message("盘点类型必选!"); if (!this.enterForm.invType) return this.$message('盘点类型必选!')
this.loading = true; this.loading = true
queryGoods({ queryGoods({
pageSize: this.paging.size, pageSize: this.paging.size,
pageNum: this.paging.page, pageNum: this.paging.page,
...this.enterForm, ...this.enterForm
}) })
.then((response) => { .then((response) => {
if (response.code === 200) { if (response.code === 200) {
this.loading = false; this.loading = false
this.paging.total = response.total; this.paging.total = response.total
this.tableData = response.rows; this.tableData = response.rows
} }
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false
}); })
}, },
// //
@ -237,20 +237,20 @@ export default {
add({ add({
invType: this.enterForm.invType, invType: this.enterForm.invType,
invWay: this.enterForm.invWay, invWay: this.enterForm.invWay,
stockIds: this.ids, stockIds: this.ids
}) })
.then((response) => { .then((response) => {
if (response.code === 200) { if (response.code === 200) {
this.$message({ this.$message({
message: "操作成功!", message: '操作成功!',
type: "success", type: 'success'
}); })
this.queryTable(); this.queryTable()
} }
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false
}); })
}, },
// //
exportBtn() { exportBtn() {
@ -259,14 +259,14 @@ export default {
// pageNum: isAll === "all" ? null : this.paging.page, // pageNum: isAll === "all" ? null : this.paging.page,
// ...this.searchForm, // ...this.searchForm,
// }; // };
dealEmptyQueryCondition(request); dealEmptyQueryCondition(request)
// this.download( // this.download(
// "monitor/job/export", // "monitor/job/export",
// request, // request,
// `goods_${new Date().getTime()}.xlsx` // `goods_${new Date().getTime()}.xlsx`
// ); // );
}, }
}, }
}; }
</script> </script>
<style rel="stylesheet/scss" lang="scss" scoped></style> <style rel="stylesheet/scss" lang="scss" scoped></style>

Loading…
Cancel
Save