更新了供货采购
This commit is contained in:
parent
9630c164d9
commit
a391cc6f8a
|
@ -12,7 +12,7 @@
|
||||||
<i class="iconfont icon-xiangzuo" style="font-size: 31.54rpx;text-align: left;" @click='backjJump'></i>
|
<i class="iconfont icon-xiangzuo" style="font-size: 31.54rpx;text-align: left;" @click='backjJump'></i>
|
||||||
<view class=""
|
<view class=""
|
||||||
style="font-size: 31.54rpx;font-weight: 700;margin-left: 20rpx;color: #F84221;">
|
style="font-size: 31.54rpx;font-weight: 700;margin-left: 20rpx;color: #F84221;">
|
||||||
供货采购商品
|
{{nav_title}}
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class=""
|
<!-- <view class=""
|
||||||
@click="navGoto(`/pages/nongKe/supply_chain/supplierA?tit=1&type_id=12&isDetail=1&product_type=98&cate_id=${userInfoData.mer_info.category_id}`)"
|
@click="navGoto(`/pages/nongKe/supply_chain/supplierA?tit=1&type_id=12&isDetail=1&product_type=98&cate_id=${userInfoData.mer_info.category_id}`)"
|
||||||
|
@ -227,6 +227,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
domain: HTTP_REQUEST_URL,
|
domain: HTTP_REQUEST_URL,
|
||||||
|
nav_title: '供货采购商品',
|
||||||
defaInd: [0, 0],
|
defaInd: [0, 0],
|
||||||
columnData: [],
|
columnData: [],
|
||||||
showSerch: false,
|
showSerch: false,
|
||||||
|
@ -327,6 +328,7 @@
|
||||||
async onLoad(options) {
|
async onLoad(options) {
|
||||||
// console.log(options);
|
// console.log(options);
|
||||||
this.storeParam.sys_labels = options.value;
|
this.storeParam.sys_labels = options.value;
|
||||||
|
if(options.value==12)this.nav_title = '赊账进货'
|
||||||
this.tips = options.tips;
|
this.tips = options.tips;
|
||||||
let userInfo = this.$store.state.app.userInfo;
|
let userInfo = this.$store.state.app.userInfo;
|
||||||
if(typeof userInfo == 'string') this.userInfoData = JSON.parse(userInfo);
|
if(typeof userInfo == 'string') this.userInfoData = JSON.parse(userInfo);
|
||||||
|
|
|
@ -111,6 +111,12 @@
|
||||||
<text class="num">库存: {{item.stock}}</text>
|
<text class="num">库存: {{item.stock}}</text>
|
||||||
<text class="num">销量: {{item.sales}}</text>
|
<text class="num">销量: {{item.sales}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="stock_type">
|
||||||
|
<view class="type_btn btn_a">现货现款</view>
|
||||||
|
<view class="type_btn">赊账进货</view>
|
||||||
|
<view class="type_btn">线上铺货</view>
|
||||||
|
<view class="type_btn">线下铺货</view>
|
||||||
|
</view>
|
||||||
<view class='money-wrap'>
|
<view class='money-wrap'>
|
||||||
<block v-if="mer_info.type_code=='TypeSupplyChain'">
|
<block v-if="mer_info.type_code=='TypeSupplyChain'">
|
||||||
<block v-if="item.attrValue[0]">
|
<block v-if="item.attrValue[0]">
|
||||||
|
@ -951,7 +957,11 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
padding: 10rpx 10rpx 20rpx 30rpx;
|
padding: 0 10rpx 0 20rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-around;
|
||||||
|
min-height: 150rpx;
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
color: #282828;
|
color: #282828;
|
||||||
|
@ -979,8 +989,26 @@
|
||||||
margin-right: 8rpx;
|
margin-right: 8rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.stock_type{
|
||||||
|
display: flex;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
font-size: 20rpx;
|
||||||
|
color: #868686;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
.type_btn{
|
||||||
|
border: 2rpx solid #868686;
|
||||||
|
margin-right: 15rpx;
|
||||||
|
padding: 2rpx 10rpx 3rpx 10rpx;
|
||||||
|
border-radius: 40rpx;
|
||||||
|
}
|
||||||
|
.btn_a{
|
||||||
|
border: 2rpx solid #F84221;
|
||||||
|
color: #F84221;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.money-wrap {
|
.money-wrap {
|
||||||
margin-top: 20rpx;
|
margin-top: 5rpx;
|
||||||
|
|
||||||
.price {
|
.price {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
|
@ -996,7 +1024,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.sales {
|
.sales {
|
||||||
margin-top: 20rpx;
|
margin-top: 5rpx;
|
||||||
color: #868686;
|
color: #868686;
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
|
|
||||||
|
|
|
@ -493,7 +493,6 @@
|
||||||
// 获取历史提交数据详情
|
// 获取历史提交数据详情
|
||||||
getGoodsDetails(id) {
|
getGoodsDetails(id) {
|
||||||
getGoodsDetails(id).then(res => {
|
getGoodsDetails(id).then(res => {
|
||||||
console.log(res);
|
|
||||||
let arr = Object.keys(this.merchantData)
|
let arr = Object.keys(this.merchantData)
|
||||||
let resData = res.data
|
let resData = res.data
|
||||||
arr.map(item => {
|
arr.map(item => {
|
||||||
|
@ -509,7 +508,6 @@
|
||||||
this.street_id = resData.street_id
|
this.street_id = resData.street_id
|
||||||
this.mer_storeType = resData.mer_storeType
|
this.mer_storeType = resData.mer_storeType
|
||||||
this.village_id = resData.village_id
|
this.village_id = resData.village_id
|
||||||
|
|
||||||
})
|
})
|
||||||
this.pics = resData.images
|
this.pics = resData.images
|
||||||
this.mer_classification = this.getCategoryName(resData.merchant_category_id, this.array)
|
this.mer_classification = this.getCategoryName(resData.merchant_category_id, this.array)
|
||||||
|
|
|
@ -23,11 +23,11 @@
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@click="navigator(`/pages/nongKe/cloud_entrepot/${item.name=='现款现货'?'indexb':'indexOther'}?type_id=12&value=${item.value}&tips=${item.content}`)">
|
@click="navigator(`/pages/nongKe/cloud_entrepot/${item.name=='现款现货'?'indexb':'indexOther'}?type_id=12&value=${item.value}&tips=${item.content}`)">
|
||||||
<image class="con_img" :src="item.bg" mode=""></image>
|
<image class="con_img" :src="item.bg" mode=""></image>
|
||||||
<image class="con_ico" src="@/static/images/bgic1.png" mode=""></image>
|
|
||||||
<view class="con_text">
|
<view class="con_text">
|
||||||
<h3>{{item.name}}</h3>
|
<h3>{{item.name}}</h3>
|
||||||
<span>{{item.content}}</span>
|
<view>{{item.content}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<image class="con_ico" :src="item.icon" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
@ -54,18 +54,22 @@
|
||||||
if(item.name=='线上铺货'){
|
if(item.name=='线上铺货'){
|
||||||
item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/71e06202312151146467207.png';
|
item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/71e06202312151146467207.png';
|
||||||
item.content = '线上选品 一键铺货';
|
item.content = '线上选品 一键铺货';
|
||||||
|
item.icon = "https://lihai001.oss-cn-chengdu.aliyuncs.com/def/e5ce2202312251013084460.png";
|
||||||
}
|
}
|
||||||
if(item.name=='实体铺货'){
|
if(item.name=='实体铺货'){
|
||||||
item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/8cb7a202312151147485701.png';
|
item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/8cb7a202312151147485701.png';
|
||||||
item.content = '先售利润 后结货款';
|
item.content = '先售利润 后结货款';
|
||||||
|
item.icon = "https://lihai001.oss-cn-chengdu.aliyuncs.com/def/0c441202312251013392852.png";
|
||||||
}
|
}
|
||||||
if(item.name=='现款现货'){
|
if(item.name=='现款现货'){
|
||||||
item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f4521202312151148087081.png';
|
item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/f4521202312151148087081.png';
|
||||||
item.content = '先付款 后发货';
|
item.content = '先付款 后发货';
|
||||||
|
item.icon = "https://lihai001.oss-cn-chengdu.aliyuncs.com/def/0a377202312251014023667.png";
|
||||||
}
|
}
|
||||||
if(item.name=='赊账进货'){
|
if(item.name=='赊账进货'){
|
||||||
item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/899a4202312151148319478.png';
|
item.bg = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/899a4202312151148319478.png';
|
||||||
item.content = '先发货 后付款';
|
item.content = '先发货 后付款';
|
||||||
|
item.icon = "https://lihai001.oss-cn-chengdu.aliyuncs.com/def/6a23e202312251014183019.png";
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
res.data = res.data.filter(item=>item.name!='线上铺货'&&item.name!='实体铺货')
|
res.data = res.data.filter(item=>item.name!='线上铺货'&&item.name!='实体铺货')
|
||||||
|
@ -104,17 +108,22 @@
|
||||||
|
|
||||||
.con_ico {
|
.con_ico {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 15px;
|
right: 15px;
|
||||||
top: 32px;
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
width: 31px;
|
width: 31px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.con_text {
|
.con_text {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 55px;
|
left: 15px;
|
||||||
top: 20px;
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
color: white;
|
color: white;
|
||||||
|
view{
|
||||||
|
margin-top: 12rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue