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

edit type: 'inputText', wbs元素

parent 07cf5da8
...@@ -40,23 +40,13 @@ ...@@ -40,23 +40,13 @@
}, },
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/rkgl/ulkck', url: 'lxyl/ckgl/ckrw/lkck/query/detail',
queryUrl: 'lxyl/rkgl/ulkck/query/detail', queryUrl: 'lxyl/ckgl/ckrw/lkck/query/detail',
tableTitle: [{ tableTitle: [{
title: "唯一码", title: "唯一码",
field: "packCode", field: "packCode",
width: 240 width: 240
}, },
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "码盘数量",
field: "sl",
width: 140
},
{ {
title: "物料编码", title: "物料编码",
field: "wlxxCode", field: "wlxxCode",
...@@ -72,19 +62,20 @@ ...@@ -72,19 +62,20 @@
field: "wlxxGg", field: "wlxxGg",
width: 140 width: 140
}, },
{
title: "数量",
field: "sl",
width: 140
},
{ {
title: "物料批号", title: "物料批号",
field: "wlph", field: "wlph",
width: 180 width: 180
}, },
{ {
title: "维护人", title: "制令号",
field: "whr" field: "zlh",
}, width: 180
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
}, },
], ],
......
...@@ -60,8 +60,8 @@ ...@@ -60,8 +60,8 @@
}, },
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/ckgl/ulkck/queryLkOrPkKw', url: 'lxyl/ckgl/ckrw/lkck/query/kc',
queryUrl: 'lxyl/ckgl/ulkck/queryLkOrPkKw', queryUrl: 'lxyl/ckgl/ckrw/lkck/query/kc',
tableTitle: [{ tableTitle: [{
title: "库位", title: "库位",
field: "kwCode", field: "kwCode",
...@@ -95,37 +95,39 @@ ...@@ -95,37 +95,39 @@
width: 140 width: 140
}, },
{ {
title: "计量单位", title: "库存数量",
field: "jldwName", field: "kcsl",
width: 140 width: 120,
fieldType: 'float'
}, },
{ {
title: "物料批号", title: "物料批号",
field: "wlph", field: "wlph",
width: 140, width: 140,
}, },
{ {
title: "库位名称", title: "计量单位",
field: "wlxxName", field: "jldwName",
width: 120, width: 140
}, },
// {
// title: "库位名称",
// field: "wlxxName",
// width: 120,
// },
{ {
title: "制令号", title: "制令号",
field: "zlh", field: "zlh",
width: 180, width: 180,
}, },
{
title: "库存数量", // {
field: "kcsl", // title: "货主",
width: 120, // field: "hzName",
fieldType: 'float' // width: 180,
}, // },
{
title: "货主",
field: "hzName",
width: 180,
},
], ],
...@@ -145,7 +147,7 @@ ...@@ -145,7 +147,7 @@
"type": "RelSelect", "type": "RelSelect",
"value": "", "value": "",
"typeConfig": { "typeConfig": {
"src": "jcsj/common/ck/queryCkid", "src": "lxyl/jcsj/uck/ck/queryCjckid",
"match": { "match": {
"value": "id", "value": "id",
"label": "name" "label": "name"
...@@ -194,7 +196,7 @@ ...@@ -194,7 +196,7 @@
datas:list, datas:list,
gwid:form.gwid 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){ if(res.success){
this.$success('操作成功') this.$success('操作成功')
this.app.showDialog=false this.app.showDialog=false
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 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> </template>
</BasePage> </BasePage>
...@@ -35,13 +35,14 @@ ...@@ -35,13 +35,14 @@
}, },
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/ckgl/ulkck', url:'lxyl/ckgl/ckrw/lkck',
tableTitle: [{ tableTitle: [
{
title: "状态", title: "状态",
field: "zt", field: "zt",
width: 80, width: 80,
"transform": { "transform": {
"url": "lxyl/ckgl/ulkck/init/zt", "url": "lxyl/ckgl/ckrw/lkck/init/zt",
"label": "name", "label": "name",
"value": "id" "value": "id"
} }
...@@ -53,12 +54,12 @@ ...@@ -53,12 +54,12 @@
width: 140 width: 140
}, },
{ {
title: "位", title: "起始位",
field: "gwName", field: "kwName",
width: 140 width: 140
}, },
{ {
title: "位", title: "目标位",
field: "gwName", field: "gwName",
width: 140 width: 140
}, },
...@@ -67,51 +68,107 @@ ...@@ -67,51 +68,107 @@
field: "rqCode", field: "rqCode",
width: 140 width: 140
}, },
{ {
title: "业务日期", title: "开始时间",
field: "tyrq", field: "kssj",
fieldType: "ftDate"
},
{
title: "结束时间",
field: "jssj",
fieldType: "ftDate" fieldType: "ftDate"
}, },
{ {
title: "维护人", title: "耗时",
field: "whr", 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 width: 120
}, },
{ {
title: "维护时间", title: "创建时间",
field: "whsj", field: "cjsj",
fieldType: "ftDateTime" fieldType: "ftDateTime"
}, },
], ],
queryParams: [ queryParams: [
[{ [{
label: '单据号', label: '日期',
prop: 'djid', startProp: "start",
span: 6, 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', type: 'input',
value: '' value: ''
}, },
{ {
"label": "状态", "label": "状态",
"prop": "zt", "prop": "zt",
"span": 6, "span": 8,
"type": "RelSelect", "type": "RelSelect",
"value": "", "value": "",
"typeConfig": { "typeConfig": {
"src": "lxyl/ckgl/ulkck/init/zt", "src": "lxyl/ckgl/ckrw/lkck/init/zt ",
"match": { "match": {
"value": "id", "value": "id",
"label": "name" "label": "name"
} }
} }
}, },
{
prop: 'type',
value: 'L'
}
], ]
], ],
/* 默认启停用 */ /* 默认启停用 */
showqt: false, showqt: false,
...@@ -128,7 +185,7 @@ ...@@ -128,7 +185,7 @@
/* 示例*/ /* 示例*/
akck(ctx) { akck(ctx) {
ctx.DialogTitle = '选择库存' ctx.DialogTitle = '选择库存'
ctx.DialogWidth = '70vw' ctx.DialogWidth = '80vw'
ctx.showDialog = true ctx.showDialog = true
} }
}, },
......
...@@ -40,23 +40,13 @@ ...@@ -40,23 +40,13 @@
}, },
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/rkgl/ulkck', url: 'lxyl/ckgl/ckrw/pkck/query/detail',
queryUrl: 'lxyl/rkgl/ulkck/query/detail', queryUrl: 'lxyl/ckgl/ckrw/pkck/query/detail',
tableTitle: [{ tableTitle: [{
title: "唯一码", title: "唯一码",
field: "packCode", field: "packCode",
width: 240 width: 240
}, },
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "码盘数量",
field: "sl",
width: 140
},
{ {
title: "物料编码", title: "物料编码",
field: "wlxxCode", field: "wlxxCode",
...@@ -72,19 +62,20 @@ ...@@ -72,19 +62,20 @@
field: "wlxxGg", field: "wlxxGg",
width: 140 width: 140
}, },
{
title: "数量",
field: "sl",
width: 140
},
{ {
title: "物料批号", title: "物料批号",
field: "wlph", field: "wlph",
width: 180 width: 180
}, },
{ {
title: "维护人", title: "制令号",
field: "whr" field: "zlh",
}, width: 180
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
}, },
], ],
......
...@@ -59,8 +59,8 @@ ...@@ -59,8 +59,8 @@
}, },
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/ckgl/ulkck/queryLkOrPkKw', url: 'lxyl/ckgl/ckrw/pkck/query/kc',
queryUrl: 'lxyl/ckgl/ulkck/queryLkOrPkKw', queryUrl: 'lxyl/ckgl/ckrw/pkck/query/kc',
tableTitle: [{ tableTitle: [{
title: "库位", title: "库位",
field: "kwCode", field: "kwCode",
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
"type": "RelSelect", "type": "RelSelect",
"value": "", "value": "",
"typeConfig": { "typeConfig": {
"src": "jcsj/common/ck/queryCkid", "src": "lxyl/jcsj/uck/ck/queryCjckid",
"match": { "match": {
"value": "id", "value": "id",
"label": "name" "label": "name"
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
rqid: singleItem.rqid, rqid: singleItem.rqid,
kwid: singleItem.kwid, 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) { if (res.success) {
this.$success('操作成功') this.$success('操作成功')
this.app.showDialog = false this.app.showDialog = false
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 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> </template>
</BasePage> </BasePage>
...@@ -35,13 +35,14 @@ ...@@ -35,13 +35,14 @@
}, },
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/ckgl/ulkck', url:'lxyl/ckgl/ckrw/pkck',
tableTitle: [{ tableTitle: [
{
title: "状态", title: "状态",
field: "zt", field: "zt",
width: 80, width: 80,
"transform": { "transform": {
"url": "lxyl/ckgl/ulkck/init/zt", "url": "lxyl/ckgl/ckrw/pkck/init/zt",
"label": "name", "label": "name",
"value": "id" "value": "id"
} }
...@@ -53,12 +54,12 @@ ...@@ -53,12 +54,12 @@
width: 140 width: 140
}, },
{ {
title: "位", title: "起始位",
field: "gwName", field: "kwName",
width: 140 width: 140
}, },
{ {
title: "位", title: "目标位",
field: "gwName", field: "gwName",
width: 140 width: 140
}, },
...@@ -67,51 +68,81 @@ ...@@ -67,51 +68,81 @@
field: "rqCode", field: "rqCode",
width: 140 width: 140
}, },
{
title: "业务日期",
field: "tyrq",
fieldType: "ftDate"
},
{ {
title: "维护人", title: "创建人",
field: "whr", field: "cjr",
width: 120 width: 120
}, },
{ {
title: "维护时间", title: "创建时间",
field: "whsj", field: "cjsj",
fieldType: "ftDateTime" fieldType: "ftDateTime"
}, },
], ],
queryParams: [ queryParams: [
[{ [{
label: '单据号', label: '日期',
prop: 'djid', startProp: "start",
span: 6, 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', type: 'input',
value: '' value: ''
}, },
{ {
"label": "状态", "label": "状态",
"prop": "zt", "prop": "zt",
"span": 6, "span": 8,
"type": "RelSelect", "type": "RelSelect",
"value": "", "value": "",
"typeConfig": { "typeConfig": {
"src": "lxyl/ckgl/ulkck/init/zt", "src": "lxyl/ckgl/ckrw/pkck/init/zt ",
"match": { "match": {
"value": "id", "value": "id",
"label": "name" "label": "name"
} }
} }
}, },
{
prop: 'type',
value: 'D'
}
], ]
], ],
/* 默认启停用 */ /* 默认启停用 */
showqt: false, showqt: false,
...@@ -128,7 +159,7 @@ ...@@ -128,7 +159,7 @@
/* 示例*/ /* 示例*/
akck(ctx) { akck(ctx) {
ctx.DialogTitle = '选择库存' ctx.DialogTitle = '选择库存'
ctx.DialogWidth = '70vw' ctx.DialogWidth = '80vw'
ctx.showDialog = true ctx.showDialog = true
} }
}, },
......
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
<div ref="infoBox" class="infoCar"> <div ref="infoBox" class="infoCar">
</div> </div>
<div class="full container"> <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}} --> <!-- {{item.code}} -->
</div> </div>
</div> </div>
......
<template> <template>
<div class="full"> <div ref='mx11' class="full" style="position: relative;" >
<div ref="infoBox" class="infoCar">
</div>
<div class="full flex containerAll"> <div class="full flex containerAll">
<div class="full flex1 container1"> <div class="full flex1 container1">
<div ref="mx1" v-for="(item,index) in boxList1" :key="item.code" class="box"> <div ref="mx1" v-for="(item,index) in boxList1" :key="item.code" class="box">
...@@ -16,8 +14,21 @@ ...@@ -16,8 +14,21 @@
</div> </div>
</div> </div>
<div class="full flex1 container4"> <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> <div slot="content">
仓库编码<br/>
库区编码<br/>
库区编码<br/>
库区编码<br/>
库区编码<br/>
库区编码<br/>
库区编码<br/>
</div>
<div ref="mx4" :key="item.code" class="box">
</div>
</el-tooltip>
</div> </div>
<div class="full flex1 container5"> <div class="full flex1 container5">
<div ref="mx5" v-for="(item,index) in boxList5" :key="item.code" class="box"> <div ref="mx5" v-for="(item,index) in boxList5" :key="item.code" class="box">
...@@ -46,39 +57,47 @@ ...@@ -46,39 +57,47 @@
export default { export default {
beforeDestroy() { beforeDestroy() {
$(this.$refs.mx1).each((index,item)=>{ $(this.$refs.mx1).each((index,item)=>{
removeEventListener('mouseover'); item.removeEventListener('mouseover');
}) })
$(this.$refs.mx2).each((index,item)=>{ $(this.$refs.mx2).each((index,item)=>{
removeEventListener('mouseover'); item.removeEventListener('mouseover');
}) })
$(this.$refs.mx3).each((index,item)=>{ $(this.$refs.mx3).each((index,item)=>{
removeEventListener('mouseover'); item.removeEventListener('mouseover');
}) })
$(this.$refs.mx4).each((index,item)=>{ $(this.$refs.mx4).each((index,item)=>{
removeEventListener('mouseover'); item.removeEventListener('mouseover');
}) })
$(this.$refs.mx5).each((index,item)=>{ $(this.$refs.mx5).each((index,item)=>{
removeEventListener('mouseover'); item.removeEventListener('mouseover');
}) })
$(this.$refs.mx6).each((index,item)=>{ $(this.$refs.mx6).each((index,item)=>{
removeEventListener('mouseover'); item.removeEventListener('mouseover');
}) })
$(this.$refs.mx7).each((index,item)=>{ $(this.$refs.mx7).each((index,item)=>{
removeEventListener('mouseover'); item.removeEventListener('mouseover');
}) })
$(this.$refs.mx8).each((index,item)=>{ $(this.$refs.mx8).each((index,item)=>{
removeEventListener('mouseover'); item.removeEventListener('mouseover');
}) })
}, },
mounted() { mounted() {
this.getBoxList1() this.$post('lxyl/cxfx/kw/query',{
this.getBoxList2() hjCode :'HJ11',
this.getBoxList3() kwx:'11'
this.getBoxList4() }).then(res=>{
this.getBoxList5() let list=res.data.records
this.getBoxList6() this.getBoxList1(list)
this.getBoxList7() this.getBoxList2(list)
this.getBoxList8() this.getBoxList3(list)
this.getBoxList4(list)
this.getBoxList5(list)
this.getBoxList6(list)
this.getBoxList7(list)
this.getBoxList8(list)
})
}, },
data() { data() {
return { return {
...@@ -95,143 +114,122 @@ ...@@ -95,143 +114,122 @@
methods: { methods: {
getEvent(mx, list) { 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 x = 4
let y = 9 let y = 9
for (let yi = 9; yi >= 1; yi--) { for (let yi = 9; yi >= 1; yi--) {
for (let xi = 1; xi <= x; xi++) { for (let xi = 1; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}` 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.$nextTick(() => {
this.getEvent(this.$refs.mx1, this.boxList1) this.getEvent(this.$refs.mx1, this.boxList1)
}) })
}, },
getBoxList2() { getBoxList2(list) {
/* 开始造数据*/ /* 开始造数据*/
let x = 8 let x = 8
let y = 9 let y = 9
for (let yi = 9; yi >= 1; yi--) { for (let yi = 9; yi >= 1; yi--) {
for (let xi = 5; xi <= x; xi++) { for (let xi = 5; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}` 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.$nextTick(() => {
this.getEvent(this.$refs.mx2, this.boxList2) this.getEvent(this.$refs.mx2, this.boxList2)
}) })
}, },
getBoxList3() { getBoxList3(list) {
/* 开始造数据*/ /* 开始造数据*/
let x = 11 let x = 11
let y = 9 let y = 9
for (let yi = 9; yi >= 1; yi--) { for (let yi = 9; yi >= 1; yi--) {
for (let xi = 9; xi <= x; xi++) { for (let xi = 9; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}` 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.$nextTick(() => {
this.getEvent(this.$refs.mx3, this.boxList3) this.getEvent(this.$refs.mx3, this.boxList3)
}) })
}, },
getBoxList4() { getBoxList4(list) {
/* 开始造数据*/ /* 开始造数据*/
let x = 16 let x = 16
let y = 9 let y = 9
for (let yi = 9; yi >= 1; yi--) { for (let yi = 9; yi >= 1; yi--) {
for (let xi = 12; xi <= x; xi++) { for (let xi = 12; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}` 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.$nextTick(() => {
this.getEvent(this.$refs.mx4, this.boxList4) this.getEvent(this.$refs.mx4, this.boxList4)
}) })
}, },
getBoxList5() { getBoxList5(list) {
/* 开始造数据*/ /* 开始造数据*/
let x = 20 let x = 20
let y = 9 let y = 9
for (let yi = 9; yi >= 1; yi--) { for (let yi = 9; yi >= 1; yi--) {
for (let xi = 17; xi <= x; xi++) { for (let xi = 17; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}` 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.$nextTick(() => {
this.getEvent(this.$refs.mx5, this.boxList5) this.getEvent(this.$refs.mx5, this.boxList5)
}) })
}, },
getBoxList6() { getBoxList6(list) {
/* 开始造数据*/ /* 开始造数据*/
let x = 24 let x = 24
let y = 9 let y = 9
for (let yi = 9; yi >= 1; yi--) { for (let yi = 9; yi >= 1; yi--) {
for (let xi = 21; xi <= x; xi++) { for (let xi = 21; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}` 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.$nextTick(() => {
this.getEvent(this.$refs.mx6, this.boxList6) this.getEvent(this.$refs.mx6, this.boxList6)
}) })
}, },
getBoxList7() { getBoxList7(list) {
/* 开始造数据*/ /* 开始造数据*/
let x = 28 let x = 28
let y = 9 let y = 9
for (let yi = 9; yi >= 1; yi--) { for (let yi = 9; yi >= 1; yi--) {
for (let xi = 25; xi <= x; xi++) { for (let xi = 25; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}` 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.$nextTick(() => {
this.getEvent(this.$refs.mx7, this.boxList7) this.getEvent(this.$refs.mx7, this.boxList7)
}) })
}, },
getBoxList8() { getBoxList8(list) {
/* 开始造数据*/ /* 开始造数据*/
let x = 31 let x = 31
let y = 9 let y = 9
for (let yi = 9; yi >= 1; yi--) { for (let yi = 9; yi >= 1; yi--) {
for (let xi = 29; xi <= x; xi++) { for (let xi = 29; xi <= x; xi++) {
let code = `11-${padZero(xi,3)}-${padZero(yi,3)}` 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(() => { this.$nextTick(() => {
...@@ -332,23 +330,4 @@ ...@@ -332,23 +330,4 @@
height: 30px; height: 30px;
background-color: #4CAF50; 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> </style>
...@@ -40,22 +40,22 @@ ...@@ -40,22 +40,22 @@
source:{}, source:{},
readonly:false, readonly:false,
editColItemList: [ editColItemList: [
{ // {
label: '货主', // label: '货主',
prop: 'hzid', // prop: 'hzid',
span: 12, // span: 12,
type: 'AuxInput', // type: 'AuxInput',
required: true, // required: true,
typeConfig: { // typeConfig: {
isRequest: true, // isRequest: true,
code: 'HZID', // code: 'HZID',
label: 'hzName', // label: 'hzName',
transform: { // transform: {
value: 'id', // value: 'id',
label: 'name' // label: 'name'
} // }
} // }
}, // },
{ {
label: '物料', label: '物料',
prop: 'wlid', prop: 'wlid',
...@@ -95,7 +95,14 @@ ...@@ -95,7 +95,14 @@
prop: 'zlh', prop: 'zlh',
span: 12, span: 12,
type: 'input', type: 'input',
},
{
label: '生产日期',
prop: 'wlphScrq',
span: 12,
type: 'date',
required: true,
}, },
{ {
label: '批号', label: '批号',
...@@ -113,6 +120,7 @@ ...@@ -113,6 +120,7 @@
}, },
] ]
} }
...@@ -126,7 +134,7 @@ ...@@ -126,7 +134,7 @@
"djly":"M", "djly":"M",
"datas":[this.form] "datas":[this.form]
} }
this.$post('wms/kcgl/bzdj/install', params).then(res => { this.$post('lxyl/kcgl/bzdj/install', params).then(res => {
if (res.success) { if (res.success) {
this.$success('操作成功') this.$success('操作成功')
this.app.showDialog = false this.app.showDialog = false
......
...@@ -47,16 +47,8 @@ ...@@ -47,16 +47,8 @@
width: 100 width: 100
}, },
{
title: "入库单号",
field: "lydjDjid",
width: 140
},
{
title: "任务号",
field: "djid",
width: 140
},
{ {
title: "仓库", title: "仓库",
...@@ -88,6 +80,11 @@ ...@@ -88,6 +80,11 @@
field: "packCode", field: "packCode",
width: 140 width: 140
}, },
{
title: "入库单号",
field: "lydjDjid",
width: 140
},
{ {
title: "开始时间", title: "开始时间",
field: "kssj", field: "kssj",
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<el-button @click="showAdd(ctx.basePage)" size='mini' type="primary">新增</el-button> <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> <el-button @click="cjxjrw(ctx.basePage)" size='mini' type="primary">创建下架任务</el-button>
</template> </template>
......
...@@ -102,16 +102,16 @@ ...@@ -102,16 +102,16 @@
// width: 140, // width: 140,
// fieldType: 'ftDateTime' // fieldType: 'ftDateTime'
// }, // },
{ // {
title: "合格标志", // title: "合格标志",
field: "hgbz", // field: "hgbz",
"transform": { // "transform": {
"url": "lxyl/zlgl/ukcjyd/init/zjqdStatusEnum", // "url": "lxyl/zlgl/ukcjyd/init/zjqdStatusEnum",
"label": "name", // "label": "name",
"value": "id" // "value": "id"
}, // },
width: 140 // width: 140
}, // },
], ],
queryParams: [], queryParams: [],
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<el-button @click="showAdd(ctx.basePage)" size='mini' type="primary">新增</el-button> <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> <el-button @click="cjxjrw(ctx.basePage)" size='mini' type="primary">创建下架任务</el-button>
</template> </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