This commit is contained in:
唐明明
2021-10-26 17:26:01 +08:00
parent 422427f549
commit 89cb4bea28
17 changed files with 1540 additions and 16452 deletions

View File

@@ -2,8 +2,8 @@
"name" : "链商星球", "name" : "链商星球",
"appid" : "__UNI__1F65101", "appid" : "__UNI__1F65101",
"description" : "安徽星煌,链商星球商家工具", "description" : "安徽星煌,链商星球商家工具",
"versionName" : "1.0.5", "versionName" : "1.0.6",
"versionCode" : 105, "versionCode" : 106,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@@ -387,6 +387,7 @@
let submitFund = this.$Route.query.type === 'edit' ? managesGoodsPut(this.$Route.query.id, submitData) : managesGoodsCreate(submitData) let submitFund = this.$Route.query.type === 'edit' ? managesGoodsPut(this.$Route.query.id, submitData) : managesGoodsCreate(submitData)
submitFund.then(res => { submitFund.then(res => {
uni.setStorageSync('refresh',true)
if(this.type === 2){ if(this.type === 2){
uni.showModal({ uni.showModal({
title : '提示', title : '提示',
@@ -416,6 +417,7 @@
} }
} }
}) })
}).catch(err => { }).catch(err => {
uni.showToast({ uni.showToast({
title: err.message, title: err.message,

View File

@@ -77,7 +77,6 @@
}; };
}, },
created() { created() {
console.log(typeof this.$Route.query.edit)
if(this.$Route.query.edit === 'true' || this.$Route.query.edit ){ if(this.$Route.query.edit === 'true' || this.$Route.query.edit ){
managesGoodsExtends(this.$Route.query.id).then(res => { managesGoodsExtends(this.$Route.query.id).then(res => {
this.productedAt = res.producted_at this.productedAt = res.producted_at

View File

@@ -64,27 +64,53 @@
pages : {}, pages : {},
itemGoods : {}, itemGoods : {},
stock : 1, stock : 1,
stockType : '' stockType : '',
page:1,
has_more :true,
}; };
}, },
onShow() { onLoad() {
this.getList() this.getList()
}, },
onShow() {
if(uni.getStorageSync('refresh')){
this.goods = []
this.page = 1
this.has_more = true
this.getList()
}
},
onReachBottom() {
if(this.has_more){
this.page = this.page + 1
this.getList()
}else{
uni.showToast({
title:'我是有底线的~',
icon:'none'
})
}
},
methods: { methods: {
// tabs // tabs
onTabs(value){ onTabs(value){
if(value == this.status) return if(value == this.status) return
this.goods = [] this.goods = []
this.page =1,
this.has_more = true
this.status = value this.status = value
this.getList() this.getList()
}, },
// 权证列表 // 权证列表
getList(){ getList(){
managesGoodsIndex({ managesGoodsIndex({
status: this.status status: this.status,
page:this.page
}).then(res => { }).then(res => {
this.goods = res.data this.goods = this.goods.concat(res.data)
this.pages = res.page this.pages = res.page
this.has_more = res.page.has_more
uni.setStorageSync('refresh',false)
}).catch(err => { }).catch(err => {
uni.showToast({ uni.showToast({
title: err.message, title: err.message,

View File

@@ -214,6 +214,7 @@
// 按钮组 // 按钮组
.basisc-btn{ .basisc-btn{
padding: $padding; padding: $padding;
display: flex;
.add-modules{ .add-modules{
line-height: 86rpx; line-height: 86rpx;
height: 88rpx; height: 88rpx;

View File

@@ -200,7 +200,7 @@
<view class="tool-label-name">员工管理</view> <view class="tool-label-name">员工管理</view>
</view> </view>
<view class="tool-label" v-if="permission.manageScan" @click="$Router.push({name: 'verificationIndex'})"> <view class="tool-label" v-if="permission.manageScan" @click="$Router.push({name: 'verificationIndex'})">
<image class="tool-label-img" src="/static/user/userTool-05.png" mode=""></image> <image class="tool-label-img" src="/static/user/userTool-06.png" mode=""></image>
<view class="tool-label-name">扫码核销</view> <view class="tool-label-name">扫码核销</view>
</view> </view>
</view> </view>

BIN
static/user/userTool-06.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB