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

检验单调整

parent 60cddee0
......@@ -81,10 +81,23 @@
field: "djid",
width: 140
},
{
title: "来源单类型",
field: "lydlx",
width: 200,
"transform": {
"url": "lxyl/zlgl/ukcjyd/init/Jylydlx",
"label": "name",
"value": "id"
}
},
{
title: "来源单号",
field: "lydid",
width: 140
width: 200,
formatter(a,b,c){
return a.kccjCode||a.ukcyhdCode
}
},
{
title: "检验批数量",
......
......@@ -33,7 +33,7 @@
config: {
/* 基本配置*/
url: 'lxyl/zlgl/kccj',
queryUrl: 'lxyl/zlgl/kccj//query/detail',
queryUrl: 'lxyl/zlgl/kccj/query/detail',
tableTitle: [{
title: "物料编码",
field: "wlxxCode",
......
......@@ -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>
</template>
......@@ -97,13 +97,24 @@
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()
}
cxjyrw(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', {
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()
}
})
})
} else {
this.$warning('请选中一条数据')
}
}
......@@ -117,4 +128,4 @@
</script>
<style>
</style>
</style>
\ No newline at end of file
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