Browse Source

20241025 去除Logistic的julia Date

dev
qiezi 1 year ago
parent
commit
6436519a35
  1. 8
      src/store/modules/user.js
  2. 19
      src/views/main.vue
  3. 39
      src/views/modules/factory/tblbasedata.vue
  4. 3
      src/views/modules/label/logisticLabelRecord.vue
  5. 3
      src/views/modules/label/printer.vue

8
src/store/modules/user.js

@ -10,6 +10,8 @@ export default {
multiLanguage: '',
authControl: '',
userType: '',
autoSerialNumber:'',
siteCode:'',
},
mutations: {
updateId (state, id) {
@ -35,6 +37,12 @@ export default {
},
updateAuthControl (state,authControl){
state.authControl = authControl
},
updateAutoSerialNumber (state,autoSerialNumber){
state.autoSerialNumber = autoSerialNumber
},
updateSiteCode (state,siteCode){
state.siteCode = siteCode
}
}
}

19
src/views/main.vue

@ -104,6 +104,22 @@
this.$store.commit('user/updateUserDisplay', val)
}
},
autoSerialNumber:{
get() {
return this.$store.state.user.autoSerialNumber
},
set(val) {
this.$store.commit('user/updateAutoSerialNumber', val)
}
},
siteCode:{
get() {
return this.$store.state.user.siteCode
},
set(val) {
this.$store.commit('user/updateSiteCode', val)
}
},
},
created() {
this.getUserInfo()
@ -126,7 +142,6 @@
method: 'get',
params: this.$http.adornParams()
}).then(({data}) => {
console.log(data.user.userTypeDesc)
if (data && data.code === 0) {
this.loading = false
this.userId = data.user.userId
@ -136,6 +151,8 @@
this.site = data.user.site
this.userDisplay = data.user.userDisplay
this.userType = data.user.userTypeDesc
this.autoSerialNumber = data.user.autoSerialNumber
this.siteCode = data.user.siteCode
}
})
},

39
src/views/modules/factory/tblbasedata.vue

@ -27,6 +27,8 @@ let site = {
active: '',
buNo: '',
defaultCountry:'',
autoSerialNumber: '',
siteCode: '',
}
export default {
name: 'TblBaseData',
@ -49,11 +51,13 @@ export default {
siteForm:{
...site,
active: 'Y',
autoSerialNumber: 'N',
},
saveFormRules:{
siteName: [{ required: true, message: 'Please input Site Name', trigger: ['blur','change'] }],
active: [{ required: true, message: 'Please select Active', trigger: ['blur','change'] }],
defaultCountry: [{ required: true, message: 'Please select Default Country', trigger: ['blur','change'] }],
siteCode: [{ required: true, message: 'Please input Site Code', trigger: ['blur','change'] }],
},
saveVisible: false,
tableLoading: false,
@ -331,6 +335,7 @@ export default {
closeSaveForm(){
this.siteForm = {
...site,
autoSerialNumber: 'N',
active: 'Y'
}
this.$refs.siteForm.resetFields();
@ -447,6 +452,11 @@ export default {
})
}
},
watch:{
'siteForm.siteCode'(newVal, oldVal){
this.siteForm.siteCode = newVal.toUpperCase()
}
},
created () {
if (this.$store.state.user.userType === 'Site Admin'){
this.site.siteId = this.$store.state.user.site
@ -454,6 +464,7 @@ export default {
this.getSiteList();
this.getTableUserColumn("998001Table",1)
// this.getTableDefaultListGroupLanguage("998001Table")
console.log(this.$store.state.user.autoSerialNumber)
}
}
</script>
@ -515,24 +526,37 @@ export default {
<el-dialog v-drag modal-append-to-body :close-on-click-modal="false" :title="`Site`" @close="closeSaveForm" width="600px" :visible.sync="saveVisible">
<el-form :model="siteForm" label-position="top" style="padding: 10px" :rules="saveFormRules" ref="siteForm">
<el-row :gutter="20">
<el-col :span="6">
<el-col :span="8">
<el-form-item label="Site ID" prop="siteId" :show-message="false">
<el-input v-model="siteForm.siteId" readonly disabled></el-input>
</el-form-item>
</el-col>
<el-col :span="18">
<el-col :span="8">
<el-form-item label="Site Name" prop="siteName" :show-message="false">
<el-input v-model="siteForm.siteName"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label=" " :show-message="false">
<el-checkbox v-model="siteForm.autoSerialNumber" true-label="Y" false-label="N">Auto SN Generation</el-checkbox>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-col :span="8">
<el-form-item key="siteCode" label="Site Code" v-if="siteForm.autoSerialNumber === 'Y'" prop="siteCode" :show-message="false">
<el-input v-model="siteForm.siteCode"></el-input>
</el-form-item>
<el-form-item label="Site Code" v-else :show-message="false">
<el-input v-model="siteForm.siteCode"></el-input>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item label="Address" prop="address" :show-message="false">
<el-input v-model="siteForm.address"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-col :span="8">
<el-form-item label="Contact" prop="contact" :show-message="false">
<el-input v-model="siteForm.contact"></el-input>
</el-form-item>
@ -542,11 +566,6 @@ export default {
<el-input v-model="siteForm.email" ></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="18">-->
<!-- <el-form-item label="Contact Phone No" prop="phoneNo" :show-message="false">-->
<!-- <el-input v-model="siteForm.phoneNo"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="8">
<el-form-item label="Contact Phone No" prop="phoneNo" :show-message="false">
<el-input v-model="siteForm.phoneNo"></el-input>
@ -559,7 +578,7 @@ export default {
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="8">
<el-form-item label=" " :show-message="false">
<el-checkbox v-model="siteForm.active" true-label="Y" false-label="N">Active</el-checkbox>
</el-form-item>

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

@ -224,6 +224,7 @@ export default {
handleQuery () {
let params = {
...this.logisticLabelRecord,
site:this.$store.state.user.site,
no: this.no,
size: this.size
}
@ -269,7 +270,7 @@ export default {
let row = {
...this.selectionDataList[i],
qty:this.selectionDataList[i].unitQtyPerPallet,
qrCode: `(00)${this.selectionDataList[i].partNo? this.selectionDataList[i].partNo : ''}(01)${this.selectionDataList[i].unitQtyPerPallet? this.selectionDataList[i].unitQtyPerPallet : ''}(02)${this.selectionDataList[i].umName? this.selectionDataList[i].umName : ''}(03)${this.selectionDataList[i].manufacturerDate ? this.selectionDataList[i].manufacturerDate : ''}(04)(05)(06)(07)(08)(09)(10)${this.selectionDataList[i].poNo? this.selectionDataList[i].poNo : ''}`,
qrCode: `(00)${this.selectionDataList[i].partNo? this.selectionDataList[i].partNo : ''}(01)${this.selectionDataList[i].unitQtyPerPallet? this.selectionDataList[i].unitQtyPerPallet : ''}(02)${this.selectionDataList[i].umName? this.selectionDataList[i].umName : ''}(03)(04)(05)(06)(07)(08)(09)(10)${this.selectionDataList[i].poNo? this.selectionDataList[i].poNo : ''}`,
}
let qrCodeList = this.$refs.qrCode.init([row.qrCode])
row.qrCode = qrCodeList[0]

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

@ -1066,6 +1066,7 @@ export default {
})
}
})
this.printLoading = false;
},
savePrintLogisticLabel() {
let params = {
@ -1078,7 +1079,7 @@ export default {
let labelList = this.labelFormatList.filter((item)=> item.labelType === 'Logistic Label')
for (let i = 0; i < this.currentPartLogistic.countOfPallets; i++) {
let row = {
qrCode: `(00)${this.currentPartLogistic.partNo? this.currentPartLogistic.partNo : ''}(01)${this.currentPartLogistic.unitQtyPerPallet? this.currentPartLogistic.unitQtyPerPallet : ''}(02)${this.currentPartLogistic.umName? this.currentPartLogistic.umName : ''}(03)${data.row.manufacturerDate? data.row.manufacturerDate : ''}(04)(05)(06)(07)(08)(09)(10)${this.currentPartLogistic.poNo? this.currentPartLogistic.poNo : ''}`,
qrCode: `(00)${this.currentPartLogistic.partNo? this.currentPartLogistic.partNo : ''}(01)${this.currentPartLogistic.unitQtyPerPallet? this.currentPartLogistic.unitQtyPerPallet : ''}(02)${this.currentPartLogistic.umName? this.currentPartLogistic.umName : ''}(03)(04)(05)(06)(07)(08)(09)(10)${this.currentPartLogistic.poNo? this.currentPartLogistic.poNo : ''}`,
partNo:this.currentPartLogistic.partNo,
partDesc:this.currentPartLogistic.partDesc,
poNo:this.currentPartLogistic.poNo,

Loading…
Cancel
Save