|
@@ -61,7 +61,7 @@
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
- <a-col flex="2" v-if="$hasPermissions('B_salerVinFindProduct')">
|
|
|
|
|
|
+ <a-col flex="2" v-if="$hasPermissions('B_salerVinFindProduct')&&sourceType !== 'TRANSFER_ORDER'">
|
|
<a-form-model-item label="车架号(VIN)" prop="vinCode">
|
|
<a-form-model-item label="车架号(VIN)" prop="vinCode">
|
|
<a-input id="productInfoList-vinCode" v-model.trim="queryParam.vinCode" allowClear placeholder="请输入车架号(VIN)">
|
|
<a-input id="productInfoList-vinCode" v-model.trim="queryParam.vinCode" allowClear placeholder="请输入车架号(VIN)">
|
|
<a-upload slot="addonAfter" :before-upload="beforeUpload" listType="picture" accept="image/*" :showUploadList="false">
|
|
<a-upload slot="addonAfter" :before-upload="beforeUpload" listType="picture" accept="image/*" :showUploadList="false">
|
|
@@ -565,6 +565,7 @@ export default {
|
|
formData.append('file', file)
|
|
formData.append('file', file)
|
|
// 解析图片
|
|
// 解析图片
|
|
this.vinLoading = true
|
|
this.vinLoading = true
|
|
|
|
+ this.disabled = true
|
|
vinCodeParse(formData).then(res => {
|
|
vinCodeParse(formData).then(res => {
|
|
if (res.type == 'application/json') {
|
|
if (res.type == 'application/json') {
|
|
var reader = new FileReader()
|
|
var reader = new FileReader()
|
|
@@ -581,11 +582,12 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
_this.vinLoading = false
|
|
_this.vinLoading = false
|
|
- document.getElementById('filed').value = ''
|
|
|
|
|
|
+ _this.disabled = false
|
|
})
|
|
})
|
|
reader.readAsText(res)
|
|
reader.readAsText(res)
|
|
} else {
|
|
} else {
|
|
_this.vinLoading = false
|
|
_this.vinLoading = false
|
|
|
|
+ _this.disabled = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
return false
|
|
return false
|