Merge branch 'master' of http://bore.pub:10439/r/ERP_override
| | |
| | | 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', |
| | | |
| | | landingSequence:'Landing sequence', |
| | | labelStyle:'Label Style', |
| | | customLabelPrinting:'Custom label printing', |
| | | labelPrinting:'Label printing', |
| | |
| | | deleteNo:'删除失败,检查流程卡是否已报工', |
| | | deleteNoProcedure:'删除失败,检查下工序是否已报工', |
| | | pleaseCheckTheRequiredData:'请勾选需要的数据', |
| | | landingSequence:'落架顺序', |
| | | |
| | | labelStyle:'标签样式', |
| | | customLabelPrinting:'自定义标签打印', |
| | |
| | | }, |
| | | data: [],//table body实际数据 |
| | | //脚部求和 |
| | | |
| | | weighAllAmount(data) { |
| | | let count = 0 |
| | | data.forEach(row => { |
| | | count += row.weight |
| | | }) |
| | | return count |
| | | }, |
| | | footerMethod ({ columns, data }) {//页脚函数 |
| | | let count = 0 |
| | | |
| | | return[ |
| | | columns.map((column, columnIndex) => { |
| | | if (columnIndex === 0) { |
| | | return t('basicData.total') |
| | | } |
| | | const List = ["baiscQuantity",'computeGrossArea','weight','perimeter'] |
| | | |
| | | const List = ["baiscQuantity",'computeGrossArea'] |
| | | if (List.includes(column.field)) { |
| | | return footSum(data, column.field) |
| | | } |
| | | if (column.field === 'weight'){ |
| | | data.forEach(row => { |
| | | count += weightSum(row) |
| | | }) |
| | | return parseFloat(count.toFixed(2)) |
| | | } |
| | | |
| | | return '' |
| | | }) |
| | | ] |
| | | } |
| | | }, |
| | | |
| | | }) |
| | | |
| | |
| | | }, |
| | | { |
| | | field: 'landingSequence', |
| | | title: '落架顺序', |
| | | title: t('processCard.landingSequence'), |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | |
| | | if (columnIndex === 0) { |
| | | return t('basicData.total') |
| | | } |
| | | const List = ["quantity",'goodsQuantity','area','perimeter'] |
| | | const List = ["quantity",'goodsQuantity','area'] |
| | | if (List.includes(column.field)) { |
| | | return footSum(data, column.field) |
| | | } |
| | |
| | | id += selectRecords[i].id + "|" |
| | | } |
| | | } |
| | | router.push({path: '/main/processCard/printProcess', query: {printList: JSON.stringify(selectRecords),printMerge:printMerge.value}}) |
| | | |
| | | let printMergeVal=printMerge.value.split('').join(',') |
| | | console.log(printMergeVal) |
| | | router.push({path: '/main/processCard/printProcess', query: {printList: JSON.stringify(selectRecords),printMerge:printMergeVal}}) |
| | | |
| | | break |
| | | } |
| | |
| | | if (printMerge !== null && printMerge !== undefined && printMerge !== "") { |
| | | |
| | | produceList.value.forEach(item => { |
| | | item.detail[0].technologyNumber = printMerge; |
| | | item.detail[0].technologyNumber = printMerge.split(',').join(''); |
| | | }); |
| | | } |
| | | const s01Values = []; |
| | |
| | | 数量: |
| | | <label>{{ itemsum.quantity }}</label> |
| | | 面积: |
| | | <label>{{ parseFloat(itemsum.gross_area, 2) }}</label> |
| | | <label>{{ parseFloat(itemsum.gross_area.toFixed(2)) }}</label> |
| | | 重量: |
| | | <label>{{ itemsum.weight }}</label> |
| | | </td> |
| | |
| | | showStatus: true |
| | | }, |
| | | menuConfig: { |
| | | body: { |
| | | /*body: { |
| | | options: [ |
| | | [ |
| | | { |
| | |
| | | }, |
| | | ] |
| | | ] |
| | | } |
| | | }*/ |
| | | }, |
| | | //表头参数 |
| | | columns: [ |
| | |
| | | addListener(brokenGrid.value,brokenGridOptions) |
| | | let damage =ref(brokenRow.value.damageDetails) |
| | | brokenGrid.value.reloadData(damage.value) |
| | | addListener(xGrid.value, gridOptions) |
| | | //addListener(xGrid.value, gridOptions) |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | onMounted(() => { |
| | | window.addEventListener('keypress', qrcodeScanner); |
| | | addListener(xGrid.value, gridOptions) |
| | | // addListener(xGrid.value, gridOptions) |
| | | }) |
| | | |
| | | // 在组件卸载时移除键盘事件监听 |
| | |
| | | fc.process_id, |
| | | SUM(od.quantity) as quantity, |
| | | round(SUM(ogd.total_area), 2) as gross_area, |
| | | SUM(od.weight) as weight, |
| | | round(SUM(ogd.child_width*ogd.child_height*od.quantity*p.thickness/1000000*2.5),2) as weight, |
| | | #{technologyNumber} as technologyNumber, |
| | | concat(fc.process_id, '/', #{technologyNumber}) as processIdNumber |
| | | from flow_card as fc |
| | |
| | | fc.technology_number = ogd.technology_number |
| | | left join sd.order_detail as od on od.order_id = fc.order_id and od.order_number = fc.order_number |
| | | left join sd.`order` as o on o.order_id = fc.order_id |
| | | left join sd.product as p on p.id=od.product_id |
| | | where fc.process_id = #{processId} |
| | | and fc.technology_number = #{technologyNumber} |
| | | group by fc.process_id, fc.technology_number |