From e2a89c756beedc251f20eae43c7d52ac441de5ff Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Thu, 8 Apr 2021 15:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../allocationStorehouseAuditOrders.js | 16 ++-- ...llocationStorehouseHistoryAuditOrders.html | 54 +++++++++++++ .../allocationStorehouseHistoryAuditOrders.js | 76 +++++++++++++++++++ 3 files changed, 136 insertions(+), 10 deletions(-) create mode 100644 public/pages/admin/allocationStorehouseHistoryAuditOrders/allocationStorehouseHistoryAuditOrders.html create mode 100644 public/pages/admin/allocationStorehouseHistoryAuditOrders/allocationStorehouseHistoryAuditOrders.js diff --git a/public/pages/admin/allocationStorehouseAuditOrders/allocationStorehouseAuditOrders.js b/public/pages/admin/allocationStorehouseAuditOrders/allocationStorehouseAuditOrders.js index 0ee3c36f0..dd9d5f294 100644 --- a/public/pages/admin/allocationStorehouseAuditOrders/allocationStorehouseAuditOrders.js +++ b/public/pages/admin/allocationStorehouseAuditOrders/allocationStorehouseAuditOrders.js @@ -24,7 +24,6 @@ }, _initMethod: function () { vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS); - $that._loadStepStaff(); }, _initEvent: function () { @@ -49,14 +48,13 @@ }; //发送get请求 - vc.http.get('myAuditOrders', - 'list', + vc.http.apiGet('resourceStore.listAllocationStoreAuditOrders', param, function (json, res) { var _allocationStorehouseAuditOrdersInfo = JSON.parse(json); vc.component.allocationStorehouseAuditOrdersInfo.total = _allocationStorehouseAuditOrdersInfo.total; vc.component.allocationStorehouseAuditOrdersInfo.records = _allocationStorehouseAuditOrdersInfo.records; - vc.component.allocationStorehouseAuditOrdersInfo.auditOrders = _allocationStorehouseAuditOrdersInfo.resourceOrders; + vc.component.allocationStorehouseAuditOrdersInfo.auditOrders = _allocationStorehouseAuditOrdersInfo.data; vc.emit('pagination', 'init', { total: vc.component.allocationStorehouseAuditOrdersInfo.records, currentPage: _page @@ -77,10 +75,9 @@ _auditOrderInfo: function (_auditInfo) { console.log("提交得参数:" + _auditInfo); _auditInfo.taskId = vc.component.allocationStorehouseAuditOrdersInfo.orderInfo.taskId; - _auditInfo.applyOrderId = vc.component.allocationStorehouseAuditOrdersInfo.orderInfo.applyOrderId; + _auditInfo.asId = vc.component.allocationStorehouseAuditOrdersInfo.orderInfo.asId; //发送get请求 - vc.http.post('myAuditOrders', - 'audit', + vc.http.apiPost('resourceStore.auditAllocationStoreOrder', JSON.stringify(_auditInfo), { emulateJSON: true @@ -97,13 +94,12 @@ _finishAuditOrder: function (_auditOrder) { let _auditInfo = { taskId: _auditOrder.taskId, - applyOrderId: _auditOrder.applyOrderId, + asId: _auditOrder.asId, state: '1200', remark: '处理结束' }; //发送get请求 - vc.http.post('myAuditOrders', - 'audit', + vc.http.apiPost('resourceStore.auditAllocationStoreOrder', JSON.stringify(_auditInfo), { emulateJSON: true diff --git a/public/pages/admin/allocationStorehouseHistoryAuditOrders/allocationStorehouseHistoryAuditOrders.html b/public/pages/admin/allocationStorehouseHistoryAuditOrders/allocationStorehouseHistoryAuditOrders.html new file mode 100644 index 000000000..c59cef529 --- /dev/null +++ b/public/pages/admin/allocationStorehouseHistoryAuditOrders/allocationStorehouseHistoryAuditOrders.html @@ -0,0 +1,54 @@ +
+
+
+
+
+
已办单
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
物品ID物品名称源仓库目标仓库调拨数量申请人申请说明操作
{{auditOrder.resId}}{{auditOrder.resName}}{{auditOrder.shaName}}{{auditOrder.shzName}}{{auditOrder.stock}}{{auditOrder.startUserName}}{{auditOrder.remark}} +
+ +
+
+
    +
    + + +
    +
    +
    +
    +
    \ No newline at end of file diff --git a/public/pages/admin/allocationStorehouseHistoryAuditOrders/allocationStorehouseHistoryAuditOrders.js b/public/pages/admin/allocationStorehouseHistoryAuditOrders/allocationStorehouseHistoryAuditOrders.js new file mode 100644 index 000000000..1e63c364d --- /dev/null +++ b/public/pages/admin/allocationStorehouseHistoryAuditOrders/allocationStorehouseHistoryAuditOrders.js @@ -0,0 +1,76 @@ +/** + 审核订单 + **/ +(function (vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + allocationStorehouseHistoryAuditOrdersInfo: { + auditOrders: [], + total: 0, + records: 1, + moreCondition: false, + userName: '', + currentUserId: vc.getData('/nav/getUserInfo').userId, + conditions: { + AuditOrdersId: '', + userName: '', + auditLink: '', + }, + orderInfo: '', + procure: false + } + }, + _initMethod: function () { + vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS); + }, + _initEvent: function () { + + vc.on('allocationStorehouseHistoryAuditOrders', 'listAuditOrders', function (_param) { + vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS); + }); + vc.on('pagination', 'page_event', function (_currentPage) { + vc.component._listAuditOrders(_currentPage, DEFAULT_ROWS); + }); + + vc.on('myAuditOrders', 'notifyAudit', function (_auditInfo) { + vc.component._auditOrderInfo(_auditInfo); + }); + }, + methods: { + _listAuditOrders: function (_page, _rows) { + + vc.component.allocationStorehouseHistoryAuditOrdersInfo.conditions.page = _page; + vc.component.allocationStorehouseHistoryAuditOrdersInfo.conditions.row = _rows; + var param = { + params: vc.component.allocationStorehouseHistoryAuditOrdersInfo.conditions + }; + + //发送get请求 + vc.http.apiGet('resourceStore.listAllocationStoreAuditOrders', + param, + function (json, res) { + var _allocationStorehouseHistoryAuditOrdersInfo = JSON.parse(json); + vc.component.allocationStorehouseHistoryAuditOrdersInfo.total = _allocationStorehouseHistoryAuditOrdersInfo.total; + vc.component.allocationStorehouseHistoryAuditOrdersInfo.records = _allocationStorehouseHistoryAuditOrdersInfo.records; + vc.component.allocationStorehouseHistoryAuditOrdersInfo.auditOrders = _allocationStorehouseHistoryAuditOrdersInfo.data; + vc.emit('pagination', 'init', { + total: vc.component.allocationStorehouseHistoryAuditOrdersInfo.records, + currentPage: _page + }); + }, function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + _openAuditOrderModel: function (_auditOrder) { + vc.component.allocationStorehouseHistoryAuditOrdersInfo.orderInfo = _auditOrder; + vc.emit('audit', 'openAuditModal', {}); + }, + _queryAuditOrdersMethod: function () { + vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS); + }, + } + }); +})(window.vc);