供应链问题修复

This commit is contained in:
donqi 2022-07-04 17:00:52 +08:00
parent 70d07842a2
commit c7ac112bdf
2 changed files with 45 additions and 44 deletions

View File

@ -25,7 +25,7 @@
</view> </view>
<!-- tab content --> <!-- tab content -->
<view> <view>
<view class="padding bg-white margin-top-sm margin-lr-sm name-card" v-for="(good, index) in goodsList"> <view class="padding bg-white margin-top-sm margin-lr-sm name-card" v-for="(good, index) in goodsList" v-if="good.status !== 2">
<view class="flex justify-start"> <view class="flex justify-start">
<view class="cu-avatar xxl-view" :style="'background-image:url(' + good.goodsImgUrl + ');'"></view> <view class="cu-avatar xxl-view" :style="'background-image:url(' + good.goodsImgUrl + ');'"></view>
<view class="margin-left-sm flex-column-between"> <view class="margin-left-sm flex-column-between">
@ -175,6 +175,7 @@
async loadProductPage(params = {}) { async loadProductPage(params = {}) {
params.pageNum = this.pageNum; params.pageNum = this.pageNum;
params.pageSize = this.pageSize; params.pageSize = this.pageSize;
params.workerId = this.$request.getCurUserInfo().workerId;
this.$refs.loadStatusBar.showLoading(); this.$refs.loadStatusBar.showLoading();
try { try {
let res = await this.$request.qryProductPage(params); let res = await this.$request.qryProductPage(params);

View File

@ -485,56 +485,56 @@
// uni.hideLoading(); // uni.hideLoading();
// }, // },
async submit() { async submit() {
// let goodsStandardList = this.formData.specsList.filter((item) => { let goodsStandardList = this.formData.specsList.filter((item) => {
// if (item.checked) { if (item.checked) {
// return { return {
// ...item, ...item,
// goodsNum: 99999 goodsNum: 99999
// } }
// } }
// }); });
// let goodsAreaList = this.formData.districtList.filter((item) => { let goodsAreaList = this.formData.districtList.filter((item) => {
// if (item.checked) { if (item.checked) {
// item.countryAreaId = item.areaId; item.countryAreaId = item.areaId;
// return item; return item;
// } }
// }); });
// // 01 // 01
// let goodsImgsList = []; let goodsImgsList = [];
// this.formData.imgList.forEach((url) => { this.formData.imgList.forEach((url) => {
// goodsImgsList.push({ goodsImgsList.push({
// imgUrl: url, imgUrl: url,
// imgType: 0 imgType: 0
// }); });
// }); });
// this.formData.descImgList.forEach((url) => { this.formData.descImgList.forEach((url) => {
// goodsImgsList.push({ goodsImgsList.push({
// imgUrl: url, imgUrl: url,
// imgType: 1 imgType: 1
// }); });
// }); });
// let goodsVideoUrl = this.formData.videoList.length ? this.formData.videoList[0] : ''; let goodsVideoUrl = this.formData.videoList.length ? this.formData.videoList[0] : '';
// let params = { let params = {
// goodsName: this.formData.servName, goodsName: this.formData.servName,
// deptGoodsCategoryId: this.formData.category[2].goodsCategoryId, deptGoodsCategoryId: this.formData.category[2].goodsCategoryId,
// goodsStandardList: goodsStandardList, goodsStandardList: goodsStandardList,
// goodsAreaList: goodsAreaList, goodsAreaList: goodsAreaList,
// goodsImgUrl: this.formData.coverImgList[0], goodsImgUrl: this.formData.coverImgList[0],
// goodsImgsList: goodsImgsList, goodsImgsList: goodsImgsList,
// goodsVideoUrl: goodsVideoUrl, goodsVideoUrl: goodsVideoUrl,
// status: 0, status: 0,
// remark: this.formData.detailDesc remark: this.formData.detailDesc
// } }
// let res = await this.$request.addGoods(params); let res = await this.$request.addGoods(params);
// if (res && res.code === 0) { if (res && res.code === 0) {
uni.showToast({ uni.showToast({
icon: 'success' icon: 'success'
}) })
uni.reLaunch({ uni.reLaunch({
url: '/pages/index/index?menuCode=supplyChainPage' url: '/pages/index/index?menuCode=supplyChainPage'
}) })
// } }
} }
}, },
} }