mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化开票功能
This commit is contained in:
parent
0ba0f3e2a5
commit
634c2398e5
@ -141,15 +141,22 @@
|
|||||||
<vc:i18n name='审核'></vc:i18n>
|
<vc:i18n name='审核'></vc:i18n>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group" v-if="invoiceApply.state == 'U' || invoiceApply.state == 'G' || invoiceApply.state == 'C'">
|
<div class="btn-group" v-if="vc.hasPlugin('invoice') && invoiceApply.state != 'W'">
|
||||||
<button class="btn-white btn btn-xs" v-on:click="_openUploadInvoicePhoto(invoiceApply)">
|
<button class="btn-white btn btn-xs" v-on:click="_toOpenInvoicePlugin(invoiceApply)">
|
||||||
{{invoiceApply.state == 'U'?'上传发票':'重新上传'}}
|
开票
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group" v-if="invoiceApply.state == 'U' || invoiceApply.state == 'G' || invoiceApply.state == 'C'">
|
<div v-else>
|
||||||
<button class="btn-white btn btn-xs" v-on:click="_openUserGetInvoice(invoiceApply)">
|
<div class="btn-group" v-if="invoiceApply.state == 'U' || invoiceApply.state == 'G' || invoiceApply.state == 'C'">
|
||||||
{{invoiceApply.state == 'G'?'核销':'登记'}}
|
<button class="btn-white btn btn-xs" v-on:click="_openUploadInvoicePhoto(invoiceApply)">
|
||||||
</button>
|
{{invoiceApply.state == 'U'?'上传发票':'重新上传'}}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="btn-group" v-if="invoiceApply.state == 'U' || invoiceApply.state == 'G' || invoiceApply.state == 'C'">
|
||||||
|
<button class="btn-white btn btn-xs" v-on:click="_openUserGetInvoice(invoiceApply)">
|
||||||
|
{{invoiceApply.state == 'G'?'核销':'登记'}}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn-white btn btn-xs" v-on:click="_openDeleteInvoiceApplyModel(invoiceApply)">
|
<button class="btn-white btn btn-xs" v-on:click="_openDeleteInvoiceApplyModel(invoiceApply)">
|
||||||
|
|||||||
@ -136,6 +136,9 @@
|
|||||||
},
|
},
|
||||||
_openUserGetInvoice:function(_apply){
|
_openUserGetInvoice:function(_apply){
|
||||||
vc.emit('wirteInvoiceEvent', 'openWirteInvoiceModal',_apply);
|
vc.emit('wirteInvoiceEvent', 'openWirteInvoiceModal',_apply);
|
||||||
|
},
|
||||||
|
_toOpenInvoicePlugin:function(_apply){
|
||||||
|
vc.jumpToPlugin('/#/pages/index/plugin?pluginType=invoice&orderNo='+_apply.applyId+"&staffName="+vc.getData('/nav/getUserInfo').name+"&communityId="+vc.getCurrentCommunity().communityId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1344,6 +1344,7 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
//跳转至插件
|
//跳转至插件
|
||||||
vcFramework.jumpToPlugin = function (url) {
|
vcFramework.jumpToPlugin = function (url) {
|
||||||
let param = {
|
let param = {
|
||||||
@ -1370,6 +1371,22 @@
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vcFramework.hasPlugin = function (_pluginType) {
|
||||||
|
let _sysInfo = vc.getData('java110SystemInfo');
|
||||||
|
if(!_sysInfo || !_sysInfo.hasOwnProperty("plugins")){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
let _plugins = _sysInfo.plugins;
|
||||||
|
let _hasPlugin = false;
|
||||||
|
_plugins.forEach(_p=>{
|
||||||
|
if(_pluginType == p.pluginType){
|
||||||
|
_hasPlugin = true;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return _hasPlugin;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
refreshVcFramework = function () {
|
refreshVcFramework = function () {
|
||||||
$that.$destroy();
|
$that.$destroy();
|
||||||
let _vmOptions = {
|
let _vmOptions = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user