@ -2,7 +2,7 @@
< view class = "todo-page" >
< view class = "background" > < / view >
< view class = "allview" >
< view class = "card" >
< view class = "card" v-if ="stepsPageList === 0" >
< u - -form labelWidth = "auto" :model ="model" ref = "wForm" class = "demo-ruleForm" >
< view style = "position: relative;" >
< view style = "position: absolute;left: -10px;color: #3d4b70;top: -3px;" > * < / view >
@ -84,10 +84,70 @@
< full -upload v-model ="model.Nav_MonitorFiles" > < / full -upload >
< / u - - f o r m >
< / view >
< view style = "padding: 10px 16px;" v-if ="stepsPageList === 0" class="bottom-button" >
< u -button type = "primary" @click ="stepAdd" color = "#3d4b70" :loading ="stepLoad" > 下一步 < / u - b u t t o n >
< / view >
< view class = "card" v-if ="stepsPageList === 1" >
< u - -form labelWidth = "auto" :model ="model" ref = "wForm" class = "sub-form" >
< view style = "position: relative;" >
< view style = "position: absolute;left: -10px;color: #3d4b70;top: -3px;" > * < / view >
< / view >
< view style = "font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;margin-top: 20px;" > 作业流程及安全措施 < / view >
< uni -collapse :border ="false" accordion >
< view v-for ="(item, index) in model.Nav_Details.filter(i => !i.IS_DELETED)" :key ="index" >
< uni -collapse -item title -border = " none " :border ="false" >
< template v -slot : title >
< view class = "uni-collapse-item__title-box" >
< view class = "uni-collapse-item__title-text" >
{ { item . CONTENT ? index + 1 + '.' + item . JOB _STEPName + '--' + item . CONTENT : index + 1 + '.' } }
< / view >
< view @ click.stop style = "display: flex;flex-direction: row;align-items: center;" >
< u -switch v-model ="item.IS_CONFIRM_NEW" @change="changeConfirm($event,item)" size="18" style="margin-right: 10px;" > < / u -switch >
< u -icon @click ="handleDelRowBefore(item)" name = "trash" color = "#ff4d4f" size = "21" style = "margin-right: 10px;" > < / u - i c o n >
< / view >
< / view >
< / template >
< view class = "content" style = "padding: 0px 0px 0px 10px;" >
< u -form -item label = "顺序:" prop = "Nav_User.NAME" @ borderBottom >
< u - -input disabledColor = "#fff" v -model = " item.NUM " placeholder = "请输入顺序" type = "number" fontSize = "14px" customStyle = "margin:0px;display:flex;padding:3px 0px" border = "none"
inputAlign = "right" >
< / u - - i n p u t >
< / u - f o r m - i t e m >
< u -form -item label = "作业阶段:" prop = "Nav_User.NAME" @click ="handleChange('FOJobStepEnum',item)" borderBottom >
< u - -input disabledColor = "#fff" v -model = " item.JOB_STEPName " disabled placeholder = "请选择作业阶段" suffixIcon = "arrow-down" suffixIconStyle = "font-size:12px" fontSize = "14px"
customStyle = "margin:0px;display:flex;padding:3px 0px" border = "none" inputAlign = "right" >
< / u - - i n p u t >
< / u - f o r m - i t e m >
< u -form -item label = "作业流程及安全措施:" >
< / u - f o r m - i t e m >
< u - -textarea v-model ="item.CONTENT" placeholder="请输入作业流程及安全措施" border="surround" > < / u - -textarea >
< view class = "upload-title" > 附件 : < / view >
< full -upload v-model ="item.Nav_DetailFiles" > < / full -upload >
< / view >
< / u n i - c o l l a p s e - i t e m >
< / view >
< / u n i - c o l l a p s e >
< view style = "padding: 10px 16px;display: flex;flex-direction: row;" >
< u -button type = "primary" @click ="handleNewCheckArea" color = "#3d4b70" > 新增 < / u - b u t t o n >
<!-- < u -button type = "primary" @click ="handleNewCheckList" color = "#3d4b70" style = "margin-left: 5px;" > 检查清单 < / u - b u t t o n > - - >
< / view >
< / u - - f o r m >
< / view >
< view style = "padding: 10px 16px;display: flex;flex-direction: row;" v-if ="stepsPageList === 1" class="bottom-button" >
< u -button type = "primary" @click ="stepReduce" color = "#3d4b70" :plain ="true" style = "margin-right: 5px;" > 上一步 < / u - b u t t o n >
< u -button type = "primary" @click ="submit" color = "#3d4b70" style = "margin-left: 5px;" > 提交 < / u - b u t t o n >
< / view >
< view style = "padding: 10px 16px;" class = "bottom-button" >
< u -button type = "primary" @click ="submit" color = "#3d4b70" :loading ="stepLoad" > 提交 < / u - b u t t o n >
< / view >
< query -selector :multiple ="selectorInfo.isMultiple" :show ="selectorInfo.showPopup" :title ="selectorInfo.title" :lists ="selectorInfo.dataLists" :defaultChecked ="selectorInfo.defaultChecked"
@ search = "handleSearch" @ select = "handleSelected" @ close = "selectorInfo.showPopup=false" : total = "selectorInfo.totalCount" / >
< u -picker :show ="comPickerInfo.showSheet" :columns ="comPickerInfo.columns" @confirm ="onConfirmPicker" @close ="comPickerInfo.showSheet=false" @cancel ="comPickerInfo.showSheet=false" keyName = "NAME" > < / u - p i c k e r >
@ -363,7 +423,11 @@
this . model . LEAVE _DATE = uni . $u . timeFormat ( this . model . LEAVE _DATE ,
'yyyy-mm-dd hh:MM:ss' )
this . model . IS _LEAVEName = res . IS _LEAVE !== '' && res . IS _LEAVE !== undefined ? this . enumsData [ 'FOYesOrNoEnum' ] . find ( item => item . code === res . IS _LEAVE ) . name : ''
if ( this . model . Nav _Details && this . model . Nav _Details . length > 0 ) {
this . model . Nav _Details . map ( item => {
item . JOB _STEPName = item . JOB _STEP !== '' && item . JOB _STEP !== undefined ? this . enumsData [ 'FOJobStepEnum' ] . find ( item1 => item1 . code === item . JOB _STEP ) . name : ''
} )
}
} )
}
} ,
@ -397,10 +461,13 @@
itemData : item
}
} ,
onConfirmPicker ( e ) {
if ( this . comPickerInfo . name == 'FOYesOrNoEnum' ) {
this . model . IS _LEAVEName = e . value [ 0 ] . name
this . model . IS _LEAVE = e . value [ 0 ] . ID
onConfirmPicker ( e ) {
if ( this . comPickerInfo . name == 'FOYesOrNoEnum' ) {
this . model . IS _LEAVEName = e . value [ 0 ] . name
this . model . IS _LEAVE = e . value [ 0 ] . ID
} else if ( this . comPickerInfo . name == 'FOJobStepEnum' ) {
this . comPickerInfo . itemData . JOB _STEPName = e . value [ 0 ] . name
this . comPickerInfo . itemData . JOB _STEP = e . value [ 0 ] . ID
}
this . comPickerInfo = {
@ -547,8 +614,9 @@
this . model . AUDIT _LEVEL = res . AUDIT _LEVEL
this . model . EVALUATE _LEVELName = this . enumsData [ 'SKEvaluateLevelEnum' ] . find ( item => item . code === res . EVALUATE _LEVEL ) . name
if ( this . model . Nav _Details && this . model . Nav _Details . length > 0 ) {
this . model . Nav _Details . map ( item1 => {
this . model . Nav _Details . map ( item1 => {
item1 . JOB _STEPName = this . enumsData [ 'FOJobStepEnum' ] . find ( item => item . code === item1 . JOB _STEP ) . name
/ / i t e m 1 . J O B _ S T E P N a m e = i t e m 1 . J O B _ S T E P ! = = ' ' & & i t e m 1 . J O B _ S T E P ! = = u n d e f i n e d ? t h i s . e n u m s D a t a [ ' F O J o b S t e p E n u m ' ] . f i n d ( i t e m 2 = > i t e m 2 . c o d e = = = i t e m 1 . J O B _ S T E P ) . n a m e : ' '
} )
}
}