| | |
| | | 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) { |
| | |
| | | }).then(res => { |
| | | console.log(res); |
| | | let data = res.data; |
| | | this.status = res.confirmFlag; |
| | | this.basicData.forEach(item => { |
| | | item.value = data[item.name] |
| | | }) |