Commit d8cebe1f authored by 李苏's avatar 李苏 💬

调整

parent 48122e38
<template>
<BasePage :power='power' class="min_full" :config="config">
<BasePage ref="basePage" :power='power' class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="start(ctx.basePage)" size='mini' type="primary">开始</el-button>
<!-- <el-button @click="start(ctx.basePage)" size='mini' type="primary">开始</el-button>
<el-button @click="close(ctx.basePage)" size='mini' type="primary">关闭</el-button> -->
</template>
......@@ -13,25 +13,27 @@
</template>
<script>
import wlsx from 'common/src/mixin/wlsx.js'
import wlphsx from 'common/src/mixin/wlphsx.js'
export default {
mixins: [wlsx, wlphsx],
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
cellStyle({
row,
......@@ -71,7 +73,8 @@
"transform": {
"url": "lxyl/wcs/lkrw/init/zt",
"label": "name",
"value": "id"
"value": "id",
},
width: 80
},
......@@ -94,16 +97,16 @@
title: "起始位",
field: "gwName",
width: 140,
formatter(a,b,v){
return a.kwName||a.gwName
formatter(a, b, v) {
return a.kwName || a.gwName
}
},
{
title: "目标位",
field: "mbkwCode",
width: 140,
formatter(a,b,v){
return a.mbkwCode||a.gwName
formatter(a, b, v) {
return a.mbkwCode || a.gwName
}
},
{
......@@ -111,7 +114,34 @@
field: "rqCode",
width: 140
},
{
/* 新增物料信息*/
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "垛机取/放货口",
field: "rcgwCode",
width: 140
......@@ -211,14 +241,14 @@
type: 'input'
}
],
[
{
[{
label: '状态',
prop: 'zt',
span: 6,
type: 'RelSelect',
typeConfig: {
src: 'lxyl/wcs/lkrw/init/zt'
src: 'lxyl/wcs/lkrw/init/zt',
multiple: true
}
},
{
......@@ -244,6 +274,35 @@
type: 'input',
value: ''
},
],
[{
label: '物料信息',
prop: 'wlxxInfo',
span: 6,
type: 'input',
value: ''
},
{
label: '物料批号',
prop: 'wlph',
span: 6,
type: 'input',
value: ''
},
{
label: '物料描述',
prop: 'wlphSx01',
span: 6,
type: 'input',
value: ''
},
{
label: '制令号',
prop: 'zlh',
span: 6,
type: 'input',
value: ''
},
]
],
}
......@@ -255,34 +314,34 @@
// demo(basePage){
// }
start(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
this.$post('lxyl/wcs/lkrw/start',{
id:ctx.singleItem.id
}).then(res=>{
if(res.success){
start(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$post('lxyl/wcs/lkrw/start', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('任务启动成功!')
ctx.refresh()
}
})
}else{
} else {
this.warning('请选择一条数据!')
}
},
close(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
this.$post('lxyl/wcs/lkrw/close',{
id:ctx.singleItem.id
}).then(res=>{
if(res.success){
close(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$post('lxyl/wcs/lkrw/close', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('任务关闭成功!')
ctx.refresh()
}
})
}else{
} else {
this.warning('请选择一条数据!')
}
......
<template>
<div class="full ">
<!-- 刻度表示-->
<div class="full">
<div ref="infoBox" class="infoCar">
</div>
<div class="full container">
<!-- 刻度x-->
<div class="flex"
style="position: absolute;top: 0px;color: #fff;line-height: 16px;font-size: 12px;padding-left: 14px;">
......@@ -19,8 +19,9 @@
</div>
</div>
<div style="position: relative" @click='eclick(item)' :code='item.code' :item='JSON.stringify(item)' ref="mx1"
v-for="(item,index) in boxList" :key="item.code" class="box" :class="{
<div @click='eclick(item)' :code='item.code' :item='JSON.stringify(item)' ref="mx1"
v-for="(item,index) in boxList" :key="item.code" class="box"
:class="{
yh:item.kczt=='U',
wh:item.kczt=='E',
dj:item.zt=='F',
......@@ -30,7 +31,8 @@
yhyj:item.kczt=='U'&&item.cjzt=='Y',
yhyjsd:item.kczt=='U'&&item.cjzt=='Y'&&item.zt=='L',
yhyjdj:item.kczt=='U'&&item.cjzt=='Y'&&item.zt=='F',
}">
}"
>
<!-- {{item.code}} -->
</div>
</div>
......@@ -60,7 +62,7 @@
},
getBoxList() {
this.$post('lxyl/cxfx/kw/query', {
hjCode: 'HJ1',
hjCode:'HJ1',
kwx: '1'
}).then(res => {
if (res.data.records) {
......@@ -88,10 +90,8 @@
`
$(infoBox).empty()
$(infoBox).append(content)
infoBox.style.top = event.clientY > 400 ? ((event.layerY - 125) + 'px') : ((event
.layerY + 40) + 'px'); // 信息框距离顶部10像素
infoBox.style.left = event.clientX > 800 ? ((event.layerX - 125) + 'px') : ((event
.layerX + 40) + 'px'); // 信息框距离左侧10像素
infoBox.style.top = event.clientY>400?((event.layerY - 125) + 'px'):((event.layerY + 40) + 'px'); // 信息框距离顶部10像素
infoBox.style.left =event.clientX>800?((event.layerX - 125) + 'px'):((event.layerX + 40) + 'px'); // 信息框距离左侧10像素
infoBox.style.display = 'block';
});
element.addEventListener('mouseout', function(event) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment