| | |
| | | <uni-data-select v-model="formData.num" :localdata="equipmentList" @change="changeEquipmentList" |
| | | placeholder="请选择" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item name="inspectionDate" :label-width="80" label="安装位置:"> |
| | | <uni-easyinput v-model="formData.installationPosition_dictText" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item name="inspectionDate" :label-width="80" label="点检日期:"> |
| | | <uni-easyinput v-model="formData.inspectionDate" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item name="outNum" :label-width="80" label="点检人:"> |
| | | <uni-easyinput v-model="formData.operator" :disabled="true" /> |
| | | <uni-forms-item name="operator_dictText" :label-width="80" label="点检人:"> |
| | | <uni-easyinput v-model="formData.operator_dictText" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item name="outNum" :label-width="80" label="备注"> |
| | | <uni-forms-item name="operatorPhone_dictText" :label-width="80" label="点检人电话:"> |
| | | <uni-easyinput v-model="formData.operatorPhone_dictText" :disabled="true" /> |
| | | </uni-forms-item> |
| | | |
| | | <uni-forms-item name="remark" :label-width="80" label="备注"> |
| | | <uni-easyinput type="textarea" v-model="formData.remark" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item name="outNum" :label-width="80" label="点检图片:"> |
| | |
| | | <view class="flex-sub bg-white padding-xs margin-xs radius text-right"> |
| | | {{item.itemDemand}} |
| | | </view> |
| | | <!-- <view class="flex-sub bg-white padding-xs margin-xs radius text-right" |
| | | v-if="item.itemDemand!=null && item.itemDemand.length>10"> |
| | | {{(item.itemDemand).toString().substr(0,10)+'...'}} |
| | | </view> |
| | | |
| | | <view class="flex-sub bg-white padding-xs margin-xs radius text-right" v-else> |
| | | {{item.itemDemand}} |
| | | </view> --> |
| | | </view> |
| | | |
| | | <view class="flex"> |
| | |
| | | }, |
| | | |
| | | |
| | | // ChooseImage() { |
| | | // var that = this; |
| | | // uni.chooseImage({ |
| | | // count: 4, |
| | | // sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 |
| | | // sourceType: ['album'], // 从相册选择 |
| | | // success: (res) => { |
| | | // // 存储选择的图片路径 |
| | | // that.imgList = res.tempFilePaths; |
| | | // that.formData.avatar =[]; |
| | | // // 创建上传任务的 Promise 数组 |
| | | // const uploadPromises = res.tempFilePaths.map((filePath, index) => { |
| | | // return new Promise((resolve, reject) => { |
| | | // that.$http.upload(that.url.upload, { |
| | | // filePath: filePath, |
| | | // name: 'file' |
| | | // }) |
| | | // .then(uploadRes => { |
| | | // // 假设服务器返回的结果中包含文件路径 |
| | | // const filePath = uploadRes.data.result[0]; |
| | | // // 追加到 formData.avatar 中,并用逗号分隔 |
| | | // this.formData.avatar.push(filePath); |
| | | // resolve(filePath); |
| | | // }) |
| | | // .catch(err => { |
| | | // console.error('图片' + index + '上传失败:', err); |
| | | // reject(err); |
| | | // }); |
| | | // }); |
| | | // }); |
| | | |
| | | // // 并发执行所有上传任务 |
| | | // Promise.all(uploadPromises) |
| | | // .then((uploadedFilePaths) => { |
| | | // console.log('所有图片上传成功:', that.formData.avatar); |
| | | // }) |
| | | // .catch((err) => { |
| | | // console.error('图片上传失败:', err); |
| | | // that.$tip.error('图片上传失败'); |
| | | // }); |
| | | // } |
| | | // }); |
| | | // }, |
| | | // ViewImage(e) { |
| | | // uni.previewImage({ |
| | | // urls: this.imgList, |
| | | // current: e.currentTarget.dataset.url |
| | | // }); |
| | | // }, |
| | | // DelImg(e) { |
| | | // uni.showModal({ |
| | | // title: '提示', |
| | | // content: '确定要删除这段回忆吗?', |
| | | // cancelText: '再看看', |
| | | // confirmText: '再见', |
| | | // success: res => { |
| | | // if (res.confirm) { |
| | | // this.imgList.splice(e.currentTarget.dataset.index, 1) |
| | | // } |
| | | // } |
| | | // }) |
| | | // }, |
| | | |
| | | |
| | | upCallback() { |
| | | this.$http.get(this.url.stallList, { |
| | |
| | | //设置列表数据 |
| | | if (res.data.success) { |
| | | this.formData.num = this.announcement1.equipmentId |
| | | this.formData.installationPosition_dictText=this.announcement1.installationPosition_dictText |
| | | this.formData.orderNum = this.announcement1.orderNum |
| | | this.formData.operator = this.announcement1.operator |
| | | this.formData.operator_dictText = this.announcement1.operator_dictText |
| | | this.formData.operatorPhone_dictText = this.announcement1.operatorPhone_dictText |
| | | this.formData.remark = this.announcement1.remark |
| | | this.formData.inspectionDate = this.announcement1.inspectionDate |
| | | if (this.announcement1.standardId !== null) { |