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