|
|
@@ -371,20 +371,37 @@ export default {
|
|
|
areaId = v.areaId;
|
|
|
this.switchArea(areaId);
|
|
|
if(v.status === 1){
|
|
|
- this.$toast.fail('NFC点位:' + v.nfcName + '已扫描,请勿重复扫描!');
|
|
|
+ // this.$toast.fail('NFC点位:' + v.nfcName + '已扫描,请勿重复扫描!');
|
|
|
+ this.$toast({
|
|
|
+ type:"fail",
|
|
|
+ message:'NFC点位:' + v.nfcName + '已扫描,请勿重复扫描!',
|
|
|
+ position:"top"
|
|
|
+ })
|
|
|
+
|
|
|
throw new Error('NFC点位:' + v.nfcName + '已扫描,请勿重复扫描!');
|
|
|
}
|
|
|
v.status = 1
|
|
|
v.scanMethod = 2
|
|
|
v.submitTime = dayjs().format('YYYY-MM-DD HH:mm:ss')
|
|
|
v.submitBy = this.id
|
|
|
- this.$toast.success('NFC点位:' + v.nfcName + '扫描成功!');
|
|
|
+ // this.$toast.success('NFC点位:' + v.nfcName + '扫描成功!');
|
|
|
+ this.$toast({
|
|
|
+ type:"success",
|
|
|
+ message:'NFC点位:' + v.nfcName + '扫描成功!',
|
|
|
+ position:"top"
|
|
|
+ })
|
|
|
+
|
|
|
checkOk = true;
|
|
|
}
|
|
|
});
|
|
|
this.updateNFC(1,nfcCode);
|
|
|
if(!checkOk){
|
|
|
- this.$toast.fail(nfcCode + ",不在本次履职范围内!");
|
|
|
+ // this.$toast.fail(nfcCode + ",不在本次履职范围内!");
|
|
|
+ this.$toast({
|
|
|
+ type:"fail",
|
|
|
+ message:nfcCode + ",不在本次履职范围内!",
|
|
|
+ position:"top"
|
|
|
+ })
|
|
|
}
|
|
|
this.validateArea(areaId)
|
|
|
},
|