| | |
| | | <div class="col-sm-10"> |
| | | <input v-model="editCommunityInfo.takeTime" type="text" |
| | | :placeholder="vc.i18n('必填,请填写入驻日期','editCommunity')" |
| | | class="form-control carCreateFeeStartTime"> |
| | | class="form-control editCommunityStartTime"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row"> |
| | |
| | | }, |
| | | _initMethod: function () { |
| | | $that._loadEditCommunityAttrSpec(); |
| | | $that._initEditCommunityDateInfo(); |
| | | // $that._initEditCommunityDateInfo(); |
| | | }, |
| | | _initEvent: function () { |
| | | vc.on('editCommunity', 'openEditCommunityModal', |
| | |
| | | }) |
| | | }) |
| | | } |
| | | setTimeout(function () { |
| | | vc.initDate('editCommunityStartTime', function (_value) { |
| | | $that.editCommunityInfo.takeTime = _value; |
| | | }) |
| | | }, 1000) |
| | | }); |
| | | }, |
| | | methods: { |
| | | _initEditCommunityDateInfo: function() { |
| | | vc.initDate('carCreateFeeStartTime', function(_takeTime) { |
| | | _initEditCommunityDateInfo: function () { |
| | | vc.initDate('carCreateFeeStartTime', function (_takeTime) { |
| | | console.log(_takeTime) |
| | | $that.editCommunityInfo.takeTime = _takeTime; |
| | | }); |
| | | |
| | | function myfunc(e) { |
| | | e.currentTarget.blur(); |
| | | } |
| | |
| | | return vc.validate.validate({ |
| | | editCommunityInfo: vc.component.editCommunityInfo |
| | | }, { |
| | | 'editCommunityInfo.name': [ |
| | | { |
| | | 'editCommunityInfo.name': [{ |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "小区名称不能为空" |
| | |
| | | errInfo: "小区名称必须在1至20字符之间" |
| | | } |
| | | ], |
| | | 'editCommunityInfo.address': [ |
| | | { |
| | | 'editCommunityInfo.address': [{ |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "小区地址不能为空" |
| | |
| | | errInfo: "小区地址不能大于200个字符" |
| | | } |
| | | ], |
| | | 'editCommunityInfo.nearbyLandmarks': [ |
| | | { |
| | | 'editCommunityInfo.nearbyLandmarks': [{ |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "附近地标不能为空" |
| | |
| | | errInfo: "小区附近地标不能大于50个字符" |
| | | } |
| | | ], |
| | | 'editCommunityInfo.cityCode': [ |
| | | { |
| | | limit: "maxLength", |
| | | param: "12", |
| | | errInfo: "小区城市编码不能大于4个字符" |
| | | } |
| | | ], |
| | | 'editCommunityInfo.mapX': [ |
| | | { |
| | | limit: "maxLength", |
| | | param: "20", |
| | | errInfo: "小区城市编码不能大于4个字符" |
| | | } |
| | | ], |
| | | 'editCommunityInfo.mapY': [ |
| | | { |
| | | limit: "maxLength", |
| | | param: "20", |
| | | errInfo: "小区城市编码不能大于4个字符" |
| | | } |
| | | ], |
| | | 'editCommunityInfo.communityId': [ |
| | | { |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "小区ID不能为空" |
| | | } |
| | | ] |
| | | 'editCommunityInfo.cityCode': [{ |
| | | limit: "maxLength", |
| | | param: "12", |
| | | errInfo: "小区城市编码不能大于4个字符" |
| | | }], |
| | | 'editCommunityInfo.mapX': [{ |
| | | limit: "maxLength", |
| | | param: "20", |
| | | errInfo: "小区城市编码不能大于4个字符" |
| | | }], |
| | | 'editCommunityInfo.mapY': [{ |
| | | limit: "maxLength", |
| | | param: "20", |
| | | errInfo: "小区城市编码不能大于4个字符" |
| | | }], |
| | | 'editCommunityInfo.communityId': [{ |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "小区ID不能为空" |
| | | }] |
| | | }); |
| | | }, |
| | | editCommunity: function () { |
| | |
| | | <vc:i18n name="费用导入" namespace="oldRoomFeeImport"></vc:i18n> |
| | | </h5> |
| | | <div class="ibox-tools" style="top:10px;"> |
| | | <!-- <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px" |
| | | v-on:click="_initialData(null,true)"> |
| | | <vc:i18n name="费用初始化" namespace="oldRoomFeeImport"></vc:i18n> |
| | | </button> --> |
| | | <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px" |
| | | v-on:click="_initialData(null,true)"> |
| | | <vc:i18n name="费用初始化" namespace="oldRoomFeeImport"></vc:i18n> |
| | | </button> |
| | | v-on:click="openInitializeFeeModal"> |
| | | <vc:i18n name="费用初始化" namespace="oldRoomFeeImport"></vc:i18n> |
| | | </button> |
| | | |
| | | <button type="button" class="btn btn-primary btn-sm" style="margin-left:10px" |
| | | v-on:click="_openOldRoomFeeImport(null,true)"> |
| | | <vc:i18n name="费用导入" namespace="oldRoomFeeImport"></vc:i18n> |
| | |
| | | <td class="text-center">{{ fee.category22 || '-' }}</td> <!-- 22 项分类 --> |
| | | <td class="text-center">{{ fee.chargeStart || '-' }}</td> <!-- 收费起 --> |
| | | <td class="text-center">{{ fee.chargeEnd || '-' }}</td> <!-- 收费止 --> |
| | | |
| | | |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | |
| | | <!-- <vc:create path="frame/pagination"></vc:create> --> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="modal fade" id="initializeFeeModal" tabindex="-1" role="dialog" |
| | | aria-labelledby="initializeFeeModalLabel" aria-hidden="true"> |
| | | <div class="modal-dialog" role="document"> |
| | | <div class="modal-content"> |
| | | <div class="modal-header"> |
| | | <h5 class="modal-title" id="initializeFeeModalLabel"> |
| | | <vc:i18n name="请确认您的操作!" namespace="oldRoomFeeImport"></vc:i18n> |
| | | </h5> |
| | | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| | | <span aria-hidden="true">×</span> |
| | | </button> |
| | | </div> |
| | | <div class="modal-body text-center"> |
| | | <vc:i18n name="确认进行费用初始化吗?此操作不可逆,请谨慎操作!" namespace="oldRoomFeeImport"></vc:i18n> |
| | | </div> |
| | | <div class="modal-footer"> |
| | | <button type="button" class="btn btn-secondary" data-dismiss="modal"> |
| | | <vc:i18n name="点错了" namespace="oldRoomFeeImport"></vc:i18n> |
| | | </button> |
| | | <button type="button" class="btn btn-primary" v-on:click="_confirmInitialize()"> |
| | | <vc:i18n name="确认初始化" namespace="oldRoomFeeImport"></vc:i18n> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | <vc:create path="property/importOldRoomFee"></vc:create> |
| | |
| | | _openOldRoomFeeImport: function () { |
| | | vc.emit('importOldRoomFee', 'openimportOldRoomFeeModal', {}); |
| | | }, |
| | | openInitializeFeeModal: function() { |
| | | $('#initializeFeeModal').modal('show'); // 显示模态框 |
| | | }, |
| | | _confirmInitialize: function() { |
| | | $('#initializeFeeModal').modal('hide'); // 关闭模态框 |
| | | this._initialData(); // 点击确认后调用初始化方法 |
| | | }, |
| | | _initialData: function () { |
| | | |
| | | let param = new FormData(); |