md
This commit is contained in:
parent
3bd5a1b3c3
commit
b9fb5de71b
@ -734,9 +734,6 @@ export default {
|
|||||||
}
|
}
|
||||||
this.form = {...response.data};
|
this.form = {...response.data};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.emisCoPackDetail=[];
|
this.emisCoPackDetail=[];
|
||||||
let resList = await listEmisTmsSiteBatchDtl({batchNo: this.form.batchNo});
|
let resList = await listEmisTmsSiteBatchDtl({batchNo: this.form.batchNo});
|
||||||
if(!resList || resList.code != 200){
|
if(!resList || resList.code != 200){
|
||||||
@ -1030,6 +1027,10 @@ export default {
|
|||||||
{
|
{
|
||||||
|
|
||||||
this.isDoing=true;
|
this.isDoing=true;
|
||||||
|
if(this.isCopy){
|
||||||
|
this.form.id=null;
|
||||||
|
}
|
||||||
|
|
||||||
let response = await addEmisTmsSiteBatch(this.form);
|
let response = await addEmisTmsSiteBatch(this.form);
|
||||||
if(!response || response.code != 200){
|
if(!response || response.code != 200){
|
||||||
this.isDoing=false;
|
this.isDoing=false;
|
||||||
@ -1084,7 +1085,6 @@ export default {
|
|||||||
}
|
}
|
||||||
else if(this.coPackType == "edit"){
|
else if(this.coPackType == "edit"){
|
||||||
// 修改
|
// 修改
|
||||||
|
|
||||||
this.isDoing=true;
|
this.isDoing=true;
|
||||||
|
|
||||||
let res = await updateEmisTmsSiteBatch(this.form);
|
let res = await updateEmisTmsSiteBatch(this.form);
|
||||||
|
|||||||
@ -460,18 +460,16 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async initMacId(){
|
async initMacId(){
|
||||||
// const fp = await FingerprintJS.load()
|
const fp = await FingerprintJS.load()
|
||||||
// const result = await fp.get()
|
const result = await fp.get()
|
||||||
// const macCode = result.visitorId
|
const fpMacCode = result.visitorId
|
||||||
let macCode=localStorage.getItem('EMIS_TnMacCode')||'';
|
let macCode=localStorage.getItem('EMIS_TnMacCode')||'';
|
||||||
if(!macCode){
|
if(!macCode){
|
||||||
macCode=uuidv4().replaceAll('-','');
|
// macCode=uuidv4().replaceAll('-','');
|
||||||
|
macCode=fpMacCode;
|
||||||
localStorage.setItem('EMIS_TnMacCode',macCode);
|
localStorage.setItem('EMIS_TnMacCode',macCode);
|
||||||
}
|
}
|
||||||
// console.log("==>macCode==>",macCode);
|
|
||||||
|
|
||||||
let submitMacCode="202408###"+macCode;
|
let submitMacCode="202408###"+macCode;
|
||||||
// console.log("==>==>",submitMacCode);
|
|
||||||
|
|
||||||
this.loginForm.macCode=submitMacCode;
|
this.loginForm.macCode=submitMacCode;
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user