|
|
@@ -17,7 +17,10 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view style="text-align:center;"> <button class="admin-button-com blue big" style="width:500upx;" @click="sendAmount">提交</button> </view>
|
|
|
+ <view style="text-align:center;">
|
|
|
+ <view style="margin-bottom:20upx;font-size:33upx;color:red;font-weight:bold;">当前在:{{shopInfo.shopName}}</view>
|
|
|
+ <button class="admin-button-com blue big" style="width:500upx;" @click="sendAmount">提交</button>
|
|
|
+ </view>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
<app-wrapper-empty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
|
|
|
@@ -36,6 +39,7 @@ import { list } from '@/mixins'
|
|
|
import { mapGetters } from "vuex"
|
|
|
import { getStaffList} from '@/api/staff'
|
|
|
import { addSalary} from '@/api/expend'
|
|
|
+import {currentShop} from "@/api/shop";
|
|
|
export default {
|
|
|
name: 'addSalary',
|
|
|
components: {
|
|
|
@@ -49,7 +53,7 @@ export default {
|
|
|
mixins: [list],
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ shopInfo:{shopName:''}
|
|
|
}
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -70,7 +74,10 @@ export default {
|
|
|
uni.stopPullDownRefresh()
|
|
|
}
|
|
|
},
|
|
|
- onLoad: function() {
|
|
|
+ onLoad() {
|
|
|
+ currentShop().then(res => {
|
|
|
+ this.shopInfo = res.data
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
async init() {
|