Lou
2023-12-25 d8243dc134e1be05711dfc08bdf8190a84d0761d
subPackage/workbench/views/labelReportDetail.vue
@@ -111,19 +111,30 @@
                imageUrls: [],
                goodsImageUrls: [],
                selectStatus: "",
                remark: ""
                remark: "",
            roleType:"",
            status:1
            }
        },
        onLoad(option) {
            this.id = option.id;
            this.getDetailInfo(option.id);
         let roleName = uni.getStorageSync("activeRole").roleName
         if(roleName == "居民"){
            this.roleType = 2
         }else {
            this.roleType = 1
         }
        },
 
        methods: {
         
         showPickerDate() {
            if (this.roleType == 2 && this.status != 2) return;
            this.isPickerShow = true;
         showPicker() {
            if (this.roleType == 1){
               this.isPickerShow = true;
            };
         },
         
            getDetailInfo(id) {
@@ -132,6 +143,7 @@
                }).then(res => {
                    console.log(res);
                    let data = res.data;
               this.status = res.confirmFlag;
                    this.basicData.forEach(item => {
                        item.value = data[item.name]
                    })