标签打印查询界面添加尺寸字段,自定义界面添加自由编辑标题,流程卡查询界面添加撤销可排版状态按钮,补充新增的语言
| | |
| | | { |
| | | tid: '此面为室内面', title: '此面为室内面', data: '', type: 'text', |
| | | options: { |
| | | field: 'inner', |
| | | field: '', |
| | | testData: '', |
| | | width:100, |
| | | height: 16, |
| | |
| | | { |
| | | tid: '此面为室外面', title: '此面为室外面', data: '', type: 'text', |
| | | options: { |
| | | field: 'outside', |
| | | field: '', |
| | | testData: '', |
| | | width:100, |
| | | height: 16, |
| | |
| | | { |
| | | tid: 'custom1', title: '自定义1', data: '', type: 'text', |
| | | options: { |
| | | field: 'custom1', |
| | | field: '', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | |
| | | { |
| | | tid: 'custom2', title: '自定义2', data: '', type: 'text', |
| | | options: { |
| | | field: 'custom2', |
| | | field: '', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | |
| | | { |
| | | tid: 'custom3', title: '自定义3', data: '', type: 'text', |
| | | options: { |
| | | field: 'custom3', |
| | | field: '', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | |
| | | { |
| | | tid: 'custom4', title: '自定义4', data: '', type: 'text', |
| | | options: { |
| | | field: 'custom4', |
| | | field: '', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | |
| | | { |
| | | tid: 'custom5', title: '自定义5', data: '', type: 'text', |
| | | options: { |
| | | field: 'custom5', |
| | | field: '', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | |
| | | composingOk:'يمكن ادراجها ', |
| | | composingNo:'لا يمكن ادراجها', |
| | | typesetter:'المدخل', |
| | | revoke:'撤销可排版', |
| | | scheduledStartTime:'وقت البدء الجدولة', |
| | | planEndTime:'وقت انتهاء الجدولة', |
| | | customerId:'رمز العميل', |
| | |
| | | deleteNo:'فشل الحذف، تحقق مما إذا كان قد تم الإبلاغ عن بطاقة العملية للعمل (ملاحظات)', |
| | | deleteNoProcedure:'فشل الحذف، تحقق مما إذا كان قد تم الإبلاغ عن العملية التالية للعمل', |
| | | pleaseCheckTheRequiredData:'برجاء التأكد من البيانات المطلوبة', |
| | | notSelectTheOptionData:'请勿勾选已排版数据', |
| | | landingSequence:'落架顺序', |
| | | |
| | | labelStyle:'نمط الملصق', |
| | |
| | | composingOk:'Can Be Typesetter', |
| | | composingNo:'Non Typesetting', |
| | | typesetter:'typesetter', |
| | | revoke:'撤销可排版', |
| | | scheduledStartTime:'Scheduled Start Time', |
| | | planEndTime:'Plan End Time', |
| | | customerId:'Customer Id', |
| | |
| | | deleteNo:'Failed to delete Check whether the flow card has been reported (feedback)', |
| | | deleteNoProcedure:'Delete failed Check whether the next operation has been reported', |
| | | pleaseCheckTheRequiredData:'Please check the required data', |
| | | notSelectTheOptionData:'请勿勾选已排版数据', |
| | | landingSequence:'Landing sequence', |
| | | |
| | | labelStyle:'Label Style', |
| | |
| | | composingOk:'ТипограммаOK', |
| | | composingNo:'ТипограммаNO', |
| | | typesetter:'Наборщик', |
| | | revoke:'撤销可排版', |
| | | scheduledStartTime:'Планируемое время начала', |
| | | planEndTime:'Планируемое время окончания', |
| | | customerId:'Код клиента', |
| | |
| | | deleteNo:'Ошибка удаления, проверьте обратную связь карты процесса', |
| | | deleteNoProcedure:'Ошибка удаления, проверьте обратную связь операции', |
| | | pleaseCheckTheRequiredData:'Выберите необходимые данные.', |
| | | notSelectTheOptionData:'请勿勾选已排版数据', |
| | | landingSequence:'Landing sequence', |
| | | |
| | | labelStyle:'Стиль метки', |
| | |
| | | composingOk:'可排版', |
| | | composingNo:'不可排版', |
| | | typesetter:'已排版', |
| | | revoke:'撤销可排版', |
| | | scheduledStartTime:'计划开始时间', |
| | | planEndTime:'计划结束时间', |
| | | customerId:'客户编码', |
| | |
| | | deleteNo:'删除失败,检查流程卡是否已报工', |
| | | deleteNoProcedure:'删除失败,请检查下工序是否已报工或者已补片返工', |
| | | pleaseCheckTheRequiredData:'请勾选需要的数据', |
| | | notSelectTheOptionData:'请勿勾选已排版数据', |
| | | landingSequence:'落架顺序', |
| | | |
| | | labelStyle:'标签样式', |
| | |
| | | filterMethod: filterChanged, width: 100 |
| | | }, |
| | | { |
| | | field: 'width', |
| | | title: t('order.width'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged, width: 100 |
| | | }, |
| | | { |
| | | field: 'height', |
| | | title: t('order.height'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged, width: 100 |
| | | }, |
| | | { |
| | | field: 'glassNumber', |
| | | title: t('reportingWorks.glassNumber'), |
| | | filters: [{data: ''}], |
| | |
| | | toolbarConfig: { |
| | | buttons: [ |
| | | {code: 'update', name: t('processCard.composing'), status: 'primary'}, |
| | | {code: 'revoke', name: t('processCard.revoke'), status: 'primary'}, |
| | | {code: 'delete', name: t('basicData.delete'), status: 'primary'}, |
| | | {code: 'rack', name: t('合架'), status: 'primary'}, |
| | | ], |
| | |
| | | return; |
| | | |
| | | } |
| | | case 'revoke': { |
| | | const $table = xGrid.value |
| | | if ($table) { |
| | | const selectRecords = $table.getCheckboxRecords() |
| | | if (selectRecords.length == 0) { |
| | | ElMessage.warning(t('processCard.pleaseCheckTheRequiredData')) |
| | | return; |
| | | } |
| | | |
| | | let composingData = ref({ |
| | | composing: selectRecords, |
| | | }) |
| | | selectRecords.forEach(item => { |
| | | if (item.layoutStatus == "已排版"){ |
| | | ElMessage.warning(t('processCard.notSelectTheOptionData')) |
| | | return; |
| | | } |
| | | }); |
| | | //撤销可排版状态 |
| | | request.post("/processCard/revokeComposing", composingData.value).then((res) => { |
| | | if (res.code == 200 && res.data === true) { |
| | | ElMessage.success(t('basicData.msg.saveSuccess')) |
| | | router.push({ |
| | | path: '/main/processCard/SelectProcessCard', |
| | | query: {random: Math.random()} |
| | | }) |
| | | } else { |
| | | |
| | | ElMessage.warning("撤销失败,请检查是否已生成工程号") |
| | | |
| | | } |
| | | }) |
| | | |
| | | } |
| | | return; |
| | | |
| | | } |
| | | case 'delete': { |
| | | const $table = xGrid.value |
| | | if ($table) { |
| | |
| | | return Result.seccess(flowCardService.updateComposingSv(object)); |
| | | } |
| | | |
| | | @ApiOperation("复选框撤销可排版状态") |
| | | @SaCheckPermission("selectProcessCard.review") |
| | | @PostMapping("/revokeComposing") |
| | | public Result revokeComposing( |
| | | @RequestBody Map<String, Object> object |
| | | ) { |
| | | |
| | | return Result.seccess(flowCardService.revokeComposingSv(object)); |
| | | } |
| | | @ApiOperation("流程卡打印明细数据排序查询接口") |
| | | @PostMapping("/printFlowCardDetails/{processId}/{technologyNumber}/{process}") |
| | | public Result printFlowCardDetails(@PathVariable String processId, |
| | |
| | | Map<String,Object> getGlassThicknessByProdutionId(String orderId,String productionId); |
| | | |
| | | List<OrderDetail> getOrderDetailByProductionId(String orderId, String productionId); |
| | | |
| | | Boolean revokeComposing(String processId); |
| | | |
| | | Integer selectProjectNo(String processId); |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | public Boolean revokeComposingSv(Map<String, Object> object) { |
| | | List<FlowCard> flowCardList = JSONArray.parseArray(JSONObject.toJSONString(object.get("composing")), FlowCard.class); |
| | | if (!flowCardList.isEmpty()) { |
| | | for (FlowCard flowCard : flowCardList) { |
| | | //获取没有工程号的条数,已生成工程号不能撤回 |
| | | Integer count = flowCardMapper.selectProjectNo(flowCard.getProcessId()); |
| | | if (count == 0){ |
| | | flowCardMapper.revokeComposing(flowCard.getProcessId()); |
| | | } else { |
| | | return false; |
| | | } |
| | | |
| | | } |
| | | return true; |
| | | } else { |
| | | return false; |
| | | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | fc.print_status, |
| | | ogd.process, |
| | | JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S01')) AS glassNumber, |
| | | od.order_number |
| | | od.order_number, |
| | | od.width, |
| | | od.height |
| | | 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 |
| | |
| | | fc.print_status, |
| | | ogd.process, |
| | | JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S01')) AS glassNumber, |
| | | od.order_number |
| | | od.order_number, |
| | | ogd.child_width as width, |
| | | ogd.child_height as height |
| | | 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 |
| | |
| | | group by a.order_number) as c |
| | | order by c.`long` desc |
| | | </select> |
| | | |
| | | <!-- 复选框修改排版状态--> |
| | | <update id="revokeComposing"> |
| | | update flow_card as fc |
| | | set fc.layout_status=0 |
| | | where fc.process_id = #{processId} |
| | | </update> |
| | | |
| | | <select id="selectProjectNo"> |
| | | SELECT COUNT(*) |
| | | FROM flow_card |
| | | WHERE process_id= #{processId} and project_no IS not NULL; |
| | | </select> |
| | | </mapper> |