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`)"> <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}`)">

View File

@ -242,20 +242,22 @@
showModel: false, showModel: false,
showModelCode: '', showModelCode: '',
goods: [ goods: [
// { // {
// "id": 35, // "id": 7,
// "store_name": "DT1515015024", // "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": "", // ],
// "manu_name": null, // "spec": "****()",
// "note": "" // "trademark": "****()",
// }, // "manu_name": null,
// "note": "login_dateJul 13 1998 12:00:00:000AMvalid_dateJul 13 2020 12:00:00:000AM"
// },
], ],
putGoods: { // putGoods: { //
@ -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() // this.chooseImg()
}else if(data.update){ // }else if(data.update){
this.chooseImg() // this.chooseImg()
} // }
// ,
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;