| | |
| | | </view>
|
| | |
|
| | | <view class="cu-bar btn-group foot" v-show="!isconfirm">
|
| | | <button class="cu-btn text-blue line-blue shadow" @click="clear">清空</button>
|
| | | <button class="cu-btn bg-blue shadow-blur" @click="next">下一步</button>
|
| | | <button v-if="hasButtonPermission('reset')" class="cu-btn text-blue line-blue shadow" @click="clear">清空</button>
|
| | | <button v-if="hasButtonPermission('submit')" class="cu-btn bg-blue shadow-blur" @click="next">下一步</button>
|
| | | </view>
|
| | |
|
| | | <view class="cu-bar btn-group foot" v-show="isconfirm">
|
| | | <button class="cu-btn text-blue line-blue shadow" @click="prev">上一步</button>
|
| | | <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="confirm(false)">收货</button>
|
| | | <button v-if="hasButtonPermission('reset')" class="cu-btn text-blue line-blue shadow" @click="prev">上一步</button>
|
| | | <button v-if="hasButtonPermission('submit')" class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="confirm(false)">收货</button>
|
| | | </view>
|
| | |
|
| | | </view>
|
| | |
| | | repeatClick: false,
|
| | | isconfirm: false,
|
| | | max: 99999999,
|
| | | buttonPermissions: [] // 按钮权限列表
|
| | | }
|
| | | },
|
| | | computed: {
|
| | |
| | | mounted() {
|
| | | this.getRece()
|
| | | this.whAreaId = uni.getStorageSync('whAreaId')
|
| | | // 获取按钮权限
|
| | | this.buttonPermissions = uni.getStorageSync('buttonPermissions') || [];
|
| | | console.log('当前页面按钮权限:', this.buttonPermissions);
|
| | | },
|
| | | methods: {
|
| | | // 检查按钮权限
|
| | | hasButtonPermission(route) {
|
| | | return this.buttonPermissions.includes(route);
|
| | | },
|
| | | async search() {
|
| | | const {
|
| | | code,
|