Browse Source

新增状态判断

branch_ccpg_220107
xunyu.guo 3 years ago
parent
commit
46a8a430ce
  1. 32
      vue/src/views/ux/vw/dataInput/hq_f_report/index.vue
  2. 32
      vue/src/views/ux/vw/dataInput/hq_f_sparepart/index.vue
  3. 17
      vue/src/views/ux/vw/dataInput/hq_h_report/index.vue
  4. 31
      vue/src/views/ux/vw/dataInput/hq_h_sparepart/index.vue
  5. 32
      vue/src/views/ux/vw/dataInput/hq_m_report/index.vue
  6. 32
      vue/src/views/ux/vw/dataInput/hq_m_sparepart/index.vue
  7. 32
      vue/src/views/ux/vw/dataInput/hq_y_report/index.vue

32
vue/src/views/ux/vw/dataInput/hq_f_report/index.vue

@ -688,6 +688,7 @@ export default {
//
handleConfirm(row) {
this.isEdit = false;
this.isTaskSuccess=false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -696,6 +697,7 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
@ -703,8 +705,22 @@ export default {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
if (this.isEdit == true) {
this.$message({
message:
@ -761,6 +777,7 @@ export default {
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -769,6 +786,7 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
@ -776,8 +794,22 @@ export default {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
if (this.isEdit == true) {
this.$message({
message:

32
vue/src/views/ux/vw/dataInput/hq_f_sparepart/index.vue

@ -688,6 +688,7 @@ export default {
//
handleConfirm(row) {
this.isEdit = false;
this.isTaskSuccess=false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -696,6 +697,7 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
@ -703,7 +705,21 @@ export default {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
}
});
//
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
}
if (this.isEdit == true) {
this.$message({
@ -761,6 +777,7 @@ export default {
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -769,6 +786,7 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
@ -776,8 +794,22 @@ export default {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
if (this.isEdit == true) {
this.$message({
message:

17
vue/src/views/ux/vw/dataInput/hq_h_report/index.vue

@ -717,7 +717,7 @@ export default {
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单确认!:" +
"有未成功的任务,不能单确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
@ -781,6 +781,7 @@ export default {
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -789,6 +790,7 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
@ -796,8 +798,21 @@ export default {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
}
});
}
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
if (this.isEdit == true) {
this.$message({
message:

31
vue/src/views/ux/vw/dataInput/hq_h_sparepart/index.vue

@ -688,6 +688,7 @@ export default {
//
handleConfirm(row) {
this.isEdit = false;
this.isTaskSuccess=false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -696,6 +697,7 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
@ -703,8 +705,22 @@ export default {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
if (this.isEdit == true) {
this.$message({
message:
@ -761,6 +777,7 @@ export default {
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -769,6 +786,7 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
@ -776,7 +794,20 @@ export default {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
}
});
}
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
if (this.isEdit == true) {
this.$message({

32
vue/src/views/ux/vw/dataInput/hq_m_report/index.vue

@ -690,6 +690,7 @@ export default {
//
handleConfirm(row) {
this.isEdit = false;
this.isTaskSuccess=false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -698,6 +699,7 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
@ -705,7 +707,21 @@ export default {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
if (this.isEdit == true) {
this.$message({
@ -765,6 +781,7 @@ export default {
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -773,6 +790,7 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
@ -780,8 +798,22 @@ export default {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
if (this.isEdit == true) {
this.$message({
message:

32
vue/src/views/ux/vw/dataInput/hq_m_sparepart/index.vue

@ -688,6 +688,7 @@ export default {
//
handleConfirm(row) {
this.isEdit = false;
this.isTaskSuccess=false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -696,6 +697,7 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
@ -703,8 +705,22 @@ export default {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
if (this.isEdit == true) {
this.$message({
message:
@ -761,6 +777,7 @@ export default {
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -769,6 +786,7 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
@ -776,8 +794,22 @@ export default {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
if (this.isEdit == true) {
this.$message({
message:

32
vue/src/views/ux/vw/dataInput/hq_y_report/index.vue

@ -689,6 +689,7 @@ export default {
//
handleConfirm(row) {
this.isEdit = false;
this.isTaskSuccess=false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -697,6 +698,7 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
@ -704,7 +706,21 @@ export default {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
if (this.isEdit == true) {
this.$message({
@ -762,6 +778,7 @@ export default {
//
handleCreateBills(row) {
this.isEdit = false;
this.isTaskSuccess=false;
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
@ -770,6 +787,7 @@ export default {
return;
} else {
var getbillNum = "";
var getTaskState="";
//
this.multipleSelection.forEach((element) => {
let state = element.fileName;
@ -777,8 +795,22 @@ export default {
this.isEdit = true;
getbillNum += state + ",";
}
else if(element.stateName != "Succeeded"){
this.isTaskSuccess=true;
getTaskState+=element.taskId;
}
});
}
//
if(this.isTaskSuccess == true){
this.$message({
message:
"有未成功的任务,不能单击确认!:" +
getTaskState.substr(0, getTaskState.length - 1),
type: "warning",
});
return;
}
if (this.isEdit == true) {
this.$message({
message:

Loading…
Cancel
Save