fix:立库界面优化
This commit is contained in:
@@ -6,6 +6,7 @@ import green from '../../../image/green.svg'
|
||||
import yellow from '../../../image/yellow.svg'
|
||||
import grey from '../../../image/grey.svg'
|
||||
import blue from '../../../image/blue.svg'
|
||||
import red from '../../../image/red.svg'
|
||||
|
||||
class ButtonNodeModel extends HtmlResize.model {
|
||||
initNodeData(data) {
|
||||
@@ -47,6 +48,9 @@ class ButtonNode extends HtmlResize.view {
|
||||
case 4:
|
||||
imageUrl = grey
|
||||
break
|
||||
case 5:
|
||||
imageUrl = red
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1681192570476" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2046" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M891.050667 248.149333A101.888 101.888 0 0 0 820.352 213.333333H205.056a114.773333 114.773333 0 0 0-73.088 33.536C112.426667 266.410667 0 447.914667 0 486.144v244.053333c0.170667 18.432 7.68 36.053333 20.821333 48.896 13.397333 12.970667 31.317333 20.181333 49.92 20.053334h882.56c18.56 0.128 36.522667-7.082667 49.877334-20.096 13.141333-12.885333 20.650667-30.378667 20.821333-48.810667v-244.053333c0-38.272-132.992-238.037333-132.992-238.037334z m-227.669334 216.362667a32.981333 32.981333 0 0 0-33.792 23.765333v4.992a115.285333 115.285333 0 0 1-230.4-6.570666 36.437333 36.437333 0 0 0-32.682666-22.442667H76.288l98.901333-167.253333s19.797333-32.426667 38.613334-32.213334h616.021333c13.866667 7.296 25.344 18.346667 33.237333 31.914667l97.066667 167.808h-296.874667 0.128z" fill="#FF0000" p-id="2047"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -33,7 +33,7 @@
|
||||
<!-- <div v-if="agvObj.car_no === '' || agvObj.car_no == null" class="grid-content bg-purple" style="height: 250px;background-color: white;border-bottom:3px solid rgb(240, 242, 245)">-->
|
||||
<!-- 请添加更多AGV设备-->
|
||||
<!-- </div>-->
|
||||
<div v-if="agvObj.car_no !== '' && agvObj.car_no != null" class="grid-content bg-purple" style="height: 350px;background-color: white;border-bottom:0px solid rgb(240, 242, 245)">
|
||||
<div v-if="agvObj.car_no !== '' && agvObj.car_no != null" class="grid-content bg-purple" style="height: 400px;background-color: white;border-bottom:0px solid rgb(240, 242, 245)">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<img
|
||||
@@ -91,6 +91,16 @@
|
||||
</el-col>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<div class="grid-content bg-purple" style="height: 50px;">
|
||||
<el-col :span="8" style="line-height: 40px; text-align: center">
|
||||
运行时长:
|
||||
</el-col>
|
||||
<el-col :span="16" style="line-height: 40px; text-align: center">
|
||||
{{ agvObj.run_time }}
|
||||
</el-col>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<div v-if="form.flag === '5'" class="grid-content bg-purple" style="padding-left: 400px; padding-top: 30px">
|
||||
<el-button
|
||||
|
||||
@@ -9,18 +9,24 @@
|
||||
@open="open"
|
||||
>
|
||||
<!-- 搜索 -->
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-form-item label="库区">
|
||||
<el-cascader
|
||||
v-model="query.sect"
|
||||
v-model="defaultList"
|
||||
placeholder="所属库区"
|
||||
:options="sects"
|
||||
:props="{ checkStrictly: true }"
|
||||
clearable
|
||||
@change="sectQueryChange"
|
||||
/>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
</el-form-item>
|
||||
<el-form-item label="货位">
|
||||
<el-input
|
||||
v-model="query.search"
|
||||
clearable
|
||||
@@ -29,12 +35,11 @@
|
||||
placeholder="输入货位编码、名称"
|
||||
prefix-icon="el-icon-search"
|
||||
class="filter-item"
|
||||
/> </el-col>
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-col :span="6">
|
||||
<rrOperation />
|
||||
</el-col>
|
||||
</el-row>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
<!--表格渲染-->
|
||||
<el-table
|
||||
ref="table"
|
||||
@@ -94,7 +99,11 @@ export default {
|
||||
},
|
||||
storId: {
|
||||
type: String,
|
||||
default: null
|
||||
default: String
|
||||
},
|
||||
layerNum: {
|
||||
type: String,
|
||||
default: String
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -106,7 +115,8 @@ export default {
|
||||
checkrow: {},
|
||||
rows: [],
|
||||
dialogDis: true,
|
||||
lock: ''
|
||||
lock: '',
|
||||
defaultList: ['1582991156504039424', '1645705331612979200']
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -117,7 +127,6 @@ export default {
|
||||
},
|
||||
sectProp: {
|
||||
handler(newValue, oldValue) {
|
||||
debugger
|
||||
this.sect = newValue
|
||||
}
|
||||
}
|
||||
@@ -132,33 +141,21 @@ export default {
|
||||
this.lock = '1'
|
||||
},
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
this.crud.query.stor_id = this.storId
|
||||
this.crud.query.layer_num = this.layerNum
|
||||
this.query.lock_type = this.lock
|
||||
if (this.storId === this.defaultList[0]) {
|
||||
this.crud.query.sect_id = this.defaultList[1]
|
||||
}
|
||||
return true
|
||||
},
|
||||
open() {
|
||||
crudUserStor.getSect({ 'stor_id': this.storId }).then(res => {
|
||||
this.sects = res.content
|
||||
})
|
||||
if (this.sect) {
|
||||
this.query.sect = this.sect
|
||||
if (this.sect.length === 1) {
|
||||
this.query.stor_id = this.sect[0]
|
||||
this.query.stor_id = this.storId
|
||||
}
|
||||
if (this.sect.length === 0) {
|
||||
this.query.sect_id = ''
|
||||
this.query.stor_id = ''
|
||||
}
|
||||
if (this.sect.length === 2) {
|
||||
this.query.stor_id = this.sect[0]
|
||||
this.query.sect_id = this.sect[1]
|
||||
}
|
||||
}
|
||||
this.query.is_lock = '1'
|
||||
this.query.lock_type = this.lock
|
||||
this.query.is_used = '1'
|
||||
debugger
|
||||
this.query.stor_id = this.storId
|
||||
this.crud.toQuery()
|
||||
},
|
||||
handleSelectionChange(val, row) {
|
||||
@@ -182,6 +179,7 @@ export default {
|
||||
this.crud.query.stor_id = val[0]
|
||||
this.crud.query.sect_id = val[1]
|
||||
}
|
||||
this.crud.toQuery()
|
||||
},
|
||||
onSelectAll() {
|
||||
this.$refs.table.clearSelection()
|
||||
|
||||
@@ -1,5 +1,31 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-row style="padding-top: 10px;padding-left: 10px;padding-bottom: 30px">
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-form-item label="立库层数">
|
||||
<el-select
|
||||
v-model="stageParam"
|
||||
size="mini"
|
||||
placeholder="请选择"
|
||||
class="filter-item"
|
||||
@change="changeStage"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in layerList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<div id="container" className="container" />
|
||||
</el-row>
|
||||
@@ -70,7 +96,12 @@ export default {
|
||||
},
|
||||
allStructMsg: [],
|
||||
msgTop: '200px',
|
||||
msgLeft: '200px'
|
||||
msgLeft: '200px',
|
||||
layerList: [
|
||||
{ 'label': '立库1层', 'value': 'AS_1' },
|
||||
{ 'label': '立库2层', 'value': 'AS_2' },
|
||||
{ 'label': '立库3层', 'value': 'AS_3' }
|
||||
]
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -188,8 +219,13 @@ export default {
|
||||
// 以下是设置参数显示值
|
||||
for (const val in data1) {
|
||||
if (val === 'storagevehicle_code' && data1.storagevehicle_code) {
|
||||
const obj = { name: '木箱号', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
if (data1.sect_code === 'KTP01') {
|
||||
const obj = { name: '托盘号', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
} else {
|
||||
const obj = { name: '木箱号', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
}
|
||||
}
|
||||
if (val === 'quanlity_in_box' && data1.quanlity_in_box) {
|
||||
const obj = { name: '子卷数', value: data1[val] }
|
||||
@@ -207,6 +243,10 @@ export default {
|
||||
const obj = { name: '木箱总重', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
}
|
||||
if (val === 'container_weight' && data1.container_weight) {
|
||||
const obj = { name: '子卷净重', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
}
|
||||
}
|
||||
if (data.length > 1) { // 显示子卷
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
@@ -227,6 +267,9 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
changeStage() {
|
||||
this.initStageData()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,6 +66,9 @@ export default {
|
||||
title: {
|
||||
text: this.chartData.name,
|
||||
subtext: this.chartData.pieSubTest,
|
||||
subtextStyle: {
|
||||
'color': '#333'
|
||||
},
|
||||
left: 'center'
|
||||
},
|
||||
tooltip: {
|
||||
@@ -83,6 +86,13 @@ export default {
|
||||
type: 'pie',
|
||||
radius: '70%',
|
||||
center: ['50%', '58%'],
|
||||
avoidLabelOverlap: true,
|
||||
label: {
|
||||
show: true,
|
||||
position: 'outside',
|
||||
formatter: `{b}:{c}`,
|
||||
fontSize: 14
|
||||
},
|
||||
data: this.chartData.data,
|
||||
emphasis: {
|
||||
itemStyle: {
|
||||
|
||||
@@ -188,8 +188,13 @@ export default {
|
||||
// 以下是设置参数显示值
|
||||
for (const val in data1) {
|
||||
if (val === 'storagevehicle_code' && data1.storagevehicle_code) {
|
||||
const obj = { name: '木箱号', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
if (data1.sect_code === 'KTP01') {
|
||||
const obj = { name: '托盘号', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
} else {
|
||||
const obj = { name: '木箱号', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
}
|
||||
}
|
||||
if (val === 'quanlity_in_box' && data1.quanlity_in_box) {
|
||||
const obj = { name: '子卷数', value: data1[val] }
|
||||
@@ -207,6 +212,10 @@ export default {
|
||||
const obj = { name: '木箱总重', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
}
|
||||
if (val === 'container_weight' && data1.container_weight) {
|
||||
const obj = { name: '子卷净重', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
}
|
||||
}
|
||||
if (data.length > 1) { // 显示子卷
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
|
||||
@@ -188,8 +188,13 @@ export default {
|
||||
// 以下是设置参数显示值
|
||||
for (const val in data1) {
|
||||
if (val === 'storagevehicle_code' && data1.storagevehicle_code) {
|
||||
const obj = { name: '木箱号', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
if (data1.sect_code === 'KTP01') {
|
||||
const obj = { name: '托盘号', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
} else {
|
||||
const obj = { name: '木箱号', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
}
|
||||
}
|
||||
if (val === 'quanlity_in_box' && data1.quanlity_in_box) {
|
||||
const obj = { name: '子卷数', value: data1[val] }
|
||||
@@ -207,6 +212,10 @@ export default {
|
||||
const obj = { name: '木箱总重', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
}
|
||||
if (val === 'container_weight' && data1.container_weight) {
|
||||
const obj = { name: '子卷净重', value: data1[val] }
|
||||
this.arr.push(obj)
|
||||
}
|
||||
}
|
||||
if (data.length > 1) { // 显示子卷
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
|
||||
@@ -229,7 +229,7 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<AddDtl :dialog-show.sync="dtlShow" :stor-id="storId" @tableChanged="tableChanged" />
|
||||
<StructDiv ref="child" :dialog-show.sync="structShow" @tableChanged="structChanged" />
|
||||
<StructDiv ref="child" :layer-num="layer_num" :stor-id="storId" :dialog-show.sync="structShow" @tableChanged="structChanged" />
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
@@ -243,7 +243,7 @@ import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
|
||||
|
||||
const defaultForm = {
|
||||
bill_code: '',
|
||||
stor_id: '',
|
||||
stor_id: '1582991156504039424',
|
||||
stor_code: '',
|
||||
stor_name: '',
|
||||
bill_status: '10',
|
||||
@@ -278,6 +278,7 @@ export default {
|
||||
nowindex: '',
|
||||
storlist: [],
|
||||
invtypelist: [],
|
||||
layer_num: null,
|
||||
rules: {
|
||||
stor_id: [
|
||||
{ required: true, message: '仓库不能为空', trigger: 'blur' }
|
||||
@@ -350,6 +351,7 @@ export default {
|
||||
this.form.stor_name = item.stor_name
|
||||
}
|
||||
})
|
||||
this.form.tableData = []
|
||||
},
|
||||
async queryDtl() {
|
||||
if (!this.form.stor_id) {
|
||||
@@ -359,6 +361,7 @@ export default {
|
||||
this.dtlShow = true
|
||||
},
|
||||
async queryStruct(index, row) {
|
||||
this.layer_num = row.turnout_struct_code.charAt(row.turnout_struct_code.length - 1)
|
||||
this.structShow = true
|
||||
this.$refs.child.getMsg(false)
|
||||
this.nowindex = index
|
||||
|
||||
@@ -9,18 +9,36 @@
|
||||
@close="close"
|
||||
@open="open"
|
||||
>
|
||||
<el-row>
|
||||
<el-col :span="5">
|
||||
<!-- 搜索 -->
|
||||
<!-- 搜索 -->
|
||||
<el-form
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-suffix=":"
|
||||
>
|
||||
<el-form-item label="库区">
|
||||
<el-cascader
|
||||
v-model="defaultList"
|
||||
placeholder="库区"
|
||||
:options="sects"
|
||||
:props="{ checkStrictly: true }"
|
||||
clearable
|
||||
@change="sectQueryChange"
|
||||
/>
|
||||
</el-col>
|
||||
<el-col :span="5">
|
||||
</el-form-item>
|
||||
<el-form-item label="木箱">
|
||||
<el-input
|
||||
v-model="query.package_box_sn"
|
||||
clearable
|
||||
size="mini"
|
||||
placeholder="木箱号模糊查询"
|
||||
style="width: 200px;"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="货位">
|
||||
<el-input
|
||||
v-model="query.struct_code"
|
||||
clearable
|
||||
@@ -30,8 +48,8 @@
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-col>
|
||||
<el-col :span="5">
|
||||
</el-form-item>
|
||||
<el-form-item label="物料">
|
||||
<el-input
|
||||
v-model="query.remark"
|
||||
clearable
|
||||
@@ -41,8 +59,8 @@
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-col>
|
||||
<el-col :span="5">
|
||||
</el-form-item>
|
||||
<el-form-item label="批次">
|
||||
<el-input
|
||||
v-model="query.pcsn"
|
||||
clearable
|
||||
@@ -52,12 +70,9 @@
|
||||
class="filter-item"
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<rrOperation />
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form-item>
|
||||
<rrOperation />
|
||||
</el-form>
|
||||
<!--表格渲染-->
|
||||
<div style="padding: 10px" />
|
||||
<el-table
|
||||
@@ -135,7 +150,8 @@ export default {
|
||||
dialogVisible: false,
|
||||
opendtlParam: '',
|
||||
sects: [],
|
||||
rows: []
|
||||
rows: [],
|
||||
defaultList: ['1582991156504039424', '1582991348217286656']
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -153,6 +169,9 @@ export default {
|
||||
methods: {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
this.crud.query.stor_id = this.storId
|
||||
if (this.storId === this.defaultList[0]) {
|
||||
this.crud.query.sect_id = this.defaultList[1]
|
||||
}
|
||||
},
|
||||
open() {
|
||||
crudUserStor.getSect({ 'stor_id': this.storId }).then(res => {
|
||||
@@ -186,6 +205,7 @@ export default {
|
||||
this.crud.query.stor_id = val[0]
|
||||
this.crud.query.sect_id = val[1]
|
||||
}
|
||||
this.crud.toQuery()
|
||||
},
|
||||
submit() {
|
||||
debugger
|
||||
|
||||
Reference in New Issue
Block a user