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

wlxxInfo/zlh

parent 5ea26693
<template> <template>
<BasePage ref="basePage" :power='power' @getRow='getRow' class="min_full" style="height: 100%;" :config="config"> <BasePage ref="basePage" :power='power' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Add :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='新增'" /> <Add :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='新增'" />
<Xzgw @saveGw='saveGw' :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='选择工位'" /> <Xzgw @saveGw='saveGw' :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='选择工位'" />
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<el-button v-if="ctx.basePage.powerObj['01']" @click="showAdd(ctx.basePage)" size='mini' type="primary">新增</el-button> <el-button v-if="ctx.basePage.powerObj['01']" @click="showAdd(ctx.basePage)" size='mini'
<!-- <el-button @click="cxjyrw(ctx.basePage)" size='mini' type="primary">创建检验任务</el-button> --> type="primary">新增</el-button>
<el-button v-if="ctx.basePage.powerObj['21']" @click="cjxjrw(ctx.basePage)" size='mini' type="primary">创建下架任务</el-button> <!-- <el-button @click="cxjyrw(ctx.basePage)" size='mini' type="primary">创建检验任务</el-button> -->
<el-button v-if="ctx.basePage.powerObj['21']" @click="cjxjrw(ctx.basePage)" size='mini'
type="primary">创建下架任务</el-button>
</template> </template>
...@@ -123,6 +125,21 @@ ...@@ -123,6 +125,21 @@
type: 'input', type: 'input',
value: '' value: ''
} }
],
[{
label: '物料',
prop: 'wlxxInfo',
span: 6,
type: 'input',
value: ''
},
{
label: '指令号',
prop: 'zlh',
span: 6,
type: 'input',
value: ''
}
] ]
], ],
...@@ -141,32 +158,32 @@ ...@@ -141,32 +158,32 @@
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.$confirm('是否继续操作, 是否继续?', '提示', { this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(res => { }).then(res => {
this.$post('lxyl/ukcyhd/genJyd', { this.$post('lxyl/ukcyhd/genJyd', {
id: ctx.singleItem.id id: ctx.singleItem.id
}).then(res => { }).then(res => {
if (res.success) { if (res.success) {
this.$success('操作成功') this.$success('操作成功')
ctx.refresh() ctx.refresh()
} }
}) })
}) })
} else { } else {
this.$warning('请选中一条数据') this.$warning('请选中一条数据')
} }
}, */ }, */
saveGw(form){ saveGw(form) {
let ctx=this.$refs.basePage let ctx = this.$refs.basePage
this.$post('lxyl/ukcyhd/genXjrw', { this.$post('lxyl/ukcyhd/genXjrw', {
id: ctx.singleItem.id, id: ctx.singleItem.id,
gwid:form.gwid gwid: form.gwid
}).then(res => { }).then(res => {
if (res.success) { if (res.success) {
this.$success('操作成功') this.$success('操作成功')
...@@ -179,20 +196,20 @@ ...@@ -179,20 +196,20 @@
ctx.DialogTitle = '选择工位' ctx.DialogTitle = '选择工位'
ctx.DialogWidth = '40vw' ctx.DialogWidth = '40vw'
ctx.showDialog = true ctx.showDialog = true
/* this.$confirm('是否继续操作, 是否继续?', '提示', { /* this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(res => {
this.$post('lxyl/ukcyhd/genXjrw', {
id: ctx.singleItem.id
}).then(res => { }).then(res => {
if (res.success) { this.$post('lxyl/ukcyhd/genXjrw', {
this.$success('操作成功') id: ctx.singleItem.id
ctx.refresh() }).then(res => {
} if (res.success) {
}) this.$success('操作成功')
}) */ ctx.refresh()
}
})
}) */
} else { } else {
this.$warning('请选中一条数据') 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