| | |
| | | {field: 'glass_child', title: t('reportingWorks.glassChild'),width:110,filters: [{data: ''}],slots: {filter: 'num1_filter'}, filterMethod: filterChanged}, |
| | | {field: 'reporting_work_id', title: t('reportingWorks.reportingWorkId'),width:120,filters: [{data: ''}],slots: {filter: 'num1_filter'}, filterMethod: filterChanged}, |
| | | {field: 'create_time', title: t('basicData.reportData'),width:120}, |
| | | { |
| | | field: 'print_num', |
| | | title: t('processCard.printStatus'), |
| | | width: 120 |
| | | }, |
| | | ],//表头按钮 |
| | | |
| | | toolbarConfig: { |
| | |
| | | |
| | | // 监听打印完成事件 |
| | | const printNumber = () =>{ |
| | | |
| | | selectRecordsData.value.printList=selectRecords |
| | | let printState=0 |
| | | request.post(`/processCard/updatePrintState/${printState}`, selectRecordsData.value).then((res) => { |
| | | const $grid = xGrid.value |
| | | selectRecords = $grid.getCheckboxRecords() |
| | | request.post(`/Replenish/updatePrintNum`, selectRecords).then((res) => { |
| | | if (res.code == 200 && res.data === true) { |
| | | } else { |
| | | |
| | |
| | | destroy-on-close |
| | | style="width: 75%;height:75% "> |
| | | <template #header="{ close, titleId, titleClass }"> |
| | | <el-button v-print="printContent" :icon="Printer" circle /> |
| | | <el-button v-print="printContent" :icon="Printer" circle @click="printNumber"/> |
| | | </template> |
| | | <print-process id="child" :printList="printRow.list" :printMerge="printRow.printMergeVal" :printLike="printRow.like" |
| | | :mergeTechnologyNumber="printRow.mergeTechnologyNumber" |
| | |
| | | //参数:相应的数据,实体类信息,相应的方法(数据获取),生成的excel名字 |
| | | DownExcel.download(response, exportReplenishDTO.class, replenishService.exportReplenishSv(dates), "PatchLogAddDTO"); |
| | | } |
| | | |
| | | @ApiOperation("修改打印次数") |
| | | @PostMapping("/updatePrintNum") |
| | | public Result updatePrintNum( |
| | | @RequestBody List<Map<String, Object>> object |
| | | ) { |
| | | |
| | | return Result.success(replenishService.updatePrintNumSv(object)); |
| | | } |
| | | } |
| | |
| | | import com.example.erp.entity.pp.PatchLog; |
| | | import com.example.erp.entity.pp.ReportingWork; |
| | | import com.github.yulichang.base.MPJBaseMapper; |
| | | import io.swagger.models.auth.In; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | |
| | | Integer selectProjectCount(String processId, String patchId, Integer technologyNumber); |
| | | |
| | | List<exportReplenishDTO> exportReplenishMp(List<LocalDate> dates); |
| | | |
| | | Boolean updatePrintNumMp(Integer id); |
| | | } |
| | | |
| | |
| | | public List<exportReplenishDTO> exportReplenishSv(List<LocalDate> dates) { |
| | | return patchMapper.exportReplenishMp(dates); |
| | | } |
| | | |
| | | public Boolean updatePrintNumSv(List<Map<String, Object>> list) { |
| | | if (!list.isEmpty()){ |
| | | for (Map<String, Object> item : list) { |
| | | Integer id = (Integer) item.get("id"); |
| | | patchMapper.updatePrintNumMp(id); |
| | | } |
| | | return true; |
| | | }else { |
| | | return false; |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | </select> |
| | | |
| | | <select id="selectReplenishPrintMp"> |
| | | select fc.id, |
| | | select pl.id, |
| | | fc.order_id, |
| | | fc.process_id, |
| | | o.customer_name, |
| | |
| | | pl.reporting_work_id, |
| | | JSON_UNQUOTE(JSON_EXTRACT(od.other_columns, '$.S01')) AS glassNumber, |
| | | pl.patch_id, |
| | | date(pl.create_time) as create_time |
| | | date(pl.create_time) as create_time, |
| | | pl.print_num |
| | | |
| | | from flow_card as fc |
| | | left join sd.order_glass_detail as ogd |
| | |
| | | </where> |
| | | order by r.review_status,r.id desc |
| | | </select> |
| | | |
| | | <update id="updatePrintNumMp"> |
| | | update pp.patch_log set print_num=IFNULL(print_num,0)+1 where id=#{id} |
| | | </update> |
| | | </mapper> |