This commit is contained in:
parent
62dbaecfe6
commit
e19e2aa1e8
|
@ -227,7 +227,12 @@
|
||||||
<view v-if="userInfoData.mer_info.type_code === 'TypeTownSupplyChain'" class="examine" @click="navigator(`/pages/replace_replenishment/index`)">
|
<view v-if="userInfoData.mer_info.type_code === 'TypeTownSupplyChain'" class="examine" @click="navigator(`/pages/replace_replenishment/index`)">
|
||||||
<image class="icon_img" src="@/static/images/index15.png" mode="aspectFit">
|
<image class="icon_img" src="@/static/images/index15.png" mode="aspectFit">
|
||||||
</image>
|
</image>
|
||||||
<text class="text">代发补货</text>
|
<text class="text">代发订单</text>
|
||||||
|
</view>
|
||||||
|
<view v-if="userInfoData.mer_info.type_code === 'TypeTownSupplyChain'" class="examine" @click="navigator(`/pages/replace_replenishment/index`)">
|
||||||
|
<image class="icon_img" src="@/static/images/index15.png" mode="aspectFit">
|
||||||
|
</image>
|
||||||
|
<text class="text">补货订单</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- <view class="examine" @click="navigator(`/pages/users/user_invoice_Finance/index?mer_id=${mer_id}`)">
|
<!-- <view class="examine" @click="navigator(`/pages/users/user_invoice_Finance/index?mer_id=${mer_id}`)">
|
||||||
|
|
|
@ -243,18 +243,20 @@
|
||||||
showModelCode: '',
|
showModelCode: '',
|
||||||
goods: [
|
goods: [
|
||||||
// {
|
// {
|
||||||
// "id": 35,
|
// "id": 7,
|
||||||
// "store_name": "DT15150(箱装)心相印茶语丝享系列150抽24包装三层塑装纸面巾(电商)",
|
// "store_name": "心心相印 纸面巾400张",
|
||||||
// "bar_code": "6903244675314",
|
// "bar_code": "6922868290895",
|
||||||
// "manu_address": "",
|
// "manu_address": "",
|
||||||
// "price": "0.00",
|
// "price": "4.80",
|
||||||
// "stock": 9999999,
|
// "stock": 9999999,
|
||||||
// "image": "https://lihai001.oss-cn-chengdu.aliyuncs.com/uploads/20230130/00ebcfdf75684f5494c0193075055d1.png",
|
// "image": "http://lihai001.oss-cn-chengdu.aliyuncs.com/def/2023-11-02/202311021740247976.jpg",
|
||||||
// "slider_image": [],
|
// "slider_image": [
|
||||||
// "spec": "1包",
|
// "https://lihai001.oss-cn-chengdu.aliyuncs.com/def/e4784202311041417185146.jpg"
|
||||||
// "trademark": "心相印",
|
// ],
|
||||||
|
// "spec": "****(企业未公开详细信息!)",
|
||||||
|
// "trademark": "****(企业未公开详细信息!)",
|
||||||
// "manu_name": null,
|
// "manu_name": null,
|
||||||
// "note": "备注:经查,该厂商识别代码已在中国物品编码中心注册,但编码信息未按规定通报"
|
// "note": "备注:经查,该厂商识别代码已在中国物品编码中心注册,但编码信息未按规定通报login_date:Jul 13 1998 12:00:00:000AM;valid_date:Jul 13 2020 12:00:00:000AM;"
|
||||||
// },
|
// },
|
||||||
|
|
||||||
],
|
],
|
||||||
|
@ -316,25 +318,29 @@
|
||||||
return flag;
|
return flag;
|
||||||
},
|
},
|
||||||
clickImg(data, type, index){
|
clickImg(data, type, index){
|
||||||
if(!data.update&&!this.uploadImgIdList.get(data.id)){
|
// 已有的图片不允许更改
|
||||||
let arr = [];
|
// if(!data.update&&!this.uploadImgIdList.get(data.id)){
|
||||||
if(this.isNullImage(data.image))arr.push(-1);
|
// let arr = [];
|
||||||
if(this.isNullImage(data.slider_image[0]))arr.push(0);
|
// if(this.isNullImage(data.image))arr.push(-1);
|
||||||
if(this.isNullImage(data.slider_image[1]))arr.push(1);
|
// if(this.isNullImage(data.slider_image[0]))arr.push(0);
|
||||||
if(this.isNullImage(data.slider_image[2]))arr.push(2);
|
// if(this.isNullImage(data.slider_image[1]))arr.push(1);
|
||||||
this.uploadImgIdList.set(data.id, arr)
|
// if(this.isNullImage(data.slider_image[2]))arr.push(2);
|
||||||
}
|
// this.uploadImgIdList.set(data.id, arr)
|
||||||
let obj = this.uploadImgIdList.get(data.id) || [];
|
// }
|
||||||
if(type==1&&!obj.includes(-1)) return ;
|
// let obj = this.uploadImgIdList.get(data.id) || [];
|
||||||
if(type==2&&!obj.includes(index)) return ;
|
// if(type==1&&!obj.includes(-1)) return ;
|
||||||
|
// if(type==2&&!obj.includes(index)) return ;
|
||||||
this.uploadImgInfo.id = data.id;
|
this.uploadImgInfo.id = data.id;
|
||||||
this.uploadImgInfo.type = type;
|
this.uploadImgInfo.type = type;
|
||||||
this.uploadImgInfo.index = index;
|
this.uploadImgInfo.index = index;
|
||||||
if(data.image==this.defaultImageSRC||(type==2&&this.isNullImage(data.slider_image[index]))){
|
// if(data.image==this.defaultImageSRC||(type==2&&this.isNullImage(data.slider_image[index]))){
|
||||||
|
// this.chooseImg()
|
||||||
|
// }else if(data.update){
|
||||||
|
// this.chooseImg()
|
||||||
|
// }
|
||||||
|
|
||||||
|
// 如需改成已有的图片不可更改,请将上部分代码注释解开并将以下代码注释
|
||||||
this.chooseImg()
|
this.chooseImg()
|
||||||
}else if(data.update){
|
|
||||||
this.chooseImg()
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
chooseImg(){
|
chooseImg(){
|
||||||
let that = this;
|
let that = this;
|
||||||
|
@ -1210,6 +1216,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-box-put {
|
.list-box-put {
|
||||||
|
padding-bottom: 30rpx;
|
||||||
.item {
|
.item {
|
||||||
width: 694rpx;
|
width: 694rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
Loading…
Reference in New Issue