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}} | +
+
+
+
+ |
+
|
+ |
+ |||||||