Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override
| | |
| | | for (const group of list.value) { |
| | | // é忝ç»ä¸çæ°æ®ï¼æ¿æ¢ jï¼ |
| | | for (const item of group.data) { |
| | | console.log(item) |
| | | const { quantity, newList } = item; |
| | | // è·³è¿ quantity 为 0 ææ æçæ
åµ |
| | | console.log(quantity) |
| | | if (!quantity || quantity <= 0) continue; |
| | | |
| | | // å¤ç newListï¼ç¡®ä¿æ¯æ°ç»ï¼ä¸è¶³æ¶ç¨ç©ºå¯¹è±¡å
åº |
| | | const safeNewList = Array.isArray(newList) ? newList : []; |
| | | |
| | | // å¾ªç¯ quantity æ¬¡ï¼æ·»å æ°æ®å° lastList |
| | | for (let k = 0; k < quantity; k++) { |
| | | // æ·±æ·è´ itemï¼é¿å
éå¤å¼ç¨ï¼å
³é®ï¼ï¼ |
| | |
| | | //æµç¨å¡ |
| | | request.post(`/processCard/getSelectPrinting/${merge}/${like}/${merges}/${props.flashback}/${compound}/${props.landingSequence}`, data.value).then((res) => { |
| | | if (res.code == 200) { |
| | | console.log(res.data.data) |
| | | load(res.data.data) |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | |
| | | |
| | | } |
| | | |
| | | // 使ç¨ä¸ä¸ªå¯¹è±¡æ¥åå¨åå¹¶åçç»æ |
| | | const mergedData = produceList.value.reduce((acc, item) => { |
| | | const processId = item.detail[0].process_id; |
| | | // detail ä¸ºç©ºç´æ¥è·³è¿ |
| | | const firstDetail = item?.detail?.[0] |
| | | if (!firstDetail) return acc |
| | | |
| | | // å¦æè¯¥ process_id å°æªå¨ acc ä¸ï¼åå§åå
¶æ°ç» |
| | | if (!acc[processId]) { |
| | | acc[processId] = { |
| | | const processId = firstDetail.process_id |
| | | const technologyNumber = firstDetail.technologyNumber |
| | | |
| | | const key = company.printReplenishMerge |
| | | ? processId |
| | | : `${processId}_${technologyNumber}` |
| | | |
| | | // åå§ååç» |
| | | if (!acc[key]) { |
| | | acc[key] = { |
| | | processId, |
| | | technologyNumber, |
| | | processList: item.processList, |
| | | detailList: [], |
| | | detail: item.detail |
| | | }; |
| | | } |
| | | } |
| | | |
| | | // åå¹¶ detailList |
| | | acc[processId].detailList = acc[processId].detailList.concat(item.detailList); |
| | | // åå¹¶ detailList |
| | | if (Array.isArray(item.detailList) && item.detailList.length) { |
| | | acc[key].detailList.push(...item.detailList) |
| | | } |
| | | |
| | | return acc; |
| | | }, {}); |
| | | return acc |
| | | }, {}) |
| | | |
| | | // å°åå¹¶åç对象转æ¢åæ°ç» |
| | | |
| | | if (company.printReplenishMerge){ |
| | | //if (company.printReplenishMerge){ |
| | | produceList.value = Object.values(mergedData); |
| | | } |
| | | //} |
| | | flowCardCount=produceList.value.length |
| | | |
| | | handleSummary() |
| | |
| | | }) |
| | | |
| | | |
| | | |
| | | const errMap = await $grid.validate(true) |
| | | if (errMap) { |
| | | ElMessage.error(t('basicData.msg.checkoutLose')) |
| | | return |
| | | } |
| | | //emit('getParent') |
| | | emit('getParent') |
| | | break |
| | | } |
| | | } |
| | |
| | | orderId:null, |
| | | state:null |
| | | }) |
| | | let imgWidth = ref(null) |
| | | let imgHeight = ref(null) |
| | | |
| | | const form = reactive({ |
| | | format: 'png' |
| | |
| | | } |
| | | result.value = res.data |
| | | conversionResult.value = res.data.imageBase64 |
| | | imgWidth.value = res.data.width |
| | | imgHeight.value = res.data.height |
| | | }) |
| | | } |
| | | |
| | |
| | | ElMessage.warning(t("order.msg.pleaseUploadPicture1")) |
| | | return |
| | | } |
| | | if(imgHeight.value ){ |
| | | const regex = /^(0|[1-9]\d{0,2}|1000)$/ |
| | | if(!regex.test(imgHeight.value)){ |
| | | ElMessage.warning(`height:0~1000`) |
| | | return |
| | | } |
| | | } |
| | | |
| | | if(imgWidth.value ){ |
| | | const regex = /^(0|[1-9]\d{0,2}|1000)$/ |
| | | if(!regex.test(imgWidth.value)){ |
| | | ElMessage.warning(`width:0~1000`) |
| | | return |
| | | } |
| | | } |
| | | |
| | | loadingFormats.value = true |
| | | |
| | | converting.value = true |
| | |
| | | |
| | | const data ={ |
| | | file:fileList.value[0].raw, |
| | | name:fileList.value[0].raw.name |
| | | name:fileList.value[0].raw.name, |
| | | width:imgWidth.value || 1000, |
| | | height:imgHeight.value || 700, |
| | | } |
| | | request.post(`/orderFile/updateOrderFileByOrderNumber/${props.orderId}/${props.rowIndex.orderNumber}`,data).then(res=>{ |
| | | if (res.code === '200') { |
| | |
| | | {{$t("order.msg.pleaseUploadPicture10")}} <em>{{$t("order.msg.pleaseUploadPicture11")}}</em> |
| | | </div> |
| | | <template #tip> |
| | | <div class="el-upload__tip" style="width: 30%;margin-left: 35%"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-input |
| | | v-model.number="imgWidth" |
| | | placeholder="宽"/> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-input |
| | | v-model.number="imgHeight" |
| | | placeholder="é«"/> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | | |
| | | |
| | | <div class="el-upload__tip"> |
| | | {{$t("order.msg.pleaseUploadPicture12")}} |
| | | </div> |
| | | |
| | | </template> |
| | | </el-upload> |
| | | |
| | |
| | | :src="conversionResult" |
| | | :preview-src-list="[conversionResult]" |
| | | fit="contain" |
| | | style="max-height: 600px;" |
| | | :style="{width: `${imgWidth}px`, height: `${imgHeight}px`}" |
| | | > |
| | | <!-- <template #error>--> |
| | | <!-- <div class="image-slot">--> |
| | |
| | | margin: 20px 0; |
| | | display: flex; |
| | | justify-content: center; |
| | | overflow: auto; |
| | | } |
| | | |
| | | .file-info { |
| | |
| | | export default defineStore('companyInfo', { |
| | | |
| | | state: () => ({ |
| | | sizeCheck: false,//å°ºå¯¸æ ¡éªï¼trueå¼å¯ï¼falseå
³é |
| | | position:{ |
| | | outside:'(å
)', |
| | | inside:'(å¤)', |
| | |
| | | export default defineStore('companyInfo', { |
| | | |
| | | state: () => ({ |
| | | sizeCheck: false,//å°ºå¯¸æ ¡éªï¼trueå¼å¯ï¼falseå
³é |
| | | position:{ |
| | | outside:'(å
)', |
| | | inside:'(å¤)', |
| | |
| | | export default defineStore('companyInfo', { |
| | | |
| | | state: () => ({ |
| | | sizeCheck: false,//å°ºå¯¸æ ¡éªï¼trueå¼å¯ï¼falseå
³é |
| | | position:{ |
| | | outside:'(å
)', |
| | | inside:'(å¤)', |
| | |
| | | export default defineStore('companyInfo', { |
| | | |
| | | state: () => ({ |
| | | sizeCheck: false,//å°ºå¯¸æ ¡éªï¼trueå¼å¯ï¼falseå
³é |
| | | position:{ |
| | | outside:'(å
)', |
| | | inside:'(å¤)', |
| | |
| | | export default defineStore('companyInfo', { |
| | | |
| | | state: () => ({ |
| | | sizeCheck: false,//å°ºå¯¸æ ¡éªï¼trueå¼å¯ï¼falseå
³é |
| | | position:{ |
| | | outside:'(å
)', |
| | | inside:'(å¤)', |
| | |
| | | export default defineStore('companyInfo', { |
| | | |
| | | state: () => ({ |
| | | sizeCheck: true,//å°ºå¯¸æ ¡éªï¼trueå¼å¯ï¼falseå
³é |
| | | position:{ |
| | | outside:'(å¤)', |
| | | inside:'(å
)', |
| | |
| | | export default defineStore('companyInfo', { |
| | | |
| | | state: () => ({ |
| | | sizeCheck: false,//å°ºå¯¸æ ¡éªï¼trueå¼å¯ï¼falseå
³é |
| | | position:{ |
| | | outside:'(å
)', |
| | | inside:'(å¤)', |
| | |
| | | import PrintProcess from "@/components/pp/PrintProcess.vue"; |
| | | import PrintCustomLabelXJ from "@/components/pp/PrintCustomLabelTwo.vue"; |
| | | import companyInfo from "@/stores/sd/companyInfo"; |
| | | import {createTemplate} from "@/hook/createTemplateTag"; |
| | | import {hiprint} from "vue-plugin-hiprint"; |
| | | //è¯è¨è·å |
| | | const { t } = useI18n() |
| | | let router=useRouter() |
| | |
| | | |
| | | const dialogTableVisible = ref(false) |
| | | const dialogTableVisibleLabel = ref(false) |
| | | |
| | | let lastList = ref([]) |
| | | |
| | | let props = defineProps({ |
| | | orderId:null |
| | |
| | | } |
| | | }) |
| | | |
| | | //æ ç¾ |
| | | let labelRow = ref({ |
| | | list: null,//å¾éçæ°æ® |
| | | faceOrientation: null,//å
å¤é¢ |
| | | type: null,//æ ç¾æ¨¡æ¿ |
| | | lableType: null//æ ç¾ç±»å |
| | | }) |
| | | //éä¸å
容 |
| | | let selectRecords = ref(null) |
| | | |
| | | //åçæµç¨å¡æå°ä¸æé项 |
| | | const printMerge = ref('') |
| | | const printMergeOptions = [{}] |
| | | |
| | | //åå |
| | | let flashback = ref(1) |
| | | //è½æ¶é¡ºåº |
| | | let landingSequence= ref(1) |
| | | //åæ¶æå° |
| | | let compound = ref(null) |
| | | |
| | | const printContent = ref({ |
| | | id: 'child', |
| | | |
| | | }) |
| | | |
| | | let hiprintTemplate = ref(null) |
| | | |
| | | const printContentLabel = ref({ |
| | | id: 'childLabel', |
| | | }) |
| | | |
| | | const printContentLabelSemi = ref({ |
| | | id: 'childLabelSemi', |
| | | }) |
| | | |
| | | const changeTag = () => { |
| | | hiprintTemplate.value = new hiprint.PrintTemplate({}); |
| | | hiprintTemplate.value.design("#hiprint-printTemplate1",{grid:true}); |
| | | const json = tag.value.value |
| | | hiprintTemplate.value.update(json) |
| | | } |
| | | |
| | | const printOrder = (type) => { |
| | | printNumberLabel() |
| | | const list = tag.value.value |
| | | list.panels[0].printElements.forEach(element => { |
| | | element.options.fontFamily = 'Arial' |
| | | if( element.options.field !== undefined){ |
| | | if(type===3 ){ |
| | | element.options.hideTitle = true |
| | | } |
| | | } |
| | | if(type!==3){ |
| | | element.options.hideTitle = false |
| | | if( element.options.field === undefined){ |
| | | element.options.hideTitle = true |
| | | } |
| | | } |
| | | }) |
| | | |
| | | //hiprintTemplate.value.update(list) |
| | | let object = JSON.parse(JSON.stringify(lastList.value)) |
| | | //夿æ¯å¦ä¸ºè¡¨æ ¼ |
| | | let columnsNum = null |
| | | if(list.panels[0].printElements[0].options.field==='table'){ |
| | | object = {table:lastList.value} |
| | | columnsNum = (list.panels[0].printElements[0].options.gridColumns || 1) |
| | | } |
| | | //夿æ¯å¦æ åµå¥èªå®ä¹çº¸å¼ |
| | | if(tag.value.tagHeight && tag.value.tagWidth){ |
| | | const print =createTemplate(list,object,tag.value.tagWidth,tag.value.tagHeight) |
| | | hiprintTemplate.value.update(print.template) |
| | | object = print.printData |
| | | } |
| | | hiprintTemplate.value.print(object) |
| | | |
| | | } |
| | | |
| | | //éè¦åå¹¶çå |
| | | let column = [1,3,8] |
| | |
| | | // delete obj.print_status; |
| | | // }); |
| | | let type = tag.value.name |
| | | let faceOrientation = stateValue.value |
| | | let lableTypes = lableType.value |
| | | let lableTitle = lableType.text |
| | | let faceOrientation = '' |
| | | let lableTypes = 1 |
| | | let lableTitle = '' |
| | | if ($grid) { |
| | | switch (code) { |
| | | //æå°æµç¨å¡ |
| | |
| | | printRow.value.printMergeVal = printMerge.value |
| | | printRow.value.like = null |
| | | printRow.value.merge = company.flowCardMerge |
| | | printRow.value.printFc= printFc |
| | | printRow.value.printFc= true |
| | | printRow.value.flashback = flashback.value |
| | | printRow.value.landingSequence=landingSequence.value |
| | | printRow.value.compound = compound.value |
| | |
| | | id += selectRecords[i].id + "|" |
| | | } |
| | | } |
| | | |
| | | lastList.value = [] |
| | | labelRow.value.list = JSON.stringify(selectRecords) |
| | | labelRow.value.faceOrientation = faceOrientation |
| | | labelRow.value.type = tag.value.name |
| | |
| | | |
| | | const handleCellDblClick = ({ row, column, cell, $event }) => { |
| | | VxeUI.clipboard.copy(row[column.property]) |
| | | } |
| | | |
| | | const selectRecordsData = ref({ |
| | | printList: [] |
| | | }) |
| | | // ç嬿µç¨å¡æå°å®æäºä»¶ |
| | | const printNumber = () => { |
| | | |
| | | selectRecordsData.value.printList = selectRecords |
| | | let printState = 0 |
| | | request.post(`/processCard/updatePrintState/${printState}`, selectRecordsData.value).then((res) => { |
| | | if (res.code == 200 && res.data === true) { |
| | | } else { |
| | | |
| | | ElMessage.warning(t('basicData.msg.saveFail')) |
| | | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // ç嬿 ç¾æå°å®æäºä»¶ |
| | | const printNumberLabel = () => { |
| | | |
| | | selectRecordsData.value.printList = selectRecords |
| | | request.post(`/tagStyle/updatePrintNumber`, selectRecordsData.value).then((res) => { |
| | | if (res.code == 200 && res.data === true) { |
| | | } else { |
| | | |
| | | ElMessage.warning(t('basicData.msg.saveFail')) |
| | | |
| | | } |
| | | }) |
| | | } |
| | | </script> |
| | | |
| | |
| | | v-bind="gridOptions" |
| | | :merge-cells="mergeCells" |
| | | @cell-dblclick="handleCellDblClick" |
| | | v-on="gridEvents" |
| | | |
| | | > |
| | | <!-- @toolbar-button-click="toolbarButtonClickEvent"--> |
| | |
| | | height: calc(100% - 35px); |
| | | } |
| | | |
| | | :deep(#sizeCheck .el-dialog__body) { |
| | | height: 90%; |
| | | width: 100%; |
| | | } |
| | | |
| | | :deep(#sizePrintCalrd .el-dialog__body) { |
| | | height: 85%; |
| | | width: 100%; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | :deep(#sizeCustom .el-dialog__body) { |
| | | height: 85%; |
| | | width: 100%; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | :deep(#sizeCustomSemi .el-dialog__body) { |
| | | height: 85%; |
| | | width: 100%; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | :deep(#titleStyle .el-dialog__body){ |
| | | height: 93%; |
| | | width: 100%; |
| | | } |
| | | .vxe-grid { |
| | | /* ç¦ç¨æµè§å¨é»è®¤éä¸ */ |
| | | -webkit-user-select: none; |
| | |
| | | <el-breadcrumb-item @click="changeRouter(3)" :class="indexFlag===3?'indexTag':''" :to="{ path: '/main/processCard/productionScheduling' }">{{$t('processCard.scheduling')}} |
| | | </el-breadcrumb-item> |
| | | <el-breadcrumb-item @click="changeRouter(4)" :class="indexFlag===4?'indexTag':''" :to="{ path: '/main/processCard/selectPrintFlowCard' }" >{{ $t('basicData.print') }}</el-breadcrumb-item> |
| | | <!-- <el-breadcrumb-item @click="changeRouter(5)" :class="indexFlag===5?'indexTag':''" :to="{ path: '/main/processCard/printProgressProcessCard' }" >{{ $t('processCard.printProgressProcessCard') }}</el-breadcrumb-item>--> |
| | | <el-breadcrumb-item @click="changeRouter(5)" :class="indexFlag===5?'indexTag':''" :to="{ path: '/main/processCard/printProgressProcessCard' }" >{{ $t('processCard.printProgressProcessCard') }}</el-breadcrumb-item> |
| | | <el-breadcrumb-item @click="changeRouter(6)" :class="indexFlag===6?'indexTag':''" :to="{ path: '/main/processCard/selectPrintProject' }" >{{$t('processCard.engineeringPrinting')}}</el-breadcrumb-item> |
| | | <el-breadcrumb-item @click="changeRouter(4)" :class="indexFlag===4?'indexTag':''" :to="{ path: '/main/processCard/selectPrintFlowCard' }" style="display: none">{{ $t('basicData.print') }}</el-breadcrumb-item> |
| | | </el-breadcrumb> |
| | |
| | | if (val<row.completedQuantityComputed){ |
| | | //åºåæ°éãå·²å
¥åºæ°é |
| | | if (val>(row.inventory_quantity-row.received_quantity)){ |
| | | return new Error(`val |
| | | if (totalQuantity-val>(row.inventory_quantity-row.received_quantity)){ |
| | | return new Error(`val |
| | | <= |
| | | ${row.inventory_quantity-row.received_quantity}`) |
| | | } |
| | | }else { |
| | | if (val < (row.inventory_quantity-row.received_quantity)){ |
| | | //å®å·¥æ»æ°ãæ¬æ¬¡å®å·¥æ°ãå·²å
¥åºæ°é |
| | |
| | | otherMoneyRemarks:'', |
| | | processingNote:t('order.processingNote')+':', |
| | | createOrder:0, |
| | | sizeCheck:null, |
| | | creatorId:userStore.user.userId, |
| | | creator:userStore.user.userName, |
| | | }) |
| | |
| | | 'name': t('order.saveHeader')} |
| | | gridOptions.toolbarConfig.buttons.push(buttonTitle) |
| | | //åæ¶å·¥èºæé®ç¦ç¨ |
| | | gridOptions.toolbarConfig.buttons[1].disabled = false |
| | | if(!company.sizeCheck || (company.sizeCheck && titleUploadData.value.sizeCheck === 1)){ |
| | | gridOptions.toolbarConfig.buttons[1].disabled = false |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //å·¥èºå®¡æ ¸åä¿åæé®ç¦ç¨ |
| | | if(res.data.order.processReview === 2){ |
| | | gridOptions.toolbarConfig.buttons[4].disabled = true |
| | |
| | | } |
| | | |
| | | const gaveOrderSizeCheck = () => { |
| | | reviewOrder(2) |
| | | sizeCheck() |
| | | } |
| | | const sizeCheck = () => { |
| | | request.post(`/order/sizeCheck/${titleUploadData.value.orderId}`).then(res =>{ |
| | | if(res.data===1){ |
| | | ElMessage.success(t('basicData.msg.ReviewSuccess')) |
| | | router.push({ |
| | | path:'/main/order/createOrder', |
| | | query:{ |
| | | orderId:titleUploadData.value.orderId, |
| | | random:Math.random()}}) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | let projects = ref([]) |
| | |
| | | return Result.success(orderService.processAttributeConfig()); |
| | | } |
| | | |
| | | @ApiOperation("æ¥è¯¢å·¥èºå±æ§é
ç½®") |
| | | @PostMapping("/sizeCheck/{orderId}") |
| | | @SaCheckPermission("createOrder.add") |
| | | public Result sizeCheck(@PathVariable String orderId) { |
| | | return orderService.sizeCheck(orderId); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | public Result updateOrderFileByOrderNumber( |
| | | @RequestParam("file") MultipartFile file, |
| | | @RequestParam("name") String name, |
| | | @RequestParam("width") Float width, |
| | | @RequestParam("height") Float height, |
| | | @PathVariable String orderId, |
| | | @PathVariable String orderNumber) throws IOException { |
| | | |
| | | return Result.success(orderFileService.updateOrderFileByOrderNumber(file,name,orderId,orderNumber)); |
| | | return Result.success( |
| | | orderFileService.updateOrderFileByOrderNumber(file,name,orderId,orderNumber,width,height) |
| | | ); |
| | | } |
| | | @PostMapping("/getOrderFilePicture") |
| | | public Result getOrderFilePicture(@RequestBody List<Map<String,Object>> orderDetails) throws NoSuchFieldException { |
| | |
| | | private LocalDate updateTime; |
| | | @ExcelProperty("ä¿®æ¹çæ¬å·") |
| | | private Integer version; |
| | | private Integer sizeCheck; |
| | | @TableField(select = false,exist = false) |
| | | private Integer goodsQuantity; |
| | | @TableField(select = false,exist = false) |
| | |
| | | private String fileData; |
| | | private String fileJson; |
| | | private String imageBase64; |
| | | private Float width; |
| | | private Float height; |
| | | private LocalDateTime createTime; |
| | | |
| | | } |
| | |
| | | Map<String, Object> itemmap = new HashMap<>(); |
| | | |
| | | Integer sumQuantity = flowCardMapper.getSumQuantity(flowCard.getOrderId()); |
| | | List<Map<String, Object>> details = flowCardMapper.getPrintCustomData(flowCard.getProcessId(), flowCard.getOrderNumber(), flowCard.getPrintQuantity()); |
| | | Integer printQuantity = flowCard.getPrintQuantity(); |
| | | if (printQuantity==null){ |
| | | printQuantity=0; |
| | | } |
| | | List<Map<String, Object>> details = flowCardMapper.getPrintCustomData(flowCard.getProcessId(), flowCard.getOrderNumber(), printQuantity); |
| | | |
| | | for (Map<String, Object> detail : details) { |
| | | detail.put("sumQuantity", sumQuantity); |
| | |
| | | return orderFiles; |
| | | } |
| | | |
| | | public Object updateOrderFileByOrderNumber(MultipartFile file,String name,String orderId,String orderNumber) throws IOException { |
| | | public Object updateOrderFileByOrderNumber(MultipartFile file,String name,String orderId,String orderNumber,Float width,Float height) throws IOException { |
| | | //夿æ¯å¦è§å®çæ ¼å¼åç¼å |
| | | if(!isAllowedFile(name)){ |
| | | return null; |
| | | } |
| | | |
| | | |
| | | try (InputStream is = License.class.getResourceAsStream("/lisence.xml")) { |
| | | String base64 = null; |
| | | if(name.toLowerCase().endsWith(".dwg")){ |
| | | |
| | | License license = new License(); |
| | | license.setLicense(is); |
| | | |
| | | |
| | | // è°ç¨Imageç±»çLoadæ¹æ³æ¥å è½½è¾å
¥çDWGæä»¶ã |
| | | Image image = Image.load(file.getInputStream()); |
| | | // å建CadRasterizationOptionså®ä¾ä»¥å¯ç¨CADæ
æ ¼åé项ã |
| | | CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions(); |
| | | // 设置宽度 |
| | | rasterizationOptions.setPageWidth(1000); |
| | | rasterizationOptions.setPageWidth(width); |
| | | // 设置é«åº¦ |
| | | rasterizationOptions.setPageHeight(700); |
| | | rasterizationOptions.setPageHeight(height); |
| | | // è°ç¨è¿ä¸ªsetEmbedBackgroundæ¹æ³æ¥è®¾ç½®èæ¯è²æ¯å¦ä¸çäºè¾åºæ ¼å¼çé»è®¤èæ¯è² |
| | | //rasterizationOptions.setEmbedBackground(true); |
| | | // 为çæçå¾åå建ä¸ä¸ªPngOptionsçå®ä¾ï¼å¹¶å°å
¶åé
ç»ImageOptionsBaseç±»çå®ä¾ã |
| | |
| | | |
| | | OrderFile orderFile = new OrderFile(); |
| | | orderFile.setImageBase64(base64); |
| | | orderFile.setFileName(file.getName()); |
| | | orderFile.setFileName(name); |
| | | orderFile.setOrderId(orderId); |
| | | orderFile.setOrderNumber(orderNumber); |
| | | orderFile.setFileData(Arrays.toString(file.getBytes())); |
| | | orderFile.setWidth(width); |
| | | orderFile.setHeight(height); |
| | | |
| | | OrderFile orderFileExist = orderFileMapper |
| | | .selectOne(new LambdaQueryWrapper<OrderFile>() |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.dto.sd.OrderDTO; |
| | | import com.example.erp.dto.sd.OrderSearchDTO; |
| | | import com.example.erp.entity.sd.*; |
| | |
| | | map.put("data",processList); |
| | | return map; |
| | | } |
| | | |
| | | public Result sizeCheck(String orderId) { |
| | | |
| | | return Result.success( |
| | | orderMapper.update(null, |
| | | new UpdateWrapper<Order>().set("size_check",1).eq("order_id",orderId)) |
| | | ); |
| | | } |
| | | } |
| | |
| | | od.processing_note as processingNote, |
| | | width, |
| | | height, |
| | | #{printQuantity} as quantity, |
| | | if(#{printQuantity}>0 ,#{printQuantity},fc.quantity) as quantity, |
| | | CONCAT( |
| | | TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(width AS CHAR))), |
| | | ' X ', |
| | | TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(height AS CHAR))), |
| | | ' = ',#{printQuantity} ) as size, |
| | | ' = ',if(#{printQuantity}>0 ,#{printQuantity},fc.quantity) ) as size, |
| | | |
| | | CONCAT( |
| | | od.order_number,') ', |
| | | TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(width AS CHAR))), |
| | | ' X ', |
| | | TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(height AS CHAR))), |
| | | ' = ',#{printQuantity} ) as numberSize, |
| | | ' = ',if(#{printQuantity}>0 ,#{printQuantity},fc.quantity) ) as numberSize, |
| | | CONCAT( |
| | | od.order_number,')',' ', |
| | | TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM CAST(width AS CHAR))), |
| | |
| | | c.print_status, |
| | | c.print_number, |
| | | o.project, |
| | | o.customer_name |
| | | o.customer_name, |
| | | b.process |
| | | |
| | | from pp.flow_card as c |
| | | left join |