Commit 82644fd2 authored by 李苏's avatar 李苏 💬

检验单调整

parent 60cddee0
...@@ -81,10 +81,23 @@ ...@@ -81,10 +81,23 @@
field: "djid", field: "djid",
width: 140 width: 140
}, },
{
title: "来源单类型",
field: "lydlx",
width: 200,
"transform": {
"url": "lxyl/zlgl/ukcjyd/init/Jylydlx",
"label": "name",
"value": "id"
}
},
{ {
title: "来源单号", title: "来源单号",
field: "lydid", field: "lydid",
width: 140 width: 200,
formatter(a,b,c){
return a.kccjCode||a.ukcyhdCode
}
}, },
{ {
title: "检验批数量", title: "检验批数量",
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/zlgl/kccj', url: 'lxyl/zlgl/kccj',
queryUrl: 'lxyl/zlgl/kccj//query/detail', queryUrl: 'lxyl/zlgl/kccj/query/detail',
tableTitle: [{ tableTitle: [{
title: "物料编码", title: "物料编码",
field: "wlxxCode", field: "wlxxCode",
......
...@@ -97,13 +97,24 @@ ...@@ -97,13 +97,24 @@
getRow(val) { getRow(val) {
this.$emit('getRow', val) this.$emit('getRow', val)
}, },
cxjyrw(ctx){ cxjyrw(ctx) {
if(ctx.singleItem&&ctx.singleItem.id){ if (ctx.singleItem && ctx.singleItem.id) {
this.$post('lxyl/zlgl/kccj/genJyd',{id:ctx.singleItem.id}).then(res=>{ this.$confirm('是否继续操作, 是否继续?', '提示', {
if(res.success('操作成功')){ confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/zlgl/kccj/genJyd', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh() ctx.refresh()
} }
}) })
})
} else {
this.$warning('请选中一条数据')
} }
} }
......
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