From f41c544f451e869f49969dceec1ac4e76f4875cb Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: Tue, 2 Aug 2022 09:50:03 +0800
Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E6=8A=A5=E8=A1=A8?=
=?UTF-8?q?=E5=8A=A0=E5=85=A5=E6=89=93=E5=8D=B0=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../editPropertyCompany.html | 7 +-
.../editPropertyCompany.js | 68 +++++++++----------
.../commonReportTable/commonReportTable.html | 5 +-
.../commonReportTable/commonReportTable.js | 6 +-
.../printCommonReportTable.html | 33 +++++++++
.../printCommonReportTable.js | 33 +++++++++
6 files changed, 111 insertions(+), 41 deletions(-)
create mode 100644 public/pages/property/printCommonReportTable/printCommonReportTable.html
create mode 100644 public/pages/property/printCommonReportTable/printCommonReportTable.js
diff --git a/public/components/admin/editPropertyCompany/editPropertyCompany.html b/public/components/admin/editPropertyCompany/editPropertyCompany.html
index c5925f1f1..78975b044 100644
--- a/public/components/admin/editPropertyCompany/editPropertyCompany.html
+++ b/public/components/admin/editPropertyCompany/editPropertyCompany.html
@@ -1,5 +1,4 @@
-
+
@@ -40,7 +39,7 @@
@@ -53,4 +52,4 @@
-
+
\ No newline at end of file
diff --git a/public/components/admin/editPropertyCompany/editPropertyCompany.js b/public/components/admin/editPropertyCompany/editPropertyCompany.js
index 2095bfe3f..d507b5706 100644
--- a/public/components/admin/editPropertyCompany/editPropertyCompany.js
+++ b/public/components/admin/editPropertyCompany/editPropertyCompany.js
@@ -1,4 +1,4 @@
-(function (vc, vm) {
+(function(vc, vm) {
vc.extends({
data: {
editPropertyCompanyInfo: {
@@ -11,28 +11,28 @@
nearByLandmarks: ''
}
},
- _initMethod: function () {
- vc.initDate('editFoundingTime', function (_value) {
+ _initMethod: function() {
+ vc.initDate('editFoundingTime', function(_value) {
$that.editPropertyCompanyInfo.foundingTime = _value;
});
},
- _initEvent: function () {
- vc.on('editPropertyCompany', 'openEditPropertyCompanyModal', function (_params) {
+ _initEvent: function() {
+ vc.on('editPropertyCompany', 'openEditPropertyCompanyModal', function(_params) {
vc.component.refreshEditPropertyCompanyInfo();
$('#editPropertyCompanyModel').modal('show');
vc.copyObject(_params, vc.component.editPropertyCompanyInfo);
});
},
methods: {
- editPropertyCompanyValidate: function () {
+ editPropertyCompanyValidate: function() {
return vc.validate.validate({
editPropertyCompanyInfo: vc.component.editPropertyCompanyInfo
}, {
'editPropertyCompanyInfo.name': [{
- limit: "required",
- param: "",
- errInfo: "名称不能为空"
- },
+ limit: "required",
+ param: "",
+ errInfo: "名称不能为空"
+ },
{
limit: "maxLength",
param: "100",
@@ -40,10 +40,10 @@
},
],
'editPropertyCompanyInfo.address': [{
- limit: "required",
- param: "",
- errInfo: "地址不能为空"
- },
+ limit: "required",
+ param: "",
+ errInfo: "地址不能为空"
+ },
{
limit: "maxLength",
param: "200",
@@ -51,10 +51,10 @@
},
],
'editPropertyCompanyInfo.tel': [{
- limit: "required",
- param: "",
- errInfo: "电话不能为空"
- },
+ limit: "required",
+ param: "",
+ errInfo: "电话不能为空"
+ },
{
limit: "maxLength",
param: "11",
@@ -62,10 +62,10 @@
},
],
'editPropertyCompanyInfo.corporation': [{
- limit: "required",
- param: "",
- errInfo: "公司法人不能为空"
- },
+ limit: "required",
+ param: "",
+ errInfo: "公司法人不能为空"
+ },
{
limit: "maxLength",
param: "64",
@@ -73,10 +73,10 @@
},
],
'editPropertyCompanyInfo.foundingTime': [{
- limit: "required",
- param: "",
- errInfo: "成立日期不能为空"
- },
+ limit: "required",
+ param: "",
+ errInfo: "成立日期不能为空"
+ },
{
limit: "maxLength",
param: "64",
@@ -84,10 +84,10 @@
},
],
'editPropertyCompanyInfo.nearByLandmarks': [{
- limit: "required",
- param: "",
- errInfo: "地标不能为空"
- },
+ limit: "required",
+ param: "",
+ errInfo: "地标不能为空"
+ },
{
limit: "maxLength",
param: "200",
@@ -101,7 +101,7 @@
}]
});
},
- editPropertyCompany: function () {
+ editPropertyCompany: function() {
if (!vc.component.editPropertyCompanyValidate()) {
vc.toast(vc.validate.errInfo);
return;
@@ -111,7 +111,7 @@
JSON.stringify(vc.component.editPropertyCompanyInfo), {
emulateJSON: true
},
- function (json, res) {
+ function(json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
let _json = JSON.parse(json);
if (_json.code == 0) {
@@ -122,12 +122,12 @@
return;
}
},
- function (errInfo, error) {
+ function(errInfo, error) {
console.log('请求失败处理');
vc.toast(errInfo);
});
},
- refreshEditPropertyCompanyInfo: function () {
+ refreshEditPropertyCompanyInfo: function() {
vc.component.editPropertyCompanyInfo = {
storeId: '',
name: '',
diff --git a/public/components/property/commonReportTable/commonReportTable.html b/public/components/property/commonReportTable/commonReportTable.html
index ba49ee218..227faefed 100644
--- a/public/components/property/commonReportTable/commonReportTable.html
+++ b/public/components/property/commonReportTable/commonReportTable.html
@@ -35,6 +35,9 @@
+