This commit is contained in:
java110 2022-03-12 17:49:25 +08:00
commit 8a674a25b3

View File

@ -96,8 +96,7 @@
return vc.validate.validate({
reviewApplyRoomDiscountInfo: vc.component.reviewApplyRoomDiscountInfo
}, {
'reviewApplyRoomDiscountInfo.discountId': [
{
'reviewApplyRoomDiscountInfo.discountId': [{
limit: "required",
param: "",
errInfo: "折扣名称不能为空"
@ -108,8 +107,7 @@
errInfo: "折扣错误"
},
],
'reviewApplyRoomDiscountInfo.discountType': [
{
'reviewApplyRoomDiscountInfo.discountType': [{
limit: "required",
param: "",
errInfo: "折扣类型不能为空"
@ -120,8 +118,7 @@
errInfo: "折扣错误"
},
],
'reviewApplyRoomDiscountInfo.returnWay': [
{
'reviewApplyRoomDiscountInfo.returnWay': [{
limit: "required",
param: "",
errInfo: "返还方式不能为空"
@ -132,8 +129,7 @@
errInfo: "折扣错误"
},
],
'reviewApplyRoomDiscountInfo.startTime': [
{
'reviewApplyRoomDiscountInfo.startTime': [{
limit: "required",
param: "",
errInfo: "开始时间不能为空"
@ -144,8 +140,7 @@
errInfo: "开始时间错误"
},
],
'reviewApplyRoomDiscountInfo.endTime': [
{
'reviewApplyRoomDiscountInfo.endTime': [{
limit: "required",
param: "",
errInfo: "结束时间不能为空"
@ -156,8 +151,7 @@
errInfo: "结束时间错误"
},
],
'reviewApplyRoomDiscountInfo.reviewRemark': [
{
'reviewApplyRoomDiscountInfo.reviewRemark': [{
limit: "required",
param: "",
errInfo: "审批说明不能为空"
@ -168,14 +162,12 @@
errInfo: "申请申请说明"
},
],
'reviewApplyRoomDiscountInfo.ardId': [
{
'reviewApplyRoomDiscountInfo.ardId': [{
limit: "required",
param: "",
errInfo: "申请ID不能为空"
}],
'reviewApplyRoomDiscountInfo.state': [
{
'reviewApplyRoomDiscountInfo.state': [{
limit: "required",
param: "",
errInfo: "审批状态不能为空"
@ -186,8 +178,7 @@
return vc.validate.validate({
reviewApplyRoomDiscountInfo: vc.component.reviewApplyRoomDiscountInfo
}, {
'reviewApplyRoomDiscountInfo.reviewRemark': [
{
'reviewApplyRoomDiscountInfo.reviewRemark': [{
limit: "required",
param: "",
errInfo: "审批说明不能为空"
@ -215,8 +206,7 @@
}
vc.http.apiPost(
'/applyRoomDiscount/updateReviewApplyRoomDiscount',
JSON.stringify(vc.component.reviewApplyRoomDiscountInfo),
{
JSON.stringify(vc.component.reviewApplyRoomDiscountInfo), {
emulateJSON: true
},
function(json, res) {
@ -277,7 +267,8 @@
function(json, res) {
let _feeDiscountManageInfo = JSON.parse(json);
$that.reviewApplyRoomDiscountInfo.discounts = _feeDiscountManageInfo.data;
}, function (errInfo, error) {
},
function(errInfo, error) {
console.log('请求失败处理');
}
);
@ -340,6 +331,7 @@
row: 50,
communityId: vc.getCurrentCommunity().communityId,
feeId: vc.component.reviewApplyRoomDiscountInfo.feeId,
state: '1400'
// startTime: vc.component.reviewApplyRoomDiscountInfo.startTime,
// endTime: vc.component.reviewApplyRoomDiscountInfo.endTime
}
@ -351,7 +343,8 @@
function(json, res) {
var listFeeDetailData = JSON.parse(json);
vc.component.reviewApplyRoomDiscountInfo.fees = listFeeDetailData.feeDetails;
}, function (errInfo, error) {
},
function(errInfo, error) {
console.log('请求失败处理');
}
);