diff --git a/app.js b/app.js
index ad0799aff..11d945a37 100644
--- a/app.js
+++ b/app.js
@@ -36,14 +36,14 @@ let opts = {
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
- //app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
- //app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
+ app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
+ app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
//app.use('/callComponent',proxy('http://127.0.0.1:8012',opts));
//app.use('/app',proxy('http://127.0.0.1:8012',opts));
-app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
-app.use('/app',proxy('http://192.168.1.16:8012',opts));
+//app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
+//app.use('/app',proxy('http://192.168.1.16:8012',opts));
//app.listen(3000);
app.use(express.json());
diff --git a/public/components/property/payFeeDiscount/payFeeDiscount.html b/public/components/property/payFeeDiscount/payFeeDiscount.html
index fb7dc584c..bc3659ba6 100644
--- a/public/components/property/payFeeDiscount/payFeeDiscount.html
+++ b/public/components/property/payFeeDiscount/payFeeDiscount.html
@@ -1,5 +1,5 @@
-
+
@@ -16,7 +16,9 @@
|
-
+
|
折扣类型 |
折扣名称 |
@@ -27,7 +29,9 @@
|
-
+
|
{{feeDiscount.discountType == '1001'?'优惠':'违约'}} |
{{feeDiscount.discountName}} |
diff --git a/public/components/property/payFeeDiscount/payFeeDiscount.js b/public/components/property/payFeeDiscount/payFeeDiscount.js
index a08a74ff0..c69acf8a7 100644
--- a/public/components/property/payFeeDiscount/payFeeDiscount.js
+++ b/public/components/property/payFeeDiscount/payFeeDiscount.js
@@ -35,6 +35,7 @@
},
_initEvent: function () {
vc.on('payFeeDiscount', 'computeFeeDiscount', function (_param) {
+ $that.payFeeDiscountInfo.selectDiscountIds = [];
vc.copyObject(_param, $that.payFeeDiscountInfo);
if ($that.payFeeDiscountInfo.cycles < 0) {
return;
@@ -90,7 +91,7 @@
let _selectDiscount = [];
$that.payFeeDiscountInfo.selectDiscountIds.forEach(item => {
$that.payFeeDiscountInfo.feeDiscounts.forEach(disItem => {
- if (item == disItem.discountId) {
+ if (item == disItem.discountId && disItem.discountPrice > 0) {
_totalDiscountMoney += parseFloat(disItem.discountPrice);
_selectDiscount.push(disItem);
}
diff --git a/public/components/property/viewFeeDetailDiscount/viewFeeDetailDiscount.html b/public/components/property/viewFeeDetailDiscount/viewFeeDetailDiscount.html
new file mode 100644
index 000000000..b50423224
--- /dev/null
+++ b/public/components/property/viewFeeDetailDiscount/viewFeeDetailDiscount.html
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ | 折扣名称 |
+ 折扣类型 |
+ 折扣规则 |
+ 折扣金额 |
+
+
+
+
+ | {{discount.discountName}} |
+ {{discount.discountType == '1001'?'优惠':'违约'}} |
+
+
+ {{item.specName}}:{{item.specValue}}
+ |
+ {{discount.discountPrice}} |
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/components/property/viewFeeDetailDiscount/viewFeeDetailDiscount.js b/public/components/property/viewFeeDetailDiscount/viewFeeDetailDiscount.js
new file mode 100644
index 000000000..75023e53f
--- /dev/null
+++ b/public/components/property/viewFeeDetailDiscount/viewFeeDetailDiscount.js
@@ -0,0 +1,42 @@
+(function (vc) {
+ vc.extends({
+ data: {
+ viewFeeDetailDiscountInfo: {
+ feeDetailDiscounts: []
+ }
+ },
+ _initMethod: function () {
+ },
+ _initEvent: function () {
+ vc.on('viewFeeDetailDiscount', 'openModel', function (_param) {
+ $('#viewFeeDetailDiscountModel').modal('show');
+ $that.viewFeeDetailDiscountInfo.feeDetailDiscounts = [];
+ vc.component._loadAllFeeDetailDiscountInfo(_param);
+ });
+ },
+ methods: {
+ _loadAllFeeDetailDiscountInfo: function (_param) {
+ var param = {
+ params: {
+ page: 1,
+ row: 30,
+ communityId: vc.getCurrentCommunity().communityId,
+ detailId: _param.detailId
+ }
+ };
+
+ //发送get请求
+ vc.http.apiGet('/feeDiscount/queryFeeDetailDiscount',
+ param,
+ function (json) {
+ var _feeDetailDiscountInfo = JSON.parse(json);
+ $that.viewFeeDetailDiscountInfo.feeDetailDiscounts = _feeDetailDiscountInfo.data;
+ }, function () {
+ console.log('请求失败处理');
+ }
+ );
+ }
+ }
+
+ });
+})(window.vc);
diff --git a/public/pages/property/payFeeOrder/payFeeOrder.js b/public/pages/property/payFeeOrder/payFeeOrder.js
index 23102b68e..5c1a09f5f 100644
--- a/public/pages/property/payFeeOrder/payFeeOrder.js
+++ b/public/pages/property/payFeeOrder/payFeeOrder.js
@@ -42,9 +42,6 @@
$that.payFeeOrderInfo.builtUpArea = vc.getParam('builtUpArea');
$that.payFeeOrderInfo.squarePrice = vc.getParam('squarePrice');
$that.payFeeOrderInfo.additionalAmount = vc.getParam('additionalAmount');
-
-
-
$that.payFeeOrderInfo.paymentCycles = [];
for (let _index = 1; _index < 7; _index++) {
$that.payFeeOrderInfo.paymentCycles.push(_index * vc.getParam('paymentCycle'))
diff --git a/public/pages/property/propertyFee/propertyFee.html b/public/pages/property/propertyFee/propertyFee.html
index 19e0da201..823076136 100644
--- a/public/pages/property/propertyFee/propertyFee.html
+++ b/public/pages/property/propertyFee/propertyFee.html
@@ -40,13 +40,12 @@
周期 |
应收金额 |
实收金额 |
- 打折率 |
- 备注 |
缴费时间 |
缴费起始时间 |
缴费结束时间 |
状态 |
- 操作 |
+ 备注 |
+ 操作 |
@@ -62,13 +61,7 @@
{{feeDetail.receivedAmount}} 元
- |
-
- {{feeDetail.primeRate}}
- |
-
- {{feeDetail.remark}}
- |
+
{{feeDetail.createTime}}
|
@@ -82,11 +75,19 @@
{{feeDetail.stateName}}
+ {{feeDetail.remark}}
+ |
+
+
+
+
|
@@ -107,4 +108,5 @@
+
\ No newline at end of file
diff --git a/public/pages/property/propertyFee/propertyFee.js b/public/pages/property/propertyFee/propertyFee.js
index 28791843c..20bf337f4 100644
--- a/public/pages/property/propertyFee/propertyFee.js
+++ b/public/pages/property/propertyFee/propertyFee.js
@@ -86,6 +86,9 @@
_openRefundModel:function (_feeDetail) {
_feeDetail.mainFeeInfo = vc.component.mainFeeInfo;
vc.emit('returnPayFee', 'openReturnPayFeeModel', _feeDetail);
+ },
+ _openFeeDetailDiscountModal:function(_detail){
+ vc.emit('viewFeeDetailDiscount', 'openModel',_detail);
}
}
});