This commit is contained in:
weipengfei 2023-11-07 17:46:36 +08:00
parent 62dbaecfe6
commit e19e2aa1e8
2 changed files with 43 additions and 31 deletions

View File

@ -227,7 +227,12 @@
<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>
<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 class="examine" @click="navigator(`/pages/users/user_invoice_Finance/index?mer_id=${mer_id}`)">

View File

@ -242,20 +242,22 @@
showModel: false,
showModelCode: '',
goods: [
// {
// "id": 35,
// "store_name": "DT1515015024",
// "bar_code": "6903244675314",
// "manu_address": "",
// "price": "0.00",
// "stock": 9999999,
// "image": "https://lihai001.oss-cn-chengdu.aliyuncs.com/uploads/20230130/00ebcfdf75684f5494c0193075055d1.png",
// "slider_image": [],
// "spec": "1",
// "trademark": "",
// "manu_name": null,
// "note": ""
// },
// {
// "id": 7,
// "store_name": " 400",
// "bar_code": "6922868290895",
// "manu_address": "",
// "price": "4.80",
// "stock": 9999999,
// "image": "http://lihai001.oss-cn-chengdu.aliyuncs.com/def/2023-11-02/202311021740247976.jpg",
// "slider_image": [
// "https://lihai001.oss-cn-chengdu.aliyuncs.com/def/e4784202311041417185146.jpg"
// ],
// "spec": "****()",
// "trademark": "****()",
// "manu_name": null,
// "note": "login_dateJul 13 1998 12:00:00:000AMvalid_dateJul 13 2020 12:00:00:000AM"
// },
],
putGoods: { //
@ -316,25 +318,29 @@
return flag;
},
clickImg(data, type, index){
if(!data.update&&!this.uploadImgIdList.get(data.id)){
let arr = [];
if(this.isNullImage(data.image))arr.push(-1);
if(this.isNullImage(data.slider_image[0]))arr.push(0);
if(this.isNullImage(data.slider_image[1]))arr.push(1);
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 ;
if(type==2&&!obj.includes(index)) return ;
//
// if(!data.update&&!this.uploadImgIdList.get(data.id)){
// let arr = [];
// if(this.isNullImage(data.image))arr.push(-1);
// if(this.isNullImage(data.slider_image[0]))arr.push(0);
// if(this.isNullImage(data.slider_image[1]))arr.push(1);
// 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 ;
// if(type==2&&!obj.includes(index)) return ;
this.uploadImgInfo.id = data.id;
this.uploadImgInfo.type = type;
this.uploadImgInfo.index = index;
if(data.image==this.defaultImageSRC||(type==2&&this.isNullImage(data.slider_image[index]))){
this.chooseImg()
}else if(data.update){
this.chooseImg()
}
// if(data.image==this.defaultImageSRC||(type==2&&this.isNullImage(data.slider_image[index]))){
// this.chooseImg()
// }else if(data.update){
// this.chooseImg()
// }
// ,
this.chooseImg()
},
chooseImg(){
let that = this;
@ -1210,6 +1216,7 @@
}
.list-box-put {
padding-bottom: 30rpx;
.item {
width: 694rpx;
margin: 0 auto;