Browse Source

20240826

dev
qiezi 1 year ago
parent
commit
040eda2e04
  1. 3
      src/printFormat/alphaHardTagPrintFormat.js
  2. 2
      src/views/modules/label/printer.vue
  3. 3
      src/views/modules/label/record.vue
  4. 8
      src/views/modules/sys/user.vue

3
src/printFormat/alphaHardTagPrintFormat.js

@ -47,6 +47,7 @@ export function printAlphaHardTagLabel (printList, icons, printerName) {
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
// LODOP.ADD_PRINT_HTM(50,175,186,35,`<div>${row.desc}</div>`);
LODOP.ADD_PRINT_TEXT(50,175,186,35,row.desc);
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial");
LODOP.SET_PRINT_STYLEA(0,"FontSize",9);
@ -89,7 +90,7 @@ export function printAlphaHardTagLabel (printList, icons, printerName) {
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
if (row.weightUmName && row.weight){
LODOP.ADD_PRINT_TEXT(86,250,50,20,"WEIGHT");
LODOP.ADD_PRINT_TEXT(86,230,80,20,"WEIGHT");
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);

2
src/views/modules/label/printer.vue

@ -753,7 +753,7 @@ export default {
freeInfo2: item.freeInfo2,
tradingMark: item.tradingMark,
weightUmName: item.weightUmName,
weight: item.packingWeight * item.qtyPerCarton,
weight: new Decimal(item.packingWeight).mul(item.qtyPerCarton).toNumber(),
}
});
// let value = this.printCurrentPart.totalShipQty % this.printCurrentPart.qtyPerCarton

3
src/views/modules/label/record.vue

@ -10,6 +10,7 @@ import {printRF_RFIDLabel} from '../../../printFormat/RF_RFID'
import {selectLabelFormatUserDefaultPrintListByUserId} from '../../../api/label/labelFormatUserDefault'
import getLodop from '@/utils/LodopFuncs.js'
import {getTableDefaultListLanguage, getTableUserListLanguage} from '../../../api/table'
import {Decimal} from 'decimal.js'
const printRecord = {
customerNo: '',
@ -410,7 +411,7 @@ export default {
freeInfo2:item.freeInfo2,
tradingMark: item.tradingMark,
weightUmName: item.weightUmName,
weight: item.packingWeight * item.qtyPerCarton,
weight: new Decimal(item.packingWeight).mul(item.qtyPerCarton).toNumber(),
}
})

8
src/views/modules/sys/user.vue

@ -2,7 +2,10 @@
<div class="mod-user">
<el-form :inline="true" :model="dataForm" label-position="top" @keyup.enter.native="getDataList()">
<el-form-item :label="buttons.username">
<el-input v-model="dataForm.userName" placeholder=" " clearable></el-input>
<el-input v-model="dataForm.username" placeholder=" " clearable></el-input>
</el-form-item>
<el-form-item :label="`User Name`">
<el-input v-model="dataForm.userDisplay" placeholder=" " clearable></el-input>
</el-form-item>
<el-form-item :label="buttons.site" v-if="$store.state.user.userType === 'Global Admin' || $store.state.user.id === 1">
<el-input v-model="dataForm.site" placeholder=" " clearable></el-input>
@ -220,7 +223,8 @@ export default {
saveButton: false,
},
dataForm: {
userName: '',
username: '',
userDisplay: '',
site: '',
},
columnList: [

Loading…
Cancel
Save