Commit 0ae2a68d by huxi

litdck 调整代码格式

parent 6cad3bd1
...@@ -905,4 +905,4 @@ export default { ...@@ -905,4 +905,4 @@ export default {
'trnmod.swiadd.purpos': null, 'trnmod.swiadd.purpos': null,
'lidgrp.con.namelc': null, 'lidgrp.con.namelc': null,
'liaall.liaccv.relcshpct': null, 'liaall.liaccv.relcshpct': null,
} }
...@@ -156,14 +156,14 @@ ...@@ -156,14 +156,14 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
import Docpre from "~/views/Public/Docpre"; import Docpre from '~/views/Public/Docpre';
export default { export default {
components: { components: {
"c-docpre": Docpre, 'c-docpre': Docpre,
}, },
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [event], mixins: [event],
data() { data() {
return { return {
...@@ -171,16 +171,16 @@ export default { ...@@ -171,16 +171,16 @@ export default {
}; };
}, },
watch: { watch: {
"model.brdgrp.blk.docdisflg": { 'model.brdgrp.blk.docdisflg': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if (this.model.brdgrp.blk.docdisflg != "X") { if (this.model.brdgrp.blk.docdisflg != 'X') {
this.typ1 = true; this.typ1 = true;
this.model.brdgrp.blk.docdis = ""; this.model.brdgrp.blk.docdis = '';
this.changeFormItemRequired("brdgrp.blk.docdis", false); this.changeFormItemRequired('brdgrp.blk.docdis', false);
} else { } else {
this.typ1 = false; this.typ1 = false;
this.changeFormItemRequired("brdgrp.blk.docdis", true); this.changeFormItemRequired('brdgrp.blk.docdis', true);
} }
}, },
}, },
......
...@@ -349,11 +349,11 @@ ...@@ -349,11 +349,11 @@
</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 {
...@@ -363,18 +363,18 @@ export default { ...@@ -363,18 +363,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;
......
...@@ -561,11 +561,11 @@ ...@@ -561,11 +561,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 {
...@@ -575,30 +575,30 @@ export default { ...@@ -575,30 +575,30 @@ export default {
}; };
}, },
watch: { watch: {
"model.outlen.szflg": { 'model.outlen.szflg': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if (this.model.outlen.szflg == "1") { if (this.model.outlen.szflg == '1') {
this.flag1 = false; this.flag1 = false;
} else { } else {
this.flag1 = true; this.flag1 = true;
} }
}, },
}, },
"model.brdgrp.rec.matdat": { 'model.brdgrp.rec.matdat': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if (this.model.brdgrp.rec.matdat != "") { if (this.model.brdgrp.rec.matdat != '') {
this.flag2 = true; this.flag2 = true;
} else { } else {
this.flag2 = false; this.flag2 = false;
} }
}, },
}, },
"model.brdgrp.rec.docflg": { 'model.brdgrp.rec.docflg': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if (this.model.brdgrp.rec.docflg == "P") { if (this.model.brdgrp.rec.docflg == 'P') {
this.flag3 = true; this.flag3 = true;
this.flag2 = true; this.flag2 = true;
} else { } else {
...@@ -607,10 +607,10 @@ export default { ...@@ -607,10 +607,10 @@ export default {
} }
}, },
}, },
"model.brdgrp.blk.matper": { 'model.brdgrp.blk.matper': {
immediate: true, immediate: true,
handler(val, oldval) { handler(val, oldval) {
if (this.model.brdgrp.blk.matper != "") { if (this.model.brdgrp.blk.matper != '') {
this.flag3 = true; this.flag3 = true;
} else { } else {
this.flag3 = false; this.flag3 = false;
...@@ -621,10 +621,10 @@ export default { ...@@ -621,10 +621,10 @@ export default {
methods: {}, methods: {},
created: function () {}, created: function () {},
dscinsflgChang() { dscinsflgChang() {
if (this.model.brdgrp.rec.dscinsflg === "X") { if (this.model.brdgrp.rec.dscinsflg === 'X') {
this.model.brdgrp.rec.docsta = "H"; this.model.brdgrp.rec.docsta = 'H';
} else { } else {
this.model.brdgrp.rec.docsta = "G"; this.model.brdgrp.rec.docsta = 'G';
} }
}, },
}; };
......
...@@ -14,23 +14,23 @@ ...@@ -14,23 +14,23 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from '../event';
import Litdckp from "./Litdckp"; import Litdckp from './Litdckp';
import Docpre from "./Docpre"; import Docpre from './Docpre';
import Srmp from "./Srmp"; import Srmp from './Srmp';
export default { export default {
components:{ components:{
"m-litdckp": Litdckp, 'm-litdckp': Litdckp,
"m-docpre": Docpre, 'm-docpre': Docpre,
"m-srmp": Srmp, 'm-srmp': Srmp,
}, },
inject: ["root"], inject: ['root'],
props: ["model", "codes"], props: ['model', 'codes'],
mixins: [event], mixins: [event],
data() { data() {
return { return {
activeNames: ["litdckp"], activeNames: ['litdckp'],
}; };
}, },
methods: {}, methods: {},
......
...@@ -38,12 +38,12 @@ ...@@ -38,12 +38,12 @@
</div> </div>
</template> </template>
<script> <script>
import event from "../event" import event from '../event'
import commonProcess from "~/mixin/commonProcess"; import commonProcess from '~/mixin/commonProcess';
export default { export default {
inject: ['root'], inject: ['root'],
props:["model","codes"], props:['model','codes'],
mixins: [commonProcess,event], mixins: [commonProcess,event],
data(){ data(){
return { return {
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
} }
}, },
watch:{ watch:{
"model.brdgrp.srm.djutyp":{ 'model.brdgrp.srm.djutyp':{
immediate:true, immediate:true,
handler(val,oldval){ handler(val,oldval){
if(this.model.brdgrp.srm.djutyp == 'D'){ if(this.model.brdgrp.srm.djutyp == 'D'){
......
...@@ -108,48 +108,48 @@ ...@@ -108,48 +108,48 @@
</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 Ovwp from "./Ovwp"; import Ovwp from './Ovwp';
import Litdck from "../model"; import Litdck from '../model';
import event from "../event"; import event from '../event';
import Litdckp from "./Litdckp"; import Litdckp from './Litdckp';
import Docpre from "./Docpre"; import Docpre from './Docpre';
// import Engp from "./Engp" // import Engp from './Engp'
// import Setpan from "./Setpan" // import Setpan from './Setpan'
// import Coninfp from "./Coninfp" // import Coninfp from './Coninfp'
// import Docpan from "./Docpan" // import Docpan from './Docpan'
// import Doctre from "./Doctre" // import Doctre from './Doctre'
// import Limitbody from "./Limitbody"; // import Limitbody from './Limitbody';
import Srmp from "./Srmp"; import Srmp from './Srmp';
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: "Litdck", name: 'Litdck',
components: { components: {
"m-ovwp": Ovwp, 'm-ovwp': Ovwp,
"m-litdckp": Litdckp, 'm-litdckp': Litdckp,
"m-docpre": Docpre, 'm-docpre': Docpre,
"m-engp": Engp, 'm-engp': Engp,
"m-ccvpan": Ccvpan, 'm-ccvpan': Ccvpan,
"m-coninfp": Coninfp, 'm-coninfp': Coninfp,
"m-docpan": Docpan, 'm-docpan': Docpan,
"m-doctre": Doctre, 'm-doctre': Doctre,
"m-limitbody": Limitbody, 'm-limitbody': Limitbody,
"m-setmod": Setmod, 'm-setmod': Setmod,
"m-glentry": Glentry, 'm-glentry': Glentry,
"m-srmp": Srmp, 'm-srmp': Srmp,
}, },
provide() { provide() {
return { return {
...@@ -159,12 +159,12 @@ export default { ...@@ -159,12 +159,12 @@ export default {
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理 mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "ovwp", tabVal: 'ovwp',
trnName: "litdck", trnName: 'litdck',
model: new Litdck().data, model: new Litdck().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