import Api from '~/service/Api'; import commonFunctions from '~/mixin/commonFunctions.js'; import Utils from "~/utils"; import Pts from '~/components/business/commonModel/Pts'; export default { mixins: [commonFunctions], methods: { sfzsqywChange(){ if(this.model.limchg.lim.sfzsqyw!='1'){ this.model.limchg.lim.mgskhbh=""; } }, sffgsywChange(){ if(this.model.limchg.lim.sffgsyw!='1'){ this.model.limchg.lim.zgskhbh=""; } }, othmflgChange(){ if(this.model.limchg.lim.othmflg!='1'){ this.model.limchg.lim.othmgs=""; } }, othextkeyChange(){ console.log("~~",this.model.limchg.othextkey) if(this.model.limchg.othextkey ==""||this.model.limchg.othextkey ==null){ this.model.limchg.lim.othmflg="0"; this.model.limchg.lim.othmgs=""; console.log("--",this.model.limchg.lim.othmflg) } }, othfflgChange(){ if(this.model.limchg.lim.othfflg!='1'){ this.model.limchg.lim.othzgs=""; } }, async othSearch(){ let data = { extkey: this.model.limchg.othextkey, } const loading = this.loading(); let res = await Api.post('/business/gitzsqSearch/othsearch', data); loading.close(); if (res.respCode === SUCCESS) { this.model.limchg.lim.othmgs = res.data; } }, async wrkSearch(){ let data = { extkey: this.model.limchg.ptyextkey, } const loading = this.loading(); let res = await Api.post('/business/gitzsqSearch/othsearch', data); loading.close(); if (res.respCode === SUCCESS) { this.model.limchg.lim.mgskhbh = res.data; } } } }