Commit 60cddee0 authored by 李苏's avatar 李苏 💬

质量重检测

parent 57e0bd47
<template>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;border-top: 0px;" :autoQuery='false'
:config="config">
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full"
style="height: 100%;border-top: 0px;" :autoQuery='false' :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
......@@ -36,22 +36,32 @@
/* 基本配置*/
url: 'wms/ckgl/llck',
queryUrl: 'wms/ckgl/jhtz/query/jhtzzy',
tableTitle: [
tableTitle: [{
title: "库位",
field: "kwName",
width: 100,
},
{
title: "库位",
field: "kwName",
title: "容器",
field: "rqCode",
width: 100,
},
{
title: "容器",
field: "rqCode",
width: 100,
title: "唯一码",
field: "packCode",
width: 140,
},
{
title: "状态",
field: "zt",
width: 100,
}
title: "状态",
field: "zt",
width: 100,
"transform": {
"url": "wms/ckgl/jhtz/init/zt",
"label": "name",
"value": "id"
}
},
],
queryParams: [],
......@@ -60,13 +70,13 @@
},
methods: {
getRow(val){
this.$emit('getRow',val)
getRow(val) {
this.$emit('getRow', val)
},
demo(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
demo(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
console.log(ctx.singleItem)
}else{
} else {
this.$warning('请选中一条数据')
}
}
......
......@@ -14,7 +14,7 @@
<el-tab-pane class="full" label="拣货清单" name="second">
<Qd ref="qd" class="full" />
</el-tab-pane>
<el-tab-pane class="full" label="拣货汇总" name="third">
<el-tab-pane class="full" label="拣货作业" name="third">
<Hz ref="hz" class="full" />
</el-tab-pane>
<el-tab-pane class="full" label="拣货结果" name="fourth">
......
......@@ -108,7 +108,7 @@
{
"label": "仓库",
"prop": "ckid",
"span": 6,
"span": 4,
"type": "RelSelect",
"value": "",
"typeConfig": {
......@@ -122,7 +122,7 @@
{
"label": "库区",
"prop": "kqid",
"span": 6,
"span": 4,
"type": "RelSelect",
"value": "",
"typeConfig": {
......@@ -138,7 +138,7 @@
{
label: '单据编号',
prop: 'djid',
span: 6,
span: 4,
type: 'input',
value: ''
}
......
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
<!-- 左表数据-->
<div class="tzqdLeft">
<BasePage ref="basePage" @getRow='getRow' :autoQuery='false' :power="{
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
}" :toolButton='false' class="min_full" style="height: 100%;width: 100%;" :config="config">
<div slot="form" >
<div style="height: 50px;width: 100%;display: flex;" >
<div class="tzqdItem">
物料名称:{{app.singleItem.wlxxName}}
</div>
<div class="tzqdItem" >
物料编码:{{app.singleItem.wlxxCode}}
</div>
<div class="tzqdItem" >
物料规格:{{app.singleItem.wlxxGg}}
</div>
<div class="tzqdItem" >
物料批号:{{app.singleItem.wlph}}
</div>
<div class="tzqdItem" >
制令号:{{app.singleItem.zlh}}
</div>
</div>
<div style="display: flex;height: 60vh;" >
<!-- 左表数据-->
<div class="tzqdLeft">
<BasePage @pageQueryFinally.once='pageQueryFinally' ref="basePage" @getRow='getRow' :autoQuery='false' :power="{
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
}" :toolButton='false' class="min_full" style="height: 100%;width: 100%;" :config="config">
<template slot="tabCustom2">
<el-table-column label="操作" width="90" header-align="center" fixed="right">
<template slot-scope="scope">
<el-button style="text-align: center;color: cornflowerblue;width: 100%;"
@click.native.prevent="cz(scope.$index,scope,scope.row)" type="text" size="small">
<i class="el-icon-edit"></i>操作
</el-button>
<template slot="tabCustom2">
<el-table-column label="操作" width="90" header-align="center" fixed="right">
<template slot-scope="scope">
<el-button style="text-align: center;color: cornflowerblue;width: 100%;"
@click.native.prevent="cz(scope.$index,scope,scope.row)" type="text" size="small">
<i class="el-icon-edit"></i>操作
</el-button>
</template>
</el-table-column>
</template>
</BasePage>
</template>
</el-table-column>
</template>
</BasePage>
</div>
<div class="tzqdRight">
<EditTable ref="editTable" :app='editTableConfig'>
<template slot="tabCustom">
<el-table-column label="操作" width="90" header-align="center" fixed="right">
<template slot-scope="scope">
<el-button style="text-align: center;color: red;width: 100%;" @click.native.prevent="del(scope.$index)"
type="text" size="small">
<i class="el-icon-delete"></i>删除
</el-button>
</template>
</el-table-column>
</template>
</div>
<div class="tzqdRight">
<EditTable ref="editTable" :app='editTableConfig'>
<template slot="tabCustom">
<el-table-column label="操作" width="90" header-align="center" fixed="right">
<template slot-scope="scope">
<el-button style="text-align: center;color: red;width: 100%;" @click.native.prevent="del(scope.$index)"
type="text" size="small">
<i class="el-icon-delete"></i>删除
</el-button>
</template>
</el-table-column>
</template>
</EditTable>
</EditTable>
</div>
</div>
</div>
<div slot="reFooter" class="refooter">
<span slot="footer" class="dialog-footer">
......@@ -83,24 +103,7 @@
this.$refs.basePage.queryParams.wlph = this.app.singleItem.wlph
this.$refs.basePage.refresh()
/* 清单查询*/
let params = {
zlh: this.app.singleItem.zlh,
wlid: wlid,
wlph: this.app.singleItem.wlph,
mid: this.app.singleItem.$id,
ckid: this.app.singleItem.$ckid
}
this.$post('wms/ckgl/jhtz/query/jhtzqd', params).then(res => {
if (res.success) {
res.data.records.forEach(item => {
this.editTableConfig['editTableData'].push(_.cloneDeep(item))
/* 原始数据保留*/
this.original.push(_.cloneDeep(item))
this.sljl[item.packid] = item.jhsl
})
}
})
})
......@@ -139,14 +142,9 @@
width: 130,
},
{
label: '名称',
prop: 'wlxxName',
width: 100,
},
{
label: '物料批号',
prop: 'wlph',
width: 100,
label: "物料批号",
prop: "wlph",
width: 140
},
{
label: '容器',
......@@ -173,25 +171,11 @@
/* 基本配置*/
url: 'lxyl/zlgl/ukcjyd',
// url: 'wms/ckgl/jhtz',
queryUrl: 'wms/common/queryZkPackOrRq',
tableTitle: [{
title: "物料编码",
field: "wlxxCode",
width: 140
},
queryUrl: 'wms/common/query/kcfp',
tableTitle: [
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
},
{
title: "数量",
field: "packmxSl",
title: "库存数量",
field: "kcsl",
width: 140
},
{
......@@ -214,7 +198,6 @@
field: "packCode",
width: 140
},
{
title: "维护人",
field: "whr"
......@@ -236,6 +219,33 @@
}
},
methods: {
pageQueryFinally(){
/* 只执行意思*/
let params = {
zlh: this.app.singleItem.zlh,
wlid: this.app.singleItem.wlid,
wlph: this.app.singleItem.wlph,
mid: this.app.singleItem.$id,
ckid: this.app.singleItem.$ckid
}
this.$post('wms/ckgl/jhtz/query/jhtzqd', params).then(res => {
if (res.success) {
res.data.records.forEach(item => {
this.editTableConfig['editTableData'].push(_.cloneDeep(item))
/* 原始数据保留*/
this.original.push(_.cloneDeep(item))
this.sljl[item.packid] = item.jhsl
/* 延迟修改右侧原始数据*/
this.$refs.basePage.$refs.TablePager.tableData.forEach(ritem => {
if (ritem.packid == item.packid) {
/* 减少初始数量*/
ritem.kcsl=ritem.kcsl-item.jhsl
}
})
})
}
})
},
save() {
/* 源数据*/
let originalMap = {}
......@@ -297,7 +307,7 @@
let slc = o - n
/* 数量记录为新*/
this.sljl[item.packid] = n
item.packmxSl = item.packmxSl + slc
item.kcsl = item.kcsl + slc
},
getRow(val) {
......@@ -354,6 +364,11 @@
</script>
<style scoped>
.tzqdItem{
flex: 1;
line-height: 50px;
font-weight: 800;
}
.tzqdLeft {
width: 50%;
height: 100%;
......@@ -368,4 +383,4 @@
padding-left: 5px;
padding-right: 5px;
}
</style>
\ No newline at end of file
</style>
......@@ -128,7 +128,7 @@
save(){
let list =this.$refs.basePage.$refs.TablePager.selectedList||[]
if(list.length!=0){
this.$post('lxyl/zlgl/ukcjyd/add',list).then(res=>{
this.$post('lxyl/zlgl/kccj/doGenerate',list).then(res=>{
if(res.success){
this.app.showDialog=false
this.app.refresh()
......
......@@ -6,6 +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>
</template>
......@@ -95,6 +96,16 @@
},
getRow(val) {
this.$emit('getRow', val)
},
cxjyrw(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
this.$post('lxyl/zlgl/kccj/genJyd',{id:ctx.singleItem.id}).then(res=>{
if(res.success('操作成功')){
ctx.refresh()
}
})
}
}
},
components: {
......@@ -106,4 +117,4 @@
</script>
<style>
</style>
\ No newline at end of file
</style>
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