Commit b65abb0d authored by 周毅's avatar 周毅

调拨出库单的明细去除删除按钮

parent c23cec12
......@@ -32,11 +32,11 @@
add: false,
copy: false,
/* 手动控制删除 */
delButton: true,
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: true,
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
......
......@@ -14,6 +14,7 @@
<el-button v-if="ctx.basePage.powerObj['23']" @click="qr(ctx.basePage)" size='mini' type="primary">确认</el-button>
<el-button v-if="ctx.basePage.powerObj['23']" @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button>
<el-button v-if="ctx.basePage.powerObj['24']" @click="kgcdbtb(ctx.basePage)" size='mini' type="primary">跨工厂调拨同步</el-button>
<el-button v-if="ctx.basePage.powerObj['25']" @click="genDbrk(ctx.basePage)" size='mini' type="primary">生成调拨入库单</el-button>
</template>
</BasePage>
......@@ -310,7 +311,27 @@
/* 示例*/
getRow(val) {
this.$emit('getRow', val)
}
},
genDbrk(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否生成调拨入库单?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$post('lxyl/ckgl/dbck/genDbrk', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('生成调拨入库单成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
},
components: {
Edit,
......
......@@ -77,7 +77,11 @@
field: "zlh",
width: 180
},
{
title: "唯一码(新)",
field: "npackid",
width: 180
}
],
queryParams: [],
......
......@@ -68,6 +68,12 @@
"value": "id"
}
},
{
title: "库位",
field: "kwCode",
width: 120,
},
{
title: "容器",
field: "rqCode",
......@@ -109,12 +115,6 @@
field: "zlh",
width: 180,
},
{
title: "库位",
field: "kwCode",
width: 120,
},
{
title: "盘存数量",
......
......@@ -97,6 +97,11 @@
field: "yssl",
fieldType:"float"
},
{
title: "包装数量",
field: "zbsl",
fieldType:"float"
},
{
title: "入库数量",
field: "rksl",
......
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