opt:刻字输送线任务下发控制
This commit is contained in:
@@ -365,7 +365,7 @@ export default {
|
||||
},
|
||||
queryClassId() {
|
||||
const param = {
|
||||
'class_idStr': this.class_idStr
|
||||
'class_idStr': '2'
|
||||
}
|
||||
crudClassstandard.queryClassById(param).then(res => {
|
||||
this.classes = res.content.map(obj => {
|
||||
|
||||
@@ -357,7 +357,7 @@ export default {
|
||||
},
|
||||
queryClassId() {
|
||||
const param = {
|
||||
'class_idStr': this.class_idStr
|
||||
'class_idStr': '2'
|
||||
}
|
||||
crudClassstandard.queryClassById(param).then(res => {
|
||||
this.classes = res.content.map(obj => {
|
||||
|
||||
@@ -78,6 +78,7 @@
|
||||
type="success"
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
:disabled="is_disabled(crud.selections)"
|
||||
@click="repair"
|
||||
>
|
||||
维修
|
||||
@@ -88,6 +89,7 @@
|
||||
type="success"
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
:disabled="is_disabled(crud.selections)"
|
||||
@click="notRepair"
|
||||
>
|
||||
不维修
|
||||
@@ -315,6 +317,21 @@ export default {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
return true
|
||||
},
|
||||
// 下发按钮禁用条件
|
||||
is_disabled(rows) {
|
||||
debugger
|
||||
this.checkrows = rows
|
||||
if (this.checkrows.length == 0){
|
||||
return true
|
||||
}
|
||||
for (let i = 0; i < this.checkrows.length; i++) {
|
||||
if (this.checkrows[i].status !=='01'){
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
},
|
||||
|
||||
hand(value) {
|
||||
this.crud.toQuery()
|
||||
},
|
||||
@@ -371,6 +388,12 @@ export default {
|
||||
this.crud.notify('请勾选需要操作的记录!')
|
||||
return false
|
||||
}
|
||||
for (let i = 0; i < this.checkrows.length; i++) {
|
||||
if (this.checkrows[i].status!=='01'){
|
||||
this.crud.notify('只能提交生成状态的报修单', CRUD.NOTIFICATION_TYPE.WARNING)
|
||||
return false
|
||||
}
|
||||
}
|
||||
crudDevicerepairrequest.repair({ rows: this.checkrows}).then(res => {
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
@@ -382,6 +405,12 @@ export default {
|
||||
this.crud.notify('请勾选需要操作的记录!')
|
||||
return false
|
||||
}
|
||||
for (let i = 0; i < this.checkrows.length; i++) {
|
||||
if (this.checkrows[i].status!=='01'){
|
||||
this.crud.notify('只能提交生成状态的报修单', CRUD.NOTIFICATION_TYPE.WARNING)
|
||||
return false
|
||||
}
|
||||
}
|
||||
crudDevicerepairrequest.notRepair({ rows: this.checkrows}).then(res => {
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
|
||||
@@ -181,7 +181,7 @@ export default {
|
||||
end_flag: true,
|
||||
confirm_flag: true,
|
||||
classes: [],
|
||||
class_idStr: null,
|
||||
class_idStr: '2',
|
||||
materOpt_code: '23',
|
||||
openParam: null,
|
||||
executeDialog: false,
|
||||
|
||||
@@ -215,7 +215,7 @@ export default {
|
||||
},
|
||||
queryClassId() {
|
||||
const param = {
|
||||
'class_idStr': this.class_idStr
|
||||
'class_idStr': '2'
|
||||
}
|
||||
crudClassstandard.queryClassById(param).then(res => {
|
||||
this.classes = res.content.map(obj => {
|
||||
|
||||
@@ -289,7 +289,7 @@ export default {
|
||||
},
|
||||
queryClassId() {
|
||||
const param = {
|
||||
'class_idStr': this.class_idStr
|
||||
'class_idStr': '2'
|
||||
}
|
||||
crudClassstandard.queryClassById(param).then(res => {
|
||||
this.classes = res.content.map(obj => {
|
||||
|
||||
@@ -203,7 +203,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
classes: [],
|
||||
class_idStr: null,
|
||||
class_idStr: '2',
|
||||
materOpt_code: '23',
|
||||
itemLevelList: [
|
||||
{ 'label': '日常', 'value': '01' },
|
||||
@@ -289,7 +289,7 @@ export default {
|
||||
},
|
||||
queryClassId() {
|
||||
const param = {
|
||||
'class_idStr': this.class_idStr
|
||||
'class_idStr': '2'
|
||||
}
|
||||
crudClassstandard.queryClassById(param).then(res => {
|
||||
this.classes = res.content.map(obj => {
|
||||
|
||||
@@ -214,7 +214,7 @@ export default {
|
||||
},
|
||||
queryClassId() {
|
||||
const param = {
|
||||
'class_idStr': this.class_idStr
|
||||
'class_idStr': '2'
|
||||
}
|
||||
crudClassstandard.queryClassById(param).then(res => {
|
||||
this.classes = res.content.map(obj => {
|
||||
|
||||
@@ -289,7 +289,7 @@ export default {
|
||||
},
|
||||
queryClassId() {
|
||||
const param = {
|
||||
'class_idStr': this.class_idStr
|
||||
'class_idStr': '2'
|
||||
}
|
||||
crudClassstandard.queryClassById(param).then(res => {
|
||||
this.classes = res.content.map(obj => {
|
||||
|
||||
Reference in New Issue
Block a user