diff --git a/api/request2.js b/api/request2.js
index 115ebf07..8ce18769 100644
--- a/api/request2.js
+++ b/api/request2.js
@@ -1,8 +1,8 @@
import request from '@/api/httpRequest2.js'
-const baseApi = "/api/admin-api"
+// const baseApi = "/api/admin-api"
//公司地址
// 本地地址
-// const baseApi = "/admin-api"
+const baseApi = "/admin-api"
/**
* 获取验证码
* @param {*}
@@ -552,10 +552,40 @@ export function purchaseReturnJobsubmit (params) {
}
/**
- * 创建采购退货记录
+ * 采购退货 申请列表
+ * 任务状态
+ * 开始日期
+ * 结束日期
+ * 获取日期任务列表
+ * @param {*}
+ */
+export function getPurchaseReturnRequestList(params) {
+ return request({
+ url: baseApi + "/wms/purchasereturn-request-main/senior",
+ method: "post",
+ data: params,
+ });
+}
+
+/**
+ * 采购退货 获取申请任务明细
+ * @param {*} id 任务id
+ *
+ */
+export function getPurchaseReturnRequestDetail(id) {
+ return request({
+ url: baseApi + "/wms/purchasereturn-request-main/getPurchasereturnRequestById?id=" + id,
+ method: "get",
+ data: {},
+ });
+}
+
+
+/**
+ * 采购退货 记录提交
* @param {*} params
*/
-export function createPurchaseReturnRecord(params) {
+export function purchaseReturnRecordSubmit(params) {
return request({
url: baseApi + "/magic-api/pda/job/purchasereturn/createRecord",
method: "put",
@@ -567,7 +597,7 @@ export function createPurchaseReturnRecord(params) {
* 采购退货 申请提交
* @param {*} params
*/
-export function createPurchaseReturnRequest(params) {
+export function purchaseReturnRequestSubmit(params) {
return request({
url: baseApi + "/wms/purchasereturn-request-main/submit",
method: "put",
@@ -829,10 +859,22 @@ export function cancleTakeProductionReceiptJob(id) {
* 生产收料 提交
* @param {*} params
*/
-export function productionReceiptJobSubmit(id, params) {
+export function productionReceiptJobSubmit(params) {
return request({
- url: baseApi + "/magic-api/pda/job/putaway/jobSubmit?id=" + id,
- method: "post",
+ url: baseApi + "/magic-api/pda/job/putaway/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 生产收料记录 提交
+ * @param {*} params
+ */
+export function productionReceiptRecordSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/putaway/jobSubmit",
+ method: "put",
data: params,
});
}
@@ -1034,10 +1076,34 @@ export function cancleTakeUnPlannedReceiptJob(id) {
}
/**
- * 计划外入库 提交
+ * 计划外入库任务 提交
+ * @param {*} params
+ */
+export function unPlannedReceiptJobSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 计划外入库申请 提交
+ * @param {*} params
+ */
+export function unPlannedReceiptRequestbSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 计划外入库记录 提交
* @param {*} params
*/
-export function unPlannedReceiptJobSubmit(id, params) {
+export function unPlannedReceiptRecordbSubmit(id, params) {
return request({
url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit?id=" + id,
method: "post",
@@ -1104,10 +1170,34 @@ export function cancleTakeUnPlannedIssueJob(id) {
* 计划外出库 提交
* @param {*} params
*/
-export function unPlannedIssueJobSubmit(id, params) {
+export function unPlannedIssueJobSubmit(params) {
return request({
- url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit?id=" + id,
- method: "post",
+ url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 计划外出库申请 提交
+ * @param {*} params
+ */
+export function unPlannedIssueRequestSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 计划外出库记录 提交
+ * @param {*} params
+ */
+export function unPlannedIssueRecordSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit",
+ method: "put",
data: params,
});
}
@@ -1142,7 +1232,7 @@ export function getProductReceiptJobDetail(id) {
}
/**
- * 制品上架 承接
+ * 制品收货 承接
* @param {*} id
*
*/
@@ -1155,7 +1245,7 @@ export function takeProductReceiptJob(id) {
}
/**
- * 制品上架 放弃承接
+ * 制品收货 放弃承接
* @param {*} id
*
*/
@@ -1171,9 +1261,9 @@ export function cancleTakeProductReceiptJob(id) {
* 制品收货 提交
* @param {*} params
*/
-export function productReceiptJobsubmit(id, params) {
+export function productReceiptJobsubmit( params) {
return request({
- url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit?id=" + id,
+ url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit",
method: "put",
data: params,
});
@@ -1242,7 +1332,22 @@ export function cancleTakeProductPutawayJob(id) {
*/
export function productPutawayJobSubmit(params) {
return request({
- url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit?id=" + id,
+ url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+
+
+/**
+ * 制品上架记录 提交
+ * @param {*} 任务id
+ *
+ */
+export function productPutawayRecordSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit",
method: "put",
data: params,
});
@@ -1311,9 +1416,9 @@ export function cancleTakeProductDismantleJob(id) {
*/
export function productDismantleJobSubmit(params) {
return request({
- url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit?id=" + id,
+ url: baseApi + "/wms/purchasereceipt-job-main/abandon",
method: "put",
- data: params,
+ data: {},
});
}
@@ -1386,6 +1491,59 @@ export function deliverJobSubmit( params) {
});
}
+/**
+ * 制品发货申请
+ * 任务状态
+ * 开始日期
+ * 结束日期
+ * 获取日期任务列表
+ * @param {*}
+ */
+export function getDeliverRequestList(params) {
+ return request({
+ url: baseApi + "/wms/deliver-request-main/senior",
+ method: "post",
+ data: params,
+ });
+}
+
+/**
+ * 制品发货申请 获取任务明细
+ * @param {*} id 任务id
+ *
+ */
+export function getDeliverRequestDetail(id) {
+ return request({
+ url: baseApi + "/wms/deliver-request-main/getDeliverRequestById?id=" + id,
+ method: "get",
+ data: {},
+ });
+}
+
+/**
+ * 制品发货申请 申请提交
+ * @param {*} params
+ */
+export function deliverRequestSubmit(params) {
+ return request({
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 制品发货 记录提交
+ * @param {*} params
+ */
+export function deliverRecordSubmit(params) {
+ return request({
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
+ method: "put",
+ data: params,
+ });
+}
+
/**
* 客户退货 任务
* status 任务状态
@@ -1449,7 +1607,7 @@ export function cancleTakeCustomerReturnJob(id) {
*/
export function customerReturnJobSubmit(params) {
return request({
- url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit?id=" + id,
+ url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit",
method: "put",
data: params,
});
@@ -1486,6 +1644,31 @@ export function getCustomerReturnRequestDetail(id) {
});
}
+
+/**
+ * 客户退货 申请提交
+ * @param {*} params
+ */
+export function customerReturnRequestSubmit(params) {
+ return request({
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 客户退货 记录提交
+ * @param {*} params
+ */
+export function customerReturnRecordSubmit(params) {
+ return request({
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
+ method: "put",
+ data: params,
+ });
+}
+
/**
* 调拨入库 任务
* status 任务状态
@@ -1550,7 +1733,20 @@ export function cancleTakeTransferReceiptJob(id) {
*/
export function transferReceiptJobSubmit(params) {
return request({
- url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit?id=" + id,
+ url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 调拨入库记录 提交
+ * @param {*} id
+ *
+ */
+export function transferReceiptRecordSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit",
method: "put",
data: params,
});
@@ -1586,7 +1782,7 @@ export function getTransferIssueJobDetail(id) {
}
/**
- * 生产退料 承接
+ * 调拨出库 承接
* @param {*} id
*
*/
@@ -1599,7 +1795,7 @@ export function takeTransferIssueJob(id) {
}
/**
- * 生产退料 放弃承接
+ * 调拨出库 放弃承接
* @param {*} id
*
*/
@@ -1624,6 +1820,19 @@ export function transferIssueJobSubmit( params) {
});
}
+/**
+ * 调拨出库记录 提交
+ * @param {*}
+ *
+ */
+export function transferIssueRecordSubmit( params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
/**
* 制品上架申请
@@ -1654,6 +1863,18 @@ export function getProductPutawayRequestDetail(id) {
});
}
+/**
+ * 制品上架 申请提交
+ * @param {*} params
+ */
+export function productPutawayRequestSubmit(params) {
+ return request({
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
+ method: "put",
+ data: params,
+ });
+}
+
/**
* 发料申请列表
* @param {*} params
@@ -1679,35 +1900,32 @@ export function getIssueRequestDetail(id) {
}
/**
- * 采购退货 申请列表
- * 任务状态
- * 开始日期
- * 结束日期
- * 获取日期任务列表
- * @param {*}
+ * 发料申请 提交
+ * @param {*} params
*/
-export function getPurchaseReturnRequestList(params) {
+export function issueRequestSubmit(params) {
return request({
- url: baseApi + "/wms/purchasereturn-request-main/senior",
- method: "post",
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
+ method: "put",
data: params,
});
}
/**
- * 采购退货 获取申请任务明细
- * @param {*} id 任务id
- *
+ * 发料记录 提交
+ * @param {*} params
*/
-export function getPurchaseReturnRequestDetail(id) {
+export function issueRecordSubmit(params) {
return request({
- url: baseApi + "/wms/purchasereturn-request-main/getPurchasereturnRequestById?id=" + id,
- method: "get",
- data: {},
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
+ method: "put",
+ data: params,
});
}
+
+
/**
* 原料上架申请 获取任务列表
* 任务状态
@@ -1737,6 +1955,30 @@ export function getPutawayRequestDetail(id) {
});
}
+/**
+ * 原料上架申请 提交
+ * @param {*} params
+ */
+export function putawayRequestSubmit(params) {
+ return request({
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 原料上架记录 提交
+ * @param {*} params
+ */
+export function putawayRecordSubmit(params) {
+ return request({
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
+ method: "put",
+ data: params,
+ });
+}
+
/**
* 生产退料 任务获取任务列表
* 任务状态
@@ -1768,7 +2010,7 @@ export function getProductionReturnJobDetail(id) {
/**
- * 生产退料 承接
+ * 生产退料 承接任务
* @param {*} id
*
*/
@@ -1793,6 +2035,19 @@ export function cancleTakeProductionReturnJob(id) {
});
}
+/**
+ * 生产退料 任务提交
+ * @param {*} 任务id
+ *
+ */
+export function productionReturnJobSubmit( params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit?id=" + id,
+ method: "put",
+ data: params,
+ });
+}
+
/**
* 生产退料申请 获取任务列表
* status 任务状态
@@ -1809,10 +2064,9 @@ export function getProductionReturnRequestList(params) {
});
}
-
/**
- * 生产退料 获取任务明细
- * @param {*} number id 任务id
+ * 生产退料申请 获取申请明细
+ * @param {*} id
*
*/
export function getProductionReturnRequestDetail(id) {
@@ -1823,21 +2077,29 @@ export function getProductionReturnRequestDetail(id) {
});
}
-
/**
- * 生产退料 任务提交
- * @param {*} 任务id
- *
+ * 生产退料申请 提交
+ * @param {*} params
*/
-export function productionReturnJobSubmit( params) {
+export function productionReturnRequestSubmit(params) {
return request({
- url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit?id=" + id,
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
method: "put",
data: params,
});
}
-
+/**
+ * 生产退料记录 提交
+ * @param {*} params
+ */
+export function productionReturnRecordSubmit(params) {
+ return request({
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
+ method: "put",
+ data: params,
+ });
+}
/**
@@ -1869,8 +2131,6 @@ export function getUnPlannedIssueRequestDetail(id) {
});
}
-
-
/**
* 计划外入库 申请
* status 任务状态
@@ -1901,63 +2161,19 @@ export function getUnPlannedReceiptRequestDetail(id) {
}
/**
- * 报废出库 申请
- * status 任务状态
- * 开始日期
- * 结束日期
- * 获取任务列表
- * @param {*}
+ * 计划外入库 申请提交
+ * @param {*} params
*/
-export function getScrapRequestList(params) {
+export function unPlannedReceiptRequestSubmit(params) {
return request({
- url: baseApi + "/wms/scrap-request-main/senior",
- method: "post",
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
+ method: "put",
data: params,
});
}
-/**
- * 报废出库申请 获取申请明细
- * @param {*} id 任务id
- *
- */
-export function getScrapRequestDetail(id) {
- return request({
- url: baseApi + "/wms/scrap-request-main/getScrapRequestById?id=" + id,
- method: "get",
- data: {},
- });
-}
-
-/**
- * 制品发货申请
- * 任务状态
- * 开始日期
- * 结束日期
- * 获取日期任务列表
- * @param {*}
- */
-export function getDeliverRequestList(params) {
- return request({
- url: baseApi + "/wms/deliver-request-main/senior",
- method: "post",
- data: params,
- });
-}
-/**
- * 制品发货申请 获取任务明细
- * @param {*} id 任务id
- *
- */
-export function getDeliverRequestDetail(id) {
- return request({
- url: baseApi + "/wms/deliver-request-main/getDeliverRequestById?id=" + id,
- method: "get",
- data: {},
- });
-}
/**
* 报废出库 任务
@@ -2025,6 +2241,61 @@ export function scrapJobSubmit( params) {
});
}
+/**
+ * 报废出库 申请
+ * status 任务状态
+ * 开始日期
+ * 结束日期
+ * 获取任务列表
+ * @param {*}
+ */
+export function getScrapRequestList(params) {
+ return request({
+ url: baseApi + "/wms/scrap-request-main/senior",
+ method: "post",
+ data: params,
+ });
+}
+
+/**
+ * 报废出库申请 获取申请明细
+ * @param {*} id 任务id
+ *
+ */
+export function getScrapRequestDetail(id) {
+ return request({
+ url: baseApi + "/wms/scrap-request-main/getScrapRequestById?id=" + id,
+ method: "get",
+ data: {},
+ });
+}
+
+/**
+ * 报废出库申请 提交
+ * @param {*} params
+ */
+export function scrapRequestSubmit(params) {
+ return request({
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 报废出库记录 提交
+ * @param {*} params
+ */
+export function scrapRecordSubmit(params) {
+ return request({
+ url: baseApi + "/wms/purchasereturn-request-main/submit",
+ method: "put",
+ data: params,
+ });
+}
+
+
+
/**
* 补料任务 列表
*
@@ -2083,13 +2354,97 @@ export function cancleTakeRepleinshJob(id) {
}
/**
- * 补料 提交
+ * 补料任务 提交
* @param {*} params
*/
-export function repleinshJobSubmit(id, params) {
+export function repleinshJobSubmit(params) {
return request({
- url: baseApi + "/magic-api/pda/job/putaway/jobSubmit?id=" + id,
- method: "post",
+ url: baseApi + "/magic-api/pda/job/putaway/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 补料申请 提交
+ * @param {*} params
+ */
+export function repleinshRequestSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/putaway/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 补料记录 提交
+ * @param {*} params
+ */
+export function repleinshRecordSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/putaway/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 托盘绑定 提交
+ * @param {*} params
+ */
+export function bindPalledtRecordSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/putaway/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 托盘解绑 提交
+ * @param {*} params
+ */
+export function unbindPalledtRecordSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/putaway/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 拆包 提交
+ * @param {*} params
+ */
+export function splitPackageRecordSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/putaway/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 合包 提交
+ * @param {*} params
+ */
+export function mergePackageRecordSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/putaway/jobSubmit",
+ method: "put",
+ data: params,
+ });
+}
+
+/**
+ * 翻包 提交
+ * @param {*} params
+ */
+export function overPackageRecordSubmit(params) {
+ return request({
+ url: baseApi + "/magic-api/pda/job/putaway/jobSubmit",
+ method: "put",
data: params,
});
}
diff --git a/common/basic.js b/common/basic.js
index 4133ed10..4b5a46af 100644
--- a/common/basic.js
+++ b/common/basic.js
@@ -824,20 +824,20 @@ export function vibrate() {
}
-export function getDataSource(details) {
+export function getDataSource(subList) {
let items = [];
- details.forEach(detail => {
+ subList.forEach(detail => {
var item = items.find(r =>
r.itemCode == detail.itemCode)
if (item == undefined) {
item = createItemInfo(detail);
let newDetail = createDetailInfo(detail); //
- item.details.push(newDetail);
+ item.subList.push(newDetail);
items.push(item)
} else {
item.qty += Number(detail.qty)
let newDetail = createDetailInfo(detail); //
- item.details.push(newDetail);
+ item.subList.push(newDetail);
}
})
return items;
@@ -852,7 +852,7 @@ export function createItemInfo(res) {
qty: Number(res.qty),
handleQty: 0,
uom: res.uom,
- details: []
+ subList: []
}
return item;
}
diff --git a/common/detail.js b/common/detail.js
index f2c5d88d..6cd99efc 100644
--- a/common/detail.js
+++ b/common/detail.js
@@ -1,17 +1,17 @@
-export function getDataSource(details) {
+export function getDataSource(subList) {
let items = [];
- details.forEach(detail => {
+ subList.forEach(detail => {
var item = items.find(r =>
r.itemCode == detail.itemCode)
if (item == undefined) {
item = createItemInfo(detail);
let newDetail = createDetailInfo(detail); //
- item.details.push(newDetail);
+ item.subList.push(newDetail);
items.push(item)
} else {
item.qty += detail.qty
let newDetail = createDetailInfo(detail); //
- item.details.push(newDetail);
+ item.subList.push(newDetail);
}
})
return items;
@@ -26,7 +26,7 @@ export function createItemInfo(detail) {
qty: Number(detail.qty),
handleQty: 0,
uom: detail.uom,
- details: []
+ subList: []
}
return item;
}
@@ -56,7 +56,7 @@ export function createRecordInfo(detail, balance) {
export function calcHandleQty(detailSource) {
for (let item of detailSource) {
item.handleTotalQty = 0;
- for (let detail of item.details) {
+ for (let detail of item.subList) {
if (detail != undefined && detail.scaned) {
item.handleTotalQty += Number(detail.handleQty)
}
@@ -65,8 +65,8 @@ export function calcHandleQty(detailSource) {
}
-export function getScanCount(detailList) {
- let items = detailList.filter(r => {
+export function getScanCount(subList) {
+ let items = subList.filter(r => {
if (r.scaned) {
return r;
}
diff --git a/common/record.js b/common/record.js
index a8358538..5e8fe283 100644
--- a/common/record.js
+++ b/common/record.js
@@ -15,7 +15,7 @@ export function createItemInfo(balance, pack) {
qty: Number(balance.qty),
handleQty: 0,
uom: pack.uom,
- details: []
+ subList: []
}
return item;
}
@@ -25,6 +25,8 @@ export function createDetailInfo(data, pack) {
let detail = {};
Object.assign(detail, data)
detail.balanceQty = Number(detail.qty)
+ detail.stdPackQty = Number(pack.stdPackQty)
+ detail.stdPackUnit =pack.stdPackUnit
detail.package = pack;
return detail;
}
@@ -33,7 +35,7 @@ export function createDetailInfo(data, pack) {
export function calcHandleQty(detailSource) {
for (let item of detailSource) {
item.qty = 0;
- for (let detail of item.details) {
+ for (let detail of item.subList) {
if (detail != undefined && detail.scaned) {
item.qty = item.qty + Number(detail.qty)
}
diff --git a/mycomponents/detail/comDetailCard.vue b/mycomponents/detail/comDetailCard.vue
index 8ebd7613..e0c4205a 100644
--- a/mycomponents/detail/comDetailCard.vue
+++ b/mycomponents/detail/comDetailCard.vue
@@ -7,7 +7,7 @@
-
+
diff --git a/mycomponents/detail/comRequestDetailCard.vue b/mycomponents/detail/comRequestDetailCard.vue
index 24db4008..91587423 100644
--- a/mycomponents/detail/comRequestDetailCard.vue
+++ b/mycomponents/detail/comRequestDetailCard.vue
@@ -10,7 +10,7 @@
-
+
diff --git a/mycomponents/job/jobcomDetailCard.vue b/mycomponents/job/jobcomDetailCard.vue
index 8e2b3b91..236935ff 100644
--- a/mycomponents/job/jobcomDetailCard.vue
+++ b/mycomponents/job/jobcomDetailCard.vue
@@ -7,7 +7,7 @@
-
+
diff --git a/mycomponents/record/recordComDetailCard.vue b/mycomponents/record/recordComDetailCard.vue
index c4fe3498..9e6755fc 100644
--- a/mycomponents/record/recordComDetailCard.vue
+++ b/mycomponents/record/recordComDetailCard.vue
@@ -11,7 +11,7 @@
-
+
@@ -85,7 +85,7 @@
watch: {
dataContent: {
handler(newName, oldName) {
- if (this.dataContent.details.length > 0) {
+ if (this.dataContent.subList.length > 0) {
if (this.$refs.collapse1 != undefined && this.$refs.collapse1 != null) {
this.$nextTick(res => {
this.$refs.collapse1.resize()
@@ -141,6 +141,7 @@
edit(item) {
this.editItem = item;
+ debugger
this.$refs.balanceQtyEdit.openEditPopup(this.editItem, this.editItem.qty);
},
@@ -154,7 +155,7 @@
this.$refs.comMessage.showQuestionMessage("确定移除扫描信息?",
res => {
if (res) {
- this.dataContent.details.splice(index, 1)
+ this.dataContent.subList.splice(index, 1)
this.$emit('removePack')
}
});
diff --git a/pages/count/coms/comCountDetailCard.vue b/pages/count/coms/comCountDetailCard.vue
index dc59f0a2..a2402c77 100644
--- a/pages/count/coms/comCountDetailCard.vue
+++ b/pages/count/coms/comCountDetailCard.vue
@@ -10,7 +10,7 @@
-
+
@@ -58,7 +58,7 @@
watch: {
dataContent: {
handler(newName, oldName) {
- if (this.dataContent.details.length > 0) {
+ if (this.dataContent.subList.length > 0) {
if (this.$refs.collapse1 != undefined) {
this.$nextTick(res => {
this.$refs.collapse1.resize()
@@ -129,7 +129,7 @@
this.$refs.comMessage.showQuestionMessage("确定移除扫描信息?",
res => {
if (res) {
- // this.dataContent.details.splice(index, 1)
+ // this.dataContent.subList.splice(index, 1)
item.scaned = false;
item.record = null;
this.$emit('removePack')
diff --git a/pages/count/job/countDetail.vue b/pages/count/job/countDetail.vue
index dd644cb2..80790ecc 100644
--- a/pages/count/job/countDetail.vue
+++ b/pages/count/job/countDetail.vue
@@ -1,4 +1,3 @@
-
0) {
that.jobContent = res.data;
that.fromLocationCode = that.jobContent.locationCode;
- that.detailList = res.data.subList;
- that.detailSource = that.getDataSource(that.detailList)
+ that.subList = res.data.subList;
+ that.detailSource = that.getDataSource(that.subList)
} else {
that.showErrorMessage('列表数据为0');
}
@@ -174,20 +172,20 @@
})
},
- getDataSource(details) {
+ getDataSource(subList) {
let items = [];
- details.forEach(detail => {
+ subList.forEach(detail => {
var item = items.find(r =>
r.itemCode == detail.itemCode)
if (item == undefined) {
item = this.createItemInfo(detail);
let newDetail = this.createDetailInfo(detail); //
- item.details.push(newDetail);
+ item.subList.push(newDetail);
items.push(item)
} else {
item.qty += detail.qty
let newDetail = this.createDetailInfo(detail); //
- item.details.push(newDetail);
+ item.subList.push(newDetail);
}
})
return items;
@@ -202,7 +200,7 @@
qty: Number(res.qty),
handleQty: 0,
uom: res.uom,
- details: []
+ subList: []
}
return item;
},
@@ -218,13 +216,13 @@
},
calcScanCount(closeScan) {
- let items = this.detailList.filter(r => {
+ let items = this.subList.filter(r => {
if (r.scaned) {
return r;
}
})
this.scanCount = items != null ? items.length : 0;
- if (this.scanCount == this.detailList.length) {
+ if (this.scanCount == this.subList.length) {
this.closeScanPopup();
}
},
@@ -232,7 +230,7 @@
calcHandleQty() {
for (let item of this.detailSource) {
item.handleQty = 0;
- for (let detail of item.details) {
+ for (let detail of item.subList) {
if (detail.scaned) {
if (detail.record != undefined) {
item.handleQty += Number(detail.record.qty)
@@ -259,7 +257,7 @@
let fromlocationList = [];
for (var i = 0; i < this.detailSource.length; i++) {
let item = this.detailSource[i];
- item.details.forEach(l => {
+ item.subList.forEach(l => {
//重复的库位不往里面插入
var location = fromlocationList.filter(res => res.fromLocationCode != l.fromLocationCode)
if (location.length == 0) {
@@ -300,17 +298,17 @@
// var itemDetail;
// var index;
- // for (var i = 0; i < detail.details.length; i++) {
- // if (detail.details[i].packingNumber == packingNumber &&
- // detail.details[i].batch == batch &&
- // detail.details[i].inventoryStatus == inventoryStatus) {
+ // for (var i = 0; i < detail.subList.length; i++) {
+ // if (detail.subList[i].packingNumber == packingNumber &&
+ // detail.subList[i].batch == batch &&
+ // detail.subList[i].inventoryStatus == inventoryStatus) {
// index = i;
- // itemDetail = detail.details[i]
+ // itemDetail = detail.subList[i]
// break
// }
// }
- this.itemEditInfo = detail.details.find(item => {
+ this.itemEditInfo = detail.subList.find(item => {
if (item.packingNumber == packingNumber &&
item.batch == batch &&
item.inventoryStatus == inventoryStatus) {
@@ -331,7 +329,7 @@
// this.$.refs["countDetail_" + index][0].edit(itemDetail)
if (res) {
this.$refs.CountQtyEdit.openEditPopup(this.itemEditInfo.record,
- detail.details);
+ detail.subList);
} else {
this.scanPopupGetFocus();
}
@@ -344,7 +342,7 @@
this.itemEditInfo.record.stdPackQty = result.package.stdPackQty;
this.itemEditInfo.record.stdPackUnit = result.package.stdPackUnit;
this.$refs.CountQtyEdit.openEditPopupShowSeconds(this.itemEditInfo.record, detail
- .details);
+ .subList);
this.updateData()
}
}
@@ -362,7 +360,7 @@
var item = this.createAddItemInfo(result.balance, result.package);
let newDetail = this.createAddDetailInfo(result.balance, result.package); //
newDetail.record = this.createRecordInfo(newDetail);
- item.details.push(newDetail);
+ item.subList.push(newDetail);
this.detailSource.push(item)
this.updateData()
}
@@ -378,7 +376,7 @@
detail.qty += Number(detail.qty)
let newDetail = this.createAddDetailInfo(result.balance, result.package); //
newDetail.record = this.createRecordInfo(newDetail);
- detail.details.push(newDetail);
+ detail.subList.push(newDetail);
var test = this.detailSource;
this.updateData()
@@ -395,7 +393,7 @@
qty: Number(balance.qty),
handleQty: 0,
uom: pack.uom,
- details: []
+ subList: []
}
return item;
},
@@ -451,9 +449,9 @@
},
commit() {
- if (this.scanCount == this.detailList.length) {
+ if (this.scanCount == this.subList.length) {
this.submitJob();
- } else if (this.scanCount < this.detailList.length) {
+ } else if (this.scanCount < this.subList.length) {
//扫描数量小于任务数量,判断是否允许部分提交
if (this.jobContent.allowPartialComplete == "TRUE") {
//提交
@@ -462,7 +460,7 @@
//不允许部分提交,提示
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
- .detailList.length + "]箱", res => {
+ .subList.length + "]箱", res => {
if (res) {
this.openScanPopup();
}
@@ -515,7 +513,7 @@
var creator = this.$store.state.user.id
this.detailSource.forEach(item => {
- item.details.forEach(detail => {
+ item.subList.forEach(detail => {
if (detail.scaned) {
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
@@ -559,12 +557,6 @@
this.scanPopupGetFocus();
},
-
- scroll: function(e) {
- // console.log(e)
- this.old.scrollTop = e.receiptJob.scrollTop;
- },
-
closeCommitMessage() {
setTimeout(() => {
uni.navigateTo({
@@ -577,7 +569,7 @@
editItem(item) {
var detail = this.detailSource.find(r => r.itemCode == item.record.itemCode);
this.$refs.CountQtyEdit.openEditPopup(item.record,
- detail.details);
+ detail.subList);
},
showCommitSuccessMessage(hint) {
diff --git a/pages/count/record/countRecord.vue b/pages/count/record/countRecord.vue
index de913193..41c77a7a 100644
--- a/pages/count/record/countRecord.vue
+++ b/pages/count/record/countRecord.vue
@@ -1,4 +1,3 @@
-
@@ -96,12 +95,8 @@
isShowPackingCode: true,
scanCount: 0,
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
- scrollTop: 0,
- old: {
- scrollTop: 0
- },
locationTypeList: [],
toLocationInfo: {},
businessTypeInfo: {},
@@ -146,13 +141,13 @@
},
methods: {
calcScanCount(closeScan) {
- let items = this.detailList.filter(r => {
+ let items = this.subList.filter(r => {
if (r.scaned) {
return r;
}
})
this.scanCount = items != null ? items.length : 0;
- if (this.scanCount == this.detailList.length) {
+ if (this.scanCount == this.subList.length) {
this.closeScanPopup();
}
},
@@ -160,7 +155,7 @@
calcHandleQty() {
for (let item of this.detailSource) {
item.handleQty = 0;
- for (let detail of item.details) {
+ for (let detail of item.subList) {
if (item.scaned) {
item.handleQty += Number(detail.qty)
}
@@ -203,8 +198,8 @@
inventoryStatus: []
};
balanceByLocation(param, res => {
- this.detailList = res.Data;
- this.detailSource = getDataSource(this.detailList);
+ this.subList = res.Data;
+ this.detailSource = getDataSource(this.subList);
});
},
@@ -212,7 +207,7 @@
removePack() {
for (var i = 0; i < this.detailSource.length; i++) {
var item = this.detailSource[i];
- if (item.details.length == 0) {
+ if (item.subList.length == 0) {
this.detailSource.splice(i, 1)
}
}
@@ -250,7 +245,7 @@
} else {
//零件号存在,查询是否在任务列表中
- this.itemEditInfo = detail.details.find(item => {
+ this.itemEditInfo = detail.subList.find(item => {
if (item.packingNumber == packingNumber &&
item.batch == batch &&
item.inventoryStatus == inventoryStatus) {
@@ -268,7 +263,7 @@
res => {
if (res) {
this.$refs.CountQtyEdit.openEditPopup(this.itemEditInfo,
- detail.details);
+ detail.subList);
}
else
{
@@ -293,7 +288,7 @@
addNewItemCodeToList(result) {
var item = this.createAddItemInfo(result.balance, result.package);
let newDetail = this.createAddDetailInfo(result.balance, result.package); //
- item.details.push(newDetail);
+ item.subList.push(newDetail);
this.detailSource.push(item)
},
@@ -311,7 +306,7 @@
addExistItemCodeToList(detail, result) {
detail.qty += detail.qty
let newDetail = this.createAddDetailInfo(result.balance, result.package); //
- detail.details.push(newDetail);
+ detail.subList.push(newDetail);
},
createAddItemInfo(balance, pack) {
@@ -323,7 +318,7 @@
qty: balance.qty,
handleQty: 0,
uom: pack.uom,
- details: []
+ subList: []
}
return item;
},
@@ -363,7 +358,7 @@
editItem(val) {
var detail = this.detailSource.find(r => r.itemCode == val.itemCode);
this.$refs.CountQtyEdit.openEditPopup(val,
- detail.details);
+ detail.subList);
},
editConfirm() {
@@ -406,8 +401,8 @@
// })
} else {
this.calcScanCount();
- if (this.scanCount < this.detailList.length) {
- this.showMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount + "]总共[" + this.detailList.length +
+ if (this.scanCount < this.subList.length) {
+ this.showMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount + "]总共[" + this.subList.length +
"]");
}
}
@@ -446,13 +441,13 @@
extraProperties: this.jobContent.extraProperties,
siteld: this.jobContent.siteld,
code: "",
- details: [
+ subList: [
],
}
this.detailSource.forEach(res => {
- res.details.forEach(res1 => {
+ res.subList.forEach(res1 => {
if (res1.scaned) {
res1.FromLocationGroupCode = "";
res1.FromAreaCode = "";
@@ -467,7 +462,7 @@
res1.Code = "";
res1.JobDetailID = res1.id;
res1.interfaceType = "jklxPURCHASE_RECEIPT";
- params.details.push(res1)
+ params.subList.push(res1)
}
})
})
@@ -502,12 +497,6 @@
this.scanPopupGetFocus();
},
-
- scroll: function(e) {
- // console.log(e)
- this.old.scrollTop = e.receiptJob.scrollTop;
- },
-
closeCommitMessage() {
setTimeout(() => {
uni.navigateTo({
diff --git a/pages/customerReturn/coms/comReturnRecord.vue b/pages/customerReturn/coms/comReturnRecord.vue
index 5528217d..a77940f5 100644
--- a/pages/customerReturn/coms/comReturnRecord.vue
+++ b/pages/customerReturn/coms/comReturnRecord.vue
@@ -12,7 +12,7 @@
-
+
@@ -66,7 +66,7 @@
watch: {
dataContent: {
handler(newName, oldName) {
- if (this.dataContent.details.length > 0) {
+ if (this.dataContent.subList.length > 0) {
if (this.$refs.collapse1 != undefined) {
this.$nextTick(res => {
this.$refs.collapse1.resize()
@@ -157,7 +157,7 @@
this.$refs.comMessage.showQuestionMessage("确定移除扫描信息?",
res => {
if (res) {
- this.dataContent.details.splice(index, 1)
+ this.dataContent.subList.splice(index, 1)
this.$emit('removePack')
}
});
diff --git a/pages/customerReturn/job/returnDetail.vue b/pages/customerReturn/job/returnDetail.vue
index 4efcecff..037db6e6 100644
--- a/pages/customerReturn/job/returnDetail.vue
+++ b/pages/customerReturn/job/returnDetail.vue
@@ -1,4 +1,3 @@
-
@@ -86,12 +85,8 @@
received: false,
scanCount: 0,
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
- scrollTop: 0,
- old: {
- scrollTop: 0
- },
managementList: [],
fromLocationCode: "",
toLocationCode: "",
@@ -172,11 +167,11 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
- that.detailList = res.data.subList;
- that.detailSource = getDataSource(that.detailList)
+ that.subList = res.data.subList;
+ that.detailSource = getDataSource(that.subList)
- that.fromLocationCode = that.detailList[0].fromLocationCode
- that.toLocationCode = that.detailList[0].toLocationCode
+ that.fromLocationCode = that.subList[0].fromLocationCode
+ that.toLocationCode = that.subList[0].toLocationCode
that.tolocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)
that.getLocationInfo(that.toLocationCode);
@@ -209,7 +204,7 @@
//继续扫描
continueScan() {
this.scanCount = this.getScanCount();
- if (this.scanCount == this.detailList.length) {
+ if (this.scanCount == this.subList.length) {
this.closeScanPopup();
} else {
this.scanPopupGetFocus();
@@ -217,7 +212,7 @@
},
getScanCount(closeScan) {
- let items = this.detailList.filter(r => {
+ let items = this.subList.filter(r => {
if (r.scaned) {
return r;
}
@@ -239,7 +234,7 @@
let fromlocationList = [];
for (var i = 0; i < this.detailSource.length; i++) {
let item = this.detailSource[i];
- item.details.forEach(l => {
+ item.subList.forEach(l => {
//重复的库位不往里面插入
var location = fromlocationList.filter(res => res.fromLocationCode != l.fromLocationCode)
if (location.length == 0) {
@@ -273,7 +268,7 @@
if (detail == undefined) {
this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
} else {
- var itemDetail = detail.details.find(r => {
+ var itemDetail = detail.subList.find(r => {
return r.packingNumber == packingNumber &&
r.batch == batch
})
@@ -321,9 +316,9 @@
}
//扫描数量和任务数量相等,直接提交
- if (this.scanCount == this.detailList.length) {
+ if (this.scanCount == this.subList.length) {
this.submitJob();
- } else if (this.scanCount < this.detailList.length) {
+ } else if (this.scanCount < this.subList.length) {
//扫描数量小于任务数量,判断是否允许部分提交
if (this.jobContent.allowPartialComplete == "TRUE") {
//提交
@@ -331,7 +326,7 @@
} else {
//不允许部分提交,提示
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
- "]箱总共[" + this.detailList.length + "]箱", res => {
+ "]箱总共[" + this.subList.length + "]箱", res => {
if (res) {
this.openScanPopup();
}
@@ -382,7 +377,7 @@
var creator = this.$store.state.user.id
this.detailSource.forEach(item => {
- item.details.forEach(detail => {
+ item.subList.forEach(detail => {
if (detail.scaned) {
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
diff --git a/pages/customerReturn/record/returnRecord.vue b/pages/customerReturn/record/returnRecord.vue
index 2508b889..63e9edb9 100644
--- a/pages/customerReturn/record/returnRecord.vue
+++ b/pages/customerReturn/record/returnRecord.vue
@@ -1,4 +1,3 @@
-
@@ -44,7 +43,9 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 客户 :
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/deliver/request/deliverRequest.vue b/pages/deliver/request/deliverRequest.vue
index d96a6190..fd05e66b 100644
--- a/pages/deliver/request/deliverRequest.vue
+++ b/pages/deliver/request/deliverRequest.vue
@@ -14,9 +14,9 @@
-
+
diff --git a/pages/deliver/request/deliverRequestDetail.vue b/pages/deliver/request/deliverRequestDetail.vue
index f4b8f315..ec60c608 100644
--- a/pages/deliver/request/deliverRequestDetail.vue
+++ b/pages/deliver/request/deliverRequestDetail.vue
@@ -1,4 +1,3 @@
-
@@ -46,7 +45,7 @@
return {
id: '',
requestContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务details
detailSource: [], //绑定在页面上的数据源
};
},
@@ -84,11 +83,11 @@
} else {
if (res.data.subList.length > 0) {
that.requestContent = res.data;
- that.detailList = res.data.subList;
- that.detailList.forEach(res => {
+ that.subList = res.data.subList;
+ that.subList.forEach(res => {
res.fromLocationCode = res.toLocationCode
})
- that.detailSource = getDataSource(that.detailList);
+ that.detailSource = getDataSource(that.subList);
} else {
that.showMessage('列表数据为0');
}
diff --git a/pages/inspect/coms/comInspectDetailCard.vue b/pages/inspect/coms/comInspectDetailCard.vue
index 0f6e8745..df757bea 100644
--- a/pages/inspect/coms/comInspectDetailCard.vue
+++ b/pages/inspect/coms/comInspectDetailCard.vue
@@ -6,7 +6,7 @@
-
+
diff --git a/pages/inspect/coms/inspectComDetailCard.vue b/pages/inspect/coms/inspectComDetailCard.vue
index b7c47d0b..64a9c954 100644
--- a/pages/inspect/coms/inspectComDetailCard.vue
+++ b/pages/inspect/coms/inspectComDetailCard.vue
@@ -10,7 +10,7 @@
-
+
@@ -159,7 +159,7 @@
this.$emit('updateData')
},
getInspectResult(result){
- this.dataContent.details[this.editIndex]= result;
+ this.dataContent.subList[this.editIndex]= result;
if (this.$refs.collapse1 != undefined) {
this.$nextTick(res => {
this.$refs.collapse1.resize()
diff --git a/pages/inspect/coms/inspectEdit.vue b/pages/inspect/coms/inspectEdit.vue
index 6ec5593c..b5cc6848 100644
--- a/pages/inspect/coms/inspectEdit.vue
+++ b/pages/inspect/coms/inspectEdit.vue
@@ -80,10 +80,6 @@
id: '',
failedReasonIndex: 0,
failedReasonArray: [],
- scrollTop: 0,
- old: {
- scrollTop: 0
- },
dataContent: {},
failedReasonArray: []
}
diff --git a/pages/inspect/job/inspectDetail.vue b/pages/inspect/job/inspectDetail.vue
index c94b806b..e9142465 100644
--- a/pages/inspect/job/inspectDetail.vue
+++ b/pages/inspect/job/inspectDetail.vue
@@ -1,4 +1,3 @@
-
@@ -44,8 +43,10 @@
goHome,
getCurrDateTime,
getPackingNumberAndBatch,
- getInventoryStatusName
} from '@/common/basic.js';
+ import {
+ getInventoryStatusName
+ } from '@/common/directory.js';
import {
getManagementPrecisions
@@ -81,7 +82,7 @@
received: false,
scanCount: 0,
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
toLocationInfo: {},
businessTypeInfo: {},
@@ -94,7 +95,7 @@
this.id = option.id;
if (this.id != undefined) {
// //新建的任务自动接收
- // if (option.status == "JOB_PENDING") {
+ // if (option.status == "1") {
// this.receive((callback => {
// this.received = true;
// this.getDetail();
@@ -171,8 +172,8 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
- that.detailList = res.data.subList;
- that.detailList.forEach(res => {
+ that.subList = res.data.subList;
+ that.subList.forEach(res => {
res.batch =that.jobContent.batch
res.goodQty = 0;
res.failedQty = 0;
@@ -183,7 +184,7 @@
res.photos = ""
res.inspectResult =""
})
- that.detailSource = getDataSource(that.detailList);
+ that.detailSource = getDataSource(that.subList);
} else {
that.showMessage('列表数据为0');
}
@@ -197,13 +198,13 @@
calcScanCount(closeScan) {
- let items = this.detailList.filter(r => {
+ let items = this.subList.filter(r => {
if (r.scaned) {
return r;
}
})
this.scanCount = items != null ? items.length : 0;
- if (this.scanCount == this.detailList.length) {
+ if (this.scanCount == this.subList.length) {
this.closeScanPopup();
}
},
@@ -217,8 +218,8 @@
//继续扫描
continueScan() {
- this.scanCount = getScanCount(this.detailList);
- if (this.scanCount == this.detailList.length) {
+ this.scanCount = getScanCount(this.subList);
+ if (this.scanCount == this.subList.length) {
this.closeScanPopup();
} else {
this.scanPopupGetFocus();
@@ -234,7 +235,7 @@
let fromlocationList = [];
for (var i = 0; i < this.detailSource.length; i++) {
let item = this.detailSource[i];
- item.details.forEach(l => {
+ item.subList.forEach(l => {
//重复的库位不往里面插入
var location = fromlocationList.filter(res => res.fromLocationCode != l.fromLocationCode)
if (location.length == 0) {
@@ -262,7 +263,7 @@
if (detail == undefined) {
this.showMessage("物料号【" + itemCode + "】不在列表中")
} else {
- var itemDetail = detail.details.find(r => {
+ var itemDetail = detail.subList.find(r => {
return r.packingNumber == packingNumber
// &&
// r.batch == batch
@@ -300,22 +301,24 @@
}
},
- async commit() {
- //允许部分提交
- if (this.jobContent.allowPartialComplete == "TRUE") {
+ commit() {
+ //扫描数量和任务数量相等,直接提交
+ if (this.scanCount == this.subList.length) {
this.submitJob();
- } else {
- this.scanCount = getScanCount(this.detailList);
- if (this.scanCount < this.detailList.length) {
+ } else if (this.scanCount < this.subList.length) {
+ //扫描数量小于任务数量,判断是否允许部分提交
+ if (this.jobContent.allowPartialComplete == "TRUE") {
+ //提交
+ this.submitJob();
+ } else {
+ //不允许部分提交,提示
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
- .detailList.length + "]箱", res => {
+ .subList.length + "]箱", res => {
if (res) {
this.openScanPopup();
}
});
- } else {
- this.submitJob();
}
}
},
@@ -327,18 +330,18 @@
});
var params = this.setParams();
- // submitInspectJob(this.id, params).then(res => {
- // if (res.data) {
- // var hint = res.data.Number;
- // this.showCommitSuccessMessage(res.data.Number)
- // uni.hideLoading();
- // } else {
- // this.showErrorMessage("提交失败");
- // }
- // }).catch(error => {
- // uni.hideLoading();
- // this.showErrorMessage(error);
- // })
+ console.log("提交参数", params)
+ inspectJobSubmit(params).then(res => {
+ uni.hideLoading()
+ if (res.data) {
+ this.showCommitSuccessMessage("提交成功
生成到货检验记录" + res.data, )
+ } else {
+ this.showErrorMessage("提交失败"+res.msg)
+ }
+ }).catch(error => {
+ uni.hideLoading();
+ this.showErrorMessage(error);
+ })
},
@@ -397,22 +400,10 @@
this.scanPopupGetFocus();
},
-
- closeCommitMessage() {
- setTimeout(() => {
- uni.navigateTo({
- url: './receipt'
- })
- })
- //点关闭直接返回列表
- uni.hideLoading();
- },
-
-
setParams() {
var list = []
this.detailSource.forEach(res => {
- res.details.forEach(detail => {
+ res.subList.forEach(detail => {
if (detail.scaned) {
detail.sampleQty = detail.qty;
detail.failedQty = detail.failedQty;
@@ -439,20 +430,17 @@
})
})
this.jobContent.subList = list
- var tttt = JSON.stringify(this.jobContent);
- console.log("提交参数", tttt)
},
-
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
-
+ setTimeout(() => {
+ uni.navigateTo({
+ url: './inspectJob'
+ })
+ }, 3000)
})
- setTimeout(() => {
- uni.navigateTo({
- url: './receiptJob'
- })
- }, 3000)
+
},
}
diff --git a/pages/inspect/job/inspectResult.vue b/pages/inspect/job/inspectResult.vue
index 83cc5862..7b91b8f4 100644
--- a/pages/inspect/job/inspectResult.vue
+++ b/pages/inspect/job/inspectResult.vue
@@ -110,7 +110,7 @@
+ v-for="(item, index) in subList" :key="item.id">
{{index+1}}.
@@ -170,7 +170,7 @@
locations: [],
value: ['0'],
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务details
detailSource: [], //绑定在页面上的数据源
nextActionList: [],
nextAction: null,
@@ -211,7 +211,7 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
- that.detailList = res.data.subList;
+ that.subList = res.data.subList;
that.inspectType =that.jobContent.inspectType;
that.jobContent.goodQty = null, //合格数量
that.jobContent.failedQty = null,//不合格数量
@@ -312,6 +312,9 @@
res.goodQty = this.jobContent.receiveQty;
res.fromInventory_status = res.inventoryStatus
res.toInventoryStatus = res.inventoryStatus
+ res.failedReason ="";
+ res.photos = ""
+ res.inspectResult =""
})
var tttt = JSON.stringify(this.jobContent);
console.log("提交参数", tttt)
@@ -332,6 +335,9 @@
res.goodQty = 0;
res.from_inventory_status = res.inventoryStatus
res.toInventoryStatus = "NOK"
+ res.failedReason ="";
+ res.photos = ""
+ res.inspectResult =""
})
var tttt = JSON.stringify(this.jobContent);
console.log("提交参数", tttt)
@@ -351,6 +357,9 @@
res.goodQty =this.jobContent.receiveQty;
res.fromInventory_status = res.inventoryStatus
res.toInventoryStatus = res.inventoryStatus
+ res.failedReason ="";
+ res.photos = ""
+ res.inspectResult =""
})
var tttt = JSON.stringify(this.jobContent);
console.log("提交参数", tttt)
diff --git a/pages/inspect/request/inspectRequestDetail.vue b/pages/inspect/request/inspectRequestDetail.vue
index 73d9cd70..a74b28ba 100644
--- a/pages/inspect/request/inspectRequestDetail.vue
+++ b/pages/inspect/request/inspectRequestDetail.vue
@@ -57,7 +57,7 @@
return {
id: '',
requestContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务details
detailSource: [], //绑定在页面上的数据源
};
},
@@ -94,10 +94,10 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
- that.detailList = res.data.subList;
- that.detailSource = getDataSource(that.detailList)
- // that.detailList = res.data[0];
- // that.detailList.forEach(res=>{
+ that.subList = res.data.subList;
+ that.detailSource = getDataSource(that.subList)
+ // that.subList = res.data[0];
+ // that.subList.forEach(res=>{
// res.packingNumber =res.toPackingNumber
// res.batch =res.fromBatch
// })
diff --git a/pages/inventoryMove/coms/comInventoryDetailCard.vue b/pages/inventoryMove/coms/comInventoryDetailCard.vue
index bf62fc3e..3516f003 100644
--- a/pages/inventoryMove/coms/comInventoryDetailCard.vue
+++ b/pages/inventoryMove/coms/comInventoryDetailCard.vue
@@ -6,7 +6,7 @@
-
+
diff --git a/pages/inventoryMove/coms/comMove.vue b/pages/inventoryMove/coms/comMove.vue
index 164913b5..935bd2f3 100644
--- a/pages/inventoryMove/coms/comMove.vue
+++ b/pages/inventoryMove/coms/comMove.vue
@@ -188,10 +188,10 @@
if (item == undefined) {
var itemp = this.createItemInfo(balance,pack);
let newDetail = this.createDetailInfo(balance, pack); //
- itemp.details.push(newDetail);
+ itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
- var detail = item.details.find(r => {
+ var detail = item.subList.find(r => {
if (r.packingNumber == balance.packingNumber &&
r.batch == balance.batch &&
r.locationCode == balance.locationCode &&
@@ -203,7 +203,7 @@
if (detail == undefined) {
let newDetail = this.createDetailInfo(balance, pack);
- item.details.push(newDetail);
+ item.subList.push(newDetail);
} else {
this.showErrorMessage(balance.packingNumber + "已经在列表中")
}
@@ -221,7 +221,7 @@
qty: balance.qty,
handleQty: 0,
uom: pack.uom,
- details: []
+ subList: []
}
return item;
},
@@ -239,7 +239,7 @@
calcHandleQty() {
for (let item of this.detailSource) {
item.qty = 0;
- for (let detail of item.details) {
+ for (let detail of item.subList) {
if (detail != undefined) {
item.qty += detail.qty
}
@@ -262,7 +262,7 @@
removePack() {
for (var i = 0; i < this.detailSource.length; i++) {
var item = this.detailSource[i];
- if (item.details.length == 0) {
+ if (item.subList.length == 0) {
this.detailSource.splice(i, 1)
}
}
diff --git a/pages/inventoryMove/coms/comMoveRecord.vue b/pages/inventoryMove/coms/comMoveRecord.vue
index b7e9a40c..837b7ddf 100644
--- a/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/pages/inventoryMove/coms/comMoveRecord.vue
@@ -11,7 +11,7 @@
-
+
@@ -159,7 +159,7 @@
this.$refs.comMessage.showQuestionMessage("确定移除扫描信息?",
res => {
if (res) {
- this.dataContent.details.splice(index, 1)
+ this.dataContent.subList.splice(index, 1)
this.$emit('removePack', item)
}
});
diff --git a/pages/inventoryMove/job/inventoryMoveDetail.vue b/pages/inventoryMove/job/inventoryMoveDetail.vue
index 9766b7d1..9872a5ad 100644
--- a/pages/inventoryMove/job/inventoryMoveDetail.vue
+++ b/pages/inventoryMove/job/inventoryMoveDetail.vue
@@ -71,12 +71,8 @@
received: false,
scanCount: 0,
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
- scrollTop: 0,
- old: {
- scrollTop: 0
- },
toLocationInfo: {},
businessTypeInfo: {},
locationTypeList: [],
@@ -164,8 +160,8 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
- that.detailList = res.data.subList;
- that.detailSource = that.getDataSource(that.detailList)
+ that.subList = res.data.subList;
+ that.detailSource = that.getDataSource(that.subList)
updateTitle(this.jobContent.number);
} else {
that.showMessage('列表数据为0');
@@ -178,20 +174,20 @@
},
- getDataSource(details) {
+ getDataSource(subList) {
let items = [];
- details.forEach(detail => {
+ subList.forEach(detail => {
var item = items.find(r =>
r.itemCode == detail.itemCode)
if (item == undefined) {
item = this.createItemInfo(detail);
let newDetail = this.createDetailInfo(detail); //
- item.details.push(newDetail);
+ item.subList.push(newDetail);
items.push(item)
} else {
item.qty += detail.qty
let newDetail = this.createDetailInfo(detail); //
- item.details.push(newDetail);
+ item.subList.push(newDetail);
}
})
return items;
@@ -206,7 +202,7 @@
qty: res.qty,
handleQty: 0,
uom: res.uom,
- details: []
+ subList: []
}
return item;
},
@@ -219,13 +215,13 @@
},
calcScanCount(closeScan) {
- let items = this.detailList.filter(r => {
+ let items = this.subList.filter(r => {
if (r.scaned) {
return r;
}
})
this.scanCount = items != null ? items.length : 0;
- if (this.scanCount == this.detailList.length) {
+ if (this.scanCount == this.subList.length) {
this.closeScanPopup();
}
},
@@ -233,7 +229,7 @@
calcHandleQty() {
for (let item of this.detailSource) {
item.handleQty = 0;
- for (let detail of item.details) {
+ for (let detail of item.subList) {
if (detail.record != undefined) {
item.handleQty += Number(detail.record.qty)
}
@@ -247,7 +243,7 @@
//继续扫描
continueScan() {
this.scanCount = this.getScanCount();
- if (this.scanCount == this.detailList.length) {
+ if (this.scanCount == this.subList.length) {
this.closeScanPopup();
} else {
this.scanPopupGetFocus();
@@ -255,7 +251,7 @@
},
getScanCount(closeScan) {
- let items = this.detailList.filter(r => {
+ let items = this.subList.filter(r => {
if (r.scaned) {
return r;
}
@@ -273,7 +269,7 @@
let fromlocationList = [];
for (var i = 0; i < this.detailSource.length; i++) {
let item = this.detailSource[i];
- item.details.forEach(l => {
+ item.subList.forEach(l => {
//重复的库位不往里面插入
var location = fromlocationList.filter(res => res.fromLocationCode != l.fromLocationCode)
if (location.length == 0) {
@@ -301,7 +297,7 @@
if (detail == undefined) {
this.showMessage("物料号【" + itemCode + "】不在列表中")
} else {
- var itemDetail = detail.details.find(r => {
+ var itemDetail = detail.subList.find(r => {
return r.packingNumber == packingNumber &&
r.batch == batch
})
@@ -354,9 +350,9 @@
async commit() {
//允许部分提交
//扫描数量和任务数量相等,直接提交
- if (this.scanCount == this.detailList.length) {
+ if (this.scanCount == this.subList.length) {
this.submitJob();
- } else if (this.scanCount < this.detailList.length) {
+ } else if (this.scanCount < this.subList.length) {
//扫描数量小于任务数量,判断是否允许部分提交
if (this.jobContent.allowPartialComplete == "TRUE") {
//提交
@@ -365,7 +361,7 @@
//不允许部分提交,提示
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
- .detailList.length + "]箱", res => {
+ .subList.length + "]箱", res => {
if (res) {
this.openScanPopup();
}
@@ -442,12 +438,12 @@
extraProperties: this.jobContent.extraProperties,
siteId: this.jobContent.siteId,
Code: "",
- details: [],
+ subList: [],
}
this.detailSource.forEach(item => {
- item.details.forEach(detail => {
+ item.subList.forEach(detail => {
if (detail.scaned) {
detail.record.fromPackingNumber = detail.record.packingNumber
detail.record.toPackingNumber = detail.record.packingNumber
@@ -469,7 +465,7 @@
detail.record.projectCode = "",
detail.record.Code = ""
detail.record.interfaceType = "jklxPURCHASE_RETURN"
- params.details.push(detail.record)
+ params.subList.push(detail.record)
}
})
})
@@ -532,12 +528,6 @@
this.scanPopupGetFocus();
},
-
- scroll: function(e) {
- // console.log(e)
- this.old.scrollTop = e.datacontent.scrollTop;
- },
-
closeCommitMessage() {
setTimeout(() => {
uni.navigateTo({
diff --git a/pages/issue-按批次推荐/job/issueDetail.vue b/pages/issue-按批次推荐/job/issueDetail.vue
index 5201bb10..775791e2 100644
--- a/pages/issue-按批次推荐/job/issueDetail.vue
+++ b/pages/issue-按批次推荐/job/issueDetail.vue
@@ -91,7 +91,7 @@
currentData: {},
id: '',
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
detailOptions: [],
scanOptions: []
@@ -162,10 +162,10 @@
mask: true
});
getIssueJobDetail(that.id).then(res => {
- if (res.data[0].details.length > 0) {
+ if (res.data[0].subList.length > 0) {
that.jobContent = res.data[0];
- that.detailList = res.data[0].details;
- that.detailSource = that.getDataSource(that.detailList)
+ that.subList = res.data[0].subList;
+ that.detailSource = that.getDataSource(that.subList)
that.resizeCollapse();
uni.hideLoading();
} else {
@@ -177,11 +177,11 @@
})
},
- getDataSource(details) {
+ getDataSource(subList) {
let list = [];
let that = this;
- for (var i = 0; i < details.length; i++) {
- let detail = details[i];
+ for (var i = 0; i < subList.length; i++) {
+ let detail = subList[i];
var location = list.find(r =>
r.toLocationCode == detail.toLocationCode)
if (location == undefined) {
diff --git a/pages/issue/job/issueDetail.vue b/pages/issue/job/issueDetail.vue
index 55be5452..615c1767 100644
--- a/pages/issue/job/issueDetail.vue
+++ b/pages/issue/job/issueDetail.vue
@@ -63,7 +63,7 @@
return {
id: '',
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
detailOptions: [],
scanOptions: []
@@ -141,10 +141,10 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
- that.detailList = res.data.subList;
- that.detailSource = getDataSource(that.detailSource, that.detailList)
- // that.fromLocationCode = that.detailList[0].FromLocationCode
- // that.toLocationCode = that.detailList[0].toLocationCode
+ that.subList = res.data.subList;
+ that.detailSource = getDataSource(that.detailSource, that.subList)
+ // that.fromLocationCode = that.subList[0].FromLocationCode
+ // that.toLocationCode = that.subList[0].toLocationCode
// that.tolocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes)
updateTitle(this.jobContent.number);
that.resizeCollapse();
diff --git a/pages/issue/js/issue.js b/pages/issue/js/issue.js
index 4e783152..55842f6a 100644
--- a/pages/issue/js/issue.js
+++ b/pages/issue/js/issue.js
@@ -1,6 +1,6 @@
-export function getDataSource(list,details) {
- for (var i = 0; i < details.length; i++) {
- let detail = details[i];
+export function getDataSource(list,subList) {
+ for (var i = 0; i < subList.length; i++) {
+ let detail = subList[i];
var location = list.find(r =>
r.toLocationCode == detail.toLocationCode)
if (location == undefined) {
diff --git a/pages/issue/record/issueRecord.vue b/pages/issue/record/issueRecord.vue
index 54144848..2d024c2b 100644
--- a/pages/issue/record/issueRecord.vue
+++ b/pages/issue/record/issueRecord.vue
@@ -36,6 +36,12 @@
// import {
// getIssueJobDetail,
// } from '@/api/request.js';
+
+ import {
+ // getIssueJobDetail,
+ issueRequestSubmit,
+ issueRecordSubmit
+ } from '@/api/request2.js';
import {
goHome,
@@ -70,7 +76,7 @@
return {
id: '1689889453461090304',
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
detailOptions: [],
scanOptions: [],
@@ -103,8 +109,8 @@
mask: true
});
getIssueJobDetail(this.id).then(res => {
- if (res.data[0].details.length > 0) {
- that.detailList = res.data[0].details;
+ if (res.data[0].subList.length > 0) {
+ that.subList = res.data[0].subList;
if (action == 'update') //更新需求信息,将原来的零件节点删除
{
let index = that.detailSource[0].Items.findIndex(r => r.itemCode == item.itemCode);
@@ -112,7 +118,7 @@
that.detailSource[0].Items.splice(index, 1);
}
}
- that.detailSource = getDataSource(that.detailSource, that.detailList)
+ that.detailSource = getDataSource(that.detailSource, that.subList)
that.resizeCollapse();
}
uni.hideLoading();
diff --git a/pages/issue/request/issueRequest.vue b/pages/issue/request/issueRequest.vue
index a1e05769..701c02a5 100644
--- a/pages/issue/request/issueRequest.vue
+++ b/pages/issue/request/issueRequest.vue
@@ -14,10 +14,10 @@
-
+
-
+
diff --git a/pages/issue/request/issueRequestDetail.vue b/pages/issue/request/issueRequestDetail.vue
index 54eed1ab..dce7a970 100644
--- a/pages/issue/request/issueRequestDetail.vue
+++ b/pages/issue/request/issueRequestDetail.vue
@@ -1,4 +1,3 @@
-
@@ -48,7 +47,7 @@
return {
id: '',
requestContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务
detailSource: [], //绑定在页面上的数据源
};
},
@@ -86,11 +85,11 @@
} else {
if (res.data.subList.length > 0) {
that.requestContent = res.data;
- that.detailList = res.data.subList;
- that.detailList.forEach(res=>{
+ that.subList = res.data.subList;
+ that.subList.forEach(res=>{
res.fromLocationCode = res.toLocationCode
})
- that.detailSource = getDataSource(that.detailList);
+ that.detailSource = getDataSource(that.subList);
updateTitle(this.requestContent.number);
} else {
that.showMessage('列表数据为0');
diff --git a/pages/package/coms/comOverRecord.vue b/pages/package/coms/comOverRecord.vue
index 28296540..3c15de11 100644
--- a/pages/package/coms/comOverRecord.vue
+++ b/pages/package/coms/comOverRecord.vue
@@ -3,7 +3,7 @@
-
+
-
+
@@ -89,12 +88,7 @@
isShowPackingCode: true,
scanCount: 0,
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
detailSource: [], //绑定在页面上的数据源
- scrollTop: 0,
- old: {
- scrollTop: 0
- },
locationTypeList: [],
toLocationInfo: {},
businessTypeInfo: {},
@@ -155,10 +149,10 @@
if (item == undefined) {
var itemp = createItemInfo(balance, pack);
let newDetail = createDetailInfo(balance, pack); //
- itemp.details.push(newDetail);
+ itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
- var detail = item.details.find(r => {
+ var detail = item.subList.find(r => {
if (r.packingNumber == balance.packingNumber &&
r.batch == balance.batch &&
r.locationCode == balance.locationCode &&
@@ -168,7 +162,7 @@
})
if (detail == undefined) {
let newDetail = createDetailInfo(balance, pack);
- item.details.push(newDetail);
+ item.subList.push(newDetail);
} else {
if (detail.scaned == true) {
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
@@ -201,7 +195,7 @@
removePack() {
for (var i = 0; i < this.detailSource.length; i++) {
var item = this.detailSource[i];
- if (item.details.length == 0) {
+ if (item.subList.length == 0) {
this.detailSource.splice(i, 1)
}
}
@@ -296,13 +290,13 @@
extraProperties: this.jobContent.extraProperties,
Siteld: this.jobContent.Siteld,
Code: "",
- details: [
+ subList: [
],
}
this.detailSource.forEach(res => {
- res.details.forEach(res1 => {
+ res.subList.forEach(res1 => {
if (res1.scaned) {
res1.record.FromLocationGroupCode = "";
res1.record.FromAreaCode = "";
@@ -317,7 +311,7 @@
res1.record.Code = "";
res1.record.JobDetailID = res1.record.id;
res1.record.interfaceType = "jklxPURCHASE_RECEIPT";
- params.details.push(res1.record)
+ params.subList.push(res1.record)
}
})
})
diff --git a/pages/package/record/mergePackageRecord.vue.b17252 b/pages/package/record/mergePackageRecord.vue.b17252
index eacb2b1c..f7919ee0 100644
--- a/pages/package/record/mergePackageRecord.vue.b17252
+++ b/pages/package/record/mergePackageRecord.vue.b17252
@@ -1,4 +1,3 @@
-
@@ -89,12 +88,8 @@
isShowPackingCode: true,
scanCount: 0,
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
- scrollTop: 0,
- old: {
- scrollTop: 0
- },
locationTypeList: [],
toLocationInfo: {},
businessTypeInfo: {},
@@ -155,10 +150,10 @@
if (item == undefined) {
var itemp = createItemInfo(balance, pack);
let newDetail = createDetailInfo(balance, pack); //
- itemp.details.push(newDetail);
+ itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
- var detail = item.details.find(r => {
+ var detail = item.subList.find(r => {
if (r.packingNumber == balance.packingNumber &&
r.batch == balance.batch &&
r.locationCode == balance.locationCode &&
@@ -168,7 +163,7 @@
})
if (detail == undefined) {
let newDetail = createDetailInfo(balance, pack);
- item.details.push(newDetail);
+ item.subList.push(newDetail);
} else {
if (detail.scaned == true) {
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
@@ -201,7 +196,7 @@
removePack() {
for (var i = 0; i < this.detailSource.length; i++) {
var item = this.detailSource[i];
- if (item.details.length == 0) {
+ if (item.subList.length == 0) {
this.detailSource.splice(i, 1)
}
}
@@ -296,13 +291,13 @@
extraProperties: this.jobContent.extraProperties,
Siteld: this.jobContent.Siteld,
Code: "",
- details: [
+ subList: [
],
}
this.detailSource.forEach(res => {
- res.details.forEach(res1 => {
+ res.subList.forEach(res1 => {
if (res1.scaned) {
res1.record.FromLocationGroupCode = "";
res1.record.FromAreaCode = "";
@@ -317,7 +312,7 @@
res1.record.Code = "";
res1.record.JobDetailID = res1.record.id;
res1.record.interfaceType = "jklxPURCHASE_RECEIPT";
- params.details.push(res1.record)
+ params.subList.push(res1.record)
}
})
})
diff --git a/pages/package/record/mergePackageRecord.vue.y17252 b/pages/package/record/mergePackageRecord.vue.y17252
index 8c00125c..46226bca 100644
--- a/pages/package/record/mergePackageRecord.vue.y17252
+++ b/pages/package/record/mergePackageRecord.vue.y17252
@@ -1,4 +1,3 @@
-
@@ -89,7 +88,7 @@
isShowPackingCode: true,
scanCount: 0,
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
scrollTop: 0,
old: {
@@ -155,10 +154,10 @@
if (item == undefined) {
var itemp = createItemInfo(balance, pack);
let newDetail = createDetailInfo(balance, pack); //
- itemp.details.push(newDetail);
+ itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
- var detail = item.details.find(r => {
+ var detail = item.subList.find(r => {
if (r.packingNumber == balance.packingNumber &&
r.batch == balance.batch &&
r.locationCode == balance.locationCode &&
@@ -168,7 +167,7 @@
})
if (detail == undefined) {
let newDetail = createDetailInfo(balance, pack);
- item.details.push(newDetail);
+ item.subList.push(newDetail);
} else {
if (detail.scaned == true) {
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
@@ -201,7 +200,7 @@
removePack() {
for (var i = 0; i < this.detailSource.length; i++) {
var item = this.detailSource[i];
- if (item.details.length == 0) {
+ if (item.subList.length == 0) {
this.detailSource.splice(i, 1)
}
}
@@ -296,13 +295,13 @@
extraProperties: this.jobContent.extraProperties,
Siteld: this.jobContent.Siteld,
Code: "",
- details: [
+ subList: [
],
}
this.detailSource.forEach(res => {
- res.details.forEach(res1 => {
+ res.subList.forEach(res1 => {
if (res1.scaned) {
res1.record.FromLocationGroupCode = "";
res1.record.FromAreaCode = "";
@@ -317,7 +316,7 @@
res1.record.Code = "";
res1.record.JobDetailID = res1.record.id;
res1.record.interfaceType = "jklxPURCHASE_RECEIPT";
- params.details.push(res1.record)
+ params.subList.push(res1.record)
}
})
})
diff --git a/pages/package/record/overPackageRecord.vue b/pages/package/record/overPackageRecord.vue
index ae1a9205..6e321a34 100644
--- a/pages/package/record/overPackageRecord.vue
+++ b/pages/package/record/overPackageRecord.vue
@@ -1,4 +1,3 @@
-
@@ -86,12 +85,7 @@
isShowPackingCode: true,
scanCount: 0,
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
detailSource: [], //绑定在页面上的数据源
- scrollTop: 0,
- old: {
- scrollTop: 0
- },
locationTypeList: [],
toLocationInfo: {},
fromLocationInfo: {},
@@ -154,7 +148,7 @@
newDetail.scaned = false;
newDetail.Records = [];
newDetail.handleQty = 0
- itemp.details.push(newDetail);
+ itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
@@ -184,23 +178,23 @@
uom: uom
}
var sumQty = 0;
- item.details[0].Records.forEach(function(item1, index) {
+ item.subList[0].Records.forEach(function(item1, index) {
sumQty += item1.qty;
});
- if ((Number(qty) + sumQty) > item.details[0].qty) {
+ if ((Number(qty) + sumQty) > item.subList[0].qty) {
this.showErrorMessage("扫描数量总和【" + (Number(qty) + sumQty) + "】(当前输入数量【" + qty + "】+已添加数量【" +
sumQty +
- "】)已超过拆包箱码的数量【" + Number(item.details[0].qty) + "】!");
+ "】)已超过拆包箱码的数量【" + Number(item.subList[0].qty) + "】!");
return;
}
- item.details[0].Records.push(temp)
+ item.subList[0].Records.push(temp)
this.$forceUpdate();
}
this.calcHandleQty();
},
calcHandleQty() {
- for (let detail of this.detailSource[0].details) {
+ for (let detail of this.detailSource[0].subList) {
let hQty = 0;
if (detail.Records.length > 0) {
diff --git a/pages/package/record/splitPackageRecord.vue b/pages/package/record/splitPackageRecord.vue
index 64307cec..5b460309 100644
--- a/pages/package/record/splitPackageRecord.vue
+++ b/pages/package/record/splitPackageRecord.vue
@@ -1,4 +1,3 @@
-
@@ -85,12 +84,7 @@
isShowPackingCode: true,
scanCount: 0,
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
detailSource: [], //绑定在页面上的数据源
- scrollTop: 0,
- old: {
- scrollTop: 0
- },
locationTypeList: [],
toLocationInfo: {},
fromLocationInfo: {},
@@ -153,7 +147,7 @@
newDetail.scaned = false;
newDetail.Records = [];
newDetail.handleQty = 0
- itemp.details.push(newDetail);
+ itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
@@ -184,23 +178,23 @@
}
var sumQty = 0;
- item.details[0].Records.forEach(function(item1, index) {
+ item.subList[0].Records.forEach(function(item1, index) {
sumQty += item1.qty;
});
- if ((Number(qty) + sumQty) > item.details[0].qty) {
+ if ((Number(qty) + sumQty) > item.subList[0].qty) {
this.showErrorMessage("扫描数量总和【" + (Number(qty) + sumQty) + "】(当前输入数量【" + qty + "】+已添加数量【" +
sumQty +
- "】)已超过拆包箱码的数量【" + Number(item.details[0].qty) + "】!");
+ "】)已超过拆包箱码的数量【" + Number(item.subList[0].qty) + "】!");
return;
}
- item.details[0].Records.push(temp);
+ item.subList[0].Records.push(temp);
this.$forceUpdate();
}
this.calcHandleQty();
},
calcHandleQty() {
- for (let detail of this.detailSource[0].details) {
+ for (let detail of this.detailSource[0].subList) {
let hQty = 0;
if (detail.Records.length > 0) {
diff --git a/pages/pallet/coms/comPalletRecord.vue b/pages/pallet/coms/comPalletRecord.vue
index 0fa7b43e..2feaf3cc 100644
--- a/pages/pallet/coms/comPalletRecord.vue
+++ b/pages/pallet/coms/comPalletRecord.vue
@@ -12,7 +12,7 @@
-
+
@@ -88,7 +88,7 @@
watch: {
dataContent: {
handler(newName, oldName) {
- if (this.dataContent.details.length > 0) {
+ if (this.dataContent.subList.length > 0) {
if (this.$refs.collapse1 != undefined) {
this.$nextTick(res => {
this.$refs.collapse1.resize()
@@ -158,7 +158,7 @@
res => {
if (res) {
item.scaned=false;
- // this.dataContent.details.splice(index, 1)
+ // this.dataContent.subList.splice(index, 1)
// this.$emit('removePack')
}
});
diff --git a/pages/pallet/record/bindPalletRecord.vue b/pages/pallet/record/bindPalletRecord.vue
index b4e57bd3..d1a3b6a1 100644
--- a/pages/pallet/record/bindPalletRecord.vue
+++ b/pages/pallet/record/bindPalletRecord.vue
@@ -1,4 +1,3 @@
-
@@ -78,7 +77,7 @@
id: '',
settingParam: {},
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
containerCode: "",
};
@@ -115,17 +114,17 @@
if (item == undefined) {
var itemp = createItemInfo(result.label, pack);
let newDetail = createDetailInfo(result.label, pack); //
- itemp.details.push(newDetail);
+ itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
- var detail = item.details.find(r => {
+ var detail = item.subList.find(r => {
if (r.packingNumber == packingNumber) {
return r;
}
})
if (detail == undefined) {
let newDetail = createDetailInfo(result.label, pack);
- item.details.push(newDetail);
+ item.subList.push(newDetail);
} else {
if (detail.scaned == true) {
this.showErrorMessage("箱码[" + packingNumber + "批次[" + batch + "]已经在列表中")
@@ -158,7 +157,7 @@
removePack() {
for (var i = 0; i < this.detailSource.length; i++) {
var item = this.detailSource[i];
- if (item.details.length == 0) {
+ if (item.subList.length == 0) {
this.detailSource.splice(i, 1)
}
}
diff --git a/pages/pallet/record/unBindPalletRecord.vue b/pages/pallet/record/unBindPalletRecord.vue
index b38c1a37..812dbbbd 100644
--- a/pages/pallet/record/unBindPalletRecord.vue
+++ b/pages/pallet/record/unBindPalletRecord.vue
@@ -1,4 +1,3 @@
-
@@ -87,12 +86,8 @@
isShowPackingCode: true,
scanCount: 0,
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
- scrollTop: 0,
- old: {
- scrollTop: 0
- },
locationTypeList: [],
toLocationInfo: {},
businessTypeInfo: {},
@@ -136,7 +131,7 @@
if (detail == undefined) {
this.showMessage("物料号【" + itemCode + "】不在列表中")
} else {
- var itemDetail = detail.details.find(r => r.packingNumber == packingNumber && r.batch == batch);
+ var itemDetail = detail.subList.find(r => r.packingNumber == packingNumber && r.batch == batch);
if (itemDetail == undefined) {
this.showMessage("箱码【" + packingNumber + "】,批次【" + batch + "】不在列表中")
} else {
@@ -172,20 +167,20 @@
},
- getDataSource(details) {
+ getDataSource(subList) {
let items = [];
- details.forEach(detail => {
+ subList.forEach(detail => {
var item = items.find(r =>
r.itemCode == detail.itemCode)
if (item == undefined) {
item = this.createItemInfo(detail);
let newDetail = this.createDetailInfo(detail); //
- item.details.push(newDetail);
+ item.subList.push(newDetail);
items.push(item)
} else {
item.qty += detail.qty
let newDetail = this.createDetailInfo(detail); //
- item.details.push(newDetail);
+ item.subList.push(newDetail);
}
})
return items;
@@ -207,7 +202,7 @@
qty: res.qty,
handleQty: 0,
uom: res.uom,
- details: []
+ subList: []
}
return item;
},
@@ -223,7 +218,7 @@
removePack() {
for (var i = 0; i < this.detailSource.length; i++) {
var item = this.detailSource[i];
- if (item.details.length == 0) {
+ if (item.subList.length == 0) {
this.detailSource.splice(i, 1)
}
}
diff --git a/pages/productDismantle/coms/comProductDetailCard.vue b/pages/productDismantle/coms/comProductDetailCard.vue
index 4d54e1be..6a122cc0 100644
--- a/pages/productDismantle/coms/comProductDetailCard.vue
+++ b/pages/productDismantle/coms/comProductDetailCard.vue
@@ -6,7 +6,7 @@
-
+
diff --git a/pages/productDismantle/coms/comProductRecord.vue b/pages/productDismantle/coms/comProductRecord.vue
index ca34c29b..46f919db 100644
--- a/pages/productDismantle/coms/comProductRecord.vue
+++ b/pages/productDismantle/coms/comProductRecord.vue
@@ -12,7 +12,7 @@
-
+
@@ -80,7 +80,7 @@
watch: {
dataContent: {
handler(newName, oldName) {
- if (this.dataContent.details.length > 0) {
+ if (this.dataContent.subList.length > 0) {
if (this.$refs.collapse1 != undefined) {
this.$nextTick(res => {
this.$refs.collapse1.resize()
@@ -143,7 +143,7 @@
this.$refs.comMessage.showQuestionMessage("确定移除扫描信息?",
res => {
if (res) {
- this.dataContent.details.splice(index, 1)
+ this.dataContent.subList.splice(index, 1)
this.$emit('updateData')
}
});
@@ -181,7 +181,7 @@
this.$refs.comMessage.showQuestionMessage("确定移除扫描信息?",
res => {
if (res) {
- this.dataContent.details.splice(index, 1)
+ this.dataContent.subList.splice(index, 1)
this.$emit('removePack')
}
});
diff --git a/pages/productDismantle/job/productDismantleDetail.vue b/pages/productDismantle/job/productDismantleDetail.vue
index 3e2137e0..e68b0f9c 100644
--- a/pages/productDismantle/job/productDismantleDetail.vue
+++ b/pages/productDismantle/job/productDismantleDetail.vue
@@ -1,4 +1,3 @@
-
@@ -89,12 +88,8 @@
received: false,
scanCount: 0,
jobContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
- scrollTop: 0,
- old: {
- scrollTop: 0
- },
managementList: [],
fromLocationCode: "",
toLocationCode: "",
@@ -172,11 +167,11 @@
} else {
if (res.data.subList.length > 0) {
that.jobContent = res.data;
- that.detailList = res.data.subList;
- that.fromLocationCode = that.detailList[0].fromLocationCode
- that.toLocationCode = that.detailList[0].toLocationCode
+ that.subList = res.data.subList;
+ that.fromLocationCode = that.subList[0].fromLocationCode
+ that.toLocationCode = that.subList[0].toLocationCode
that.tolocationTypeList = getLocationTypeArray(that.jobContent.toLocationTypes)
- that.detailSource = getDataSource(that.detailList)
+ that.detailSource = getDataSource(that.subList)
that.getLocationInfo(that.toLocationCode);
} else {
that.showMessage('列表数据为0');
@@ -207,7 +202,7 @@
//继续扫描
continueScan() {
this.scanCount = this.getScanCount();
- if (this.scanCount == this.detailList.length) {
+ if (this.scanCount == this.subList.length) {
this.closeScanPopup();
} else {
this.scanPopupGetFocus();
@@ -215,7 +210,7 @@
},
getScanCount(closeScan) {
- let items = this.detailList.filter(r => {
+ let items = this.subList.filter(r => {
if (r.scaned) {
return r;
}
@@ -237,7 +232,7 @@
let fromlocationList = [];
for (var i = 0; i < this.detailSource.length; i++) {
let item = this.detailSource[i];
- item.details.forEach(l => {
+ item.subList.forEach(l => {
//重复的库位不往里面插入
var location = fromlocationList.filter(res => res.fromLocationCode != l.fromLocationCode)
if (location.length == 0) {
@@ -271,7 +266,7 @@
if (detail == undefined) {
this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
} else {
- var itemDetail = detail.details.find(r => {
+ var itemDetail = detail.subList.find(r => {
return r.packingNumber == packingNumber &&
r.batch == batch &&
r.fromLocationCode == locationCode
@@ -324,9 +319,9 @@
console.log("校验通过")
//扫描数量和任务数量相等,直接提交
- if (this.scanCount == this.detailList.length) {
+ if (this.scanCount == this.subList.length) {
this.submitJob();
- } else if (this.scanCount < this.detailList.length) {
+ } else if (this.scanCount < this.subList.length) {
//扫描数量小于任务数量,判断是否允许部分提交
if (this.jobContent.allowPartialComplete == "TRUE") {
//提交
@@ -335,7 +330,7 @@
//不允许部分提交,提示
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
- .detailList.length + "]箱", res => {
+ .subList.length + "]箱", res => {
if (res) {
this.openScanPopup();
}
@@ -383,7 +378,7 @@
var creator = this.$store.state.user.id
this.detailSource.forEach(item => {
- item.details.forEach(detail => {
+ item.subList.forEach(detail => {
if (detail.scaned) {
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
@@ -412,7 +407,7 @@
var isHaveNullLocation = false;
var nullLocationList = [];
this.detailSource.forEach(item => {
- item.details.forEach(detail => {
+ item.subList.forEach(detail => {
if (detail.toLocationCode == null || detail.toLocationCode == "") {
nullLocationList.push(detail)
}
diff --git a/pages/productDismantle/record/productDismantleRecord.vue b/pages/productDismantle/record/productDismantleRecord.vue
index cf5840bb..1229f1b1 100644
--- a/pages/productDismantle/record/productDismantleRecord.vue
+++ b/pages/productDismantle/record/productDismantleRecord.vue
@@ -1,4 +1,3 @@
-
@@ -43,15 +42,18 @@
diff --git a/pages/unPlanned/record/receiptRecord.vue b/pages/unPlanned/record/receiptRecord.vue
index d36dc5a1..e9fa595a 100644
--- a/pages/unPlanned/record/receiptRecord.vue
+++ b/pages/unPlanned/record/receiptRecord.vue
@@ -52,9 +52,10 @@
import comMessage from '@/mycomponents/common/comMessage.vue'
import {
- getBalanceByUniquecode,
- } from '@/api/request.js';
-
+ unPlannedReceiptRequestbSubmit,
+ unPlannedReceiptRecordbSubmit
+ } from '@/api/request2.js';
+
import {
getDirectoryItemArray,
getUnPlannedReceiptReasonList
@@ -139,10 +140,10 @@
if (item == undefined) {
var itemp = this.createItemInfo(label, pack);
let newDetail = this.createDetailInfo(label, pack);
- itemp.details.push(newDetail);
+ itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
- var detail = item.details.find(r => {
+ var detail = item.subList.find(r => {
if (r.packingNumber == result.number &&
r.batch == result.batch) {
return r;
@@ -151,7 +152,7 @@
if (detail == undefined) {
let newDetail = this.createDetailInfo(label, pack);
- item.details.push(newDetail);
+ item.subList.push(newDetail);
} else {
if (detail.scaned) {
this.showErrorMessage("箱码[" + result.Number + "]批次[" + result.batch + "]已经扫描")
@@ -172,7 +173,7 @@
qty: label.qty,
handleQty: 0,
uom: label.uom,
- details: []
+ subList: []
}
return item;
},
@@ -194,7 +195,7 @@
calcHandleQty() {
for (let item of this.detailSource) {
item.qty = 0;
- for (let detail of item.details) {
+ for (let detail of item.subList) {
if (detail != undefined) {
item.qty += Number(detail.qty)
}
@@ -216,7 +217,7 @@
removePack() {
for (var i = 0; i < this.detailSource.length; i++) {
var item = this.detailSource[i];
- if (item.details.length == 0) {
+ if (item.subList.length == 0) {
this.detailSource.splice(i, 1)
}
}
@@ -235,8 +236,34 @@
this.showErrorMessage("请选择入库原因")
return;
}
-
- console.log("提交", this.reason)
+
+ if(this.fromType=="requestType"){
+ // unPlannedReceiptRequestbSubmit(params).then(res => {
+ // uni.hideLoading()
+ // if (res.data) {
+ // this.showCommitSuccessMessage("提交成功
生成采购收货记录" + res.data, )
+ // } else {
+ // this.showErrorMessage("提交失败"+res.msg)
+ // }
+ // }).catch(error => {
+ // uni.hideLoading()
+ // this.showErrorMessage(error)
+ // })
+ }else {
+
+ // unPlannedReceiptRecordbSubmit(params).then(res => {
+ // uni.hideLoading()
+ // if (res.data) {
+ // this.showCommitSuccessMessage("提交成功
生成采购收货记录" + res.data, )
+ // } else {
+ // this.showErrorMessage("提交失败"+res.msg)
+ // }
+ // }).catch(error => {
+ // uni.hideLoading()
+ // this.showErrorMessage(error)
+ // })
+ }
+
}
}
}
diff --git a/pages/unPlanned/request/issueRequest.vue b/pages/unPlanned/request/issueRequest.vue
index 6c1b451d..0b8e7c39 100644
--- a/pages/unPlanned/request/issueRequest.vue
+++ b/pages/unPlanned/request/issueRequest.vue
@@ -1,21 +1,23 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -28,7 +30,7 @@
import comIssueRequestCard from '@/pages/unPlanned/coms/comIssueRequestCard.vue'
import requestIssInfoPopup from '@/pages/unPlanned/coms/requestIssInfoPopup.vue'
import requestButton from '@/mycomponents/button/requestButton.vue'
-
+
import {
goHome,
updateTitle
@@ -80,7 +82,7 @@
this.detailOptions = getDetailOption();
this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
- this.detailAndHandleOption = getDetailAndHandleOption()
+ this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption()
},
@@ -91,7 +93,7 @@
}
this.getList("more");
},
-
+
onPullDownRefresh() {
this.getList('refresh');
},
@@ -112,8 +114,7 @@
},
methods: {
- requestConfirm(action, item) {
- },
+ requestConfirm(action, item) {},
openRequestDetail(item) {
uni.navigateTo({
@@ -134,26 +135,26 @@
this.pageNo = 1;
this.requestList = [];
}
- var filters = []
- if (this.checkedWaitTask) {
- filters.push({
- column: "status",
- action: "==",
- value: this.status
- })
- }
- var params = {
- filters: filters,
- pageNo: this.pageNo,
- pageSize: this.pageSize,
- }
+ var filters = []
+ if (this.checkedWaitTask) {
+ filters.push({
+ column: "status",
+ action: "==",
+ value: this.status
+ })
+ }
+ var params = {
+ filters: filters,
+ pageNo: this.pageNo,
+ pageSize: this.pageSize,
+ }
getUnPlannedIssueRequestList(params).then(res => {
uni.hideLoading();
if (type === "refresh") {
uni.stopPullDownRefresh();
}
-
+
var list = res.data.list;
this.totalCount = res.data.total
this.loadingType = "loadmore";
@@ -166,7 +167,7 @@
res.options = options;
})
this.requestList = type === "refresh" ? list : this.requestList.concat(list);
-
+
this.pageNo++;
updateTitle("计划外出库申请(" + this.totalCount + ")");
@@ -198,7 +199,7 @@
openScanDetailPopup() {
uni.navigateTo({
- url:"../record/issueRecord?fromType="+this.fromType
+ url: "../record/issueRecord?fromType=" + this.fromType
})
},
@@ -223,11 +224,11 @@
this.status = jobStatus;
this.getList("refresh");
},
-
+
getScanNumber(code) {
this.getDataListByType(code)
},
-
+
getDataListByType(code) {
let that = this;
uni.showLoading({
@@ -240,7 +241,7 @@
action: "==",
value: code
})
-
+
var params = {
filters: filters,
pageNo: 1,
diff --git a/pages/unPlanned/request/issueRequestDetail.vue b/pages/unPlanned/request/issueRequestDetail.vue
index b645d71d..8a369284 100644
--- a/pages/unPlanned/request/issueRequestDetail.vue
+++ b/pages/unPlanned/request/issueRequestDetail.vue
@@ -1,4 +1,3 @@
-
@@ -46,7 +45,7 @@
return {
id: '',
requestContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
};
},
@@ -84,8 +83,8 @@
} else {
if(res.data.subList.length>0){
that.requestContent = res.data;
- that.detailList = res.data.subList;
- that.detailSource = getDataSource(that.detailList);
+ that.subList = res.data.subList;
+ that.detailSource = getDataSource(that.subList);
}else {
that.showMessage('列表数据为0');
}
diff --git a/pages/unPlanned/request/receiptRequest.vue b/pages/unPlanned/request/receiptRequest.vue
index bea896ee..a9313e57 100644
--- a/pages/unPlanned/request/receiptRequest.vue
+++ b/pages/unPlanned/request/receiptRequest.vue
@@ -1,21 +1,22 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -28,7 +29,7 @@
import comReceiptRequestCard from '@/pages/unPlanned/coms/comReceiptRequestCard.vue'
import requestRecInfoPopup from '@/pages/unPlanned/coms/requestRecInfoPopup.vue'
import requestButton from '@/mycomponents/button/requestButton.vue'
-
+
import {
getBusinessType,
} from '@/common/record.js';
@@ -36,7 +37,7 @@
goHome,
updateTitle
} from '@/common/basic.js';
-
+
import {
getUnPlannedReceiptRequestList,
} from '@/api/request2.js';
@@ -81,7 +82,7 @@
this.detailOptions = getDetailOption();
this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
- this.detailAndHandleOption = getDetailAndHandleOption()
+ this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption()
},
@@ -92,7 +93,7 @@
}
this.getList("more");
},
-
+
onPullDownRefresh() {
this.getList('refresh');
},
@@ -113,8 +114,7 @@
},
methods: {
- requestConfirm(action, item) {
- },
+ requestConfirm(action, item) {},
openRequestInfoPopup(item) {
this.$refs.requestInfoPopup.openPopup(item)
@@ -126,34 +126,34 @@
},
getList(type) {
let that = this;
- uni.showLoading({
- title: "加载中....",
- mask: true
- });
+ uni.showLoading({
+ title: "加载中....",
+ mask: true
+ });
this.loadingType = "loading";
if (type === "refresh") {
this.pageNo = 1;
this.requestList = [];
}
- var filters = []
- if (this.checkedWaitTask) {
- filters.push({
- column: "status",
- action: "==",
- value: this.status
- })
- }
- var params = {
- filters: filters,
- pageNo: this.pageNo,
- pageSize: this.pageSize,
- }
+ var filters = []
+ if (this.checkedWaitTask) {
+ filters.push({
+ column: "status",
+ action: "==",
+ value: this.status
+ })
+ }
+ var params = {
+ filters: filters,
+ pageNo: this.pageNo,
+ pageSize: this.pageSize,
+ }
getUnPlannedReceiptRequestList(params).then(res => {
uni.hideLoading();
if (type === "refresh") {
uni.stopPullDownRefresh();
}
-
+
var list = res.data.list;
this.totalCount = res.data.total
this.loadingType = "loadmore";
@@ -197,7 +197,7 @@
openScanDetailPopup() {
uni.navigateTo({
- url:"../record/receiptRecord?fromType="+this.fromType
+ url: "../record/receiptRecord?fromType=" + this.fromType
})
},
@@ -223,11 +223,11 @@
this.status = jobStatus;
this.getList("refresh");
},
-
+
getScanNumber(code) {
this.getDataListByType(code)
},
-
+
getDataListByType(code) {
let that = this;
uni.showLoading({
@@ -240,7 +240,7 @@
action: "==",
value: code
})
-
+
var params = {
filters: filters,
pageNo: 1,
diff --git a/pages/unPlanned/request/receiptRequestDetail.vue b/pages/unPlanned/request/receiptRequestDetail.vue
index d46c0ce1..b4fae691 100644
--- a/pages/unPlanned/request/receiptRequestDetail.vue
+++ b/pages/unPlanned/request/receiptRequestDetail.vue
@@ -1,4 +1,3 @@
-
@@ -47,7 +46,7 @@
return {
id: '',
requestContent: {}, //任务内容
- detailList: [], //接口返回的任务details
+ subList: [], //接口返回的任务subList
detailSource: [], //绑定在页面上的数据源
};
},
@@ -85,11 +84,11 @@
} else {
if (res.data.subList.length > 0) {
that.requestContent = res.data;
- that.detailList = res.data.subList;
- that.detailList.forEach(res=>{
+ that.subList = res.data.subList;
+ that.subList.forEach(res=>{
res.fromLocationCode = res.toLocationCode
})
- that.detailSource = getDataSource(that.detailList);
+ that.detailSource = getDataSource(that.subList);
} else {
that.showMessage('列表数据为0');
}
diff --git a/static/config.json b/static/config.json
index 787c269f..92a4a9f4 100644
--- a/static/config.json
+++ b/static/config.json
@@ -18,9 +18,9 @@
"request_url": {
"name": "request_url",
- "value": "http://dev.ccwin-in.com:25100",
- "dev":"http://dev.ccwin-in.com:25100",
- "local":"http://localhost:12080/api",
+ "value": "http://localhost:12080",
+ "dev":"http://dev.ccwin-in.com:25100/api",
+ "local":"http://localhost:12080",
"desc": "api请求地址"
},
"tenantId": {