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

wlxxInfo/zlh

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