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

拣货单/检验单调整

parent dfd98b05
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
<div class="full" > <div class="full" >
<el-tabs class="full" v-model="activeName" > <el-tabs @tab-click="handleClick" class="full" v-model="activeName" >
<el-tab-pane class="full" label="拣货明细" name="first"> <el-tab-pane class="full" label="拣货明细" name="first">
<Mx ref="mx" class="full" /> <Mx ref="mx" class="full" />
</el-tab-pane> </el-tab-pane>
...@@ -49,6 +49,11 @@ ...@@ -49,6 +49,11 @@
} }
}, },
methods: { methods: {
handleClick(val){
val.$children[0].$refs.basePage.$refs['TablePager'].pageQuery({
setFirstCurrent:true
})
},
topGetRow(row) { topGetRow(row) {
/* dom赋值*/ /* dom赋值*/
let mid = row.id let mid = row.id
......
...@@ -37,19 +37,18 @@ ...@@ -37,19 +37,18 @@
url: 'wms/ckgl/llck', url: 'wms/ckgl/llck',
queryUrl: 'wms/ckgl/jhtz/query/jhtzjg', queryUrl: 'wms/ckgl/jhtz/query/jhtzjg',
tableTitle: [{ tableTitle: [{
title: "物料编号", title: "物料编码",
field: "wlcode", field: "wlxxCode",
fieldType: "upper",
width: 140 width: 140
}, },
{ {
title: "物料名称", title: "物料名称",
field: "wlmc", field: "wlxxName",
width: 140 width: 140
}, },
{ {
title: "物料规格", title: "物料规格",
field: "gg", field: "wlxxGg",
width: 140 width: 140
}, },
{ {
...@@ -71,7 +70,7 @@ ...@@ -71,7 +70,7 @@
{ {
title: "唯一码", title: "唯一码",
field: "packCode", field: "packCode",
width: 100, width: 140,
}, },
{ {
title: "容器", title: "容器",
...@@ -80,7 +79,7 @@ ...@@ -80,7 +79,7 @@
}, },
{ {
title: "已拣货数量", title: "已拣货数量",
field: "yjhsl", field: "jhsl",
width: 100, width: 100,
} }
], ],
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
if(ctx.singleItem&&ctx.singleItem.id){ if(ctx.singleItem&&ctx.singleItem.id){
ctx.singleItem.$ckid=this.$ckid ctx.singleItem.$ckid=this.$ckid
ctx.singleItem.$id=this.$id ctx.singleItem.$id=this.$id
ctx.DialogWidth='70vw' ctx.DialogWidth='85vw'
ctx.DialogTitle='调整清单' ctx.DialogTitle='调整清单'
ctx.showDialog=true ctx.showDialog=true
}else{ }else{
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
{ {
title: "唯一码", title: "唯一码",
field: "packCode", field: "packCode",
width: 100, width: 140,
}, },
{ {
title: "容器", title: "容器",
......
...@@ -113,7 +113,28 @@ ...@@ -113,7 +113,28 @@
}, },
editTableConfig: { editTableConfig: {
editTableTitle: [{ editTableTitle: [
{
label: '拣货数量',
prop: 'jhsl',
allowEdit: true,
type: 'inputNumber',
width: 100,
blur: toFixed(null),
change: (row) => {
/* row.jhsl=>拣货数量
row.packid=>包装id
*/
this.$refs.basePage.$refs.TablePager.tableData.forEach(item => {
if (item.packid == row.packid) {
/* 判定初始数量*/
this.jsbc(row.jhsl, this.sljl[row.packid], item)
}
})
}
},
{
label: '唯一码', label: '唯一码',
prop: 'packCode', prop: 'packCode',
width: 130, width: 130,
...@@ -129,34 +150,21 @@ ...@@ -129,34 +150,21 @@
width: 100, width: 100,
}, },
{ {
label: '库位', label: '容器',
prop: 'kwName', prop: 'rqCode',
width: 100, width: 100,
}, },
{ {
label: '拣货数量', label: '制令号',
prop: 'jhsl', prop: 'zlh',
allowEdit: true,
type: 'inputNumber',
width: 100, width: 100,
blur: toFixed(null), },
change: (row) => { {
/* row.jhsl=>拣货数量 label: '库位',
row.packid=>包装id prop: 'kwName',
*/ width: 100,
this.$refs.basePage.$refs.TablePager.tableData.forEach(item => { },
if (item.packid == row.packid) {
/* 判定初始数量*/
if (this.sljl[row.packid]) {
this.jsbc(row.jhsl, this.sljl[row.packid], item)
} else {
this.sljl[row.packid] = row.jhsl
}
}
})
}
}
], ],
editTableData: [] editTableData: []
}, },
...@@ -182,6 +190,11 @@ ...@@ -182,6 +190,11 @@
field: "wlxxGg", field: "wlxxGg",
width: 140 width: 140
}, },
{
title: "数量",
field: "packmxSl",
width: 140
},
{ {
title: "制令号", title: "制令号",
field: "zlh", field: "zlh",
...@@ -202,11 +215,7 @@ ...@@ -202,11 +215,7 @@
field: "packCode", field: "packCode",
width: 140 width: 140
}, },
{
title: "数量",
field: "packmxSl",
width: 140
},
{ {
title: "维护人", title: "维护人",
field: "whr" field: "whr"
...@@ -256,7 +265,7 @@ ...@@ -256,7 +265,7 @@
this.editTableConfig.editTableData.forEach(item=>{ this.editTableConfig.editTableData.forEach(item=>{
if( originalList.includes(item.packid)){ if( originalList.includes(item.packid)){
/* 如果新数据在源数据也有*/ /* 如果新数据在源数据也有*/
if(item.jhsl==originalMap.jhsl){ if(item.jhsl==originalMap[item.packid]){
noeditArr.push(item) noeditArr.push(item)
}else{ }else{
item.flag='U' item.flag='U'
...@@ -269,7 +278,16 @@ ...@@ -269,7 +278,16 @@
} }
}) })
let finList=[...delArr,...editArr,...addArr,...noeditArr] let finList=[...delArr,...editArr,...addArr,...noeditArr]
console.log(finList) /* 开始保存*/
this.$post('wms/ckgl/jhtz/jhtzqd/save',{
id:this.app.singleItem.$id,
datas:finList
}).then(res=>{
if(res.success){
this.$success('操作成功')
this.app.showDialog=false
}
})
}, },
/* 计算保存 /* 计算保存
n为新值 n为新值
...@@ -314,6 +332,7 @@ ...@@ -314,6 +332,7 @@
this.$warning('已存在该数据') this.$warning('已存在该数据')
} else { } else {
this.editTableConfig.editTableData.push(_.cloneDeep({ this.editTableConfig.editTableData.push(_.cloneDeep({
zlh:row.zlh,
packid: row.packid, packid: row.packid,
packCode: row.packCode, packCode: row.packCode,
wlph: row.wlph, wlph: row.wlph,
...@@ -322,6 +341,8 @@ ...@@ -322,6 +341,8 @@
wlxxName: row.wlxxName, wlxxName: row.wlxxName,
kwid: row.kwid, kwid: row.kwid,
kwName: row.kwName, kwName: row.kwName,
rqCode:row.rqCode,
rqid:row.rqid,
jhsl: 0 jhsl: 0
})) }))
this.sljl[row.packid] = 0 this.sljl[row.packid] = 0
......
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