|
@@ -201,7 +201,7 @@ export default {
|
|
|
indexList: [],//识别数据
|
|
|
indexParam: {},//当前选中识别的数据
|
|
|
imageSrc: '',
|
|
|
- imageSrcList: [],
|
|
|
+ imageSrcList: '',
|
|
|
deviceId: '',
|
|
|
rangeBc: [
|
|
|
{ value: '夜班', text: "夜班" },
|
|
@@ -348,16 +348,17 @@ export default {
|
|
|
let that = this
|
|
|
if (that.imageSrc) {
|
|
|
that.loading = true
|
|
|
+ let jcNum=that.deviceName.indexOf('第三次')!=-1 ? 3 : null
|
|
|
let apiUrlImg = `${configService.apiUrlP.substring(0, configService.apiUrlP.lastIndexOf(':'))}:6006`
|
|
|
uni.uploadFile({
|
|
|
url: `${apiUrlImg}/gasIdentify`,
|
|
|
- filePath: that.imageSrcList[0].path,
|
|
|
+ filePath: that.imageSrcList,
|
|
|
name: 'img',
|
|
|
formData: {
|
|
|
'user': that.username,
|
|
|
'order': that.classType,
|
|
|
'reportdate': that.searchTime,
|
|
|
- 'checkorder': Number(that.checkNum)
|
|
|
+ 'checkorder': jcNum ? jcNum : Number(that.checkNum)
|
|
|
},
|
|
|
success: (res) => {
|
|
|
if (res) {
|