|
@@ -80,16 +80,48 @@
|
|
|
},
|
|
|
methods: {
|
|
|
outSelect(e) {
|
|
|
- this.handlerUpload(e, 'outReport')
|
|
|
+ let that = this;
|
|
|
+ uni.uploadFile({
|
|
|
+ url: that.uploadImageUrl,
|
|
|
+ filePath: e.tempFilePaths[0],
|
|
|
+ name: 'file',
|
|
|
+ success: (resp => {
|
|
|
+ that.form.outReport= JSON.parse(resp.data).data;
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
checkSelect(e) {
|
|
|
- this.handlerUpload(e, 'checkReport')
|
|
|
+ let that = this;
|
|
|
+ uni.uploadFile({
|
|
|
+ url: that.uploadImageUrl,
|
|
|
+ filePath: e.tempFilePaths[0],
|
|
|
+ name: 'file',
|
|
|
+ success: (resp => {
|
|
|
+ that.form.checkReport= JSON.parse(resp.data).data;
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
disinfectSelect(e) {
|
|
|
- this.handlerUpload(e, 'disinfectReport')
|
|
|
+ let that = this;
|
|
|
+ uni.uploadFile({
|
|
|
+ url: that.uploadImageUrl,
|
|
|
+ filePath: e.tempFilePaths[0],
|
|
|
+ name: 'file',
|
|
|
+ success: (resp => {
|
|
|
+ that.form.disinfectReport= JSON.parse(resp.data).data;
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
nucleicSelect(e) {
|
|
|
- this.handlerUpload(e, 'nucleicReport')
|
|
|
+ let that = this;
|
|
|
+ uni.uploadFile({
|
|
|
+ url: that.uploadImageUrl,
|
|
|
+ filePath: e.tempFilePaths[0],
|
|
|
+ name: 'file',
|
|
|
+ success: (resp => {
|
|
|
+ that.form.nucleicReport= JSON.parse(resp.data).data;
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
handlerUpload(e, target) {
|
|
|
let that = this;
|