修改二楼货架绑定、二楼生产出库

This commit is contained in:
2025-02-19 16:50:47 +08:00
parent c18ccf6b7e
commit 0c3b822d92
4 changed files with 54 additions and 29 deletions

View File

@@ -51,9 +51,8 @@
</view>
<view class="zd-row submit-bar">
<button class="zd-col-6 button-primary" @tap="toEmpty">清空</button>
<button v-if="dataList.length > 0 && dataList[0].lock_type === '0'" class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="toSure('1')">绑定</button>
<button v-if="dataList.length > 0 && dataList[0].lock_type === '1'" class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="toSure('0')">解绑</button>
<button v-if="!dataList.length" class="zd-col-16 button-primary button-info">绑定 / 解绑</button>
<button v-if="dataList.length > 0 && dataList[0].lock_type === '00'" class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="toSure('1')">绑定</button>
<button v-else class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="toSure('0')">解绑</button>
</view>
</view>
</template>
@@ -87,6 +86,7 @@
},
async _getPointStatus (e) {
let res = await getPointStatus(e)
this.dataList = []
this.dataList.push(res)
},
toEmpty () {