You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< div >
< xy -dialog ref = "dialog" : width = '50' :is-show.sync ="isShow" type = "form" title = "业务审核" :form ="form" :rules ="rules"
@submit ="submit" >
< template v -slot : work_status >
< div class = "xy-table-item" >
< div class = "xy-table-item-label" >
< span style = "color: red;font-weight: 600;padding-right: 4px;" > * < / span > 审核状态 :
< / div >
< div class = "xy-table-item-content" >
< el -select v-model ="form.work_status" filterable style="width: 300px;" placeholder="请选择审核状态">
<el-option v-for="item in checkstatusList" :key="item.value" :label="item.value" :value="item.value" >
< / el -option >
< / e l - s e l e c t >
< / div >
< / div >
< / template >
< / x y - d i a l o g >
< / div >
< / template >
< script >
import {
save ,
index ,
show
} from "@/api/system/baseForm.js"
import {
Message
} from 'element-ui'
export default {
data ( ) {
return {
isShow : false ,
id : '' ,
tableName : 'workflows' ,
form : {
work _status : ''
} ,
rules : { } ,
checkstatusList : [ {
label : '待审核' ,
value : '待审核'
} , {
label : '通过' ,
value : '通过'
} , {
label : '退回' ,
value : '退回'
} ]
}
} ,
created ( ) { } ,
watch : {
isShow ( newVal ) {
if ( newVal ) {
this . getViewDetail ( )
} else {
this . id = ''
this . $refs [ 'dialog' ] . reset ( )
}
}
} ,
methods : {
async getViewDetail ( ) {
const res = await show ( {
id : this . id ,
table _name : this . tableName
} )
this . form = {
name : res ? . name ,
idcard : res ? . idcard ,
number : res ? . number ,
mobile : res ? . mobile ,
work _status : res ? . work _status
}
} ,
submit ( val ) {
save ( {
id : this . id ,
table _name : this . tableName ,
... this . form
} ) . then ( res => {
Message ( {
type : 'success' ,
message : '审核成功'
} )
this . isShow = false
this . $emit ( 'refresh' )
} )
}
} ,
}
< / script >
< style >
< / style >