|
@@ -56,9 +56,9 @@
|
|
},
|
|
},
|
|
imgList: [],
|
|
imgList: [],
|
|
outReport: [],
|
|
outReport: [],
|
|
- checkReport:[],
|
|
|
|
- disinfectReport:[],
|
|
|
|
- nucleicReport:[],
|
|
|
|
|
|
+ checkReport: [],
|
|
|
|
+ disinfectReport: [],
|
|
|
|
+ nucleicReport: [],
|
|
imageStyles: {
|
|
imageStyles: {
|
|
width: 150,
|
|
width: 150,
|
|
height: 100,
|
|
height: 100,
|
|
@@ -74,11 +74,19 @@
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
this.id = options.id;
|
|
this.id = options.id;
|
|
- },
|
|
|
|
- onShow() {
|
|
|
|
this.getBusinessById();
|
|
this.getBusinessById();
|
|
},
|
|
},
|
|
|
|
+
|
|
methods: {
|
|
methods: {
|
|
|
|
+ toast() {
|
|
|
|
+ let obj = {
|
|
|
|
+ outReport: this.form.outReport,
|
|
|
|
+ checkReport: this.form.checkReport,
|
|
|
|
+ disinfectReport: this.form.disinfectReport,
|
|
|
|
+ nucleicReport: this.form.nucleicReport,
|
|
|
|
+ }
|
|
|
|
+ this.$common.toast(JSON.stringify(obj))
|
|
|
|
+ },
|
|
outSelect(e) {
|
|
outSelect(e) {
|
|
let that = this;
|
|
let that = this;
|
|
uni.uploadFile({
|
|
uni.uploadFile({
|
|
@@ -86,7 +94,7 @@
|
|
filePath: e.tempFilePaths[0],
|
|
filePath: e.tempFilePaths[0],
|
|
name: 'file',
|
|
name: 'file',
|
|
success: (resp => {
|
|
success: (resp => {
|
|
- that.form.outReport= JSON.parse(resp.data).data;
|
|
|
|
|
|
+ that.form.outReport = JSON.parse(resp.data).data;
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -97,7 +105,7 @@
|
|
filePath: e.tempFilePaths[0],
|
|
filePath: e.tempFilePaths[0],
|
|
name: 'file',
|
|
name: 'file',
|
|
success: (resp => {
|
|
success: (resp => {
|
|
- that.form.checkReport= JSON.parse(resp.data).data;
|
|
|
|
|
|
+ that.form.checkReport = JSON.parse(resp.data).data;
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -108,7 +116,7 @@
|
|
filePath: e.tempFilePaths[0],
|
|
filePath: e.tempFilePaths[0],
|
|
name: 'file',
|
|
name: 'file',
|
|
success: (resp => {
|
|
success: (resp => {
|
|
- that.form.disinfectReport= JSON.parse(resp.data).data;
|
|
|
|
|
|
+ that.form.disinfectReport = JSON.parse(resp.data).data;
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -119,18 +127,7 @@
|
|
filePath: e.tempFilePaths[0],
|
|
filePath: e.tempFilePaths[0],
|
|
name: 'file',
|
|
name: 'file',
|
|
success: (resp => {
|
|
success: (resp => {
|
|
- that.form.nucleicReport= JSON.parse(resp.data).data;
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- handlerUpload(e, target) {
|
|
|
|
- let that = this;
|
|
|
|
- uni.uploadFile({
|
|
|
|
- url: that.uploadImageUrl,
|
|
|
|
- filePath: e.tempFilePaths[0],
|
|
|
|
- name: 'file',
|
|
|
|
- success: (resp => {
|
|
|
|
- that.form[target] = JSON.parse(resp.data).data;
|
|
|
|
|
|
+ that.form.nucleicReport = JSON.parse(resp.data).data;
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -139,32 +136,32 @@
|
|
id: this.id
|
|
id: this.id
|
|
}).then(resp => {
|
|
}).then(resp => {
|
|
this.form = resp.data;
|
|
this.form = resp.data;
|
|
- if(this.form.nucleicReport){
|
|
|
|
- this.nucleicReport=[{
|
|
|
|
- 'name':'payTicket.png',
|
|
|
|
- 'extname':'.png',
|
|
|
|
- 'url':this.form.nucleicReport
|
|
|
|
|
|
+ if (this.form.nucleicReport) {
|
|
|
|
+ this.nucleicReport = [{
|
|
|
|
+ 'name': 'payTicket.png',
|
|
|
|
+ 'extname': '.png',
|
|
|
|
+ 'url': this.form.nucleicReport
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
- if(this.form.disinfectReport){
|
|
|
|
- this.disinfectReport=[{
|
|
|
|
- 'name':'payTicket.png',
|
|
|
|
- 'extname':'.png',
|
|
|
|
- 'url':this.form.disinfectReport
|
|
|
|
|
|
+ if (this.form.disinfectReport) {
|
|
|
|
+ this.disinfectReport = [{
|
|
|
|
+ 'name': 'payTicket.png',
|
|
|
|
+ 'extname': '.png',
|
|
|
|
+ 'url': this.form.disinfectReport
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
- if(this.form.checkReport){
|
|
|
|
- this.checkReport=[{
|
|
|
|
- 'name':'payTicket.png',
|
|
|
|
- 'extname':'.png',
|
|
|
|
- 'url':this.form.checkReport
|
|
|
|
|
|
+ if (this.form.checkReport) {
|
|
|
|
+ this.checkReport = [{
|
|
|
|
+ 'name': 'payTicket.png',
|
|
|
|
+ 'extname': '.png',
|
|
|
|
+ 'url': this.form.checkReport
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
- if(this.form.outReport){
|
|
|
|
- this.outReport=[{
|
|
|
|
- 'name':'payTicket.png',
|
|
|
|
- 'extname':'.png',
|
|
|
|
- 'url':this.form.outReport
|
|
|
|
|
|
+ if (this.form.outReport) {
|
|
|
|
+ this.outReport = [{
|
|
|
|
+ 'name': 'payTicket.png',
|
|
|
|
+ 'extname': '.png',
|
|
|
|
+ 'url': this.form.outReport
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
})
|
|
})
|