优化代码

This commit is contained in:
java110 2022-12-14 22:05:55 +08:00
parent 9ab27a8500
commit e1f448bbde

View File

@ -184,7 +184,7 @@ var saveAs = saveAs || (function(view) {
offlinePayFeeSwitch: '1',
payerObjNames: [],
payObjs: [],
printUrl:'/print.html#/pages/property/printPayFee',
printUrl: '/print.html#/pages/property/printPayFee',
}
},
watch: {
@ -214,7 +214,7 @@ var saveAs = saveAs || (function(view) {
},
_initEvent: function() {},
methods: {
_listFeePrintPages: function (_page, _rows) {
_listFeePrintPages: function(_page, _rows) {
var param = {
params: {
page: 1,
@ -226,14 +226,14 @@ var saveAs = saveAs || (function(view) {
//发送get请求
vc.http.apiGet('/feePrintPage.listFeePrintPage',
param,
function (json, res) {
function(json, res) {
var _feePrintPageManageInfo = JSON.parse(json);
let feePrintPages = _feePrintPageManageInfo.data;
if (feePrintPages && feePrintPages.length > 0) {
$that.batchPayFeeOrderInfo.printUrl = feePrintPages[0].url;
}
},
function (errInfo, error) {
function(errInfo, error) {
console.log('请求失败处理');
}
);
@ -432,7 +432,7 @@ var saveAs = saveAs || (function(view) {
},
_printAndBack: function() {
$('#payFeeResult').modal("hide");
window.open($that.payFeeOrderInfo.printUrl+"?detailIds=" + $that.batchPayFeeOrderInfo.detailIds)
window.open($that.batchPayFeeOrderInfo.printUrl + "?detailIds=" + $that.batchPayFeeOrderInfo.detailIds)
},
_goBack: function() {
vc.goBack();