|
@@ -5,32 +5,32 @@
|
|
<view class="list-view-title">商品{{ index+1 }}</view>
|
|
<view class="list-view-title">商品{{ index+1 }}</view>
|
|
<view class="list-view">
|
|
<view class="list-view">
|
|
<view class="list-view-label">商品</view>
|
|
<view class="list-view-label">商品</view>
|
|
- <view class="list-view-text">{{ item.name }}</view>
|
|
|
|
|
|
+ <view class="list-view-text">{{ item.productName }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="list-view">
|
|
<view class="list-view">
|
|
<view class="list-view-label">SN码</view>
|
|
<view class="list-view-label">SN码</view>
|
|
- <view class="list-view-text">{{ item.code }}</view>
|
|
|
|
|
|
+ <view class="list-view-text">{{ item.sn }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="list-view" v-for="(file,fileIndex) in item.fileList" :key="fileIndex">
|
|
<view class="list-view" v-for="(file,fileIndex) in item.fileList" :key="fileIndex">
|
|
<view class="list-view-label">资质文件</view>
|
|
<view class="list-view-label">资质文件</view>
|
|
- <view class="list-view-text">{{ file.ossName }}</view>
|
|
|
|
|
|
+ <view class="list-view-text">{{ file.fileName }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="list-view-title none">图片</view>
|
|
<view class="list-view-title none">图片</view>
|
|
<view class="list-view-upload clearfix">
|
|
<view class="list-view-upload clearfix">
|
|
- <view class="photo-item" v-for="(image, index) in item.imageList" :key="index">
|
|
|
|
- <image :src="image" mode="aspectFill" @click.stop="previewImg(item.imageList,index)"></image>
|
|
|
|
|
|
+ <view class="photo-item" v-for="(image, imageIndex) in item.imageList" :key="index">
|
|
|
|
+ <image :src="image" mode="aspectFill" @click.stop="previewImg(item.imageList,imageIndex)"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="qualifications-btn" :style="{paddingBottom :isIphoneX ? '68rpx' : '0'}">
|
|
<view class="qualifications-btn" :style="{paddingBottom :isIphoneX ? '68rpx' : '0'}">
|
|
- <view class="edit-button">编辑</view>
|
|
|
|
|
|
+ <view class="edit-button" @click="editSubmitFn('edit')">编辑</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-else class="cart-content empty">
|
|
<view v-else class="cart-content empty">
|
|
<view class="empty-container">
|
|
<view class="empty-container">
|
|
<image class="empty-container-image" src="https://static.caimei365.com/app/img/icon/icon-ques-empty@2x.png" mode="aspectFit"></image>
|
|
<image class="empty-container-image" src="https://static.caimei365.com/app/img/icon/icon-ques-empty@2x.png" mode="aspectFit"></image>
|
|
<text class="error-text">暂无商品资质信息</text>
|
|
<text class="error-text">暂无商品资质信息</text>
|
|
- <view class="login-btn" @click="goIndex">去补充</view>
|
|
|
|
|
|
+ <view class="login-btn" @click="editSubmitFn('add')">去补充</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -43,78 +43,50 @@
|
|
export default{
|
|
export default{
|
|
data() {
|
|
data() {
|
|
return{
|
|
return{
|
|
|
|
+ logisticsBatchId:0,
|
|
|
|
+ shopOrderId:0,
|
|
isIphoneX:this.$store.state.isIphoneX,
|
|
isIphoneX:this.$store.state.isIphoneX,
|
|
isEmpty:false,
|
|
isEmpty:false,
|
|
- qualificationsList:[
|
|
|
|
- {
|
|
|
|
- name:'美国第六代光子多功能智能平台M22',
|
|
|
|
- code:'SN2562659874565',
|
|
|
|
- fileList:[
|
|
|
|
- {
|
|
|
|
- ossName:'深圳市和创元文件.pdf'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- ossName:'深圳市和创元文件.pdf'
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- imageList:[
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name:'美国第六代光子多功能智能平台M22',
|
|
|
|
- code:'SN2562659874565',
|
|
|
|
- fileList:[
|
|
|
|
- {
|
|
|
|
- ossName:'深圳市和创元文件.pdf'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- ossName:'深圳市和创元文件.pdf'
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- imageList:[
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- 'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- ]
|
|
|
|
|
|
+ qualificationsList:[]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
-
|
|
|
|
|
|
+ this.shopOrderId = option.shopOrderId
|
|
|
|
+ this.logisticsBatchId = option.logisticsBatchId
|
|
|
|
+ console.log('shopOrderId',this.shopOrderId)
|
|
|
|
+ this.GetSupplierQualificationData(option.logisticsBatchId)
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
...mapMutations(['login']),
|
|
...mapMutations(['login']),
|
|
- initGetLogisticsInfo(){
|
|
|
|
- this.ShopService.GetLogisticsInfo({ logisticsBatchId : this.logisticsBatchId, shopOrderId:this.info.shopOrderId }).then(response =>{
|
|
|
|
- const data = response.data.logisticsBatch
|
|
|
|
- if(data.remarkImages!=null){
|
|
|
|
- this.photoLists = data.remarkImages
|
|
|
|
|
|
+ GetSupplierQualificationData(logisticsBatchId){
|
|
|
|
+ this.ShopService.GetSupplierQualificationData(
|
|
|
|
+ {
|
|
|
|
+ logisticsBatchId : logisticsBatchId ,
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ .then(response =>{
|
|
|
|
+ const data = response.data
|
|
|
|
+ if(data && data.length > 0){
|
|
|
|
+ this.qualificationsList = data
|
|
|
|
+ this.isEmpty = false
|
|
}else{
|
|
}else{
|
|
- this.photoLists =[]
|
|
|
|
|
|
+ this.isEmpty = true
|
|
}
|
|
}
|
|
- this.info.note = data.remark
|
|
|
|
- }).catch(error =>{
|
|
|
|
|
|
+ })
|
|
|
|
+ .catch(error =>{
|
|
this.$util.msg(error.msg,2000);
|
|
this.$util.msg(error.msg,2000);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ editSubmitFn(type){
|
|
|
|
+ switch(type){
|
|
|
|
+ case 'edit':
|
|
|
|
+ this.$api.navigateTo(`/supplier/pages/deliver/qualifications-add?type=edit&logisticsBatchId=${this.logisticsBatchId}&shopOrderId=${this.shopOrderId}`)
|
|
|
|
+ break;
|
|
|
|
+ case 'add':
|
|
|
|
+ this.$api.navigateTo(`/supplier/pages/deliver/qualifications-add?type=add&logisticsBatchId=${this.logisticsBatchId}&shopOrderId=${this.shopOrderId}`)
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
previewImg (Array,index) {//顶部商品图片预览
|
|
previewImg (Array,index) {//顶部商品图片预览
|
|
console.log(Array)
|
|
console.log(Array)
|
|
isPreviewImg = true
|
|
isPreviewImg = true
|