+ width="210px" style="height: 380px;" class="customer-dialog">
-
+
@@ -15,7 +15,7 @@
@@ -126,11 +126,12 @@ export default {
//校验是否继续
checkSplitScheduleSwitchRoll(this.pageData).then(({data}) => {
//判断是否成功
- if (data.code == 500) {
- this.$message.error(data.msg);
- } else if (data.resultMap.resultCode == '201') {
+ if (data.code === 200) {
+ //执行切换卷的操作
+ this.switchRollOperation();
+ } else if (data.code === '201') {
//打开异常原因录入的界面
- this.$confirm(data.resultMap.resultMsg, '提示', {
+ this.$confirm(data.msg, '提示', {
confirmButtonText: '确认',
celButtonText: '取消',
type: 'warning'
@@ -138,8 +139,9 @@ export default {
//执行切换卷的操作
this.switchRollOperation();
});
- } else { //执行切换卷的操作
- this.switchRollOperation();
+ } else {
+ //提示报错
+ this.$message.error(data.msg);
}
});
},
@@ -149,12 +151,13 @@ export default {
//处理信息
switchSfdcRoll(this.pageData).then(({data}) => {
//判断操作是否成功
- if (data.code == 500) {
- this.$message.error(data.msg);
- } else {
+ if (data.code === 200) {
//关闭当前的页面
this.pageData.newRollNo = '';
this.closeDialog();
+ } else {
+ //报错信息
+ this.$message.error(data.msg);
}
})
},
diff --git a/src/views/modules/yieldReport/com_switch_roll.vue b/src/views/modules/yieldReport/com_switch_roll.vue
index 49cbb03..6462f91 100644
--- a/src/views/modules/yieldReport/com_switch_roll.vue
+++ b/src/views/modules/yieldReport/com_switch_roll.vue
@@ -15,7 +15,7 @@
diff --git a/src/views/modules/yieldReport/otherReport/other_switch_roll.vue b/src/views/modules/yieldReport/otherReport/other_switch_roll.vue
index 6935469..4b25976 100644
--- a/src/views/modules/yieldReport/otherReport/other_switch_roll.vue
+++ b/src/views/modules/yieldReport/otherReport/other_switch_roll.vue
@@ -15,7 +15,7 @@