mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
9ab27a8500
commit
e1f448bbde
@ -184,7 +184,7 @@ var saveAs = saveAs || (function(view) {
|
|||||||
offlinePayFeeSwitch: '1',
|
offlinePayFeeSwitch: '1',
|
||||||
payerObjNames: [],
|
payerObjNames: [],
|
||||||
payObjs: [],
|
payObjs: [],
|
||||||
printUrl:'/print.html#/pages/property/printPayFee',
|
printUrl: '/print.html#/pages/property/printPayFee',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -214,7 +214,7 @@ var saveAs = saveAs || (function(view) {
|
|||||||
},
|
},
|
||||||
_initEvent: function() {},
|
_initEvent: function() {},
|
||||||
methods: {
|
methods: {
|
||||||
_listFeePrintPages: function (_page, _rows) {
|
_listFeePrintPages: function(_page, _rows) {
|
||||||
var param = {
|
var param = {
|
||||||
params: {
|
params: {
|
||||||
page: 1,
|
page: 1,
|
||||||
@ -226,14 +226,14 @@ var saveAs = saveAs || (function(view) {
|
|||||||
//发送get请求
|
//发送get请求
|
||||||
vc.http.apiGet('/feePrintPage.listFeePrintPage',
|
vc.http.apiGet('/feePrintPage.listFeePrintPage',
|
||||||
param,
|
param,
|
||||||
function (json, res) {
|
function(json, res) {
|
||||||
var _feePrintPageManageInfo = JSON.parse(json);
|
var _feePrintPageManageInfo = JSON.parse(json);
|
||||||
let feePrintPages = _feePrintPageManageInfo.data;
|
let feePrintPages = _feePrintPageManageInfo.data;
|
||||||
if (feePrintPages && feePrintPages.length > 0) {
|
if (feePrintPages && feePrintPages.length > 0) {
|
||||||
$that.batchPayFeeOrderInfo.printUrl = feePrintPages[0].url;
|
$that.batchPayFeeOrderInfo.printUrl = feePrintPages[0].url;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
function (errInfo, error) {
|
function(errInfo, error) {
|
||||||
console.log('请求失败处理');
|
console.log('请求失败处理');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -432,7 +432,7 @@ var saveAs = saveAs || (function(view) {
|
|||||||
},
|
},
|
||||||
_printAndBack: function() {
|
_printAndBack: function() {
|
||||||
$('#payFeeResult').modal("hide");
|
$('#payFeeResult').modal("hide");
|
||||||
window.open($that.payFeeOrderInfo.printUrl+"?detailIds=" + $that.batchPayFeeOrderInfo.detailIds)
|
window.open($that.batchPayFeeOrderInfo.printUrl + "?detailIds=" + $that.batchPayFeeOrderInfo.detailIds)
|
||||||
},
|
},
|
||||||
_goBack: function() {
|
_goBack: function() {
|
||||||
vc.goBack();
|
vc.goBack();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user