Merge branch 'master' of http://bore.pub:10439/r/ERP_override
| | |
| | | const company = companyInfo() |
| | | let produceList = ref([]) |
| | | let otherMoney = ref([]) |
| | | let otherMoney1 = ref([]) |
| | | let delivery = ref([]) |
| | | let money = ref("") |
| | | let otherMoneys = 0 |
| | |
| | | |
| | | request.post(`/Delivery/getSelectDeliveryPrinting`,form.value).then((res) => { |
| | | if(res.code==200){ |
| | | console.log(res.data.data) |
| | | produceList.value = deepClone(res.data.data) |
| | | delivery.value=deepClone(res.data.delivery) |
| | | money.value=deepClone(res.data.money) |
| | | otherMoney.value=deepClone(res.data.otherMoney) |
| | | console.log(otherMoney.value) |
| | | otherMoney.value.forEach(item => { |
| | | if(item.DeliveryDetailOtherMoney.monery!=null){ |
| | | otherMoneys+=item.DeliveryDetailOtherMoney.monery |
| | | console.log(otherMoney1.value) |
| | | if(otherMoney1.value.length===0){ |
| | | otherMoney1.value.push(item) |
| | | } |
| | | console.log(otherMoney1.value) |
| | | otherMoney1.value.forEach(items=>{ |
| | | |
| | | if(item.DeliveryDetailOtherMoney.alias===items.DeliveryDetailOtherMoney.alias){ |
| | | items.DeliveryDetailOtherMoney.count+=item.DeliveryDetailOtherMoney.count |
| | | items.DeliveryDetailOtherMoney.monery +=item.DeliveryDetailOtherMoney.monery |
| | | otherMoney1.value.push(items) |
| | | }else{ |
| | | otherMoney1.value.push(item) |
| | | } |
| | | |
| | | console.log(otherMoney1.value) |
| | | |
| | | |
| | | }) |
| | | |
| | | } |
| | | |
| | | }) |
| | |
| | | {field: 'patch_processes', title: t('reportingWorks.responsibleProcess'),width:110}, |
| | | {field: 'product_name', title: t('order.product'),width:110}, |
| | | {field: 'glass_child', title: t('reportingWorks.glassChild'),width:110}, |
| | | {field: 'reporting_work_id', title: t('reportingWorks.reportingWorkId'),width:120}, |
| | | ],//表头按钮 |
| | | |
| | | toolbarConfig: { |
| | |
| | | style.innerHTML = |
| | | "body>#" + |
| | | printId + |
| | | "{display:none}@media print{body>:not(#" + |
| | | "{display:none}@media print{" + |
| | | "@page {" + |
| | | " size: auto; " + |
| | | " margin: 12mm 4mm 2mm 6mm; " + |
| | | " }body>:not(#" + |
| | | printId + |
| | | "){display:none !important}body>#" + |
| | | printId + |
| | |
| | | } |
| | | @page { |
| | | size: auto; /* auto is the initial value */ |
| | | margin: 12mm 4mm 2mm 6mm /* this affects the margin in the printer settings */ |
| | | margin: 12mm 4mm 2mm 6mm; /* this affects the margin in the printer settings */ |
| | | |
| | | } |
| | | } |
| | |
| | | style.innerHTML = |
| | | "body>#" + |
| | | printId + |
| | | "{display:none}@media print{body>:not(#" + |
| | | "{display:none}@media print{" + |
| | | "@page {" + |
| | | " size: auto; " + |
| | | " margin: 2mm 2mm 2mm 2mm; " + |
| | | " }body>:not(#" + |
| | | printId + |
| | | "){display:none !important}body>#" + |
| | | printId + |
| | |
| | | <template> |
| | | <el-button id="printButton" @click="printFlowCard();">{{ $t('basicData.print') }}</el-button> |
| | | <div id="printFlowCard" > |
| | | <div id="entirety" v-for="(item,id) in lastList" > |
| | | <template v-for="(item,id) in lastList"> |
| | | <div id="entirety" > |
| | | <div class="row1"> |
| | | <span>{{ item.customerAbbreviation }}</span> |
| | | <span>{{ item.orderId }}</span> |
| | |
| | | <span>{{ item.processingNote }}</span> |
| | | </div> |
| | | </div> |
| | | <div style="width: 20px" v-if="id%2===0"></div> |
| | | </template> |
| | | </div> |
| | | |
| | | </template> |
| | |
| | | display: flex; |
| | | justify-content: left; |
| | | flex-wrap: wrap; |
| | | width: 450px; |
| | | width: 500px; |
| | | } |
| | | |
| | | #entirety{ |
| | | text-align: center; |
| | | width: 50%; |
| | | height: 140px; |
| | | width: 48%; |
| | | height: 160px; |
| | | border: black 1px; |
| | | word-wrap: break-word; |
| | | } |
| | | |
| | | .row1 { |
| | | font-size: 12pt; |
| | | font-weight: bold; |
| | | height: 30px; |
| | | height: 35px; |
| | | } |
| | | .row1 span { |
| | | font-size: 14pt; |
| | |
| | | .row2 { |
| | | font-size: 14pt; |
| | | font-weight: bold; |
| | | height: 30px; |
| | | height: 35px; |
| | | } |
| | | .row2 span { |
| | | font-size: 14pt; |
| | |
| | | |
| | | .row3 { |
| | | margin-top: -5px; |
| | | height: 30px; |
| | | height: 35px; |
| | | font-size: 22pt; |
| | | font-weight: bolder; |
| | | line-height: 30px; |
| | | line-height: 35px; |
| | | } |
| | | |
| | | .row5 { |
| | | height: 40px; |
| | | height: 50px; |
| | | font-weight: bold; |
| | | font-size: 12pt; |
| | | margin-left: 20px; |
| | | } |
| | | .row5 span { |
| | | font-size: 14pt; |
| | |
| | | style.innerHTML = |
| | | "body>#" + |
| | | printId + |
| | | "{display:none}@media print{body>:not(#" + |
| | | "{display:none}@media print{" + |
| | | "@page {" + |
| | | " size: auto; " + |
| | | " margin: 2mm 2mm 2mm 2mm; " + |
| | | " }body>:not(#" + |
| | | printId + |
| | | "){display:none !important}body>#" + |
| | | printId + |
| | |
| | | <template> |
| | | <el-button id="printButton" @click="printFlowCard();">{{ $t('basicData.print') }}</el-button> |
| | | <div id="printFlowCard" > |
| | | <div id="entirety" v-for="(item,id) in labelList" > |
| | | <template v-for="(item,id) in labelList"> |
| | | <div id="entirety" > |
| | | <div class="row1"> |
| | | <span>{{ item.customer_name }}</span> |
| | | <span>{{ item.order_id }}</span> |
| | |
| | | <span>{{ item.building_number }}</span> |
| | | <span v-if="item.bend_radius!=null">R={{item.bend_radius}}</span> |
| | | </div> |
| | | <div class="row3" v-if="item.other_columns!=null&&(JSON.parse(item.other_columns).S02!=null)">{{JSON.parse(item.other_columns).S02}}={{item.quantity}}</div> |
| | | <div class="row3" v-else>{{Math.round(item.width)}}x{{Math.round(item.height)}}={{item.quantity}}</div> |
| | | <div class="row3" v-if="item.other_columns!=null&&(JSON.parse(item.other_columns).S02!=null)"> <span>{{JSON.parse(item.other_columns).S02}}={{item.quantity}}</span> </div> |
| | | <div class="row3" v-else><span>{{Math.round(item.width)}}x{{Math.round(item.height)}}={{item.quantity}}</span></div> |
| | | <div class="row5"> |
| | | <span>{{item.glass_child}}</span> |
| | | <span>{{item.processing_note}}</span> |
| | | </div> |
| | | </div> |
| | | <div style="width: 20px" v-if="id%2===0"></div> |
| | | </template> |
| | | </div> |
| | | |
| | | </template> |
| | |
| | | display: flex; |
| | | justify-content: left; |
| | | flex-wrap: wrap; |
| | | width: 450px; |
| | | width: 500px; |
| | | } |
| | | |
| | | #entirety{ |
| | | text-align: center; |
| | | width: 50%; |
| | | height: 140px; |
| | | width: 48%; |
| | | height: 160px; |
| | | border: black 1px; |
| | | word-wrap: break-word; |
| | | } |
| | | |
| | | .row1 { |
| | |
| | | .row2 { |
| | | font-size: 12pt; |
| | | font-weight: bold; |
| | | height: 30px; |
| | | height: 35px; |
| | | } |
| | | .row2 span { |
| | | font-size: 14pt; |
| | |
| | | |
| | | .row3 { |
| | | margin-top: -5px; |
| | | height: 30px; |
| | | height: 35px; |
| | | font-size: 22pt; |
| | | font-weight: bolder; |
| | | line-height: 30px; |
| | | line-height: 35px; |
| | | } |
| | | .row3 span{ |
| | | font-size: 22pt; |
| | | } |
| | | |
| | | .row5 { |
| | | height: 40px; |
| | | height: 50px; |
| | | font-weight: bold; |
| | | font-size: 14pt; |
| | | } |
| | |
| | | } |
| | | @page { |
| | | size: auto; /* auto is the initial value */ |
| | | margin: 2mm 2mm 2mm 2mm; /* this affects the margin in the printer settings */ |
| | | margin: 13mm 4mm 0mm 4mm; /* this affects the margin in the printer settings */ |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | </style> |
| | |
| | | style.innerHTML = |
| | | "body>#" + |
| | | printId + |
| | | "{display:none}@media print{body>:not(#" + |
| | | "{display:none}@media print{" + |
| | | "@page {" + |
| | | " size: auto; " + |
| | | " margin: 13mm 4mm 0mm 4mm; " + |
| | | " }body>:not(#" + |
| | | printId + |
| | | "){display:none !important}body>#" + |
| | | printId + |
| | |
| | | style.innerHTML = |
| | | "body>#" + |
| | | printId + |
| | | "{display:none}@media print{body>:not(#" + |
| | | "{display:none}@media print{" + |
| | | "@page {" + |
| | | " size: auto; " + |
| | | " margin: 13mm 4mm 0mm 4mm; " + |
| | | " }body>:not(#" + |
| | | printId + |
| | | "){display:none !important}body>#" + |
| | | printId + |
| | |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | ,width:120 |
| | | }, |
| | | { |
| | | field: 'process_id', |
| | |
| | | showOverflow: "ellipsis", |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | filterMethod: filterChanged, |
| | | width:130 |
| | | }, |
| | | { |
| | | field: 'customer_name', |
| | | title: t('customer.customerName'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | filterMethod: filterChanged, |
| | | width:120 |
| | | }, |
| | | { |
| | | field: 'project', |
| | | title: t('order.project'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | filterMethod: filterChanged, |
| | | width:120 |
| | | }, |
| | | { |
| | | field: 'order_number', |
| | | title: t('order.OrderNum'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | filterMethod: filterChanged, |
| | | width:100 |
| | | }, |
| | | {field: 'technology_number', title: t('processCard.technologyNumber'), showOverflow: "ellipsis"}, |
| | | {field: 'glass_address', title: t('processCard.glassAddress'),}, |
| | | {field: 'rework_num', title: t('order.quantity'),}, |
| | | {field: 'rework_area', title: t('order.area'),}, |
| | | {field: 'rework_team', title: t('reportingWorks.responsibleTeam'),}, |
| | | {field: 'responsible_equipment', title: t('reportingWorks.responsibleEquipment'),}, |
| | | {field: 'responsible_personnel', title: t('reportingWorks.responsiblePersonnel'),}, |
| | | {field: 'rework_type', title: t('reportingWorks.breakageType'),}, |
| | | {field: 'rework_reason', title: t('reportingWorks.breakageReason'),}, |
| | | {field: 'rework_processes', title: t('reportingWorks.responsibleProcess'),}, |
| | | {field: 'product_name', title: t('order.product'),}, |
| | | {field: 'glass_child', title: t('reportingWorks.glassChild'),}, |
| | | {field: 'technology_number', title: t('processCard.technologyNumber'), showOverflow: "ellipsis",width:90}, |
| | | {field: 'glass_address', title: t('processCard.glassAddress'),width:90}, |
| | | {field: 'rework_num', title: t('order.quantity'),width:70}, |
| | | {field: 'rework_area', title: t('order.area'),width:70}, |
| | | {field: 'rework_team', title: t('reportingWorks.responsibleTeam'),width:90}, |
| | | {field: 'responsible_equipment', title: t('reportingWorks.responsibleEquipment'),width:120}, |
| | | {field: 'responsible_personnel', title: t('reportingWorks.responsiblePersonnel'),width:100}, |
| | | {field: 'rework_type', title: t('reportingWorks.breakageType'),width:80}, |
| | | {field: 'rework_reason', title: t('reportingWorks.breakageReason'),width:90}, |
| | | {field: 'rework_processes', title: t('reportingWorks.responsibleProcess'),width:80}, |
| | | {field: 'product_name', title: t('order.product'),width:120}, |
| | | {field: 'glass_child', title: t('reportingWorks.glassChild'),width:120}, |
| | | {field: 'reporting_work_id', title: t('reportingWorks.reportingWorkId'),width:120}, |
| | | ],//表头按钮 |
| | | |
| | | toolbarConfig: { |
| | |
| | | gridOptions.editRules[`otherColumns.${item.column}`] = [ |
| | | { |
| | | validator ({ cellValue }) { |
| | | const regex = /^(0|[1-9][0-9]{0,4}([.][0-9]{1,2})?)$/ |
| | | const regex = /^(0(\.\d{1,2})?|([1-9]\d{0,4})(\.\d{1,2})?|99999(\.9{1,2})?)$/ |
| | | if (cellValue && !regex.test(cellValue)) { |
| | | return new Error(t('basicData.msg.range99999Dec2')) |
| | | } |
| | |
| | | //修改时间 |
| | | private LocalDate updateTime; |
| | | |
| | | //报工编号 |
| | | private String reportingWorkId; |
| | | |
| | | //外键订单表 |
| | | @TableField(select = false,exist= false) |
| | | private Order order; |
| | |
| | | |
| | | List<Map<String, String>> getPrimaryListMergeRefund(String processId, String technologyNumber, Integer orderNumber); |
| | | |
| | | List<Map<String, Object>> getDetailListRefund(String processId, Integer technologyNumber, Integer orderNumber); |
| | | List<Map<String, Object>> getDetailListRefund(String processId, Integer technologyNumber, Integer orderNumber, String reportingWorkId); |
| | | |
| | | List<Map<String, String>> getPrimaryListRefund(String processId, String technologyNumber, Integer orderNumber); |
| | | |
| | | List<Map<String, Object>> getDetailListLikeRefund(String processId, String technologyNumber, Integer orderNumber); |
| | | List<Map<String, Object>> getDetailListLikeRefund(String processId, String technologyNumber, Integer orderNumber, String reportingWorkId); |
| | | |
| | | List<Map<String, Object>> getPrimaryListRework(String processId, String technologyNumber, Integer orderNumber); |
| | | |
| | | List<Map<String, Object>> getDetailListRework(String processId, Integer technologyNumber, Integer orderNumber); |
| | | List<Map<String, Object>> getDetailListRework(String processId, Integer technologyNumber, Integer orderNumber, String reportingWorkId); |
| | | |
| | | List<Map<String, Object>> getPrimaryListMergeRework(String processId, String printMerge, Integer orderNumber); |
| | | |
| | | List<Map<String, Object>> getDetailListLikeRework(String processId, String printMerge, Integer orderNumber); |
| | | List<Map<String, Object>> getDetailListLikeRework(String processId, String printMerge, Integer orderNumber, String reportingWorkId); |
| | | |
| | | List<Map<String, Object>> getPrintCustomDataSemi(String processId, Integer technologyNumber); |
| | | } |
| | |
| | | //是否传入合并层数 |
| | | if (printMerge.equals("")||printMerge.equals("null") ){ |
| | | itemmap.put("detail", flowCardMapper.getPrimaryListRefund(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getOrderNumber())); |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListRefund(flowCard.getProcessId(), flowCard.getTechnologyNumber(),flowCard.getOrderNumber()); |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListRefund(flowCard.getProcessId(), flowCard.getTechnologyNumber(),flowCard.getOrderNumber(),flowCard.getReportingWorkId()); |
| | | itemmap.put("detailList", detailList); |
| | | } |
| | | else { |
| | |
| | | if (printLike.equals("")||printLike.equals("null") ){ |
| | | itemmap.put("detail", flowCardMapper.getPrimaryListMergeRefund(flowCard.getProcessId(), printMerge,flowCard.getOrderNumber())); |
| | | |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListRefund(flowCard.getProcessId(), flowCard.getTechnologyNumber(),flowCard.getOrderNumber()); |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListRefund(flowCard.getProcessId(), flowCard.getTechnologyNumber(),flowCard.getOrderNumber(), flowCard.getReportingWorkId()); |
| | | itemmap.put("detailList", detailList); |
| | | } |
| | | else { |
| | | itemmap.put("detail", flowCardMapper.getPrimaryListRefund(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getOrderNumber())); |
| | | |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListLikeRefund(flowCard.getProcessId(), printMerge,flowCard.getOrderNumber()); |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListLikeRefund(flowCard.getProcessId(), printMerge,flowCard.getOrderNumber(),flowCard.getReportingWorkId()); |
| | | itemmap.put("detailList", detailList); |
| | | } |
| | | } |
| | |
| | | //是否传入合并层数 |
| | | if (printMerge.equals("")||printMerge.equals("null") ){ |
| | | itemmap.put("detail", flowCardMapper.getPrimaryListRework(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getOrderNumber())); |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListRework(flowCard.getProcessId(), flowCard.getTechnologyNumber(),flowCard.getOrderNumber()); |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListRework(flowCard.getProcessId(), flowCard.getTechnologyNumber(),flowCard.getOrderNumber(),flowCard.getReportingWorkId()); |
| | | itemmap.put("detailList", detailList); |
| | | } |
| | | else { |
| | |
| | | if (printLike.equals("")||printLike.equals("null") ){ |
| | | itemmap.put("detail", flowCardMapper.getPrimaryListMergeRework(flowCard.getProcessId(), printMerge,flowCard.getOrderNumber())); |
| | | |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListRework(flowCard.getProcessId(), flowCard.getTechnologyNumber(),flowCard.getOrderNumber()); |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListRework(flowCard.getProcessId(), flowCard.getTechnologyNumber(),flowCard.getOrderNumber(), flowCard.getReportingWorkId()); |
| | | itemmap.put("detailList", detailList); |
| | | } |
| | | else { |
| | | itemmap.put("detail", flowCardMapper.getPrimaryListRework(flowCard.getProcessId(), String.valueOf(flowCard.getTechnologyNumber()),flowCard.getOrderNumber())); |
| | | |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListLikeRework(flowCard.getProcessId(), printMerge,flowCard.getOrderNumber()); |
| | | List<Map<String, Object>> detailList = flowCardMapper.getDetailListLikeRework(flowCard.getProcessId(), printMerge,flowCard.getOrderNumber(),flowCard.getReportingWorkId()); |
| | | itemmap.put("detailList", detailList); |
| | | } |
| | | } |
| | |
| | | pl.patch_processes, |
| | | od.product_name, |
| | | ogd.glass_child, |
| | | fc.print_status |
| | | fc.print_status, |
| | | pl.reporting_work_id |
| | | 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 |
| | |
| | | pl.rework_reason, |
| | | pl.rework_processes, |
| | | od.product_name, |
| | | ogd.glass_child |
| | | ogd.glass_child, |
| | | pl.reporting_work_id |
| | | 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 |
| | |
| | | left join rework as pl on pl.order_id = fc.order_id and pl.process_id = fc.process_id and |
| | | pl.order_sort = fc.order_number and |
| | | pl.technology_number = fc.technology_number |
| | | where pl.create_time between #{selectTime1} and #{selectTime2} and pl.review_status>0 |
| | | GROUP BY fc.process_id, ogd.technology_number |
| | | where pl.create_time between #{selectTime1} and #{selectTime2} |
| | | GROUP BY fc.process_id, ogd.technology_number,pl.reporting_work_id |
| | | order by pl.id desc,fc.process_id, ogd.technology_number |
| | | </select> |
| | | |
| | |
| | | where fc.process_id = #{processId} |
| | | and fc.order_number = #{orderNumber} |
| | | and position(fc.technology_number in #{technologyNumber}) |
| | | and pl.reporting_work_id=#{reportingWorkId} |
| | | group by fc.process_id, fc.order_number,fc.technology_number |
| | | order by IF(sort != NULL || sort != '', sort, fc.order_number) |
| | | </select> |
| | |
| | | where fc.process_id = #{processId} |
| | | and fc.order_number = #{orderNumber} |
| | | and position(fc.technology_number in #{technologyNumber}) |
| | | and pl.reporting_work_id=#{reportingWorkId} |
| | | group by fc.process_id, fc.order_number,fc.technology_number |
| | | order by IF(sort != NULL || sort != '', sort, fc.order_number) |
| | | </select> |
| | |
| | | where fc.process_id = #{processId} |
| | | and fc.order_number = #{orderNumber} |
| | | and position(fc.technology_number in #{technologyNumber}) |
| | | and pl.reporting_work_id=#{reportingWorkId} |
| | | group by fc.process_id, fc.order_number,fc.technology_number |
| | | order by IF(sort != NULL || sort != '', sort, fc.order_number) |
| | | </select> |
| | |
| | | where fc.process_id = #{processId} |
| | | and fc.order_number = #{orderNumber} |
| | | and position(fc.technology_number in #{technologyNumber}) |
| | | and pl.reporting_work_id=#{reportingWorkId} |
| | | group by fc.process_id, fc.order_number,fc.technology_number |
| | | order by IF(sort != NULL || sort != '', sort, fc.order_number) |
| | | </select> |