|
@@ -1,4 +1,3 @@
|
|
|
-;
|
|
|
var addlogistics = new Vue({
|
|
|
el:'#qualifications',
|
|
|
data:{
|
|
@@ -14,10 +13,7 @@ var addlogistics = new Vue({
|
|
|
recordId:'',
|
|
|
sn:'',
|
|
|
fileList:[],
|
|
|
- imageList:[
|
|
|
- 'https://dss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1194131577,2954769920&fm=26&gp=0.jpg',
|
|
|
- 'https://dss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1194131577,2954769920&fm=26&gp=0.jpg'
|
|
|
- ]
|
|
|
+ imageList:[]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -62,7 +58,11 @@ var addlogistics = new Vue({
|
|
|
var isSnCode = false;
|
|
|
var isFileList = false;
|
|
|
var isImageList = false;
|
|
|
- _this.qualificationsList.forEach(function(el,index){
|
|
|
+ _this.qualificationsList.forEach(function(el){
|
|
|
+ if( el.recordId == '' ){ isRecordId = true }
|
|
|
+ if( el.sn == '' ){ isSnCode = true }
|
|
|
+ if( el.fileList == '' ){ isFileList = true }
|
|
|
+ if( el.imageList == '' ){ isImageList = true }
|
|
|
var obj = {
|
|
|
recordId : el.recordId,
|
|
|
sn : el.sn,
|
|
@@ -83,7 +83,7 @@ var addlogistics = new Vue({
|
|
|
CAIMEI.dialog('请上传商品资质文件');
|
|
|
return
|
|
|
}
|
|
|
- console.log('params========>',params)
|
|
|
+ console.log('params========>',params);
|
|
|
SupplierApi.GetSupplierQualificationUpdata({ params:JSON.stringify(params) },function(response){
|
|
|
if(response.code == 0 ){
|
|
|
CAIMEI.dialog('保存资质成功');
|
|
@@ -169,10 +169,7 @@ var addlogistics = new Vue({
|
|
|
recordId:'',
|
|
|
sn:'',
|
|
|
fileList:[],
|
|
|
- imageList:[
|
|
|
- 'https://dss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1194131577,2954769920&fm=26&gp=0.jpg',
|
|
|
- 'https://dss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1194131577,2954769920&fm=26&gp=0.jpg'
|
|
|
- ]
|
|
|
+ imageList:[]
|
|
|
};
|
|
|
_this.qualificationsList.push(obj)
|
|
|
},
|