|
|
@@ -153,7 +153,7 @@
|
|
|
data() {
|
|
|
let self = this
|
|
|
return {
|
|
|
- gradeFlag:null,//改判权限标识
|
|
|
+ gradeFlag: null,//改判权限标识
|
|
|
tableData: [],
|
|
|
loading: false,
|
|
|
tableHeight: 620,
|
|
|
@@ -299,7 +299,7 @@
|
|
|
modelPdtLabelJson: {},//验证标签集合
|
|
|
labelModal: false,//验证标签modal
|
|
|
labelFormData: {},
|
|
|
- getBarCodeMessage:null,//产品条码信息
|
|
|
+ getBarCodeMessage: null,//产品条码信息
|
|
|
onProdUserCodeFlag: false,//校验打卡标识
|
|
|
}
|
|
|
},
|
|
|
@@ -347,7 +347,7 @@
|
|
|
this.$Message.error(res.message)
|
|
|
}
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.onProdUserCodeFlag = false
|
|
|
}
|
|
|
},
|
|
|
@@ -366,8 +366,8 @@
|
|
|
}
|
|
|
this.excute(this.$service.collectService, this.$service.collectService.checkBarCode, params).then(res => {
|
|
|
if (res.code === this.$config.SUCCESS_CODE) {
|
|
|
- if(0 == parseInt(res.data.flowNodeNum)){
|
|
|
- this.labelFlag =true
|
|
|
+ if (0 == parseInt(res.data.flowNodeNum)) {
|
|
|
+ this.gradeFlag = true
|
|
|
}
|
|
|
this.getBarCodeMessage = res
|
|
|
//验证标签开启并且工序类型为产品码
|
|
|
@@ -514,13 +514,11 @@
|
|
|
i.blameStaffId = i.staffId
|
|
|
i.blameWsJobId = i.jobId
|
|
|
}
|
|
|
- if (!this.jobId || this.staffList.filter(it => it.jobId == this.jobId).length == 0) {
|
|
|
- let _this = this
|
|
|
- setTimeout(() => {
|
|
|
- _this.$refs['staff-table-select'].$refs.table.setCheckboxRow(
|
|
|
- _this.staffList.filter(it => it.defaultFlag), true)
|
|
|
- }, 200)
|
|
|
- }
|
|
|
+ let _this = this
|
|
|
+ setTimeout(() => {
|
|
|
+ _this.$refs['staff-table-select'].$refs.table.setCheckboxRow(
|
|
|
+ _this.staffList.filter(it => it.defaultFlag), true)
|
|
|
+ }, 200)
|
|
|
},
|
|
|
/**
|
|
|
* @desc : 查询员工
|
|
|
@@ -542,13 +540,11 @@
|
|
|
i.blameStaffId = i.staffId
|
|
|
i.blameWsJobId = i.jobId
|
|
|
}
|
|
|
- if (!this.jobId || this.staffList.filter(it => it.jobId == this.jobId).length == 0) {
|
|
|
- let _this = this
|
|
|
- setTimeout(() => {
|
|
|
- _this.$refs['staff-table-select'].$refs.table.setCheckboxRow(
|
|
|
- _this.staffList.filter(it => it.defaultFlag), true)
|
|
|
- }, 200)
|
|
|
- }
|
|
|
+ let _this = this
|
|
|
+ setTimeout(() => {
|
|
|
+ _this.$refs['staff-table-select'].$refs.table.setCheckboxRow(
|
|
|
+ _this.staffList.filter(it => it.defaultFlag), true)
|
|
|
+ }, 200)
|
|
|
} else {
|
|
|
this.$Message.error(res.message)
|
|
|
}
|
|
|
@@ -784,15 +780,6 @@
|
|
|
}
|
|
|
//endregion
|
|
|
|
|
|
- //region 缺陷扣罚
|
|
|
- if (item.dftFineId == null) {
|
|
|
- this.$Message.error(this.$t('W_069', { 'param': this.$t('dftFineId') }))
|
|
|
- this.setErrToRow(item, this.$t('W_093', {
|
|
|
- 'param': this.$t('dftFineId')
|
|
|
- }))// 给行增加错误提示信息
|
|
|
- return false
|
|
|
- }
|
|
|
- //endregion
|
|
|
|
|
|
//region 缺陷位置
|
|
|
if (item && this.formData.opnGradeKind != this.$config.gradeKindType.excellent && item.pdtPlaceId == null) {
|
|
|
@@ -978,7 +965,7 @@
|
|
|
*/
|
|
|
validData() {
|
|
|
//判断是否有改判权限
|
|
|
- if(!this.gradeFlag){
|
|
|
+ if (!this.gradeFlag) {
|
|
|
this.$Message.error(this.$t('W_131'))
|
|
|
return false
|
|
|
}
|