Commit 6cad3bd1 by huxi

litame 调整格式

parent 05fc6846
...@@ -73,11 +73,11 @@ ...@@ -73,11 +73,11 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
export default { export default {
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [event], mixins: [event],
data() { data() {
return {}; return {};
......
...@@ -150,165 +150,165 @@ ...@@ -150,165 +150,165 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
export default { export default {
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [event], mixins: [event],
data() { data() {
return {}; return {};
}, },
watch: { watch: {
"model.litamep.adlcndamep.modflg": { 'model.litamep.adlcndamep.modflg': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if ( if (
this.model.litamep.adlcndamep.modflg == "X" && this.model.litamep.adlcndamep.modflg == 'X' &&
this.model.litamep.adlcndamep.modmanflg == "" this.model.litamep.adlcndamep.modmanflg == ''
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.adlcndamep.usrblk = ""; this.model.litamep.adlcndamep.usrblk = '';
} else if ( } else if (
this.model.litamep.adlcndamep.modflg == "X" && this.model.litamep.adlcndamep.modflg == 'X' &&
this.model.litamep.adlcndamep.modmanflg == "X" this.model.litamep.adlcndamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
} else if ( } else if (
this.model.litamep.adlcndamep.modflg == "" && this.model.litamep.adlcndamep.modflg == '' &&
this.model.litamep.adlcndamep.modmanflg == "" this.model.litamep.adlcndamep.modmanflg == ''
) { ) {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
} else if ( } else if (
this.model.litamep.adlcndamep.modflg == "" && this.model.litamep.adlcndamep.modflg == '' &&
this.model.litamep.adlcndamep.modmanflg == "X" this.model.litamep.adlcndamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.adlcndamep.usrblk = ""; this.model.litamep.adlcndamep.usrblk = '';
} }
}, },
}, },
"model.litamep.adlcndamep.modmanflg": { 'model.litamep.adlcndamep.modmanflg': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if ( if (
this.model.litamep.adlcndamep.modflg == "X" && this.model.litamep.adlcndamep.modflg == 'X' &&
this.model.litamep.adlcndamep.modmanflg == "" this.model.litamep.adlcndamep.modmanflg == ''
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.adlcndamep.usrblk = ""; this.model.litamep.adlcndamep.usrblk = '';
} else if ( } else if (
this.model.litamep.adlcndamep.modflg == "X" && this.model.litamep.adlcndamep.modflg == 'X' &&
this.model.litamep.adlcndamep.modmanflg == "X" this.model.litamep.adlcndamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
} else if ( } else if (
this.model.litamep.adlcndamep.modflg == "" && this.model.litamep.adlcndamep.modflg == '' &&
this.model.litamep.adlcndamep.modmanflg == "" this.model.litamep.adlcndamep.modmanflg == ''
) { ) {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
} else if ( } else if (
this.model.litamep.adlcndamep.modflg == "" && this.model.litamep.adlcndamep.modflg == '' &&
this.model.litamep.adlcndamep.modmanflg == "X" this.model.litamep.adlcndamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.adlcndamep.usrblk = ""; this.model.litamep.adlcndamep.usrblk = '';
} }
}, },
}, },
}, },
methods: { methods: {
open(val) { open(val) {
if (val === "" && !(this.model.lidgrp.blk.adlcnd == "")) { if (val === '' && !(this.model.lidgrp.blk.adlcnd == '')) {
this.$confirm( this.$confirm(
"是否确定要重置手动修改?", '是否确定要重置手动修改?',
"提示", '提示',
{ {
cancelButtonText: "撤销", cancelButtonText: '撤销',
confirmButtonText: "确定", confirmButtonText: '确定',
type: "warning", type: 'warning',
showClose: false, showClose: false,
} }
) )
.then(() => { .then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.lidgrp.blk.adlcnd = ""; this.model.lidgrp.blk.adlcnd = '';
this.$message({ this.$message({
type: "success", type: 'success',
message: "删除成功!", message: '删除成功!',
}); });
}) })
.catch(() => { .catch(() => {
//No的功能在这里写 //No的功能在这里写
this.model.litamep.adlcndamep.modflg = "X"; this.model.litamep.adlcndamep.modflg = 'X';
this.$message({ this.$message({
type: "info", type: 'info',
message: "已取消", message: '已取消',
}); });
}); });
} else if (val == "X" && this.model.litamep.adlcndamep.modmanflg == "X") { } else if (val == 'X' && this.model.litamep.adlcndamep.modmanflg == 'X') {
this.$confirm("请先重置内部修改", "提示", { this.$confirm('请先重置内部修改', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
showCancelButton: false, showCancelButton: false,
type: "warning", type: 'warning',
showClose: false, showClose: false,
}).then(() => { }).then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.litamep.adlcndamep.modflg = ""; this.model.litamep.adlcndamep.modflg = '';
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
}); });
} }
}, },
open1(val) { open1(val) {
if (val === "" && !(this.model.lidgrp.blk.adlcnd == "")) { if (val === '' && !(this.model.lidgrp.blk.adlcnd == '')) {
this.$confirm( this.$confirm(
"是否确定要重置手动修改?", '是否确定要重置手动修改?',
"提示", '提示',
{ {
cancelButtonText: "撤销", cancelButtonText: '撤销',
confirmButtonText: "确定", confirmButtonText: '确定',
type: "warning", type: 'warning',
showClose: false, showClose: false,
} }
) )
.then(() => { .then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.lidgrp.blk.adlcnd = ""; this.model.lidgrp.blk.adlcnd = '';
this.$message({ this.$message({
type: "success", type: 'success',
message: "删除成功!", message: '删除成功!',
}); });
}) })
.catch(() => { .catch(() => {
//No的功能在这里写 //No的功能在这里写
this.model.litamep.adlcndamep.modmanflg = "X"; this.model.litamep.adlcndamep.modmanflg = 'X';
this.$message({ this.$message({
type: "info", type: 'info',
message: "已取消", message: '已取消',
}); });
}); });
} else if ( } else if (
this.model.litamep.adlcndamep.modflg == "X" && this.model.litamep.adlcndamep.modflg == 'X' &&
this.model.litamep.adlcndamep.modmanflg == "X" this.model.litamep.adlcndamep.modmanflg == 'X'
) { ) {
this.$confirm("请先重置修改以替换", "提示", { this.$confirm('请先重置修改以替换', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "", cancelButtonText: '',
showCancelButton: false, showCancelButton: false,
type: "warning", type: 'warning',
showClose: false, showClose: false,
}).then(() => { }).then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.litamep.adlcndamep.modmanflg = ""; this.model.litamep.adlcndamep.modmanflg = '';
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
}); });
......
...@@ -87,15 +87,15 @@ ...@@ -87,15 +87,15 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
import Coninfp from "~/components/business/coninfp/views"; import Coninfp from '~/components/business/coninfp/views';
export default { export default {
components: { components: {
"m-coninfp": Coninfp, 'm-coninfp': Coninfp,
}, },
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [event], mixins: [event],
data() { data() {
return { return {
......
...@@ -426,11 +426,11 @@ ...@@ -426,11 +426,11 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
export default { export default {
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [event], mixins: [event],
data() { data() {
return {}; return {};
......
...@@ -325,11 +325,11 @@ ...@@ -325,11 +325,11 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
export default { export default {
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [event], mixins: [event],
data() { data() {
return { return {
...@@ -354,31 +354,31 @@ export default { ...@@ -354,31 +354,31 @@ export default {
}, },
created: function () {}, created: function () {},
watch: { watch: {
"model.lidgrp.rec.avbwth": { 'model.lidgrp.rec.avbwth': {
immediate: true, immediate: true,
handler(val, oldVal) { handler(val, oldVal) {
//Any Bank //Any Bank
if (val == "O") { if (val == 'O') {
this.flag4 = false; this.flag4 = false;
this.changeFormItemRequired("lidgrp.avb.pts.adrblk", false); this.changeFormItemRequired('lidgrp.avb.pts.adrblk', false);
this.flag6 = false; this.flag6 = false;
} //Advising Bank } //Advising Bank
else if (val == "A") { else if (val == 'A') {
this.flag4 = true; this.flag4 = true;
this.flag5 = true; this.flag5 = true;
this.flag6 = true; this.flag6 = true;
} //Issuing Bank } //Issuing Bank
else if (val == "I") { else if (val == 'I') {
this.flag4 = true; this.flag4 = true;
this.flag5 = false; this.flag5 = false;
this.flag6 = true; this.flag6 = true;
} //Confirming Bank } //Confirming Bank
else if (val == "C") { else if (val == 'C') {
this.flag4 = true; this.flag4 = true;
this.flag5 = true; this.flag5 = true;
this.flag6 = true; this.flag6 = true;
} //Specified Bank } //Specified Bank
else if (val == "S") { else if (val == 'S') {
this.flag4 = true; this.flag4 = true;
this.flag5 = false; this.flag5 = false;
this.flag6 = false; this.flag6 = false;
...@@ -386,30 +386,30 @@ export default { ...@@ -386,30 +386,30 @@ export default {
}, },
}, },
"model.lidgrp.rec.avbby": { 'model.lidgrp.rec.avbby': {
immediate: true, immediate: true,
handler(val, oldVal) { handler(val, oldVal) {
if (val == "D") { if (val == 'D') {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.flag3 = true; this.flag3 = true;
} }
if (val == "N") { if (val == 'N') {
this.flag1 = false; this.flag1 = false;
this.flag2 = false; this.flag2 = false;
this.flag3 = true; this.flag3 = true;
} }
if (val == "P") { if (val == 'P') {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
this.flag3 = true; this.flag3 = true;
} }
if (val == "M") { if (val == 'M') {
this.flag1 = true; this.flag1 = true;
this.flag2 = true; this.flag2 = true;
this.flag3 = false; this.flag3 = false;
} }
if (val == "A") { if (val == 'A') {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
this.flag3 = true; this.flag3 = true;
......
...@@ -160,11 +160,11 @@ ...@@ -160,11 +160,11 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
export default { export default {
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [event], mixins: [event],
data() { data() {
return { return {
...@@ -173,155 +173,155 @@ export default { ...@@ -173,155 +173,155 @@ export default {
}; };
}, },
watch: { watch: {
"model.litamep.lcrgodamep.modflg": { 'model.litamep.lcrgodamep.modflg': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if ( if (
this.model.litamep.lcrgodamep.modflg == "X" && this.model.litamep.lcrgodamep.modflg == 'X' &&
this.model.litamep.lcrgodamep.modmanflg == "" this.model.litamep.lcrgodamep.modmanflg == ''
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.lcrgodamep.usrblk = ""; this.model.litamep.lcrgodamep.usrblk = '';
} else if ( } else if (
this.model.litamep.lcrgodamep.modflg == "X" && this.model.litamep.lcrgodamep.modflg == 'X' &&
this.model.litamep.lcrgodamep.modmanflg == "X" this.model.litamep.lcrgodamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
} else if ( } else if (
this.model.litamep.lcrgodamep.modflg == "" && this.model.litamep.lcrgodamep.modflg == '' &&
this.model.litamep.lcrgodamep.modmanflg == "" this.model.litamep.lcrgodamep.modmanflg == ''
) { ) {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
} else if ( } else if (
this.model.litamep.lcrgodamep.modflg == "" && this.model.litamep.lcrgodamep.modflg == '' &&
this.model.litamep.lcrgodamep.modmanflg == "X" this.model.litamep.lcrgodamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.lcrgodamep.usrblk = ""; this.model.litamep.lcrgodamep.usrblk = '';
} }
}, },
}, },
"model.litamep.lcrgodamep.modmanflg": { 'model.litamep.lcrgodamep.modmanflg': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if ( if (
this.model.litamep.lcrgodamep.modflg == "X" && this.model.litamep.lcrgodamep.modflg == 'X' &&
this.model.litamep.lcrgodamep.modmanflg == "" this.model.litamep.lcrgodamep.modmanflg == ''
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.lcrgodamep.usrblk = ""; this.model.litamep.lcrgodamep.usrblk = '';
} else if ( } else if (
this.model.litamep.lcrgodamep.modflg == "X" && this.model.litamep.lcrgodamep.modflg == 'X' &&
this.model.litamep.lcrgodamep.modmanflg == "X" this.model.litamep.lcrgodamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
} else if ( } else if (
this.model.litamep.lcrgodamep.modflg == "" && this.model.litamep.lcrgodamep.modflg == '' &&
this.model.litamep.lcrgodamep.modmanflg == "" this.model.litamep.lcrgodamep.modmanflg == ''
) { ) {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
} else if ( } else if (
this.model.litamep.lcrgodamep.modflg == "" && this.model.litamep.lcrgodamep.modflg == '' &&
this.model.litamep.lcrgodamep.modmanflg == "X" this.model.litamep.lcrgodamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.lcrgodamep.usrblk = ""; this.model.litamep.lcrgodamep.usrblk = '';
} }
}, },
}, },
}, },
methods: { methods: {
open(val) { open(val) {
if (val === "" && !(this.model.lidgrp.blk.lcrgod == "")) { if (val === '' && !(this.model.lidgrp.blk.lcrgod == '')) {
this.$confirm( this.$confirm(
"是否确定要重置手动修改?", '是否确定要重置手动修改?',
"提示", '提示',
{ {
cancelButtonText: "撤销", cancelButtonText: '撤销',
confirmButtonText: "确定", confirmButtonText: '确定',
type: "warning", type: 'warning',
showClose: false, showClose: false,
} }
) )
.then(() => { .then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.lidgrp.blk.lcrgod = ""; this.model.lidgrp.blk.lcrgod = '';
this.$message({ this.$message({
type: "success", type: 'success',
message: "删除成功!", message: '删除成功!',
}); });
}) })
.catch(() => { .catch(() => {
//No的功能在这里写 //No的功能在这里写
this.model.litamep.lcrgodamep.modflg = "X"; this.model.litamep.lcrgodamep.modflg = 'X';
this.$message({ this.$message({
type: "info", type: 'info',
message: "已取消", message: '已取消',
}); });
}); });
} else if (val == "X" && this.model.litamep.lcrgodamep.modmanflg == "X") { } else if (val == 'X' && this.model.litamep.lcrgodamep.modmanflg == 'X') {
this.$confirm("请先重置内部修改", "提示", { this.$confirm('请先重置内部修改', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
showCancelButton: false, showCancelButton: false,
type: "warning", type: 'warning',
showClose: false, showClose: false,
}).then(() => { }).then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.litamep.lcrgodamep.modflg = ""; this.model.litamep.lcrgodamep.modflg = '';
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
}); });
} }
}, },
open1(val) { open1(val) {
if (val === "" && !(this.model.lidgrp.blk.lcrgod == "")) { if (val === '' && !(this.model.lidgrp.blk.lcrgod == '')) {
this.$confirm( this.$confirm(
"是否确定要重置手动修改?", '是否确定要重置手动修改?',
"提示", '提示',
{ {
cancelButtonText: "撤销", cancelButtonText: '撤销',
confirmButtonText: "确定", confirmButtonText: '确定',
type: "warning", type: 'warning',
showClose: false, showClose: false,
} }
) )
.then(() => { .then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.lidgrp.blk.lcrgod = ""; this.model.lidgrp.blk.lcrgod = '';
this.$message({ this.$message({
type: "success", type: 'success',
message: "删除成功!", message: '删除成功!',
}); });
}) })
.catch(() => { .catch(() => {
//No的功能在这里写 //No的功能在这里写
this.model.litamep.lcrgodamep.modmanflg = "X"; this.model.litamep.lcrgodamep.modmanflg = 'X';
this.$message({ this.$message({
type: "info", type: 'info',
message: "已取消", message: '已取消',
}); });
}); });
} else if ( } else if (
this.model.litamep.lcrgodamep.modflg == "X" && this.model.litamep.lcrgodamep.modflg == 'X' &&
this.model.litamep.lcrgodamep.modmanflg == "X" this.model.litamep.lcrgodamep.modmanflg == 'X'
) { ) {
this.$confirm("请先重置修改以替换", "提示", { this.$confirm('请先重置修改以替换', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "", cancelButtonText: '',
showCancelButton: false, showCancelButton: false,
type: "warning", type: 'warning',
showClose: false, showClose: false,
}).then(() => { }).then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.litamep.lcrgodamep.modmanflg = ""; this.model.litamep.lcrgodamep.modmanflg = '';
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
}); });
......
...@@ -125,11 +125,11 @@ ...@@ -125,11 +125,11 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
export default { export default {
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [event], mixins: [event],
data() { data() {
return { return {
...@@ -138,67 +138,67 @@ export default { ...@@ -138,67 +138,67 @@ export default {
}; };
}, },
watch: { watch: {
"model.litamep.lcrdocamep.modflg": { 'model.litamep.lcrdocamep.modflg': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if ( if (
this.model.litamep.lcrdocamep.modflg == "X" && this.model.litamep.lcrdocamep.modflg == 'X' &&
this.model.litamep.lcrdocamep.modmanflg == "" this.model.litamep.lcrdocamep.modmanflg == ''
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.lcrdocamep.usrblk = ""; this.model.litamep.lcrdocamep.usrblk = '';
} else if ( } else if (
this.model.litamep.lcrdocamep.modflg == "X" && this.model.litamep.lcrdocamep.modflg == 'X' &&
this.model.litamep.lcrdocamep.modmanflg == "X" this.model.litamep.lcrdocamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
} else if ( } else if (
this.model.litamep.lcrdocamep.modflg == "" && this.model.litamep.lcrdocamep.modflg == '' &&
this.model.litamep.lcrdocamep.modmanflg == "" this.model.litamep.lcrdocamep.modmanflg == ''
) { ) {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
} else if ( } else if (
this.model.litamep.lcrdocamep.modflg == "" && this.model.litamep.lcrdocamep.modflg == '' &&
this.model.litamep.lcrdocamep.modmanflg == "X" this.model.litamep.lcrdocamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.lcrdocamep.usrblk = ""; this.model.litamep.lcrdocamep.usrblk = '';
} }
}, },
}, },
"model.litamep.lcrdocamep.modmanflg": { 'model.litamep.lcrdocamep.modmanflg': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if ( if (
this.model.litamep.lcrdocamep.modflg == "X" && this.model.litamep.lcrdocamep.modflg == 'X' &&
this.model.litamep.lcrdocamep.modmanflg == "" this.model.litamep.lcrdocamep.modmanflg == ''
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.lcrdocamep.usrblk = ""; this.model.litamep.lcrdocamep.usrblk = '';
} else if ( } else if (
this.model.litamep.lcrdocamep.modflg == "X" && this.model.litamep.lcrdocamep.modflg == 'X' &&
this.model.litamep.lcrdocamep.modmanflg == "X" this.model.litamep.lcrdocamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
} else if ( } else if (
this.model.litamep.lcrdocamep.modflg == "" && this.model.litamep.lcrdocamep.modflg == '' &&
this.model.litamep.lcrdocamep.modmanflg == "" this.model.litamep.lcrdocamep.modmanflg == ''
) { ) {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
} else if ( } else if (
this.model.litamep.lcrdocamep.modflg == "" && this.model.litamep.lcrdocamep.modflg == '' &&
this.model.litamep.lcrdocamep.modmanflg == "X" this.model.litamep.lcrdocamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.lcrdocamep.usrblk = ""; this.model.litamep.lcrdocamep.usrblk = '';
} }
}, },
}, },
...@@ -206,88 +206,88 @@ export default { ...@@ -206,88 +206,88 @@ export default {
methods: { methods: {
...Event, ...Event,
open(val) { open(val) {
if (val === "" && !(this.model.lidgrp.blk.lcrdoc == "")) { if (val === '' && !(this.model.lidgrp.blk.lcrdoc == '')) {
this.$confirm( this.$confirm(
"是否确定要重置手动修改?", '是否确定要重置手动修改?',
"提示", '提示',
{ {
cancelButtonText: "撤销", cancelButtonText: '撤销',
confirmButtonText: "确定", confirmButtonText: '确定',
type: "warning", type: 'warning',
showClose: false, showClose: false,
} }
) )
.then(() => { .then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.lidgrp.blk.lcrdoc = ""; this.model.lidgrp.blk.lcrdoc = '';
this.$message({ this.$message({
type: "success", type: 'success',
message: "删除成功!", message: '删除成功!',
}); });
}) })
.catch(() => { .catch(() => {
//No的功能在这里写 //No的功能在这里写
this.model.litamep.lcrdocamep.modflg = "X"; this.model.litamep.lcrdocamep.modflg = 'X';
this.$message({ this.$message({
type: "info", type: 'info',
message: "已取消", message: '已取消',
}); });
}); });
} else if (val == "X" && this.model.litamep.lcrdocamep.modmanflg == "X") { } else if (val == 'X' && this.model.litamep.lcrdocamep.modmanflg == 'X') {
this.$confirm("请先重置内部修改", "提示", { this.$confirm('请先重置内部修改', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
showCancelButton: false, showCancelButton: false,
type: "warning", type: 'warning',
showClose: false, showClose: false,
}).then(() => { }).then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.litamep.lcrdocamep.modflg = ""; this.model.litamep.lcrdocamep.modflg = '';
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
}); });
} }
}, },
open1(val) { open1(val) {
if (val === "" && !(this.model.lidgrp.blk.lcrdoc == "")) { if (val === '' && !(this.model.lidgrp.blk.lcrdoc == '')) {
this.$confirm( this.$confirm(
"是否确定要重置手动修改?", '是否确定要重置手动修改?',
"提示", '提示',
{ {
cancelButtonText: "撤销", cancelButtonText: '撤销',
confirmButtonText: "确定", confirmButtonText: '确定',
type: "warning", type: 'warning',
showClose: false, showClose: false,
} }
) )
.then(() => { .then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.lidgrp.blk.lcrdoc = ""; this.model.lidgrp.blk.lcrdoc = '';
this.$message({ this.$message({
type: "success", type: 'success',
message: "删除成功!", message: '删除成功!',
}); });
}) })
.catch(() => { .catch(() => {
//No的功能在这里写 //No的功能在这里写
this.model.litamep.lcrdocamep.modmanflg = "X"; this.model.litamep.lcrdocamep.modmanflg = 'X';
this.$message({ this.$message({
type: "info", type: 'info',
message: "已取消", message: '已取消',
}); });
}); });
} else if ( } else if (
this.model.litamep.lcrdocamep.modflg == "X" && this.model.litamep.lcrdocamep.modflg == 'X' &&
this.model.litamep.lcrdocamep.modmanflg == "X" this.model.litamep.lcrdocamep.modmanflg == 'X'
) { ) {
this.$confirm("请先重置修改以替换", "提示", { this.$confirm('请先重置修改以替换', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "", cancelButtonText: '',
showCancelButton: false, showCancelButton: false,
type: "warning", type: 'warning',
showClose: false, showClose: false,
}).then(() => { }).then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.litamep.lcrdocamep.modmanflg = ""; this.model.litamep.lcrdocamep.modmanflg = '';
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
}); });
......
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
export default { export default {
inject: ['root'], inject: ['root'],
props:["model","codes"], props:['model','codes'],
mixins: [event], mixins: [event],
data(){ data(){
return { return {
......
...@@ -347,12 +347,12 @@ ...@@ -347,12 +347,12 @@
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
// import Event from "~/model/Ditopn/Event"; // import Event from '~/model/Ditopn/Event';
export default { export default {
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [event], mixins: [event],
data() { data() {
return { return {
...@@ -362,18 +362,18 @@ export default { ...@@ -362,18 +362,18 @@ export default {
}, },
methods: { methods: {
nonrevflg1Change() { nonrevflg1Change() {
if (this.model.liaall.limmod.limpts.nonrevflg1 == "1") { if (this.model.liaall.limmod.limpts.nonrevflg1 == '1') {
this.model.liaall.limmod.limpts.pfcod1 = ""; this.model.liaall.limmod.limpts.pfcod1 = '';
} }
}, },
nonrevflg2Change() { nonrevflg2Change() {
if (this.model.liaall.limmod.limpts.nonrevflg2 == "1") { if (this.model.liaall.limmod.limpts.nonrevflg2 == '1') {
this.model.liaall.limmod.limpts.pfcod2 = ""; this.model.liaall.limmod.limpts.pfcod2 = '';
} }
}, },
show(){ show(){
let len1 = this.model.liaall.limmod.tygrd["rows"].length||[]; let len1 = this.model.liaall.limmod.tygrd['rows'].length||[];
let len2 = this.model.liaall.limmod.dggrd["rows"].length||[]; let len2 = this.model.liaall.limmod.dggrd['rows'].length||[];
if(len1>0&&len2>0){ if(len1>0&&len2>0){
this.same = true; this.same = true;
......
...@@ -30,11 +30,11 @@ ...@@ -30,11 +30,11 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
export default { export default {
inject: ['root'], inject: ['root'],
props:["model","codes"], props:['model','codes'],
mixins: [event], mixins: [event],
data(){ data(){
return { return {
......
...@@ -41,37 +41,37 @@ ...@@ -41,37 +41,37 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
import Amep from "./Amep"; import Amep from './Amep';
import Ovwp1 from "./Ovwp1"; import Ovwp1 from './Ovwp1';
import Narp from "./Narp"; import Narp from './Narp';
import Detp from "./Detp"; import Detp from './Detp';
import Ptyp from "./Ptyp"; import Ptyp from './Ptyp';
import Dorpame from "./Dorpame"; import Dorpame from './Dorpame';
import Dogpame from "./Dogpame"; import Dogpame from './Dogpame';
import Adcpame from "./Adcpame"; import Adcpame from './Adcpame';
import Aamp from "./Aamp"; import Aamp from './Aamp';
import Spbpame from "./Spbpame.vue"; import Spbpame from './Spbpame.vue';
import Sprpame from "./Sprpame.vue"; import Sprpame from './Sprpame.vue';
import Inspame from "./Inspame"; import Inspame from './Inspame';
export default { export default {
components: { components: {
"m-amep": Amep, 'm-amep': Amep,
"m-ovwp1": Ovwp1, 'm-ovwp1': Ovwp1,
"m-narp": Narp, 'm-narp': Narp,
"m-detp": Detp, 'm-detp': Detp,
"m-ptyp": Ptyp, 'm-ptyp': Ptyp,
"m-dorpame": Dorpame, 'm-dorpame': Dorpame,
"m-dogpame": Dogpame, 'm-dogpame': Dogpame,
"m-adcpame": Adcpame, 'm-adcpame': Adcpame,
"m-aamp": Aamp, 'm-aamp': Aamp,
"m-spbpame": Spbpame, 'm-spbpame': Spbpame,
"m-sprpame": Sprpame, 'm-sprpame': Sprpame,
"m-inspame": Inspame, 'm-inspame': Inspame,
}, },
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [event], mixins: [event],
data() { data() {
return { return {
......
...@@ -332,11 +332,11 @@ ...@@ -332,11 +332,11 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
export default { export default {
inject: ['root'], inject: ['root'],
props:["model","codes"], props:['model','codes'],
mixins: [event], mixins: [event],
data(){ data(){
return { return {
......
...@@ -276,40 +276,40 @@ ...@@ -276,40 +276,40 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
export default { export default {
inject: ['root'], inject: ['root'],
props:["model","codes"], props:['model','codes'],
mixins: [event], mixins: [event],
data(){ data(){
return { return {
ptsaddg: { ptsaddg: {
columns: [ columns: [
{ {
title: "角色", title: '角色',
width: "120px", width: '120px',
dataIndex: "rol", dataIndex: 'rol',
show: "select", show: 'select',
}, },
{ {
title: "当事人", title: '当事人',
width: "180px", width: '180px',
dataIndex: "ptyextkey", dataIndex: 'ptyextkey',
show: "input", show: 'input',
}, },
{ {
title: "名称", title: '名称',
width: "250px", width: '250px',
dataIndex: "nam", dataIndex: 'nam',
}, },
{ {
title: "参考号", title: '参考号',
width: "250px", width: '250px',
dataIndex: "ref", dataIndex: 'ref',
}, },
], ],
urls: "litp.ptsaddp.ptsaddg", urls: 'litp.ptsaddp.ptsaddg',
}, },
} }
}, },
......
...@@ -127,11 +127,11 @@ ...@@ -127,11 +127,11 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
export default { export default {
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [event], mixins: [event],
data() { data() {
return { return {
...@@ -140,155 +140,155 @@ export default { ...@@ -140,155 +140,155 @@ export default {
}; };
}, },
watch: { watch: {
"model.litamep.spcbenamep.modflg": { 'model.litamep.spcbenamep.modflg': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if ( if (
this.model.litamep.spcbenamep.modflg == "X" && this.model.litamep.spcbenamep.modflg == 'X' &&
this.model.litamep.spcbenamep.modmanflg == "" this.model.litamep.spcbenamep.modmanflg == ''
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.spcbenamep.usrblk = ""; this.model.litamep.spcbenamep.usrblk = '';
} else if ( } else if (
this.model.litamep.spcbenamep.modflg == "X" && this.model.litamep.spcbenamep.modflg == 'X' &&
this.model.litamep.spcbenamep.modmanflg == "X" this.model.litamep.spcbenamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
} else if ( } else if (
this.model.litamep.spcbenamep.modflg == "" && this.model.litamep.spcbenamep.modflg == '' &&
this.model.litamep.spcbenamep.modmanflg == "" this.model.litamep.spcbenamep.modmanflg == ''
) { ) {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
} else if ( } else if (
this.model.litamep.spcbenamep.modflg == "" && this.model.litamep.spcbenamep.modflg == '' &&
this.model.litamep.spcbenamep.modmanflg == "X" this.model.litamep.spcbenamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.spcbenamep.usrblk = ""; this.model.litamep.spcbenamep.usrblk = '';
} }
}, },
}, },
"model.litamep.spcbenamep.modmanflg": { 'model.litamep.spcbenamep.modmanflg': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if ( if (
this.model.litamep.spcbenamep.modflg == "X" && this.model.litamep.spcbenamep.modflg == 'X' &&
this.model.litamep.spcbenamep.modmanflg == "" this.model.litamep.spcbenamep.modmanflg == ''
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.spcbenamep.usrblk = ""; this.model.litamep.spcbenamep.usrblk = '';
} else if ( } else if (
this.model.litamep.spcbenamep.modflg == "X" && this.model.litamep.spcbenamep.modflg == 'X' &&
this.model.litamep.spcbenamep.modmanflg == "X" this.model.litamep.spcbenamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
} else if ( } else if (
this.model.litamep.spcbenamep.modflg == "" && this.model.litamep.spcbenamep.modflg == '' &&
this.model.litamep.spcbenamep.modmanflg == "" this.model.litamep.spcbenamep.modmanflg == ''
) { ) {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
} else if ( } else if (
this.model.litamep.spcbenamep.modflg == "" && this.model.litamep.spcbenamep.modflg == '' &&
this.model.litamep.spcbenamep.modmanflg == "X" this.model.litamep.spcbenamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.spcbenamep.usrblk = ""; this.model.litamep.spcbenamep.usrblk = '';
} }
}, },
}, },
}, },
methods: { methods: {
open(val) { open(val) {
if (val === "" && !(this.model.lidgrp.blk.spcben == "")) { if (val === '' && !(this.model.lidgrp.blk.spcben == '')) {
this.$confirm( this.$confirm(
"是否确定要重置手动修改?", '是否确定要重置手动修改?',
"提示", '提示',
{ {
cancelButtonText: "撤销", cancelButtonText: '撤销',
confirmButtonText: "确定", confirmButtonText: '确定',
type: "warning", type: 'warning',
showClose: false, showClose: false,
} }
) )
.then(() => { .then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.lidgrp.blk.spcben = ""; this.model.lidgrp.blk.spcben = '';
this.$message({ this.$message({
type: "success", type: 'success',
message: "删除成功!", message: '删除成功!',
}); });
}) })
.catch(() => { .catch(() => {
//No的功能在这里写 //No的功能在这里写
this.model.litamep.spcbenamep.modflg = "X"; this.model.litamep.spcbenamep.modflg = 'X';
this.$message({ this.$message({
type: "info", type: 'info',
message: "已取消", message: '已取消',
}); });
}); });
} else if (val == "X" && this.model.litamep.spcbenamep.modmanflg == "X") { } else if (val == 'X' && this.model.litamep.spcbenamep.modmanflg == 'X') {
this.$confirm("请先重置内部修改", "提示", { this.$confirm('请先重置内部修改', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
showCancelButton: false, showCancelButton: false,
type: "warning", type: 'warning',
showClose: false, showClose: false,
}).then(() => { }).then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.litamep.spcbenamep.modflg = ""; this.model.litamep.spcbenamep.modflg = '';
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
}); });
} }
}, },
open1(val) { open1(val) {
if (val === "" && !(this.model.lidgrp.blk.spcben == "")) { if (val === '' && !(this.model.lidgrp.blk.spcben == '')) {
this.$confirm( this.$confirm(
"是否确定要重置手动修改?", '是否确定要重置手动修改?',
"提示", '提示',
{ {
cancelButtonText: "撤销", cancelButtonText: '撤销',
confirmButtonText: "确定", confirmButtonText: '确定',
type: "warning", type: 'warning',
showClose: false, showClose: false,
} }
) )
.then(() => { .then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.lidgrp.blk.spcben = ""; this.model.lidgrp.blk.spcben = '';
this.$message({ this.$message({
type: "success", type: 'success',
message: "删除成功!", message: '删除成功!',
}); });
}) })
.catch(() => { .catch(() => {
//No的功能在这里写 //No的功能在这里写
this.model.litamep.spcbenamep.modmanflg = "X"; this.model.litamep.spcbenamep.modmanflg = 'X';
this.$message({ this.$message({
type: "info", type: 'info',
message: "已取消", message: '已取消',
}); });
}); });
} else if ( } else if (
this.model.litamep.spcbenamep.modflg == "X" && this.model.litamep.spcbenamep.modflg == 'X' &&
this.model.litamep.spcbenamep.modmanflg == "X" this.model.litamep.spcbenamep.modmanflg == 'X'
) { ) {
this.$confirm("请先重置修改以替换", "提示", { this.$confirm('请先重置修改以替换', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "", cancelButtonText: '',
showCancelButton: false, showCancelButton: false,
type: "warning", type: 'warning',
showClose: false, showClose: false,
}).then(() => { }).then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.litamep.spcbenamep.modmanflg = ""; this.model.litamep.spcbenamep.modmanflg = '';
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
}); });
......
...@@ -127,11 +127,11 @@ ...@@ -127,11 +127,11 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
export default { export default {
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [event], mixins: [event],
data() { data() {
return { return {
...@@ -140,155 +140,155 @@ export default { ...@@ -140,155 +140,155 @@ export default {
}; };
}, },
watch: { watch: {
"model.litamep.spcrcbamep.modflg": { 'model.litamep.spcrcbamep.modflg': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if ( if (
this.model.litamep.spcrcbamep.modflg == "X" && this.model.litamep.spcrcbamep.modflg == 'X' &&
this.model.litamep.spcrcbamep.modmanflg == "" this.model.litamep.spcrcbamep.modmanflg == ''
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.spcrcbamep.usrblk = ""; this.model.litamep.spcrcbamep.usrblk = '';
} else if ( } else if (
this.model.litamep.spcrcbamep.modflg == "X" && this.model.litamep.spcrcbamep.modflg == 'X' &&
this.model.litamep.spcrcbamep.modmanflg == "X" this.model.litamep.spcrcbamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
} else if ( } else if (
this.model.litamep.spcrcbamep.modflg == "" && this.model.litamep.spcrcbamep.modflg == '' &&
this.model.litamep.spcrcbamep.modmanflg == "" this.model.litamep.spcrcbamep.modmanflg == ''
) { ) {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
} else if ( } else if (
this.model.litamep.spcrcbamep.modflg == "" && this.model.litamep.spcrcbamep.modflg == '' &&
this.model.litamep.spcrcbamep.modmanflg == "X" this.model.litamep.spcrcbamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.spcrcbamep.usrblk = ""; this.model.litamep.spcrcbamep.usrblk = '';
} }
}, },
}, },
"model.litamep.spcrcbamep.modmanflg": { 'model.litamep.spcrcbamep.modmanflg': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if ( if (
this.model.litamep.spcrcbamep.modflg == "X" && this.model.litamep.spcrcbamep.modflg == 'X' &&
this.model.litamep.spcrcbamep.modmanflg == "" this.model.litamep.spcrcbamep.modmanflg == ''
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.spcrcbamep.usrblk = ""; this.model.litamep.spcrcbamep.usrblk = '';
} else if ( } else if (
this.model.litamep.spcrcbamep.modflg == "X" && this.model.litamep.spcrcbamep.modflg == 'X' &&
this.model.litamep.spcrcbamep.modmanflg == "X" this.model.litamep.spcrcbamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
} else if ( } else if (
this.model.litamep.spcrcbamep.modflg == "" && this.model.litamep.spcrcbamep.modflg == '' &&
this.model.litamep.spcrcbamep.modmanflg == "" this.model.litamep.spcrcbamep.modmanflg == ''
) { ) {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
} else if ( } else if (
this.model.litamep.spcrcbamep.modflg == "" && this.model.litamep.spcrcbamep.modflg == '' &&
this.model.litamep.spcrcbamep.modmanflg == "X" this.model.litamep.spcrcbamep.modmanflg == 'X'
) { ) {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.model.litamep.spcrcbamep.usrblk = ""; this.model.litamep.spcrcbamep.usrblk = '';
} }
}, },
}, },
}, },
methods: { methods: {
open(val) { open(val) {
if (val === "" && !(this.model.lidgrp.blk.spcrcb == "")) { if (val === '' && !(this.model.lidgrp.blk.spcrcb == '')) {
this.$confirm( this.$confirm(
"是否确定要重置手动修改?", '是否确定要重置手动修改?',
"提示", '提示',
{ {
cancelButtonText: "撤销", cancelButtonText: '撤销',
confirmButtonText: "确定", confirmButtonText: '确定',
type: "warning", type: 'warning',
showClose: false, showClose: false,
} }
) )
.then(() => { .then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.lidgrp.blk.spcrcb = ""; this.model.lidgrp.blk.spcrcb = '';
this.$message({ this.$message({
type: "success", type: 'success',
message: "删除成功!", message: '删除成功!',
}); });
}) })
.catch(() => { .catch(() => {
//No的功能在这里写 //No的功能在这里写
this.model.litamep.spcrcbamep.modflg = "X"; this.model.litamep.spcrcbamep.modflg = 'X';
this.$message({ this.$message({
type: "info", type: 'info',
message: "已取消", message: '已取消',
}); });
}); });
} else if (val == "X" && this.model.litamep.spcrcbamep.modmanflg == "X") { } else if (val == 'X' && this.model.litamep.spcrcbamep.modmanflg == 'X') {
this.$confirm("请先重置内部修改", "提示", { this.$confirm('请先重置内部修改', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
showCancelButton: false, showCancelButton: false,
type: "warning", type: 'warning',
showClose: false, showClose: false,
}).then(() => { }).then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.litamep.spcrcbamep.modflg = ""; this.model.litamep.spcrcbamep.modflg = '';
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
}); });
} }
}, },
open1(val) { open1(val) {
if (val === "" && !(this.model.lidgrp.blk.spcrcb == "")) { if (val === '' && !(this.model.lidgrp.blk.spcrcb == '')) {
this.$confirm( this.$confirm(
"是否确定要重置手动修改?", '是否确定要重置手动修改?',
"提示", '提示',
{ {
cancelButtonText: "撤销", cancelButtonText: '撤销',
confirmButtonText: "确定", confirmButtonText: '确定',
type: "warning", type: 'warning',
showClose: false, showClose: false,
} }
) )
.then(() => { .then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.lidgrp.blk.spcrcb = ""; this.model.lidgrp.blk.spcrcb = '';
this.$message({ this.$message({
type: "success", type: 'success',
message: "删除成功!", message: '删除成功!',
}); });
}) })
.catch(() => { .catch(() => {
//No的功能在这里写 //No的功能在这里写
this.model.litamep.spcrcbamep.modmanflg = "X"; this.model.litamep.spcrcbamep.modmanflg = 'X';
this.$message({ this.$message({
type: "info", type: 'info',
message: "已取消", message: '已取消',
}); });
}); });
} else if ( } else if (
this.model.litamep.spcrcbamep.modflg == "X" && this.model.litamep.spcrcbamep.modflg == 'X' &&
this.model.litamep.spcrcbamep.modmanflg == "X" this.model.litamep.spcrcbamep.modmanflg == 'X'
) { ) {
this.$confirm("请先重置修改以替换", "提示", { this.$confirm('请先重置修改以替换', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "", cancelButtonText: '',
showCancelButton: false, showCancelButton: false,
type: "warning", type: 'warning',
showClose: false, showClose: false,
}).then(() => { }).then(() => {
//yes的执行在这里写 //yes的执行在这里写
this.model.litamep.spcrcbamep.modmanflg = ""; this.model.litamep.spcrcbamep.modmanflg = '';
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
}); });
......
...@@ -117,55 +117,55 @@ ...@@ -117,55 +117,55 @@
</div> </div>
</template> </template>
<script> <script>
import CodeTable from "~/config/CodeTable"; import CodeTable from '~/config/CodeTable';
import formRules from '../model/check'; import formRules from '../model/check';
import operationFunc from "~/mixin/operationFunc"; import operationFunc from '~/mixin/operationFunc';
import Litame from "../model"; import Litame from '../model';
import event from "../event"; import event from '../event';
import Ovwp from "./Ovwp"; import Ovwp from './Ovwp';
import Ovwp1 from "./Ovwp1"; import Ovwp1 from './Ovwp1';
import Aamp from "./Aamp"; import Aamp from './Aamp';
import Narp from "./Narp"; import Narp from './Narp';
import Detp from "./Detp"; import Detp from './Detp';
import Ptyp from "./Ptyp"; import Ptyp from './Ptyp';
import Inspame from "./Inspame"; import Inspame from './Inspame';
import Addbcb from "./Addbcb"; import Addbcb from './Addbcb';
import Dorpame from "./Dorpame"; import Dorpame from './Dorpame';
import Dogpame from "./Dogpame"; import Dogpame from './Dogpame';
import Adcpame from "./Adcpame"; import Adcpame from './Adcpame';
import Engp from "~/components/business/engp/views"; import Engp from '~/components/business/engp/views';
import Ccvpan from "~/components/business/ccvpan/views"; import Ccvpan from '~/components/business/ccvpan/views';
import Coninfp from "~/components/business/coninfp/views"; import Coninfp from '~/components/business/coninfp/views';
import Docpan from "~/components/business/docpan/views"; import Docpan from '~/components/business/docpan/views';
import Doctre from "~/components/business/doctre/views"; import Doctre from '~/components/business/doctre/views';
import Setmod from "~/components/business/setmod/views"; import Setmod from '~/components/business/setmod/views';
import Glentry from "~/components/business/glentry/views"; import Glentry from '~/components/business/glentry/views';
// import Limitbody from "./Limitbody"; // import Limitbody from './Limitbody';
import Limitbody from "~/components/business/limitbody/views"; import Limitbody from '~/components/business/limitbody/views';
export default { export default {
name: "Litame", name: 'Litame',
components: { components: {
"m-ovwp": Ovwp, 'm-ovwp': Ovwp,
"m-ovwp1": Ovwp1, 'm-ovwp1': Ovwp1,
"m-aamp": Aamp, 'm-aamp': Aamp,
"m-narp": Narp, 'm-narp': Narp,
"m-detp": Detp, 'm-detp': Detp,
"m-ptyp": Ptyp, 'm-ptyp': Ptyp,
"m-inspame": Inspame, 'm-inspame': Inspame,
"m-engp": Engp, 'm-engp': Engp,
"m-ccvpan": Ccvpan, 'm-ccvpan': Ccvpan,
"m-addbcb": Addbcb, 'm-addbcb': Addbcb,
"m-coninfp": Coninfp, 'm-coninfp': Coninfp,
"m-docpan": Docpan, 'm-docpan': Docpan,
"m-doctre": Doctre, 'm-doctre': Doctre,
"m-dorpame": Dorpame, 'm-dorpame': Dorpame,
"m-dogpame": Dogpame, 'm-dogpame': Dogpame,
"m-adcpame": Adcpame, 'm-adcpame': Adcpame,
"m-limitbody": Limitbody, 'm-limitbody': Limitbody,
"m-setmod": Setmod, 'm-setmod': Setmod,
"m-glentry": Glentry, 'm-glentry': Glentry,
}, },
provide() { provide() {
return { return {
...@@ -176,12 +176,12 @@ export default { ...@@ -176,12 +176,12 @@ export default {
computed: {}, computed: {},
data() { data() {
return { return {
tabVal: "ovwp", tabVal: 'ovwp',
trnName: "litame", trnName: 'litame',
model: new Litame().data, model: new Litame().data,
rules: formRules, rules: formRules,
codes: { ...CodeTable }, codes: { ...CodeTable },
activeNames: ["engp"], activeNames: ['engp'],
promptData: { promptData: {
title: 'Select a Party', title: 'Select a Party',
columns: [ columns: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment