| | |
| | | <text class="task-location">{{ item.inspectionLocation }}</text> |
| | | </view> |
| | | <view class="task-actions"> |
| | | <u-button type="primary" |
| | | <!-- <u-button type="primary" |
| | | size="small" |
| | | @click.stop="startScanForTask(item)" |
| | | :customStyle="{ |
| | |
| | | marginRight: '8px' |
| | | }"> |
| | | 扫码上传 |
| | | </u-button> --> |
| | | <u-button type="primary" |
| | | size="small" |
| | | @click.stop="startUploadForTask(item)" |
| | | :customStyle="{ |
| | | borderRadius: '15px', |
| | | height: '30px', |
| | | fontSize: '12px', |
| | | marginRight: '8px' |
| | | }"> |
| | | 图片上传 |
| | | </u-button> |
| | | <u-button type="success" |
| | | size="small" |
| | |
| | | } |
| | | }; |
| | | |
| | | // 图片上传(可选择图片上传或者是相机拍照) |
| | | const startUploadForTask = async (task, type) => { |
| | | // 直接打开上传弹窗 |
| | | openUploadDialog(task); |
| | | }; |
| | | |
| | | // 查看附件 |
| | | const viewAttachments = async task => { |
| | | try { |