剩余模块:生产退料

This commit is contained in:
2025-05-26 16:57:56 +08:00
parent b1d8dec263
commit eb2c8d2d7a
161 changed files with 18754 additions and 6607 deletions

View File

@@ -16,18 +16,6 @@
</view>
</view>
<!-- <view class="data-item" :style="[{'background-color':'#ffffff'}]" style="margin-top: 32rpx;">
<view class="dataText" style="display: flex;align-items: center;">
<tki-qrcode cid="qrcode1" ref="qrcode" val="val" :size="160" unit="upx" :loadMake="true"
:usingComponents="true" />
<view style="margin-left: 32rpx;">
<view>Date:{{ state.pageData.FBillNo }}</view>
<view>MO No:{{ state.pageData.MaterialNo }}</view>
<view>P/No:{{ state.pageData.CheckQty }}</view>
<view>Serial No:{{ state.pageData.Lot }}</view>
</view>
</view>
</view> -->
<view class="input-box" @click="printingMachineSelectFun">
<view class="input-item">
<up-input :placeholder="t('index.qxzdyj')" border="none" clearable inputAlign="left" v-model="state.printingMachine.name"
@@ -110,6 +98,28 @@
//获取蓝牙权限并打开蓝牙
const hasPermission = () => {
console.log(uni.getStorageSync('printInfo'));
blueModule.checkConnect({
mac: uni.getStorageSync('printInfo').address,
uuid: '00001101-0000-1000-8000-00805f9b34fb'
}, (ret : any) => {
console.log(ret);
if (!ret.success) {
uni.setStorageSync('printInfo', {})
state.printingMachine = {
name: '',
address: ''
}
setTimeout(() => {
uni.showToast({
icon: 'none',
mask: true,
title: t('index.ljydk'),
})
}, 500)
}
});
blueModule.hasPermission((res : any) => {
if (res.success) {
blueModule.isOpen((isOpenRes : any) => {
@@ -203,7 +213,7 @@
UHIK_BD_BarCodeMainFileSave({
Key: 'qwe123!@#',
Items: arr
}).then((res : any) => {
},true).then((res : any) => {
console.log(res);
if (res.code == 200) {
let i : number = 0;
@@ -277,6 +287,15 @@
//结果
console.log('发送结果')
console.log(result)
if (!result.success) {
uni.$u.toast(t('index.ljydk'))
uni.setStorageSync('printInfo', {})
state.printingMachine = {
name: '',
address: ''
}
return
}
if (result.success) {
realWriteData(sendloop, i + 1);
}