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

Loading…
Cancel
Save