opt:刻字输送线任务下发控制
This commit is contained in:
@@ -6,8 +6,8 @@ INSERT INTO `hl_one_mes`.`sys_dict`(`dict_id`, `code`, `name`, `label`, `value`,
|
||||
INSERT INTO `hl_one_mes`.`sys_dict`(`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `dict_type`, `para1`, `para2`, `para3`, `create_id`, `create_name`, `create_time`, `update_id`, `update_name`, `update_time`) VALUES ('1697426251763027968', 'stor_type', '仓库性质', '备件库', '5', 0, NULL, NULL, NULL, NULL, '1694303357524643840', '管理员', '2023-09-01 09:48:49', '1694303357524643840', '管理员', '2023-09-01 09:48:49');
|
||||
|
||||
|
||||
|
||||
-- 移库单
|
||||
|
||||
INSERT INTO `hl_one_mes`.`sys_code_rule_detail`(`id`, `type`, `init_value`, `current_value`, `max_value`, `step`, `fillchar`, `format`, `length`, `sort_num`, `remark`, `code_rule_id`, `is_active`, `is_delete`, `create_id`, `create_name`, `create_time`, `update_id`, `update_name`, `update_time`) VALUES ('bbadbd46d70d411391213d35c7f99c5f', '01', 'YK', 'YK', '', '', '', '', NULL, 1, '', 'c9674fd7ef1e4569a3fb32a05ba511cd', '1', '0', 0, '', '2022-01-06 08:54:58', 0, '', '2022-01-06 08:55:25');
|
||||
INSERT INTO `hl_one_mes`.`sys_code_rule_detail`(`id`, `type`, `init_value`, `current_value`, `max_value`, `step`, `fillchar`, `format`, `length`, `sort_num`, `remark`, `code_rule_id`, `is_active`, `is_delete`, `create_id`, `create_name`, `create_time`, `update_id`, `update_name`, `update_time`) VALUES ('af1de297ebe34c059f74b7dc1c462c67', '02', '20230912', '20230912', '', '', '', 'yyyyMMdd', NULL, 2, '', 'c9674fd7ef1e4569a3fb32a05ba511cd', '1', '0', 0, '', '2022-01-06 08:55:31', 0, '', '');
|
||||
INSERT INTO `hl_one_mes`.`sys_code_rule_detail`(`id`, `type`, `init_value`, `current_value`, `max_value`, `step`, `fillchar`, `format`, `length`, `sort_num`, `remark`, `code_rule_id`, `is_active`, `is_delete`, `create_id`, `create_name`, `create_time`, `update_id`, `update_name`, `update_time`) VALUES ('bbadbd46d70d411391213d35c7f99c5f', '01', 'YK', 'YK', '', '', '', '', NULL, 1, '', 'c9674fd7ef1e4569a3fb32a05ba511cd', '1', '0', 0, '', '2022-01-06 08:54:58', 0, '', '2022-01-06 08:55:25');
|
||||
|
||||
@@ -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