From 9461a42ce800ab1a20c340d6232d4e1ce04e1ab3 Mon Sep 17 00:00:00 2001 From: niexiting <85552560@qq.com> Date: Mon, 4 Dec 2023 14:47:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E6=96=99=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/request2.js | 84 +++++---- pages/issue/coms/comIssueRequestCreator.vue | 2 - pages/issue/coms/comIssueRequestPopup.vue | 38 +++- pages/issue/record/issueRecord.vue | 199 +++++++++++++------- static/config.json | 27 +-- 5 files changed, 222 insertions(+), 128 deletions(-) diff --git a/api/request2.js b/api/request2.js index e1b48b61..6f67dba5 100644 --- a/api/request2.js +++ b/api/request2.js @@ -1,7 +1,7 @@ import request from '@/api/httpRequest3.js' // const baseApi = "/api/admin-api" //公司地址 - // 本地地址 +// 本地地址 const baseApi = "" /** * 获取验证码 @@ -61,11 +61,11 @@ export function getTenantInfo(name) { pageNo: 1, pageSize: 100, } - + return request({ url: baseApi + "/system/tenant/page", method: "get", - data:params, + data: params, }); } @@ -127,10 +127,10 @@ export function getBasicCustomerList() { * */ export function getBusinesstypeByCode(code) { - var params ={ - code:code, - pageNo:1, - pageSize:100 + var params = { + code: code, + pageNo: 1, + pageSize: 100 } return request({ url: baseApi + "/wms/businesstype/page", @@ -147,10 +147,10 @@ export function getBusinesstypeByCode(code) { export function getBalanceByItemCode(params) { return request({ - url: baseApi + "/wms/balance/page", - method: "get", - data: params, - }); + url: baseApi + "/wms/balance/page", + method: "get", + data: params, + }); } /** @@ -197,7 +197,7 @@ export function getBalanceByLocationcodeGroup(params) { * @param {*} */ export function getBalanceByLocationcode(params) { - + return request({ url: baseApi + "/wms/balance/page", method: "get", @@ -256,7 +256,7 @@ export function getBalanceByContainerNumber(params) { export function getLabelByHeader(header, version) { var params = { header: header, - version:version, + version: version, } return request({ url: baseApi + "/wms/labeltype/getDetailsByHeader", @@ -291,10 +291,10 @@ export function getPackageByNumber(number) { * */ export function getBasicLocationByCode(code) { - var parmas ={ - code:code, - pageNo:1, - pageSize:100 + var parmas = { + code: code, + pageNo: 1, + pageSize: 100 } return request({ url: baseApi + "/wms/location/page", @@ -315,7 +315,7 @@ export function getBasicItemByCode(itemCode) { pageSize: 100 } return request({ - url: baseApi + "/wms/itembasic/page" , + url: baseApi + "/wms/itembasic/page", method: "get", data: params, }); @@ -354,7 +354,7 @@ export function getItempackagingByItemcode(itemCode) { */ export function getProductionlineItem(params) { return request({ - url: baseApi + "/wms/productionlineitem/page" , + url: baseApi + "/wms/productionlineitem/page", method: "get", data: params, }); @@ -367,7 +367,7 @@ export function getProductionlineItem(params) { */ export function getWorkShopLineStation() { return request({ - url: baseApi + "/wms/issue-request-main/get-workshop-productionline-workstation" , + url: baseApi + "/wms/issue-request-main/get-workshop-productionline-workstation", method: "get", data: {}, }); @@ -412,7 +412,7 @@ export function getSupplierDeliverRecordList(params) { */ export function getSupplierDeliverRecordDetail(id) { return request({ - url: baseApi + "/wms/supplierdeliver-record-main/getSupplierdeliverRecordById?id="+id, + url: baseApi + "/wms/supplierdeliver-record-main/getSupplierdeliverRecordById?id=" + id, method: "get", data: {}, }); @@ -445,7 +445,7 @@ export function getInspectRequestList(params) { */ export function getInspectRequestDetail(id) { return request({ - url: baseApi + "/wms/inspect-request-main/getInspectRequestById?id="+id, + url: baseApi + "/wms/inspect-request-main/getInspectRequestById?id=" + id, method: "get", data: {}, }); @@ -581,7 +581,7 @@ export function cancleTakePurchasereturnJob(id) { * 采购退货 任务提交 * @param {*} params */ -export function purchaseReturnJobsubmit (params) { +export function purchaseReturnJobsubmit(params) { return request({ url: baseApi + "/wms/purchasereturn-job-main/execute", method: "put", @@ -864,6 +864,21 @@ export function getIssueJobDetail(id) { } +/** + * 获取推荐明细接口 + * @param {*} 任务id + * /wms/issue-request-main + */ +export function getBalanceByBatchOffShelf(itemCode, qty) { + return request({ + url: baseApi + "/wms/issue-request-main/getBalanceByBatchOffShelf?itemCode=" + itemCode + "&&qty=" + + qty, + method: "get", + data: {}, + }); +} + + /** * 发料 任务承接 * @param {*} id @@ -1365,7 +1380,7 @@ export function cancleTakeProductReceiptJob(id) { * 制品收货任务 提交 * @param {*} params */ -export function productReceiptJobsubmit( params) { +export function productReceiptJobsubmit(params) { return request({ url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit", method: "put", @@ -1377,7 +1392,7 @@ export function productReceiptJobsubmit( params) { * 制品收货记录 提交 * @param {*} params */ -export function productReceiptRecordsubmit( params) { +export function productReceiptRecordsubmit(params) { return request({ url: baseApi + "/wms/productreceipt-record-main/create", method: "post", @@ -1615,7 +1630,7 @@ export function cancleTakeDeliverJob(id) { * */ -export function deliverJobSubmit( params) { +export function deliverJobSubmit(params) { return request({ url: baseApi + "/wms/deliver-job-main/execute", method: "put", @@ -1945,7 +1960,7 @@ export function cancleTakeTransferIssueJob(id) { * @param {*} 任务id * */ -export function transferIssueJobSubmit( params) { +export function transferIssueJobSubmit(params) { return request({ url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit?id=" + id, method: "post", @@ -1958,7 +1973,7 @@ export function transferIssueJobSubmit( params) { * @param {*} * */ -export function transferIssueRecordSubmit( params) { +export function transferIssueRecordSubmit(params) { return request({ url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit", method: "put", @@ -2026,7 +2041,7 @@ export function getIssueRequestList(params) { */ export function getIssueRequestDetail(id) { return request({ - url: baseApi + "/wms/issue-request-main/getIssueRequestById?id="+id, + url: baseApi + "/wms/issue-request-main/getIssueRequestById?id=" + id, method: "get", data: {}, }); @@ -2119,7 +2134,7 @@ export function cancleTakeProductionReturnJob(id) { * @param {*} 任务id * */ -export function productionReturnJobSubmit( params) { +export function productionReturnJobSubmit(params) { return request({ url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit", method: "put", @@ -2312,7 +2327,7 @@ export function cancleTakeScrapJob(id) { * @param {*} 任务id * */ -export function scrapJobSubmit( params) { +export function scrapJobSubmit(params) { return request({ url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit?id=" + id, method: "put", @@ -2558,10 +2573,3 @@ export function getBalanceByFilter(param) { data: param, }); } - - - - - - - diff --git a/pages/issue/coms/comIssueRequestCreator.vue b/pages/issue/coms/comIssueRequestCreator.vue index 05188a72..d083a7ff 100644 --- a/pages/issue/coms/comIssueRequestCreator.vue +++ b/pages/issue/coms/comIssueRequestCreator.vue @@ -1,7 +1,5 @@