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

edit type: 'inputText', wbs元素

parent 07cf5da8
......@@ -40,23 +40,13 @@
},
config: {
/* 基本配置*/
url: 'lxyl/rkgl/ulkck',
queryUrl: 'lxyl/rkgl/ulkck/query/detail',
url: 'lxyl/ckgl/ckrw/lkck/query/detail',
queryUrl: 'lxyl/ckgl/ckrw/lkck/query/detail',
tableTitle: [{
title: "唯一码",
field: "packCode",
width: 240
},
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "码盘数量",
field: "sl",
width: 140
},
{
title: "物料编码",
field: "wlxxCode",
......@@ -72,19 +62,20 @@
field: "wlxxGg",
width: 140
},
{
title: "数量",
field: "sl",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
title: "制令号",
field: "zlh",
width: 180
},
],
......
......@@ -60,8 +60,8 @@
},
config: {
/* 基本配置*/
url: 'lxyl/ckgl/ulkck/queryLkOrPkKw',
queryUrl: 'lxyl/ckgl/ulkck/queryLkOrPkKw',
url: 'lxyl/ckgl/ckrw/lkck/query/kc',
queryUrl: 'lxyl/ckgl/ckrw/lkck/query/kc',
tableTitle: [{
title: "库位",
field: "kwCode",
......@@ -95,37 +95,39 @@
width: 140
},
{
title: "计量单位",
field: "jldwName",
width: 140
title: "库存数量",
field: "kcsl",
width: 120,
fieldType: 'float'
},
{
title: "物料批号",
field: "wlph",
width: 140,
},
{
title: "库位名称",
field: "wlxxName",
width: 120,
title: "计量单位",
field: "jldwName",
width: 140
},
// {
// title: "库位名称",
// field: "wlxxName",
// width: 120,
// },
{
title: "制令号",
field: "zlh",
width: 180,
},
{
title: "库存数量",
field: "kcsl",
width: 120,
fieldType: 'float'
},
{
title: "货主",
field: "hzName",
width: 180,
},
// {
// title: "货主",
// field: "hzName",
// width: 180,
// },
],
......@@ -145,7 +147,7 @@
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"src": "lxyl/jcsj/uck/ck/queryCjckid",
"match": {
"value": "id",
"label": "name"
......@@ -194,7 +196,7 @@
datas:list,
gwid:form.gwid
}
this.$post('/lxyl/ckgl/ulkck/saveLkCk',params).then(res=>{
this.$post('/lxyl/ckgl/ckrw/lkck/save',params).then(res=>{
if(res.success){
this.$success('操作成功')
this.app.showDialog=false
......
......@@ -6,7 +6,7 @@
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="akck(ctx.basePage)" size='mini' type="primary">按库存开</el-button>
<el-button @click="akck(ctx.basePage)" size='mini' type="primary">新增</el-button>
</template>
</BasePage>
......@@ -35,13 +35,14 @@
},
config: {
/* 基本配置*/
url: 'lxyl/ckgl/ulkck',
tableTitle: [{
url:'lxyl/ckgl/ckrw/lkck',
tableTitle: [
{
title: "状态",
field: "zt",
width: 80,
"transform": {
"url": "lxyl/ckgl/ulkck/init/zt",
"url": "lxyl/ckgl/ckrw/lkck/init/zt",
"label": "name",
"value": "id"
}
......@@ -53,12 +54,12 @@
width: 140
},
{
title: "位",
field: "gwName",
title: "起始位",
field: "kwName",
width: 140
},
{
title: "位",
title: "目标位",
field: "gwName",
width: 140
},
......@@ -67,51 +68,107 @@
field: "rqCode",
width: 140
},
{
title: "业务日期",
field: "tyrq",
title: "开始时间",
field: "kssj",
fieldType: "ftDate"
},
{
title: "结束时间",
field: "jssj",
fieldType: "ftDate"
},
{
title: "维护人",
field: "whr",
title: "耗时",
field: "timespan",
formatter(a, b, duration) {
var milliseconds = parseInt((duration % 1000) / 100),
seconds = Math.floor((duration / 1000) % 60),
minutes = Math.floor((duration / (1000 * 60)) % 60),
hours = Math.floor((duration / (1000 * 60 * 60)) % 24);
hours = (hours < 10) ? "0" + hours : hours;
minutes = (minutes < 10) ? "0" + minutes : minutes;
seconds = (seconds < 10) ? "0" + seconds : seconds;
return hours + ":" + minutes + ":" + seconds + "." + milliseconds;
}
},
{
title: "创建人",
field: "cjr",
width: 120
},
{
title: "维护时间",
field: "whsj",
title: "创建时间",
field: "cjsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '单据号',
prop: 'djid',
span: 6,
label: '日期',
startProp: "start",
endProp: "end",
span: 8,
type: 'RelDaterangeV2',
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
},
{
"label": "仓库",
"prop": "ckid",
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "lxyl/jcsj/uck/ck/queryCjckid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '出库单号',
prop: 'lydjDjid',
span: 8,
type: 'input',
value: ''
}
],
[{
label: '容器',
prop: 'rqInfo',
span: 8,
type: 'input',
value: ''
},
{
label: '唯一码',
prop: 'packInfo',
span: 8,
type: 'input',
value: ''
},
{
"label": "状态",
"prop": "zt",
"span": 6,
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "lxyl/ckgl/ulkck/init/zt",
"src": "lxyl/ckgl/ckrw/lkck/init/zt ",
"match": {
"value": "id",
"label": "name"
}
}
},
{
prop: 'type',
value: 'L'
}
],
]
],
/* 默认启停用 */
showqt: false,
......@@ -128,7 +185,7 @@
/* 示例*/
akck(ctx) {
ctx.DialogTitle = '选择库存'
ctx.DialogWidth = '70vw'
ctx.DialogWidth = '80vw'
ctx.showDialog = true
}
},
......
......@@ -40,23 +40,13 @@
},
config: {
/* 基本配置*/
url: 'lxyl/rkgl/ulkck',
queryUrl: 'lxyl/rkgl/ulkck/query/detail',
url: 'lxyl/ckgl/ckrw/pkck/query/detail',
queryUrl: 'lxyl/ckgl/ckrw/pkck/query/detail',
tableTitle: [{
title: "唯一码",
field: "packCode",
width: 240
},
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "码盘数量",
field: "sl",
width: 140
},
{
title: "物料编码",
field: "wlxxCode",
......@@ -72,19 +62,20 @@
field: "wlxxGg",
width: 140
},
{
title: "数量",
field: "sl",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
title: "制令号",
field: "zlh",
width: 180
},
],
......
......@@ -59,8 +59,8 @@
},
config: {
/* 基本配置*/
url: 'lxyl/ckgl/ulkck/queryLkOrPkKw',
queryUrl: 'lxyl/ckgl/ulkck/queryLkOrPkKw',
url: 'lxyl/ckgl/ckrw/pkck/query/kc',
queryUrl: 'lxyl/ckgl/ckrw/pkck/query/kc',
tableTitle: [{
title: "库位",
field: "kwCode",
......@@ -144,7 +144,7 @@
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"src": "lxyl/jcsj/uck/ck/queryCjckid",
"match": {
"value": "id",
"label": "name"
......@@ -196,7 +196,7 @@
rqid: singleItem.rqid,
kwid: singleItem.kwid,
}
this.$post('/lxyl/ckgl/ulkck/savePkCk', params).then(res => {
this.$post('/lxyl/ckgl/ckrw/pkck/save', params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.showDialog = false
......
......@@ -6,7 +6,7 @@
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="akck(ctx.basePage)" size='mini' type="primary">按库存开</el-button>
<el-button @click="akck(ctx.basePage)" size='mini' type="primary">新增</el-button>
</template>
</BasePage>
......@@ -35,13 +35,14 @@
},
config: {
/* 基本配置*/
url: 'lxyl/ckgl/ulkck',
tableTitle: [{
url:'lxyl/ckgl/ckrw/pkck',
tableTitle: [
{
title: "状态",
field: "zt",
width: 80,
"transform": {
"url": "lxyl/ckgl/ulkck/init/zt",
"url": "lxyl/ckgl/ckrw/pkck/init/zt",
"label": "name",
"value": "id"
}
......@@ -53,12 +54,12 @@
width: 140
},
{
title: "位",
field: "gwName",
title: "起始位",
field: "kwName",
width: 140
},
{
title: "位",
title: "目标位",
field: "gwName",
width: 140
},
......@@ -67,51 +68,81 @@
field: "rqCode",
width: 140
},
{
title: "业务日期",
field: "tyrq",
fieldType: "ftDate"
},
{
title: "维护人",
field: "whr",
title: "创建人",
field: "cjr",
width: 120
},
{
title: "维护时间",
field: "whsj",
title: "创建时间",
field: "cjsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '单据号',
prop: 'djid',
span: 6,
label: '日期',
startProp: "start",
endProp: "end",
span: 8,
type: 'RelDaterangeV2',
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
},
{
"label": "仓库",
"prop": "ckid",
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "lxyl/jcsj/uck/ck/queryCjckid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '出库单号',
prop: 'lydjDjid',
span: 8,
type: 'input',
value: ''
}
],
[{
label: '容器',
prop: 'rqInfo',
span: 8,
type: 'input',
value: ''
},
{
label: '唯一码',
prop: 'packInfo',
span: 8,
type: 'input',
value: ''
},
{
"label": "状态",
"prop": "zt",
"span": 6,
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "lxyl/ckgl/ulkck/init/zt",
"src": "lxyl/ckgl/ckrw/pkck/init/zt ",
"match": {
"value": "id",
"label": "name"
}
}
},
{
prop: 'type',
value: 'D'
}
],
]
],
/* 默认启停用 */
showqt: false,
......@@ -128,7 +159,7 @@
/* 示例*/
akck(ctx) {
ctx.DialogTitle = '选择库存'
ctx.DialogWidth = '70vw'
ctx.DialogWidth = '80vw'
ctx.showDialog = true
}
},
......
......@@ -3,7 +3,9 @@
<div ref="infoBox" class="infoCar">
</div>
<div class="full container">
<div ref="mx1" v-for="(item,index) in boxList" :key="item.code" class="box dj">
<div 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', sd:item.zt=='L', kccj:item.cjzt=='Y'
}" >
<!-- {{item.code}} -->
</div>
</div>
......
<template>
<div class="full">
<div ref="infoBox" class="infoCar">
</div>
<div ref='mx11' class="full" style="position: relative;" >
<div class="full flex containerAll">
<div class="full flex1 container1">
<div ref="mx1" v-for="(item,index) in boxList1" :key="item.code" class="box">
......@@ -16,8 +14,21 @@
</div>
</div>
<div class="full flex1 container4">
<div ref="mx4" v-for="(item,index) in boxList4" :key="item.code" class="box">
<el-tooltip v-for="(item,index) in boxList4" placement="right">
<div slot="content">
仓库编码<br/>
库区编码<br/>
库区编码<br/>
库区编码<br/>
库区编码<br/>
库区编码<br/>
库区编码<br/>
</div>
<div ref="mx4" :key="item.code" class="box">
</div>
</el-tooltip>
</div>
<div class="full flex1 container5">
<div ref="mx5" v-for="(item,index) in boxList5" :key="item.code" class="box">
......@@ -46,39 +57,47 @@
export default {
beforeDestroy() {
$(this.$refs.mx1).each((index,item)=>{
removeEventListener('mouseover');
item.removeEventListener('mouseover');
})
$(this.$refs.mx2).each((index,item)=>{
removeEventListener('mouseover');
item.removeEventListener('mouseover');
})
$(this.$refs.mx3).each((index,item)=>{
removeEventListener('mouseover');
item.removeEventListener('mouseover');
})
$(this.$refs.mx4).each((index,item)=>{
removeEventListener('mouseover');
item.removeEventListener('mouseover');
})
$(this.$refs.mx5).each((index,item)=>{
removeEventListener('mouseover');
item.removeEventListener('mouseover');
})
$(this.$refs.mx6).each((index,item)=>{
removeEventListener('mouseover');
item.removeEventListener('mouseover');
})
$(this.$refs.mx7).each((index,item)=>{
removeEventListener('mouseover');
item.removeEventListener('mouseover');
})
$(this.$refs.mx8).each((index,item)=>{
removeEventListener('mouseover');
item.removeEventListener('mouseover');
})
},
mounted() {
this.getBoxList1()
this.getBoxList2()
this.getBoxList3()
this.getBoxList4()
this.getBoxList5()
this.getBoxList6()
this.getBoxList7()
this.getBoxList8()
this.$post('lxyl/cxfx/kw/query',{
hjCode :'HJ11',
kwx:'11'
}).then(res=>{
let list=res.data.records
this.getBoxList1(list)
this.getBoxList2(list)
this.getBoxList3(list)
this.getBoxList4(list)
this.getBoxList5(list)
this.getBoxList6(list)
this.getBoxList7(list)
this.getBoxList8(list)
})
},
data() {
return {
......@@ -95,143 +114,122 @@
methods: {
getEvent(mx, list) {
this.$nextTick(() => {
var infoBox = this.$refs.infoBox
$(mx).each((index, element) => {
element.addEventListener('mouseover', (event) => {
console.log(event)
let info = list[index]
let content =
`
<br />
名称:${info}
<br />
状态:正常
<br />
数量:100
<br />
物料:测试code
<br />`
$(infoBox).empty()
$(infoBox).append(content)
infoBox.style.top = (event.layerY + 25) + 'px'; // 信息框距离顶部10像素
infoBox.style.left = (event.screenX + 25) + 'px'; // 信息框距离左侧10像素
infoBox.style.display = 'block';
});
element.addEventListener('mouseout', function(event) {
// 隐藏信息框
infoBox.style.display = 'none';
});
});
})
},
getBoxList1() {
getBoxList1(list) {
/* 开始造数据*/
let x = 4
let y = 9
for (let yi = 9; yi >= 1; yi--) {
for (let xi = 1; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}`
this.boxList1.push(code)
let item=list.filter(item=>item.code==code)
this.boxList1.push(item[0])
}
}
this.$nextTick(() => {
this.getEvent(this.$refs.mx1, this.boxList1)
})
},
getBoxList2() {
getBoxList2(list) {
/* 开始造数据*/
let x = 8
let y = 9
for (let yi = 9; yi >= 1; yi--) {
for (let xi = 5; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}`
this.boxList2.push(code)
let item=list.filter(item=>item.code==code)
this.boxList2.push(item[0])
}
}
this.$nextTick(() => {
this.getEvent(this.$refs.mx2, this.boxList2)
})
},
getBoxList3() {
getBoxList3(list) {
/* 开始造数据*/
let x = 11
let y = 9
for (let yi = 9; yi >= 1; yi--) {
for (let xi = 9; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}`
this.boxList3.push(code)
let item=list.filter(item=>item.code==code)
this.boxList3.push(item[0])
}
}
this.$nextTick(() => {
this.getEvent(this.$refs.mx3, this.boxList3)
})
},
getBoxList4() {
getBoxList4(list) {
/* 开始造数据*/
let x = 16
let y = 9
for (let yi = 9; yi >= 1; yi--) {
for (let xi = 12; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}`
this.boxList4.push(code)
let item=list.filter(item=>item.code==code)
this.boxList4.push(item[0])
}
}
this.$nextTick(() => {
this.getEvent(this.$refs.mx4, this.boxList4)
})
},
getBoxList5() {
getBoxList5(list) {
/* 开始造数据*/
let x = 20
let y = 9
for (let yi = 9; yi >= 1; yi--) {
for (let xi = 17; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}`
this.boxList5.push(code)
let item=list.filter(item=>item.code==code)
this.boxList5.push(item[0])
}
}
this.$nextTick(() => {
this.getEvent(this.$refs.mx5, this.boxList5)
})
},
getBoxList6() {
getBoxList6(list) {
/* 开始造数据*/
let x = 24
let y = 9
for (let yi = 9; yi >= 1; yi--) {
for (let xi = 21; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}`
this.boxList6.push(code)
let item=list.filter(item=>item.code==code)
this.boxList6.push(item[0])
}
}
this.$nextTick(() => {
this.getEvent(this.$refs.mx6, this.boxList6)
})
},
getBoxList7() {
getBoxList7(list) {
/* 开始造数据*/
let x = 28
let y = 9
for (let yi = 9; yi >= 1; yi--) {
for (let xi = 25; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}`
this.boxList7.push(code)
let item=list.filter(item=>item.code==code)
this.boxList7.push(item[0])
}
}
this.$nextTick(() => {
this.getEvent(this.$refs.mx7, this.boxList7)
})
},
getBoxList8() {
getBoxList8(list) {
/* 开始造数据*/
let x = 31
let y = 9
for (let yi = 9; yi >= 1; yi--) {
for (let xi = 29; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}`
this.boxList8.push(code)
let item=list.filter(item=>item.code==code)
this.boxList8.push(item[0])
}
}
this.$nextTick(() => {
......@@ -332,23 +330,4 @@
height: 30px;
background-color: #4CAF50;
}
.infoCar {
border: 2px solid #032d60;
-webkit-box-shadow: #07417a 0px 0px 10px;
-moz-box-shadow: #07417a 0px 0px 10px;
box-shadow: inset 0 0 30px #07417a;
display: none;
position: absolute;
z-index: 9999;
background-color: #01172a;
color: #009ae7;
font-size: 13px;
padding: 10px;
right: 10px;
top: 10px;
line-height: 16px;
height: 106px;
width: 130px
}
</style>
......@@ -40,22 +40,22 @@
source:{},
readonly:false,
editColItemList: [
{
label: '货主',
prop: 'hzid',
span: 12,
type: 'AuxInput',
required: true,
typeConfig: {
isRequest: true,
code: 'HZID',
label: 'hzName',
transform: {
value: 'id',
label: 'name'
}
}
},
// {
// label: '货主',
// prop: 'hzid',
// span: 12,
// type: 'AuxInput',
// required: true,
// typeConfig: {
// isRequest: true,
// code: 'HZID',
// label: 'hzName',
// transform: {
// value: 'id',
// label: 'name'
// }
// }
// },
{
label: '物料',
prop: 'wlid',
......@@ -97,6 +97,13 @@
type: 'input',
},
{
label: '生产日期',
prop: 'wlphScrq',
span: 12,
type: 'date',
required: true,
},
{
label: '批号',
prop: 'wlph',
......@@ -113,6 +120,7 @@
},
]
}
......@@ -126,7 +134,7 @@
"djly":"M",
"datas":[this.form]
}
this.$post('wms/kcgl/bzdj/install', params).then(res => {
this.$post('lxyl/kcgl/bzdj/install', params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.showDialog = false
......
......@@ -47,16 +47,8 @@
width: 100
},
{
title: "入库单号",
field: "lydjDjid",
width: 140
},
{
title: "任务号",
field: "djid",
width: 140
},
{
title: "仓库",
......@@ -88,6 +80,11 @@
field: "packCode",
width: 140
},
{
title: "入库单号",
field: "lydjDjid",
width: 140
},
{
title: "开始时间",
field: "kssj",
......
......@@ -6,7 +6,7 @@
</template>
<template #toolbar="ctx">
<el-button @click="showAdd(ctx.basePage)" size='mini' type="primary">新增</el-button>
<el-button @click="cxjyrw(ctx.basePage)" size='mini' type="primary">创建检验任务</el-button>
<el-button @click="cxjyrw(ctx.basePage)" size='mini' type="primary">创建检验</el-button>
<el-button @click="cjxjrw(ctx.basePage)" size='mini' type="primary">创建下架任务</el-button>
</template>
......
......@@ -102,16 +102,16 @@
// width: 140,
// fieldType: 'ftDateTime'
// },
{
title: "合格标志",
field: "hgbz",
"transform": {
"url": "lxyl/zlgl/ukcjyd/init/zjqdStatusEnum",
"label": "name",
"value": "id"
},
width: 140
},
// {
// title: "合格标志",
// field: "hgbz",
// "transform": {
// "url": "lxyl/zlgl/ukcjyd/init/zjqdStatusEnum",
// "label": "name",
// "value": "id"
// },
// width: 140
// },
],
queryParams: [],
......
......@@ -6,7 +6,7 @@
</template>
<template #toolbar="ctx">
<el-button @click="showAdd(ctx.basePage)" size='mini' type="primary">新增</el-button>
<el-button @click="cxjyrw(ctx.basePage)" size='mini' type="primary">创建检验任务</el-button>
<!-- <el-button @click="cxjyrw(ctx.basePage)" size='mini' type="primary">创建检验任务</el-button> -->
<el-button @click="cjxjrw(ctx.basePage)" size='mini' type="primary">创建下架任务</el-button>
</template>
......
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