|
|
@@ -127,10 +127,15 @@ export default {
|
|
|
default: '0',
|
|
|
},
|
|
|
photoIdentifyType: {
|
|
|
- // 图匠识别目的(1:店招内容识别,2:门店代码识别,3:调色机识别,4:更换店招,6:陈列SKU图片识别)
|
|
|
+ // 图匠识别目的(1:店招内容识别(不能连拍和多选),3:调色机识别(不能连拍和多选),6:陈列SKU图片识别(不需要图匠实时识别))
|
|
|
type: String,
|
|
|
default: '',
|
|
|
},
|
|
|
+ isContinuousShooting: {
|
|
|
+ // 是否允许连拍/相册多选 1:允许;0:不允许
|
|
|
+ type: String,
|
|
|
+ default: '0',
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState({
|
|
|
@@ -170,40 +175,6 @@ export default {
|
|
|
if (res.url && res.url.indexOf('http') != -1) {
|
|
|
this.fileUrl = res.url;
|
|
|
this.uploadImagev();
|
|
|
- // var form = {
|
|
|
- // fileUrl: res.url,
|
|
|
- // collectionItemId: this.collectionId,
|
|
|
- // objectType: this.objectType,
|
|
|
- // storeGroupId: this.storeGroupId,
|
|
|
- // taskId: this.taskId,
|
|
|
- // visitsId: localStorage.getItem('visitId'),
|
|
|
- // visitModel: this.visitModel,
|
|
|
- // visitSource: '1',
|
|
|
- // locationRemark: '',
|
|
|
- // parentCollectionId: this.parentCollectionId || '',
|
|
|
- // secondCollectionId: this.secondCollectionId || '',
|
|
|
- // firstCollectionId: this.firstCollectionId || '',
|
|
|
- // fourthCollectionId: this.fourthCollectionId || '',
|
|
|
- // thirdCollectionId: this.thirdCollectionId || '',
|
|
|
- // deviceCode: this.deviceCode, //设备编号
|
|
|
- // putInCode: this.putInCode, //投放编号
|
|
|
- // };
|
|
|
- // this.controller = null;
|
|
|
- // // 需要图匠校验的添加参数和loading
|
|
|
- // if (this.photoIdentifyType) {
|
|
|
- // form.photoIdentifyType = this.photoIdentifyType;
|
|
|
- // this.progress();
|
|
|
- // this.controller = new AbortController(); //取消请求
|
|
|
- // } else {
|
|
|
- // this.toastLoading(0, '上传中...', true);
|
|
|
- // }
|
|
|
- // addH5Photo(form, this.controller ? this.controller.signal : null)
|
|
|
- // .then((res) => {
|
|
|
- // this.requestThen(res);
|
|
|
- // })
|
|
|
- // .catch((error) => {
|
|
|
- // this.requestCatch(error);
|
|
|
- // });
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|