| | |
| | | printList: null, |
| | | printMerge: null, |
| | | printLike: null, |
| | | printProject:null |
| | | printProject:null, |
| | | merges:null |
| | | }) |
| | | |
| | | const {currentRoute} = useRouter() |
| | |
| | | if (like == '') { |
| | | like = null |
| | | } |
| | | //æ è®°åå¹¶çæµç¨å¡ |
| | | let merges = props.merges |
| | | if (merges == '') { |
| | | merges = null |
| | | } |
| | | let name=company.companyName |
| | | data.value.printList = JSON.parse(props.printList) |
| | | let flowCardCount = '' |
| | | onMounted(() => { |
| | | if(props.printProject!=null){ |
| | | request.post(`/processCard/getSelectPrintProject/${printProject}`).then((res) => { |
| | | request.post(`/processCard/getSelectPrintProject/${printProject}/${merges}`).then((res) => { |
| | | if (res.code == 200) { |
| | | load(res.data.data) |
| | | console.log(res.data) |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | | router.push("/login") |
| | | } |
| | | }) |
| | | }else{ |
| | | request.post(`/processCard/getSelectPrinting/${merge}/${like}`, data.value).then((res) => { |
| | | request.post(`/processCard/getSelectPrinting/${merge}/${like}/${merges}`, data.value).then((res) => { |
| | | if (res.code == 200) { |
| | | load(res.data.data) |
| | | } else { |
| | |
| | | </div> |
| | | <div> |
| | | <span v-if="name=='天津åç»ç»çå·¥ä¸ææ¯æéå
¬å¸ï¼TJBB-QR7.1-01ï¼'" style="font-size: 10px">{{itemFlow.otherRemarks}}</span> |
| | | {{itemFlow.rack}} |
| | | æµç¨å¡å·ï¼ {{ |
| | | itemFlow.process_id |
| | | }}/{{ itemFlow.technologyNumber }} å
± {{ item.count }} æ¶ |
| | |
| | | printList: null, |
| | | printMerge: null, |
| | | printLike: null, |
| | | printProject:null |
| | | printProject:null, |
| | | merges:null |
| | | }) |
| | | |
| | | const {currentRoute} = useRouter() |
| | |
| | | if (like == '') { |
| | | like = null |
| | | } |
| | | let merges = props.merges |
| | | if (merges == '') { |
| | | merges = null |
| | | } |
| | | let name=company.companyName |
| | | data.value.printList = JSON.parse(props.printList) |
| | | let flowCardCount = '' |
| | | onMounted(() => { |
| | | if(props.printProject!=null){ |
| | | request.post(`/processCard/getSelectPrintProject/${printProject}`).then((res) => { |
| | | request.post(`/processCard/getSelectPrintProject/${printProject}/${merges}`).then((res) => { |
| | | if (res.code == 200) { |
| | | load(res.data.data) |
| | | console.log(res.data) |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | | router.push("/login") |
| | | } |
| | | }) |
| | | }else{ |
| | | request.post(`/processCard/getSelectPrinting/${merge}/${like}`, data.value).then((res) => { |
| | | request.post(`/processCard/getSelectPrinting/${merge}/${like}/${merges}`, data.value).then((res) => { |
| | | if (res.code == 200) { |
| | | console.log(res.data.data) |
| | | load(res.data.data) |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | |
| | | æ¶é´ï¼{{formattedTime}} |
| | | |
| | | </div> |
| | | <div> |
| | | <div>{{itemFlow.rack}} |
| | | æµç¨å¡å·ï¼ {{ |
| | | itemFlow.process_id |
| | | }}/{{ itemFlow.technologyNumber }} å
± {{ item.count }} æ¶ |
| | |
| | | showDeliveryCreator:true,//åè´§åå建人å
æ¾ç¤ºæè
åæ¾ç¤º falseåæ¾ç¤º |
| | | deliveryRemark: ['夿³¨:æ¬æ¹ç»ç为ä¼çåæ ¼åï¼è¯·å¨å¸è´§æ¶,å½é¢æ¶ç¹éªæ¶ãå¦æè´¨éé®é¢å¨ä¸å¨å
䏿¬å
¬å¸èç³»,å¦åæ¦ä¸è´è´£ï¼'], |
| | | deliveryOutbound: false,//åè´§é»è®¤åºåº |
| | | flowCardMerge: 0,//æµç¨å¡åçæå° |
| | | //天津 |
| | | printLabel: { |
| | | custom: (item1) => { |
| | |
| | | showDeliveryCreator:true,//åè´§åå建人å
æ¾ç¤ºæè
åæ¾ç¤º falseåæ¾ç¤º |
| | | deliveryRemark: ['夿³¨:æ¬æ¹ç»ç为ä¼çåæ ¼åï¼è¯·å¨å¸è´§æ¶,å½é¢æ¶ç¹éªæ¶ãå¦æè´¨éé®é¢å¨ä¸å¨å
䏿¬å
¬å¸èç³»,å¦åæ¦ä¸è´è´£ï¼'], |
| | | deliveryOutbound: true,//åè´§é»è®¤åºåº |
| | | flowCardMerge: 1,//æµç¨å¡åçæå° |
| | | //天津 |
| | | printLabel: { |
| | | custom: (item1) => { |
| | |
| | | showDeliveryCreator:true,//åè´§åå建人å
æ¾ç¤ºæè
åæ¾ç¤º falseåæ¾ç¤º |
| | | deliveryRemark: ['夿³¨:æ¬æ¹ç»ç为ä¼çåæ ¼åï¼è¯·å¨å¸è´§æ¶,å½é¢æ¶ç¹éªæ¶ãå¦æè´¨éé®é¢å¨ä¸å¨å
䏿¬å
¬å¸èç³»,å¦åæ¦ä¸è´è´£ï¼'], |
| | | deliveryOutbound: false,//åè´§é»è®¤åºåº |
| | | flowCardMerge: 0,//æµç¨å¡åçæå° |
| | | |
| | | //天津 |
| | | printLabel: { |
| | |
| | | '声æï¼è´§å°å·¥å°æå·¥ååï¼å¦è¥è´µå¸ä¸åæ¶çå®è£
ææªå鲿鲿·æªæ½å¯¼è´çç»çåéï¼æå¸æ¦ä¸è´è´£ã', |
| | | 'æ¶è´§æ¶ééªæ¶äº§åæ°éãè§æ ¼åææ ç ´æï¼å¦åç°é®é¢éäºæ¶è´§ä¸æ¥å
ï¼ä»¥ä¹¦é¢éç¥å¹¶éä¸ç°åºè¯æææï¼å¦ç ´æç
§ççï¼ï¼ç¸å
³è¯æèµæä¸è¶³ï¼æå¨ä¸è¿°æ¥æå
æªæåºè´¨éå¼è®®çï¼é¾æè§ä¸ºäº§ååæ ¼ï¼æå¸å°ä¸äºæ¿æ
ä»»ä½è´£ä»»ãæ¬è¯·çæï¼'], |
| | | deliveryOutbound: false,//åè´§é»è®¤åºåº |
| | | flowCardMerge: 0,//æµç¨å¡åçæå° |
| | | //天津 |
| | | printLabel: { |
| | | custom: (item1) => { |
| | |
| | | let printRow = ref({ |
| | | list: null, |
| | | printMergeVal: null, |
| | | like: null |
| | | like: null, |
| | | merge: null |
| | | }) |
| | | |
| | | //æ ç¾ |
| | |
| | | printRow.value.list = JSON.stringify(selectRecords) |
| | | printRow.value.printMergeVal = printMerge.value |
| | | printRow.value.like = null |
| | | printRow.value.merge = company.flowCardMerge |
| | | // router.push({path: '/main/processCard/printProcess', query: {printList: JSON.stringify(selectRecords),printMerge:printMergeVal}}) |
| | | if(company.companyName=='常å·å¸åå©ç»çæéå
¬å¸'){ |
| | | dialogTableVisibleStraight.value = true |
| | |
| | | :printLike="printRow.like" |
| | | :printList="printRow.list" |
| | | :printMerge="printRow.printMergeVal" |
| | | :merges="printRow.merge" |
| | | style="width: 100%;height: 100%"/> |
| | | </el-dialog> |
| | | |
| | |
| | | :printLike="printRow.like" |
| | | :printList="printRow.list" |
| | | :printMerge="printRow.printMergeVal" |
| | | :merges="printRow.merge" |
| | | style="width: 100%;height: 100%"/> |
| | | </el-dialog> |
| | | |
| | |
| | | list: null, |
| | | printMergeVal: null, |
| | | like: null, |
| | | project:null |
| | | project:null, |
| | | merge: null |
| | | }) |
| | | const getTableRow = (row, type) => { |
| | | switch (type) { |
| | |
| | | } |
| | | case 'edit3' :{ |
| | | printRow.value.project=row.project_no |
| | | printRow.value.merge = company.flowCardMerge |
| | | if(company.companyName=='常å·å¸åå©ç»çæéå
¬å¸'){ |
| | | dialogTableVisibleStraight.value = true |
| | | }else{ |
| | |
| | | :printList="printRow.list" |
| | | :printMerge="printRow.printMergeVal" |
| | | :printProject="printRow.project" |
| | | :merges="printRow.merge" |
| | | style="width: 100%;height: 100%"/> |
| | | </el-dialog> |
| | | |
| | |
| | | :printList="printRow.list" |
| | | :printMerge="printRow.printMergeVal" |
| | | :printProject="printRow.project" |
| | | :merges="printRow.merge" |
| | | style="width: 100%;height: 100%"/> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | } |
| | | |
| | | @ApiOperation("æå°æµç¨å¡æ°æ®æ¥è¯¢æ¥å£") |
| | | @PostMapping("/getSelectPrinting/{printMerge}/{printLike}") |
| | | @PostMapping("/getSelectPrinting/{printMerge}/{printLike}/{merge}") |
| | | public Result getSelectPrinting( |
| | | @PathVariable String printMerge, |
| | | @PathVariable String printLike, |
| | | @PathVariable String merge, |
| | | @RequestBody Map<String, Object> object) { |
| | | return Result.seccess(flowCardService.getSelectPrintingSv(object,printMerge,printLike)); |
| | | return Result.seccess(flowCardService.getSelectPrintingSv(object,printMerge,printLike,merge)); |
| | | } |
| | | |
| | | @ApiOperation("å·¥ç¨æå°æµç¨å¡æ°æ®æ¥è¯¢æ¥å£") |
| | | @PostMapping("/getSelectPrintProject/{printProject}") |
| | | @PostMapping("/getSelectPrintProject/{printProject}/{merge}") |
| | | public Result getSelectPrintProject( |
| | | @PathVariable String printProject) { |
| | | return Result.seccess(flowCardService.getSelectPrintProject(printProject)); |
| | | @PathVariable String printProject,@PathVariable String merge) { |
| | | return Result.seccess(flowCardService.getSelectPrintProject(printProject,merge)); |
| | | } |
| | | |
| | | @ApiOperation("æå°æ ç¾æ°æ®æ¥è¯¢æ¥å£") |
| | |
| | | |
| | | List<Map<String, Object>> getDetailListLike(String processId, String technologyNumber, String process); |
| | | |
| | | List<Map<String, Object>> getDetailListMerge(String processId, String process); |
| | | |
| | | List<Map<String, Object>> getDetailListLikes(String processId, String technologyNumber, String process,String printProject,Integer quantity); |
| | | |
| | | List<Map<String, String>> getPrimaryListMergeRefund(String processId, String technologyNumber, Integer orderNumber, String orderId); |
| | |
| | | return null; |
| | | } |
| | | } |
| | | public Map<String, Object> getSelectPrintingSv(Map<String, Object> object, String printMerge, String printLike) { |
| | | public Map<String, Object> getSelectPrintingSv(Map<String, Object> object, String printMerge, String printLike, String merge) { |
| | | if (printMerge == null){ |
| | | printMerge= ""; |
| | | } |
| | | if (printLike == null){ |
| | | printLike= ""; |
| | | } |
| | | if (merge == null){ |
| | | merge= ""; |
| | | } |
| | | Map<String, Object> map = new HashMap<>(); |
| | | List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();//æç»ç»æ |
| | | List<FlowCard> flowCardList = JSONArray.parseArray(JSONObject.toJSONString(object.get("printList")), FlowCard.class); |
| | | if (!flowCardList.isEmpty()) { |
| | | Set<String> processedProcessIds = new HashSet<>(); // ç¨æ¥åæ¾å·²å¤çè¿ç processId |
| | | for (FlowCard flowCard : flowCardList) { |
| | | Map<String, Object> itemmap = new HashMap<>(); |
| | | //æµç¨å¡è¡¨å¤´è¡¨å°¾æ°æ® |
| | |
| | | itemmap.put("detailList", detailList); |
| | | } |
| | | else { |
| | | itemmap.put("detail", flowCardMapper.getPrimaryList(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getGlassChild(),flowCard.getProcess(),flowCard.getOrderId())); |
| | | if(merge.equals("1")&& flowCard.getMerge().equals(1)){ |
| | | // æ£æ¥æ¯å¦å·²ç»å¤çè¿è¯¥ processIdï¼å¦æå¤çè¿åè·³è¿ |
| | | if (processedProcessIds.contains(flowCard.getProcessId())) { |
| | | continue; |
| | | } |
| | | // å°è¯¥ processId å å
¥å·²å¤çéå |
| | | processedProcessIds.add(flowCard.getProcessId()); |
| | | itemmap.put("detail", flowCardMapper.getPrimaryList(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getGlassChild(),flowCard.getProcess(),flowCard.getOrderId())); |
| | | |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListLike(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getProcess()); |
| | | itemmap.put("detailList", detailList); |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListMerge(flowCard.getProcessId(),flowCard.getProcess()); |
| | | itemmap.put("detailList", detailList); |
| | | }else{ |
| | | itemmap.put("detail", flowCardMapper.getPrimaryList(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getGlassChild(),flowCard.getProcess(),flowCard.getOrderId())); |
| | | |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListLike(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getProcess()); |
| | | itemmap.put("detailList", detailList); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | return map; |
| | | } |
| | | |
| | | public Map<String, Object> getSelectPrintProject(String printProject) { |
| | | public Map<String, Object> getSelectPrintProject(String printProject,String merge) { |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();//æç»ç»æ |
| | | if (merge == null){ |
| | | merge= ""; |
| | | } |
| | | List<FlowCard> flowCardList = flowCardMapper.getFlowCardListPrintProject(printProject); |
| | | if (!flowCardList.isEmpty()) { |
| | | Set<String> processedProcessIds = new HashSet<>(); // ç¨æ¥åæ¾å·²å¤çè¿ç processId |
| | | for (FlowCard flowCard : flowCardList) { |
| | | Map<String, Object> itemmap = new HashMap<>(); |
| | | |
| | |
| | | else { |
| | | |
| | | if(flowCard.getPatchState().equals(0)){ |
| | | itemmap.put("detail", flowCardMapper.getPrimaryList(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getGlassChild(),flowCard.getProcess(),flowCard.getOrderId())); |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListLikes(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getProcess(),printProject,flowCard.getQuantity()); |
| | | itemmap.put("detailList", detailList); |
| | | if(merge.equals("1")&& flowCard.getMerge().equals(1)){ |
| | | // æ£æ¥æ¯å¦å·²ç»å¤çè¿è¯¥ processIdï¼å¦æå¤çè¿åè·³è¿ |
| | | if (processedProcessIds.contains(flowCard.getProcessId())) { |
| | | continue; |
| | | } |
| | | // å°è¯¥ processId å å
¥å·²å¤çéå |
| | | processedProcessIds.add(flowCard.getProcessId()); |
| | | itemmap.put("detail", flowCardMapper.getPrimaryList(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getGlassChild(),flowCard.getProcess(),flowCard.getOrderId())); |
| | | |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListMerge(flowCard.getProcessId(),flowCard.getProcess()); |
| | | itemmap.put("detailList", detailList); |
| | | }else{ |
| | | itemmap.put("detail", flowCardMapper.getPrimaryList(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getGlassChild(),flowCard.getProcess(),flowCard.getOrderId())); |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListLike(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getProcess()); |
| | | itemmap.put("detailList", detailList); |
| | | } |
| | | |
| | | }else{ |
| | | itemmap.put("detail", flowCardMapper.getPrimaryLists(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getGlassChild(),flowCard.getProcess(),flowCard.getOrderId(),flowCard.getQuantity())); |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListLikes(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getProcess(),printProject,flowCard.getQuantity()); |
| | |
| | | ogdss.concatenated_glass_child as glass_child, |
| | | fc.founder, |
| | | date(fc.splitFrame_time) as splitFrame_time, |
| | | processed_part as process |
| | | processed_part as process, |
| | | merge |
| | | |
| | | from flow_card as fc |
| | | left join sd.order_glass_detail as ogd |
| | |
| | | #{technologyNumber} as technologyNumber, |
| | | concat(fc.process_id, '/', #{technologyNumber}) as processIdNumber, |
| | | concat('å¯¹åºæå¸åå·', o.batch) AS otherRemarks, |
| | | '' as qrcode |
| | | '' as qrcode, |
| | | ifnull(rack,"") as rack |
| | | from flow_card as fc |
| | | left join sd.order_glass_detail as ogd |
| | | on fc.order_id = ogd.order_id and fc.order_number = ogd.order_number and |
| | |
| | | order by IF(fcs.sort != NULL or fcs.sort != '', fcs.sort, fc.order_number) |
| | | </select> |
| | | |
| | | <select id="getDetailListMerge"> |
| | | select fc.order_number, |
| | | concat(IF(ROUND(ogd.child_width, 1) = FLOOR(ogd.child_width), FLOOR(ogd.child_width), ROUND(ogd.child_width, 1)), "*", IF(ROUND(child_height, 1) = FLOOR(child_height), FLOOR(child_height), ROUND(child_height, 1))) as child_width, |
| | | sum(fc.quantity) as quantity, |
| | | round(ogd.total_area, 2) as total_area, |
| | | od.perimeter, |
| | | if(od.bend_radius!=null || od.bend_radius!='',od.bend_radius,if(od.shape=2,JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S04')),'')) as bend_radius, |
| | | concat(IFNULL(od.processing_note, ''), IFNULL(od.remarks, '')) as remarks, |
| | | od.other_columns, |
| | | round(ogd.child_width) as width, |
| | | round(ogd.child_height) as height, |
| | | pd.separation, |
| | | fc.technology_number, |
| | | IFNULL(JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S02')),'') as mapNumber, |
| | | od.building_number |
| | | from flow_card as fc |
| | | left join sd.order_glass_detail as ogd |
| | | on fc.order_id = ogd.order_id and fc.order_number = ogd.order_number and |
| | | fc.technology_number = ogd.technology_number |
| | | left join sd.order_detail as od on od.order_id = fc.order_id and od.order_number = fc.order_number |
| | | left join sd.product_detail as pd |
| | | on pd.prod_id = od.product_id and pd.glass_sort = ogd.technology_number |
| | | left join flow_card_sort as fcs |
| | | on fcs.process_id = fc.process_id and fcs.order_number = fc.order_number and |
| | | fcs.technology_number = fc.technology_number |
| | | and fcs.process = #{process} |
| | | where fc.process_id = #{processId} and fc.`merge`=1 |
| | | group by fc.process_id, fc.order_number |
| | | order by IF(fcs.sort != NULL or fcs.sort != '', fcs.sort, fc.order_number) |
| | | </select> |
| | | |
| | | <select id="getDetailListLikes"> |
| | | select fc.order_number, |
| | | concat(round(ogd.child_width), "*", round(ogd.child_height)) as child_width, |
| | |
| | | date(fc.splitFrame_time) as splitFrame_time, |
| | | /* if(fc.print_status=0,'æªæå°','å·²æå°') as print_status*/ |
| | | fc.print_status, |
| | | ogd.process |
| | | ogd.process, |
| | | merge |
| | | from flow_card as fc |
| | | left join sd.order_glass_detail as ogd |
| | | on ogd.order_id = fc.order_id and ogd.order_number = fc.order_number and |
| | |
| | | date(fc.splitFrame_time) as splitFrame_time, |
| | | /* if(fc.print_status=0,'æªæå°','å·²æå°') as print_status*/ |
| | | fc.print_status, |
| | | ogd.process |
| | | ogd.process, |
| | | merge |
| | | from flow_card as fc |
| | | left join sd.order_glass_detail as ogd |
| | | on ogd.order_id = fc.order_id and ogd.order_number = fc.order_number and |
| | |
| | | od.product_name, |
| | | ogd.glass_child, |
| | | fc.patch_state, |
| | | ogd.process |
| | | ogd.process, |
| | | fcd.merge |
| | | from (select process_id,count(*) as quantity,order_sort,project_no,layer,patch_state from pp.optimize_detail where project_no = #{printProject} group by process_id,layer) as fc |
| | | left join sd.order_glass_detail as ogd |
| | | on ogd.order_id = SUBSTRING(fc.process_id,1,10) and ogd.order_number = fc.order_sort and |
| | | ogd.technology_number = fc.layer |
| | | left join sd.order_detail as od on od.order_id = SUBSTRING(fc.process_id,1,10) and od.order_number = fc.order_sort |
| | | left join sd.`order` as o on o.order_id = SUBSTRING(fc.process_id,1,10) |
| | | left join pp.`flow_card` as fcd on fcd.process_id=fc.process_id and fcd.technology_number=ogd.technology_number and fcd.order_number=od.order_number |
| | | where fc.project_no = #{printProject} |
| | | GROUP BY fc.process_id, ogd.technology_number |
| | | order by fc.process_id, ogd.technology_number |