yujialong 11 months ago
parent 2007b4ae7a
commit 074a8921c0
  1. 4
      components/order/order.vue
  2. 2
      components/sideSelect/sideSelect.vue
  3. 26
      other/addGoods/addGoods.vue
  4. 13
      other/procureDetail/procureDetail.vue
  5. 2
      other/supplierDetail/supplierDetail.vue
  6. 54
      pages/supplier/supplier.vue
  7. 1
      styles/common.scss

@ -93,7 +93,7 @@
}, },
// //
back() { back() {
this.$refs.popup.close()
}, },
// tab // tab
tabChange(tab) { tabChange(tab) {
@ -123,7 +123,7 @@
// //
const res = await orderSubmit({ const res = await orderSubmit({
leaveAMessage: this.remarks ? true : false, leaveAMessage: hadOrder ? false : true,
orderShopParam: [ orderShopParam: [
{ {
remarks: this.remarks, remarks: this.remarks,

@ -1,6 +1,6 @@
<template> <template>
<view class="sideSelect"> <view class="sideSelect">
<view v-for="(item, i) in menus" :key="i" :class="['item', {active: cur === item.id }]" @click="menuChange(item)">{{ item.name }}</view> <view v-for="(item, i) in menus" :key="i" :class="['item', {active: cur === item.id }]" @click="menuChange(item)">{{ item.classificationName }}</view>
</view> </view>
</template> </template>

@ -92,11 +92,12 @@
prodName: '', prodName: '',
skuList: [ skuList: [
{ {
prodName: '',
status: 1, status: 1,
oriPrice: '', oriPrice: '',
price: '', price: '',
skuName: '', skuName: '',
stocks: '', stocks: 0,
} }
], ],
}, },
@ -185,11 +186,32 @@
// //
async submit(status) { async submit(status) {
if (this.submiting) return false if (this.submiting) return false
const { form } = this const form = JSON.parse(JSON.stringify((this.form)))
if (!form.prodName) return this.$util.errMsg(`请输入商品名称!`) if (!form.prodName) return this.$util.errMsg(`请输入商品名称!`)
if (!this.pic.length) return this.$util.errMsg(`请上传封面图片!`) if (!this.pic.length) return this.$util.errMsg(`请上传封面图片!`)
if (!form.brief) return this.$util.errMsg(`请输入商品描述!`) if (!form.brief) return this.$util.errMsg(`请输入商品描述!`)
form.skuList = form.skuList.filter(e => e.skuName)
if (!form.skuList.length) return this.$util.errMsg(`请输入产品规格!`) if (!form.skuList.length) return this.$util.errMsg(`请输入产品规格!`)
let invalid = 0
for (const e of form.skuList) {
if (!e.skuName) {
this.$util.errMsg(`请输入规格名称!`)
invalid = 1
}
if (!e.price) {
this.$util.errMsg(`请输入售价!`)
invalid = 1
}
if (!e.oriPrice) {
this.$util.errMsg(`请输入市场价!`)
invalid = 1
}
if (!e.stocks) {
this.$util.errMsg(`请输入库存!`)
invalid = 1
}
}
if (invalid) return false
this.submiting = true this.submiting = true
form.pic = this.pic.map(e => e.url).join() form.pic = this.pic.map(e => e.url).join()
form.imgs = this.imgs.map(e => e.url).join() form.imgs = this.imgs.map(e => e.url).join()

@ -8,7 +8,8 @@
<view class="status">{{ info.authentication }}</view> <view class="status">{{ info.authentication }}</view>
</view> </view>
</view> </view>
<view class="block">
<view v-if="info.orderItemDtos.length" class="block">
<view class="title">采购内容</view> <view class="title">采购内容</view>
<view class="content"> <view class="content">
<view v-for="(item, i) in info.orderItemDtos" :key="i" class="item"> <view v-for="(item, i) in info.orderItemDtos" :key="i" class="item">
@ -20,6 +21,12 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="info.remarks" class="block">
<view class="title">备注</view>
<view class="remarks">{{ info.remarks }}</view>
</view>
<view class="block"> <view class="block">
<view class="title">采购方信息</view> <view class="title">采购方信息</view>
<view class="info"> <view class="info">
@ -159,6 +166,10 @@
color: #333; color: #333;
} }
} }
.remarks {
font-size: 26rpx;
color: #6d6d6d;
}
.info { .info {
font-size: 28rpx; font-size: 28rpx;
color: #333; color: #333;

@ -52,7 +52,7 @@
<image class="pic" :src="item.pic"></image> <image class="pic" :src="item.pic"></image>
<view class="texts"> <view class="texts">
<view class="name">{{ item.prodName }}</view> <view class="name">{{ item.prodName }}</view>
<view class="price">12.8</view> <view class="price">{{ item.price }}</view>
</view> </view>
</view> </view>
</view> </view>

@ -3,11 +3,11 @@
<view class="page"> <view class="page">
<view class="search-wrap"> <view class="search-wrap">
<uni-search-bar class="search" radius="30" placeholder="请输入" v-model="keyword" clearButton="auto" cancelButton="none" @confirm="initList" @clear="clearKeyword" /> <uni-search-bar class="search" radius="30" placeholder="请输入" v-model="keyword" clearButton="auto" cancelButton="none" @confirm="initList" @clear="clearKeyword" />
<uni-icons class="icon" custom-prefix="iconfont" type="icon-filter" size="22" color="#007eff" @click="typeVisible = true"></uni-icons> <!-- <uni-icons class="icon" custom-prefix="iconfont" type="icon-filter" size="22" color="#007eff" @click="typeVisible = true"></uni-icons> -->
</view> </view>
<view class="wrap"> <view class="wrap">
<!-- <sideSelect :menus="menus" @menuClick="menuClick" /> --> <sideSelect :menus.sync="classifications" @menuClick="menuClick" />
<view class="list"> <view class="list">
<view class="item" v-for="(item, i) in list" :key="i" @click="toDetail(item)"> <view class="item" v-for="(item, i) in list" :key="i" @click="toDetail(item)">
<view class="pro-name"> <view class="pro-name">
@ -15,16 +15,20 @@
{{ item.companyName }} {{ item.companyName }}
</view> </view>
<view class="info"> <view class="info">
<view v-if="item.briefIntroduction" class="intro ell">{{ item.briefIntroduction }}</view> <view v-if="item.briefIntroduction" class="intro">
<view class="meta">{{ item.province }}-{{ item.city }}</view> <image class="icon" src="http://124.71.79.122/images/miniProgram/intro.png" mode="widthFix" />
<view class="text ell">{{ item.briefIntroduction }}</view>
</view>
<view v-if="item.province || item.city" class="meta">
<image class="icon" src="http://124.71.79.122/images/miniProgram/address1.png" mode="widthFix" />
{{ item.province }}-{{ item.city }}
</view>
<view class="order" @click.stop="toOrder(item)">我想采购</view> <view class="order" @click.stop="toOrder(item)">我想采购</view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view v-if="!per" class="per-mask">功能升级中敬请期待...</view>
<view :class="['type-popup', {active: typeVisible}]"> <view :class="['type-popup', {active: typeVisible}]">
<uni-icons class="close" type="closeempty" size="20" color="#757575" @click="closeType"></uni-icons> <uni-icons class="close" type="closeempty" size="20" color="#757575" @click="closeType"></uni-icons>
@ -43,6 +47,8 @@
</view> </view>
<order ref="order" /> <order ref="order" />
<view v-if="!per" class="per-mask">功能升级中敬请期待...</view>
</view> </view>
</template> </template>
@ -55,6 +61,7 @@
Common, Common,
per: true, // per: true, //
teamId: uni.getStorageSync('teamId') || '', teamId: uni.getStorageSync('teamId') || '',
platformId: uni.getStorageSync('platformId'),
menus: [ menus: [
{ {
id: '', id: '',
@ -121,9 +128,10 @@
onShow() { onShow() {
this.active = '' this.active = ''
this.keyword = '' this.keyword = ''
this.per = true
this.typeVisible = false this.typeVisible = false
this.initList() this.per = this.platformId !== 6 //
// this.per = true //
this.per && this.initList()
}, },
methods: { methods: {
initList() { initList() {
@ -159,7 +167,13 @@
// //
async getCategory() { async getCategory() {
const { list } = await treeStructureList() const { list } = await treeStructureList()
this.classifications = list[0].children this.classifications = [
{
id: '',
classificationName: '全部'
},
...list[0].children
]
}, },
// //
classificationClick(item) { classificationClick(item) {
@ -183,7 +197,7 @@
}, },
// //
menuClick(tab) { menuClick(tab) {
this.curTab = tab.id this.active = tab.id
this.initList() this.initList()
}, },
// //
@ -247,14 +261,24 @@
color: #999; color: #999;
} }
.intro { .intro {
max-width: 70%; display: flex;
margin: 10rpx 0; align-items: center;
font-size: 24rpx; margin: 10rpx 0 20rpx;
color: #777; font-size: 26rpx;
color: #3c3c3c;
.text {
max-width: 49%;
}
} }
.meta { .meta {
display: flex;
align-items: center;
font-size: 26rpx; font-size: 26rpx;
color: #333; color: #3c3c3c;
}
.icon {
width: 30rpx;
margin-right: 10rpx;
} }
.ell-wrap { .ell-wrap {
display: inline-flex; display: inline-flex;

@ -311,6 +311,7 @@ ul {
-webkit-user-drag: none; -webkit-user-drag: none;
-webkit-user-select: none; -webkit-user-select: none;
user-select: none; user-select: none;
background-color: #f1f1f1;
.mask { .mask {
position: relative; position: relative;
width: 100%; width: 100%;

Loading…
Cancel
Save