Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override
| | |
| | | |
| | | <div style="width: 100%"> |
| | | <template v-for="(itme, index) in dataCollection" :key="index"> |
| | | <div style="width: 90%;height: 120px;margin: auto;;background-color: aliceblue;"> |
| | | <el-card style="width: 95%;height: 120px;margin: auto"> |
| | | |
| | | <div style="width: 200px;font-size: 18px;text-align: left;">{{itme.process_name}}</div> |
| | | <div style="display: flex;margin-top: 10px"> |
| | | <template v-for="(itme1, index) in itme.detail" :key="index"> |
| | |
| | | </div> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | | <br> |
| | | </template> |
| | | |
| | |
| | | let cellarea = ref(` |
| | | <div class="vxe-table--cell-area" style="font-size: 10px;text-align: left" > |
| | | <span class="vxe-table--cell-main-area" > |
| | | <p style="bottom: 0;color: blue;background-color: #5cadfe; margin-top: auto;"></p> |
| | | <p style="bottom: 0;color: blue;background-color: #5cadfe; margin-top: auto;font-size: 14px"></p> |
| | | </span> |
| | | <span class="vxe-table--cell-active-area" ></span> |
| | | </div> |
| | |
| | | let cellarea = ref(` |
| | | <div class="vxe-table--cell-area" style="font-size: 10px;text-align: left" > |
| | | <span class="vxe-table--cell-main-area" > |
| | | <p style="bottom: 0;color: blue;background-color: #5cadfe; margin-top: auto;"></p> |
| | | <p style="bottom: 0;color: blue;background-color: #5cadfe; margin-top: auto;font-size: 14px"></p> |
| | | </span> |
| | | <span class="vxe-table--cell-active-area" ></span> |
| | | </div> |
| | |
| | | { code: 'updateOrderId', name: t('searchOrder.updateOrderId'), prefixIcon: 'vxe-icon-eye-fill', visible: true, disabled: false }, |
| | | { code: 'reportingTransfer', name: t('searchOrder.reportingTransfer'), prefixIcon: 'vxe-icon-send', visible: true, disabled: true }, |
| | | { code: 'uploadPicture', name: t('order.graphic'),prefixIcon: 'vxe-icon-picture-fill', visible: true, }, |
| | | { code: 'fileUpload', name: t('上传dwg文件'),prefixIcon: 'vxe-icon-picture-fill', visible: true, } |
| | | { code: 'fileUpload', name: t('上传DWG文件'),prefixIcon: 'vxe-icon-picture-fill', visible: true, } |
| | | ] |
| | | ] |
| | | } |
| | |
| | | import com.example.erp.service.mm.FinishedGoodsInventoryService; |
| | | import com.example.erp.service.mm.MaterialInventoryService; |
| | | import com.example.erp.service.pp.ReportService; |
| | | import com.example.erp.service.pp.ReportingWorkService; |
| | | import com.example.erp.service.sd.DeliveryService; |
| | | import com.example.erp.service.sd.OrderService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | private final MaterialInventoryService materialInventoryService; |
| | | private final FinishedGoodsInventoryService finishedGoodsInventoryService; |
| | | private final ReportService reportService; |
| | | private final ReportingWorkService reportingWorkService; |
| | | |
| | | @ApiOperation("订单报表") |
| | | @PostMapping("/getOrderList") |
| | |
| | | public Result addDeliveryDetail( @RequestBody Map<String,Object> object){ |
| | | return Result.success(finishedGoodsInventoryService.addDeliveryDetail(object)); |
| | | } |
| | | |
| | | @ApiOperation("app多个流程卡报工") |
| | | @PostMapping("/addWorkInProgress") |
| | | @SaCheckPermission("addReportingWork.add") |
| | | public Result addWorkInProgress(@RequestBody Map<String,Object> object){ |
| | | return reportingWorkService.addWorkInProgress(object); |
| | | } |
| | | } |
| | |
| | | |
| | | return result; |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Result addWorkInProgress(Map<String, Object> object) { |
| | | List<Map<String,Object>> list = (List<Map<String,Object>>) object.get("reportingWorks"); |
| | | |
| | | list.forEach(item -> { |
| | | ReportingWork reportingWork = JSONObject.parseObject( |
| | | JSONObject.toJSONString(item.get("processTitle")), ReportingWork.class); |
| | | Map<String, String> mapTitle = new HashMap<>(); |
| | | String[] processIdStr = reportingWork.getProcessId() != null |
| | | ? reportingWork.getProcessId().split("/") |
| | | : new String[]{""}; |
| | | mapTitle.put("process", reportingWork.getPreviousProcess()); |
| | | mapTitle.put("processId", reportingWork.getProcessId()); |
| | | mapTitle.put("thisProcess", reportingWork.getThisProcess()); |
| | | mapTitle.put("technologyStr", processIdStr[1]); |
| | | mapTitle.put("userName", object.get("userName").toString()); |
| | | ReviewReportingWorkSv(mapTitle); |
| | | |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("detail", item.get("processList")); |
| | | map.put("title", item.get("processTitle")); |
| | | map.put("type", object.get("type")); |
| | | map.put("userId", object.get("userId")); |
| | | map.put("userName", object.get("userName")); |
| | | map.put("qualityInsStatus", object.get("qualityInsStatus")); |
| | | map.put("class", object.get("class")); |
| | | SaveReportingWorkSv(map); |
| | | }); |
| | | |
| | | return Result.success(true); |
| | | } |
| | | } |
| | |
| | | <association property="flowCard" javaType="com.example.erp.entity.pp.FlowCard"> |
| | | <result property="orderId" column="order_id"/> |
| | | <result property="productionId" column="production_id"/> |
| | | <result property="processId" column="processIdFirst"/> |
| | | </association> |
| | | <association property="reportingWorkDetail" javaType="com.example.erp.entity.pp.ReportingWorkDetail"> |
| | | <result property="completedQuantity" column="completed_quantity"/> |
| | |
| | | <select id="AddSelectLastWorkMp" resultMap="reportingWorkMap"> |
| | | select o.order_id, |
| | | fc.production_id, |
| | | fc.process_id as 'processIdFirst', |
| | | o.customer_id, |
| | | o.customer_name, |
| | | o.project, |