From d11b1f9c98e8765d3cee15abd4474b0e05a5acbc Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期六, 01 三月 2025 10:33:56 +0800 Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MeiRuiAn/HuaiAn --- 代码管理/WMS/WIDESEA_WMSClient/src/router/viewGird.js | 13 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Outbound/Dt_MesRworkOutboundOrder.cs | 121 ++++++ 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs | 39 + 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs | 2 代码管理/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/472a85b1-322e-46ee-835a-853cb266cbd8.vsidx | 0 代码管理/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrderDetail.vue | 341 ++++++++++++++++++ 代码管理/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/d50a9bd1-175b-443a-a8be-5e84630a8286.vsidx | 0 代码管理/WMS/WIDESEA_WMSClient/src/extension/inbound/mesPPBackInboundOrderDetail.js | 58 +++ 代码管理/WMS/WIDESEA_WMSClient/src/extension/inbound/mesPPBackInboundOrder.js | 58 +++ 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_DTO/MES/RworkTaskModel.cs | 51 ++ /dev/null | 0 代码管理/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrder.vue | 341 ++++++++++++++++++ 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_ITaskInfoService/ITaskService.cs | 7 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MES/MesController.cs | 19 14 files changed, 1,034 insertions(+), 16 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/472a85b1-322e-46ee-835a-853cb266cbd8.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/472a85b1-322e-46ee-835a-853cb266cbd8.vsidx" new file mode 100644 index 0000000..4e42809 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/472a85b1-322e-46ee-835a-853cb266cbd8.vsidx" Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/read.lock" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/read.lock" deleted file mode 100644 index e69de29..0000000 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/read.lock" +++ /dev/null diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/mesPPBackInboundOrder.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/mesPPBackInboundOrder.js" new file mode 100644 index 0000000..24e1d94 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/mesPPBackInboundOrder.js" @@ -0,0 +1,58 @@ + +//姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 + +let extension = { + components: { + //鏌ヨ鐣岄潰鎵╁睍缁勪欢 + gridHeader: '', + gridBody: '', + gridFooter: '', + //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 + modelHeader: '', + modelBody: '', + modelFooter: '' + }, + tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓) + buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽� + methods: { + //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� + onInit() { + }, + onInited() { + //妗嗘灦鍒濆鍖栭厤缃悗 + //濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔 + //this.detailOptions.columns.forEach(column=>{ }); + }, + searchBefore(param) { + //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟 + //杩斿洖false锛屽垯涓嶄細鎵ц鏌ヨ + return true; + }, + searchAfter(result) { + //鏌ヨ鍚庯紝result杩斿洖鐨勬煡璇㈡暟鎹�,鍙互鍦ㄦ樉绀哄埌琛ㄦ牸鍓嶅鐞嗚〃鏍肩殑鍊� + return true; + }, + addBefore(formData) { + //鏂板缓淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛紝鍙互缁欑粰琛ㄥ崟璁剧疆鍊硷紝鑷繁杈撳嚭鐪媐ormData鐨勫�� + return true; + }, + updateBefore(formData) { + //缂栬緫淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛ㄣ�佸垹闄よ鐨処d + return true; + }, + rowClick({ row, column, event }) { + //鏌ヨ鐣岄潰鐐瑰嚮琛屼簨浠� + this.$refs.table.$refs.table.toggleRowSelection(row); //鍗曞嚮琛屾椂閫変腑褰撳墠琛�; + }, + modelOpenAfter(row) { + //鐐瑰嚮缂栬緫銆佹柊寤烘寜閽脊鍑烘鍚庯紝鍙互鍦ㄦ澶勫啓閫昏緫锛屽锛屼粠鍚庡彴鑾峰彇鏁版嵁 + //(1)鍒ゆ柇鏄紪杈戣繕鏄柊寤烘搷浣滐細 this.currentAction=='Add'; + //(2)缁欏脊鍑烘璁剧疆榛樿鍊� + //(3)this.editFormFields.瀛楁='xxx'; + //濡傛灉闇�瑕佺粰涓嬫媺妗嗚缃粯璁ゅ�硷紝璇烽亶鍘唗his.editFormOptions鎵惧埌瀛楁閰嶇疆瀵瑰簲data灞炴�х殑key鍊� + //鐪嬩笉鎳傚氨鎶婅緭鍑虹湅锛歝onsole.log(this.editFormOptions) + } + } + }; + export default extension; + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/mesPPBackInboundOrderDetail.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/mesPPBackInboundOrderDetail.js" new file mode 100644 index 0000000..24e1d94 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/mesPPBackInboundOrderDetail.js" @@ -0,0 +1,58 @@ + +//姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 + +let extension = { + components: { + //鏌ヨ鐣岄潰鎵╁睍缁勪欢 + gridHeader: '', + gridBody: '', + gridFooter: '', + //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 + modelHeader: '', + modelBody: '', + modelFooter: '' + }, + tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓) + buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽� + methods: { + //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� + onInit() { + }, + onInited() { + //妗嗘灦鍒濆鍖栭厤缃悗 + //濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔 + //this.detailOptions.columns.forEach(column=>{ }); + }, + searchBefore(param) { + //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟 + //杩斿洖false锛屽垯涓嶄細鎵ц鏌ヨ + return true; + }, + searchAfter(result) { + //鏌ヨ鍚庯紝result杩斿洖鐨勬煡璇㈡暟鎹�,鍙互鍦ㄦ樉绀哄埌琛ㄦ牸鍓嶅鐞嗚〃鏍肩殑鍊� + return true; + }, + addBefore(formData) { + //鏂板缓淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛紝鍙互缁欑粰琛ㄥ崟璁剧疆鍊硷紝鑷繁杈撳嚭鐪媐ormData鐨勫�� + return true; + }, + updateBefore(formData) { + //缂栬緫淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛ㄣ�佸垹闄よ鐨処d + return true; + }, + rowClick({ row, column, event }) { + //鏌ヨ鐣岄潰鐐瑰嚮琛屼簨浠� + this.$refs.table.$refs.table.toggleRowSelection(row); //鍗曞嚮琛屾椂閫変腑褰撳墠琛�; + }, + modelOpenAfter(row) { + //鐐瑰嚮缂栬緫銆佹柊寤烘寜閽脊鍑烘鍚庯紝鍙互鍦ㄦ澶勫啓閫昏緫锛屽锛屼粠鍚庡彴鑾峰彇鏁版嵁 + //(1)鍒ゆ柇鏄紪杈戣繕鏄柊寤烘搷浣滐細 this.currentAction=='Add'; + //(2)缁欏脊鍑烘璁剧疆榛樿鍊� + //(3)this.editFormFields.瀛楁='xxx'; + //濡傛灉闇�瑕佺粰涓嬫媺妗嗚缃粯璁ゅ�硷紝璇烽亶鍘唗his.editFormOptions鎵惧埌瀛楁閰嶇疆瀵瑰簲data灞炴�х殑key鍊� + //鐪嬩笉鎳傚氨鎶婅緭鍑虹湅锛歝onsole.log(this.editFormOptions) + } + } + }; + export default extension; + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/router/viewGird.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/router/viewGird.js" index 03edcba..eb62378 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/router/viewGird.js" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/router/viewGird.js" @@ -196,7 +196,18 @@ path: '/mesPPCutOutboundOrderDetail', name: 'mesPPCutOutboundOrderDetail', component: () => import('@/views/outbound/mesPPCutOutboundOrderDetail.vue') - },{ + }, + { + path: '/mesPPBackInboundOrder', + name: 'mesPPBackInboundOrder', + component: () => import('@/views/inbound/mesPPBackInboundOrder.vue') + }, + { + path: '/mesPPBackInboundOrderDetail', + name: 'mesPPBackInboundOrderDetail', + component: () => import('@/views/inbound/mesPPBackInboundOrderDetail.vue') + }, + { path: '/returnOrder', name: 'returnOrder', component: () => import('@/views/inbound/returnOrder.vue') diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrder.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrder.vue" new file mode 100644 index 0000000..f375a69 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrder.vue" @@ -0,0 +1,341 @@ + +<template> + <view-grid + ref="grid" + :columns="columns" + :detail="detail" + :editFormFields="editFormFields" + :editFormOptions="editFormOptions" + :searchFormFields="searchFormFields" + :searchFormOptions="searchFormOptions" + :table="table" + :extend="extend" + > + </view-grid> +</template> + <script> +import extend from "@/extension/inbound/mesPPBackInboundOrder.js"; +import { ref, defineComponent } from "vue"; +export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "鍏ュ簱鍗�", + name: "mesPPBackInboundOrder", + url: "/mesPPBackInboundOrder/", + sortName: "id", + }); + const editFormFields = ref({ + orderType: "", + inboundOrderNo: "", + upperOrderNo: "", + remark: "", + }); + const editFormOptions = ref([ + [ + { + title: "鍗曟嵁绫诲瀷", + required: true, + field: "orderType", + type: "select", + dataKey: "inOrderType", + data: [], + }, + { + field: "inboundOrderNo", + title: "鍗曟嵁缂栧彿", + type: "string", + }, + { + title: "涓婃父鍗曟嵁缂栧彿", + field: "upperOrderNo", + type: "string", + }, + { + title: "澶囨敞", + field: "remark", + type: "textarea", + }, + ], + ]); + const searchFormFields = ref({ + inboundOrderNo: "", + upperOrderNo: "", + orderType: "", + orderStatus: "", + createType: "", + creater: "", + createDate: "", + }); + const searchFormOptions = ref([ + [ + { title: "鍗曟嵁缂栧彿", field: "inboundOrderNo", type: "like" }, + { title: "涓婃父鍗曟嵁缂栧彿", field: "upperOrderNo", type: "like" }, + { + title: "鍗曟嵁绫诲瀷", + field: "orderType", + type: "select", + dataKey: "inOrderType", + data: [], + }, + { + title: "鍗曟嵁鐘舵��", + field: "orderStatus", + type: "select", + dataKey: "inboundState", + data: [], + }, + ], + [ + { + title: "鍒涘缓鏂瑰紡", + field: "createType", + type: "select", + dataKey: "createType", + data: [], + }, + { title: "鍒涘缓鑰�", field: "creater", type: "like" }, + { title: "鍒涘缓鏃堕棿", field: "createDate", type: "datetime" }, + ], + ]); + const columns = ref([ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "inboundOrderNo", + title: "鍗曟嵁缂栧彿", + type: "string", + width: 120, + align: "left", + link: true, + }, + { + field: "warehouseId", + title: "浠撳簱", + type: "string", + width: 90, + align: "left", + bind:{key: "warehouses", data: []} + }, + { + field: "SourceAddressCode", + title: "婧愬湴鍧�鐮�", + type: "string", + width: 90, + align: "left", + }, + { + field: "CarrierCode", + title: "杞藉叿鍙�", + type: "string", + width: 90, + align: "left", + }, + { + field: "orderType", + title: "鍗曟嵁绫诲瀷", + type: "string", + width: 150, + align: "left", + bind: { key: "inOrderType", data: [] }, + }, + { + field: "orderStatus", + title: "鍗曟嵁鐘舵��", + type: "decimal", + width: 90, + align: "left", + bind: { key: "inboundState", data: [] }, + }, + { + field: "createType", + title: "鍒涘缓鏂瑰紡", + type: "string", + width: 120, + align: "left", + bind: { key: "createType", data: [] }, + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, + ]); + const detail = ref({ + cnName: "鍏ュ簱鍗曟槑缁�", + table: "InboundOrderDetail", + columns: [ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "orderId", + title: "鍏ュ簱鍗曚富閿�", + type: "string", + width: 90, + align: "left", + hidden: true, + }, + { + field: "materielCode", + title: "鐗╂枡缂栧彿", + type: "select", + width: 150, + align: "left", + edit: { type: "" }, + required: true, + }, + { + field: "materielName", + title: "鐗╂枡鍚嶇О", + type: "string", + width: 100, + align: "left", + }, + { + field: "materielSpec", + title: "鐗╂枡瑙勬牸", + type: "select", + type: "string", + width: 100, + align: "left", + }, + { + field: "batchNo", + title: "鎵规鍙�", + type: "decimal", + width: 90, + align: "left", + edit: { type: "" }, + required: true, + }, + { + field: "orderQuantity", + title: "鍗曟嵁鏁伴噺", + type: "decimal", + width: 90, + align: "left", + edit: { type: "number" }, + required: true, + }, + { + field: "receiptQuantity", + title: "缁勭洏鏁伴噺", + type: "int", + width: 120, + align: "left", + }, + { + field: "overInQuantity", + title: "涓婃灦鏁伴噺", + type: "string", + width: 200, + align: "left", + }, + { + field: "orderDetailStatus", + title: "璁㈠崟鏄庣粏鐘舵��", + type: "string", + width: 180, + align: "left", + bind: { key: "orderDetailStatusEnum", data: [] }, + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, + ], + sortName: "id", + key: "id", + }); + return { + table, + extend, + editFormFields, + editFormOptions, + searchFormFields, + searchFormOptions, + columns, + detail, + }; + }, +}); +</script> + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrderDetail.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrderDetail.vue" new file mode 100644 index 0000000..fb7d4a2 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrderDetail.vue" @@ -0,0 +1,341 @@ + +<template> + <view-grid + ref="grid" + :columns="columns" + :detail="detail" + :editFormFields="editFormFields" + :editFormOptions="editFormOptions" + :searchFormFields="searchFormFields" + :searchFormOptions="searchFormOptions" + :table="table" + :extend="extend" + > + </view-grid> +</template> + <script> +import extend from "@/extension/inbound/inboundOrder.js"; +import { ref, defineComponent } from "vue"; +export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "鍏ュ簱鍗�", + name: "inboundOrder", + url: "/InboundOrder/", + sortName: "id", + }); + const editFormFields = ref({ + orderType: "", + inboundOrderNo: "", + upperOrderNo: "", + remark: "", + }); + const editFormOptions = ref([ + [ + { + title: "鍗曟嵁绫诲瀷", + required: true, + field: "orderType", + type: "select", + dataKey: "inOrderType", + data: [], + }, + { + field: "inboundOrderNo", + title: "鍗曟嵁缂栧彿", + type: "string", + }, + { + title: "涓婃父鍗曟嵁缂栧彿", + field: "upperOrderNo", + type: "string", + }, + { + title: "澶囨敞", + field: "remark", + type: "textarea", + }, + ], + ]); + const searchFormFields = ref({ + inboundOrderNo: "", + upperOrderNo: "", + orderType: "", + orderStatus: "", + createType: "", + creater: "", + createDate: "", + }); + const searchFormOptions = ref([ + [ + { title: "鍗曟嵁缂栧彿", field: "inboundOrderNo", type: "like" }, + { title: "涓婃父鍗曟嵁缂栧彿", field: "upperOrderNo", type: "like" }, + { + title: "鍗曟嵁绫诲瀷", + field: "orderType", + type: "select", + dataKey: "inOrderType", + data: [], + }, + { + title: "鍗曟嵁鐘舵��", + field: "orderStatus", + type: "select", + dataKey: "inboundState", + data: [], + }, + ], + [ + { + title: "鍒涘缓鏂瑰紡", + field: "createType", + type: "select", + dataKey: "createType", + data: [], + }, + { title: "鍒涘缓鑰�", field: "creater", type: "like" }, + { title: "鍒涘缓鏃堕棿", field: "createDate", type: "datetime" }, + ], + ]); + const columns = ref([ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "inboundOrderNo", + title: "鍗曟嵁缂栧彿", + type: "string", + width: 120, + align: "left", + link: true, + }, + { + field: "warehouseId", + title: "浠撳簱", + type: "string", + width: 90, + align: "left", + bind:{key: "warehouses", data: []} + }, + { + field: "SourceAddressCode", + title: "婧愬湴鍧�鐮�", + type: "string", + width: 90, + align: "left", + }, + { + field: "CarrierCode", + title: "杞藉叿鍙�", + type: "string", + width: 90, + align: "left", + }, + { + field: "orderType", + title: "鍗曟嵁绫诲瀷", + type: "string", + width: 150, + align: "left", + bind: { key: "inOrderType", data: [] }, + }, + { + field: "orderStatus", + title: "鍗曟嵁鐘舵��", + type: "decimal", + width: 90, + align: "left", + bind: { key: "inboundState", data: [] }, + }, + { + field: "createType", + title: "鍒涘缓鏂瑰紡", + type: "string", + width: 120, + align: "left", + bind: { key: "createType", data: [] }, + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, + ]); + const detail = ref({ + cnName: "鍏ュ簱鍗曟槑缁�", + table: "InboundOrderDetail", + columns: [ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "orderId", + title: "鍏ュ簱鍗曚富閿�", + type: "string", + width: 90, + align: "left", + hidden: true, + }, + { + field: "materielCode", + title: "鐗╂枡缂栧彿", + type: "select", + width: 150, + align: "left", + edit: { type: "" }, + required: true, + }, + { + field: "materielName", + title: "鐗╂枡鍚嶇О", + type: "string", + width: 100, + align: "left", + }, + { + field: "materielSpec", + title: "鐗╂枡瑙勬牸", + type: "select", + type: "string", + width: 100, + align: "left", + }, + { + field: "batchNo", + title: "鎵规鍙�", + type: "decimal", + width: 90, + align: "left", + edit: { type: "" }, + required: true, + }, + { + field: "orderQuantity", + title: "鍗曟嵁鏁伴噺", + type: "decimal", + width: 90, + align: "left", + edit: { type: "number" }, + required: true, + }, + { + field: "receiptQuantity", + title: "缁勭洏鏁伴噺", + type: "int", + width: 120, + align: "left", + }, + { + field: "overInQuantity", + title: "涓婃灦鏁伴噺", + type: "string", + width: 200, + align: "left", + }, + { + field: "orderDetailStatus", + title: "璁㈠崟鏄庣粏鐘舵��", + type: "string", + width: 180, + align: "left", + bind: { key: "orderDetailStatusEnum", data: [] }, + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, + ], + sortName: "id", + key: "id", + }); + return { + table, + extend, + editFormFields, + editFormOptions, + searchFormFields, + searchFormOptions, + columns, + detail, + }; + }, +}); +</script> + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/d50a9bd1-175b-443a-a8be-5e84630a8286.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/d50a9bd1-175b-443a-a8be-5e84630a8286.vsidx" new file mode 100644 index 0000000..8b3ff22 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/d50a9bd1-175b-443a-a8be-5e84630a8286.vsidx" Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/read.lock" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/read.lock" deleted file mode 100644 index e69de29..0000000 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/read.lock" +++ /dev/null diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/MES/RworkTaskModel.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/MES/RworkTaskModel.cs" new file mode 100644 index 0000000..07542a5 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_DTO/MES/RworkTaskModel.cs" @@ -0,0 +1,51 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace WIDESEA_DTO.MES +{ + /// <summary> + /// 杩斿伐鎻愬簱 + /// </summary> + public class RworkTaskModel + { + /// <summary> + /// 浠诲姟鍗曞彿 + /// </summary> + public string TaskNo { get; set; } + /// <summary> + /// 浜у搧缂栫爜 + /// </summary> + public string ProductCode { get; set; } + /// <summary> + /// 浜у搧鍚嶇О + /// </summary> + public string ProductName { get; set; } + /// <summary> + /// 浜у搧鐗堟湰 + /// </summary> + public string ProductVersion { get; set; } + /// <summary> + /// 鍛ㄦ湡 + /// </summary> + public string DateCode { get; set; } + /// <summary> + /// 闇�姹傛暟閲� + /// </summary> + public float RequiredQuantity { get; set; } + /// <summary> + /// 宸ュ巶 + /// </summary> + public string FactoryCode { get; set; } + /// <summary> + /// 閿�鍞鍗� + /// </summary> + public string SaleOrder { get; set; } + /// <summary> + /// 搴撳瓨绫诲瀷 + /// </summary> + public int InventoryType { get; set; } + } +} diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_ITaskInfoService/ITaskService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_ITaskInfoService/ITaskService.cs" index b7dc15d..41ad135 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_ITaskInfoService/ITaskService.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_ITaskInfoService/ITaskService.cs" @@ -252,6 +252,13 @@ MesResponseContent QueryPpByWidth(QueryPpByWidthModel model); /// <summary> + /// 鎴愬搧杩斿伐鎻愬簱 + /// </summary> + /// <param name="model"></param> + /// <returns></returns> + MesResponseContent RworkTask(RworkTaskModel model); + + /// <summary> /// /// </summary> /// <param name="roadwayNos"></param> diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Outbound/Dt_MesRworkOutboundOrder.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Outbound/Dt_MesRworkOutboundOrder.cs" new file mode 100644 index 0000000..7e96279 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Outbound/Dt_MesRworkOutboundOrder.cs" @@ -0,0 +1,121 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SqlSugar; +using WIDESEA_Core.Attributes; +using WIDESEA_Core.CodeConfigEnum; +using WIDESEA_Core.DB.Models; + +namespace WIDESEA_Model.Models.Outbound +{ + /// <summary> + /// 鎴愬搧杩斿伐鎻愬簱鍑哄簱鍗� + /// </summary> + public class Dt_MesRworkOutboundOrder : BaseEntity + { + /// <summary> + /// 涓婚敭 + /// </summary> + [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "涓婚敭")] + public int Id { get; set; } + + /// <summary> + /// 浠撳簱涓婚敭 + /// </summary> + [SugarColumn(IsNullable = false, ColumnDescription = "浠撳簱涓婚敭")] + public int WarehouseId { get; set; } + + /// <summary> + /// 鍗曟嵁缂栧彿 + /// </summary> + [CodeRule(RuleCodeEnum.OutboundOrderRule)] + [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "鍗曟嵁缂栧彿", IsOnlyIgnoreUpdate = true)] + public string OrderNo { get; set; } + + /// <summary> + /// 浠诲姟鍗曞彿 + /// </summary> + [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "浠诲姟鍗曞彿")] + public string TaskNo { get; set; } + + /// <summary> + /// 鍗曟嵁鏁伴噺 + /// </summary> + [SugarColumn(IsNullable = false, ColumnDescription = "鍗曟嵁鏁伴噺")] + public float OrderQuantity { get; set; } + + /// <summary> + /// 閿佸畾鏁伴噺 + /// </summary> + [SugarColumn(IsNullable = false, ColumnDescription = "閿佸畾鏁伴噺", DefaultValue = "0")] + public float LockQuantity { get; set; } + + /// <summary> + /// 宸插嚭鏁伴噺 + /// </summary> + [SugarColumn(IsNullable = false, ColumnDescription = "宸插嚭鏁伴噺", DefaultValue = "0")] + public float OverOutQuantity { get; set; } + + /// <summary> + /// 鍗曟嵁鐘舵�� + /// </summary> + [SugarColumn(IsNullable = false, ColumnDescription = "鍗曟嵁鐘舵��")] + public int OrderStatus { get; set; } + + /// <summary> + /// 鍒涘缓鏂瑰紡 + /// </summary> + [SugarColumn(IsNullable = false, ColumnDescription = "鍒涘缓鏂瑰紡", IsOnlyIgnoreUpdate = true)] + public int CreateType { get; set; } + + /// <summary> + /// 鍗曟嵁绫诲瀷 + /// </summary> + [SugarColumn(IsNullable = false, ColumnDescription = "鍗曟嵁绫诲瀷", IsOnlyIgnoreUpdate = true)] + public int OrderType { get; set; } + + /// <summary> + /// 浜у搧缂栫爜 + /// </summary> + [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "浜у搧缂栫爜")] + public string ProductCode { get; set; } + /// <summary> + /// 浜у搧鍚嶇О + /// </summary> + [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "浜у搧鍚嶇О")] + public string ProductName { get; set; } + + /// <summary> + /// 浜у搧鐗堟湰 + /// </summary> + [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "浜у搧鐗堟湰")] + public string ProductVersion { get; set; } + /// <summary> + /// 鍛ㄦ湡 + /// </summary> + [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "鍛ㄦ湡")] + public string DateCode { get; set; } + /// <summary> + /// 闇�姹傛暟閲� + /// </summary> + [SugarColumn(IsNullable = false, ColumnDescription = "闇�姹傛暟閲�", DefaultValue = "0")] + public float RequiredQuantity { get; set; } + /// <summary> + /// 宸ュ巶 + /// </summary> + [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "宸ュ巶")] + public string FactoryCode { get; set; } + /// <summary> + /// 閿�鍞鍗� + /// </summary> + [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "閿�鍞鍗�")] + public string SaleOrder { get; set; } + /// <summary> + /// 搴撳瓨绫诲瀷 + /// </summary> + [SugarColumn(IsNullable = false, ColumnDescription = "搴撳瓨绫诲瀷", IsOnlyIgnoreUpdate = true)] + public int InventoryType { get; set; } + } +} diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs" index f9cb2f3..c046eec 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs" @@ -473,9 +473,9 @@ PalletCode = model.CarrierCode, PalletType = palletTypeInfo.PalletType, WarehouseId = warehouse.WarehouseId, - StockStatus = stockInfoDetail.StockQuantity<=0.0? StockStatusEmun.MES绌烘墭閫�搴�.ObjToInt():StockStatusEmun.MES閫�搴�.ObjToInt(), + StockStatus = stockInfoDetail.StockQuantity <= 0.0 ? StockStatusEmun.MES绌烘墭閫�搴�.ObjToInt() : StockStatusEmun.MES閫�搴�.ObjToInt(), Details = new List<Dt_StockInfoDetail> { stockInfoDetail }, - Remark= stockInfoDetail.StockQuantity <= 0.0 ? StockStatusEmun.MES绌烘墭閫�搴�.ToString() : StockStatusEmun.MES閫�搴�.ToString() + Remark = stockInfoDetail.StockQuantity <= 0.0 ? StockStatusEmun.MES绌烘墭閫�搴�.ToString() : StockStatusEmun.MES閫�搴�.ToString() }; //Dt_Task task = new Dt_Task() //{ @@ -522,7 +522,7 @@ { return MesResponseContent.Instance.Error("浠撳簱淇℃伅鏈厤缃�"); } - Dt_StockInfo stockInfo = _stockRepository.StockInfoRepository.QueryFirst(x => x.PalletCode == item.CarrierCode); + Dt_StockInfo stockInfo = _stockRepository.StockInfoRepository.QueryFirst(x => x.PalletCode == item.CarrierCode || x.WarehouseId == warehouse.WarehouseId); if (stockInfo == null) { return MesResponseContent.Instance.Error("鏈壘鍒版杞藉叿缂栧彿搴撳瓨"); @@ -883,8 +883,6 @@ } } - - /// <summary> /// PP搴撳瓨鏌ヨ /// </summary> @@ -895,6 +893,7 @@ MesResponseContent content = new MesResponseContent(); try { + Dt_Warehouse warehouse = _basicRepository.WarehouseRepository.QueryFirst(x => x.WarehouseCode == WarehouseEnum.HA58.ToString()); List<Dt_StockInfo> stockInfos = _stockRepository.StockInfoRepository.Db.Queryable<Dt_StockInfo>().Where(x => x.WarehouseId == warehouse.WarehouseId && @@ -967,5 +966,35 @@ return content; } + /// <summary> + /// 鎴愬搧杩斿伐鎻愬簱 + /// </summary> + /// <param name="model"></param> + /// <returns></returns> + public MesResponseContent RworkTask(RworkTaskModel model) + { + try + { + Dt_Warehouse warehouse = _basicRepository.WarehouseRepository.QueryFirst(x => x.WarehouseCode == WarehouseEnum.HA72.ToString()); + //鑾峰彇搴撳瓨璁板綍 + List<Dt_StockInfo> stockInfos = _stockRepository.StockInfoRepository.Db.Queryable<Dt_StockInfo>().Where(x => + x.WarehouseId == warehouse.WarehouseId && + x.StockStatus == (int)StockStatusEmun.鍏ュ簱瀹屾垚).Includes(x => x.Details).ToList(); + Dt_StockInfo? stockInfo = stockInfos.FirstOrDefault(x => x.Details.Any(x => x.BatchNo == model.ProductVersion)); + if (stockInfo == null) + { + return MesResponseContent.Instance.Error($"灏炬暟浠�:{model.ProductVersion}鏃犲彲鐢ㄥ簱瀛�"); + } + Dt_Task exsit2 = Repository.QueryFirst(x => x.PalletCode == stockInfo.PalletCode); + + } + catch (Exception ex) + { + + throw; + } + return MesResponseContent.Instance.OK(); + } + } } diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs" index 5e14ca7..b53fad2 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/TaskService.cs" @@ -177,7 +177,7 @@ { return WebResponseContent.Instance.Error($"鏈壘鍒扮粍鐩樹俊鎭�"); } - if (stockInfo.StockStatus != StockStatusEmun.缁勭洏鏆傚瓨.ObjToInt()) + if (stockInfo.StockStatus != StockStatusEmun.鍑哄簱瀹屾垚.ObjToInt()) { return WebResponseContent.Instance.Error($"璇ユ墭鐩樼姸鎬佷笉姝g‘"); } diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MES/MesController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MES/MesController.cs" index 3ccb6b0..71651e5 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MES/MesController.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MES/MesController.cs" @@ -106,11 +106,11 @@ { return _taskService.PPSubsectionOut(model.Content); } - /// <summary> - /// PP灏忓嵎鍑哄簱 - /// </summary> - /// <param name="model"></param> - /// <returns></returns> + /// <summary> + /// PP灏忓嵎鍑哄簱 + /// </summary> + /// <param name="model"></param> + /// <returns></returns> [HttpPost, Route("PPCutOut"), AllowAnonymous] public MesResponseContent PPCutOut([FromBody] Root<PPCutOutModle> model) { @@ -150,14 +150,15 @@ return _taskService.UploadMesMaterialLotaAcept(model); } /// <summary> - /// PP搴撳瓨鏌ヨ + /// 鎴愬搧杩斿伐鎻愬簱 /// </summary> /// <param name="model"></param> /// <returns></returns> - [HttpPost, Route("BagInfoSync"), AllowAnonymous] - public MesResponseContent BagInfoSync([FromBody] Root<MesBagInfoModel> model) + [HttpPost,Route("RworkTask"),AllowAnonymous] + public MesResponseContent RworkTask([FromBody] RworkTaskModel model) { - return _taskService.BagInfoSync(model.Content); + return _taskService.RworkTask(model); } + } } -- Gitblit v1.9.3