diff --git a/public/components/staff/staffDetailItemOutApply/staffDetailItemOutApply.html b/public/components/staff/staffDetailItemOutApply/staffDetailItemOutApply.html
new file mode 100644
index 000000000..1d2c5954e
--- /dev/null
+++ b/public/components/staff/staffDetailItemOutApply/staffDetailItemOutApply.html
@@ -0,0 +1,66 @@
+
\ No newline at end of file
diff --git a/public/components/staff/staffDetailItemOutApply/staffDetailItemOutApply.js b/public/components/staff/staffDetailItemOutApply/staffDetailItemOutApply.js
new file mode 100644
index 000000000..4bd0a3953
--- /dev/null
+++ b/public/components/staff/staffDetailItemOutApply/staffDetailItemOutApply.js
@@ -0,0 +1,92 @@
+/**
+ 入驻小区
+ **/
+(function (vc) {
+ var DEFAULT_PAGE = 1;
+ var DEFAULT_ROWS = 10;
+ vc.extends({
+ data: {
+ staffDetailItemOutApplyInfo: {
+ purchaseApplys: [],
+ staffId: '',
+ tel:''
+ }
+ },
+ _initMethod: function () {
+ },
+ _initEvent: function () {
+ vc.on('staffDetailItemOutApply', 'switch', function (_data) {
+ $that.staffDetailItemOutApplyInfo.staffId = _data.staffId;
+ $that.staffDetailItemOutApplyInfo.tel = _data.tel;
+
+ $that._loadStaffDetailItemOutApplyData(DEFAULT_PAGE, DEFAULT_ROWS);
+ });
+ vc.on('staffDetailItemOutApply', 'paginationPlus', 'page_event',
+ function (_currentPage) {
+ vc.component._loadStaffDetailItemOutApplyData(_currentPage, DEFAULT_ROWS);
+ });
+ },
+ methods: {
+ _loadStaffDetailItemOutApplyData: function (_page, _row) {
+ let param = {
+ params: {
+ page: _page,
+ row: _row,
+ communityId: vc.getCurrentCommunity().communityId,
+ resOrderType: '20000',
+ endUserTel: $that.staffDetailItemOutApplyInfo.tel,
+ }
+ };
+
+ //发送get请求
+ vc.http.apiGet('/purchaseApply.listPurchaseApplys',
+ param,
+ function (json) {
+ let _roomInfo = JSON.parse(json);
+ vc.component.staffDetailItemOutApplyInfo.purchaseApplys = _roomInfo.purchaseApplys;
+ vc.emit('staffDetailItemOutApply', 'paginationPlus', 'init', {
+ total: _roomInfo.records,
+ dataCount: _roomInfo.total,
+ currentPage: _page
+ });
+ },
+ function () {
+ console.log('请求失败处理');
+ }
+ );
+ },
+ //查询
+ _qureyStaffDetailItemOutApply: function () {
+ $that._loadStaffDetailItemOutApplyData(DEFAULT_PAGE, DEFAULT_ROWS);
+ },
+ _openDetailItemOutModel: function (_itemOut) {
+ vc.jumpToPage("/#/pages/common/purchaseApplyDetail?applyOrderId=" + _itemOut.applyOrderId + "&resOrderType=20000");
+ },
+ _openRunWorkflowImage: function (_itemOut) {
+ var param = {
+ params: {
+ communityId: vc.getCurrentCommunity().communityId,
+ businessKey: _itemOut.applyOrderId
+ }
+ };
+ //发送get请求
+ vc.http.apiGet('workflow.listRunWorkflowImage',
+ param,
+ function (json, res) {
+ var _workflowManageInfo = JSON.parse(json);
+ if (_workflowManageInfo.code != '0') {
+ vc.toast(_workflowManageInfo.msg);
+ return;
+ }
+ vc.emit('viewImage', 'showImage', {
+ url: 'data:image/png;base64,' + _workflowManageInfo.data
+ });
+ },
+ function (errInfo, error) {
+ console.log('请求失败处理');
+ }
+ );
+ },
+ }
+ });
+})(window.vc);
\ No newline at end of file
diff --git a/public/components/staff/staffDetailPurchaseApply/staffDetailPurchaseApply.html b/public/components/staff/staffDetailPurchaseApply/staffDetailPurchaseApply.html
new file mode 100644
index 000000000..170a27eca
--- /dev/null
+++ b/public/components/staff/staffDetailPurchaseApply/staffDetailPurchaseApply.html
@@ -0,0 +1,75 @@
+
\ No newline at end of file
diff --git a/public/components/staff/staffDetailPurchaseApply/staffDetailPurchaseApply.js b/public/components/staff/staffDetailPurchaseApply/staffDetailPurchaseApply.js
new file mode 100644
index 000000000..c54f35b54
--- /dev/null
+++ b/public/components/staff/staffDetailPurchaseApply/staffDetailPurchaseApply.js
@@ -0,0 +1,92 @@
+/**
+ 入驻小区
+ **/
+(function (vc) {
+ var DEFAULT_PAGE = 1;
+ var DEFAULT_ROWS = 10;
+ vc.extends({
+ data: {
+ staffDetailPurchaseApplyInfo: {
+ purchaseApplys: [],
+ staffId: '',
+ tel:''
+ }
+ },
+ _initMethod: function () {
+ },
+ _initEvent: function () {
+ vc.on('staffDetailPurchaseApply', 'switch', function (_data) {
+ $that.staffDetailPurchaseApplyInfo.staffId = _data.staffId;
+ $that.staffDetailPurchaseApplyInfo.tel = _data.tel;
+
+ $that._loadStaffDetailPurchaseApplyData(DEFAULT_PAGE, DEFAULT_ROWS);
+ });
+ vc.on('staffDetailPurchaseApply', 'paginationPlus', 'page_event',
+ function (_currentPage) {
+ vc.component._loadStaffDetailPurchaseApplyData(_currentPage, DEFAULT_ROWS);
+ });
+ },
+ methods: {
+ _loadStaffDetailPurchaseApplyData: function (_page, _row) {
+ let param = {
+ params: {
+ page: _page,
+ row: _row,
+ communityId: vc.getCurrentCommunity().communityId,
+ resOrderType: '10000',
+ endUserTel: $that.staffDetailPurchaseApplyInfo.tel,
+ }
+ };
+
+ //发送get请求
+ vc.http.apiGet('/purchaseApply.listPurchaseApplys',
+ param,
+ function (json) {
+ let _roomInfo = JSON.parse(json);
+ vc.component.staffDetailPurchaseApplyInfo.purchaseApplys = _roomInfo.purchaseApplys;
+ vc.emit('staffDetailPurchaseApply', 'paginationPlus', 'init', {
+ total: _roomInfo.records,
+ dataCount: _roomInfo.total,
+ currentPage: _page
+ });
+ },
+ function () {
+ console.log('请求失败处理');
+ }
+ );
+ },
+ //查询
+ _qureyStaffDetailPurchaseApply: function () {
+ $that._loadStaffDetailPurchaseApplyData(DEFAULT_PAGE, DEFAULT_ROWS);
+ },
+ _openDetailPurchaseApplyModel: function (_purchaseApply) {
+ vc.jumpToPage("/#/pages/common/purchaseApplyDetail?applyOrderId=" + _purchaseApply.applyOrderId + "&resOrderType=10000");
+ },
+ _openRunWorkflowImage: function (_purchaseApply) {
+ var param = {
+ params: {
+ communityId: vc.getCurrentCommunity().communityId,
+ businessKey: _purchaseApply.applyOrderId
+ }
+ };
+ //发送get请求
+ vc.http.apiGet('workflow.listRunWorkflowImage',
+ param,
+ function (json, res) {
+ var _workflowManageInfo = JSON.parse(json);
+ if (_workflowManageInfo.code != '0') {
+ vc.toast(_workflowManageInfo.msg);
+ return;
+ }
+ vc.emit('viewImage', 'showImage', {
+ url: 'data:image/png;base64,' + _workflowManageInfo.data
+ });
+ },
+ function (errInfo, error) {
+ console.log('请求失败处理');
+ }
+ );
+ },
+ }
+ });
+})(window.vc);
\ No newline at end of file
diff --git a/public/pages/staff/staffDetail/staffDetail.html b/public/pages/staff/staffDetail/staffDetail.html
index 5e8272039..745736897 100644
--- a/public/pages/staff/staffDetail/staffDetail.html
+++ b/public/pages/staff/staffDetail/staffDetail.html
@@ -126,23 +126,24 @@
-
+
-
+
-
+
+
@@ -219,6 +220,14 @@
+
+
+
+
+
+
+
+