Browse Source

YT-1843pda责任信息应是 责任明细,现显示明细

intex_online20241228
zhang_li 1 month ago
parent
commit
0c03496565
  1. 22
      src/mycomponents/dept/dept.vue

22
src/mycomponents/dept/dept.vue

@ -68,7 +68,7 @@
</view>
</view>
<view class="item">
<view class="label">明细</view>
<view class="label">责任明细</view>
<view class="value duty-details-value">
<!-- <uni-data-select v-model="dutyDetails" :localdata="dutyDetailList" @change="change" placement='top'
:clear="true"></uni-data-select>
@ -78,7 +78,7 @@
<view class="value1">
<view class="" style="line-height: 70rpx;width: 100%;" @click="showDetail">
<span v-if='chooseDetailItem.label'>{{chooseDetailItem.label}}</span>
<span v-else style="color: rgb(192, 196, 204);">请选择明细</span>
<span v-else style="color: rgb(192, 196, 204);">请选择责任明细</span>
</view>
<u-icon name="arrow-down" color="#acacac" size="24" v-if='!chooseDetailItem.label'></u-icon>
<u-icon name="close-circle-fill" color="#acacac" size="36" @click="clearDetail" v-else></u-icon>
@ -136,10 +136,10 @@
dutyDeptList: [],//
showDeptList:false,//
chooseDeptItem:{},//
//
detailList:[],//
showDetailList:false,//
chooseDetailItem:{},//
//
detailList:[],//
showDetailList:false,//
chooseDetailItem:{},//
}
},
created() {
@ -160,7 +160,7 @@
this.dutyDeptList = res.data
})
},
//
//
getDetailList() {
this.detailList = getDirectoryInfo('duty_details')
this.detailList.forEach(item => item.text = item.label)
@ -215,18 +215,18 @@
this.chooseDeptItem ={}
this.showDeptList = false
},
//
//
showDetail(){
this.showDutyList = false
this.showDeptList = false
this.showDetailList = true
},
//
//
chooseDetail(item){
this.chooseDetailItem =item
this.showDetailList = false
},
//
//
clearDetail(){
this.chooseDetailItem = {}
this.showDetailList = false
@ -246,7 +246,7 @@
return
}
if(!obj.dutyDetails){
this.$refs.comMessage.showMessage('请选择明细')
this.$refs.comMessage.showMessage('请选择责任明细')
return
}
console.log(obj)

Loading…
Cancel
Save