添加实体类注解,添加报工新增界面右键次破相同功能,部分查询修改为订单作废后不能查询
| | |
| | | alType:'order.alType', |
| | | customerBatch:'order.customerBatch', |
| | | processingNote:'order.processingNote', |
| | | remarks:'产品备注', |
| | | remarks:'订单备注', |
| | | customerAbbreviation:'customer.customerAbbreviation', |
| | | productAbbreviation:'product.msg.productAbbreviation', |
| | | processId:'processCard.processId', |
| | |
| | | remarks2:'备注2', |
| | | remarks3:'备注3', |
| | | remarks4:'备注4', |
| | | filmNumber:'膜号', |
| | | filmNumber:'产品备注', |
| | | bendRadius:'order.bendRadius', |
| | | glassChild:'reportingWorks.glassChild', |
| | | glassAddress:'replenish.sliceMarking' |
| | |
| | | <el-button type="warning" @click="clear">清空</el-button> |
| | | </el-col> |
| | | <el-col :span="1"> |
| | | <!-- <el-button type="danger" @click="htmlPrint">打印</el-button>--> |
| | | <el-button :disabled="!tag.id" type="danger" @click="deleteTag">删除</el-button> |
| | | </el-col> |
| | | <el-col :span="1"> |
| | | <el-button type="danger" @click="htmlPrint">打印</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | |
| | |
| | | }, |
| | | { |
| | | code: 'SecondaryBreakage', |
| | | name: "次破相同", |
| | | name: "序号次破相同", |
| | | prefixIcon: 'vxe-icon-indicator', |
| | | visible: true, |
| | | disabled: false |
| | | }, |
| | | { |
| | | code: 'checkedBreakage', |
| | | name: "选中次破相同", |
| | | prefixIcon: 'vxe-icon-indicator', |
| | | visible: true, |
| | | disabled: false |
| | |
| | | } |
| | | case 'SecondaryBreakage' : { |
| | | let result = toolbarButtonClickEvent() |
| | | if (result.cell === "breakageQuantity"){ |
| | | if (result.cell === "breakageQuantity" || result.cell === "completedQuantity"){ |
| | | if (result) { |
| | | const dataList = xGrid.value.getTableData().visibleData |
| | | const seenOrders = {} |
| | |
| | | } |
| | | break |
| | | } |
| | | case 'checkedBreakage' : { |
| | | let result = toolbarButtonClickEvent() |
| | | if (result.cell === "breakageQuantity" || result.cell === "completedQuantity"){ |
| | | if (result) { |
| | | const dataList = xGrid.value.getTableData().visibleData |
| | | const val = dataList[result.start].damageDetails |
| | | const quantity = dataList[result.start].breakageQuantity |
| | | dataList.forEach((item, index) => { |
| | | if (index >= result.start && index <= result.end) { |
| | | item.damageDetails = val |
| | | item.breakageQuantity = quantity |
| | | if (index!=result.start){ |
| | | item.completedQuantity = item.completedQuantity - quantity |
| | | } |
| | | |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | break |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | package com.example.erp.entity.pp; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDate; |
| | |
| | | private String reportingWorkId; |
| | | |
| | | //外键流程卡表 |
| | | @TableField(select = false,exist = false) |
| | | private FlowCard flowCard; |
| | | } |
| | |
| | | package com.example.erp.entity.pp; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.example.erp.entity.sd.Order; |
| | | import com.example.erp.entity.sd.OrderDetail; |
| | | import com.example.erp.entity.sd.OrderGlassDetail; |
| | |
| | | private String reviewer; |
| | | |
| | | //外键订单表 |
| | | @TableField(select = false,exist= false) |
| | | private Order order; |
| | | //外键订单明细表 |
| | | @TableField(select = false,exist= false) |
| | | private OrderDetail orderDetail; |
| | | //外键订单明细表 |
| | | @TableField(select = false,exist= false) |
| | | private OrderGlassDetail orderGlassDetail; |
| | | } |
| | |
| | | package com.example.erp.entity.pp; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDate; |
| | |
| | | private String reportingWorkId; |
| | | |
| | | //外键流程卡表 |
| | | @TableField(select = false,exist= false) |
| | | private FlowCard flowCard; |
| | | } |
| | |
| | | on r.order_id = ogd.order_id and r.order_sort = ogd.order_number |
| | | <where> |
| | | date(r.create_time)>=#{startDate} and date(r.create_time) <= #{endDate} |
| | | and o.create_order>0 |
| | | </where> |
| | | order by r.review_status,r.id desc |
| | | limit #{offset},#{pageSize}; |
| | |
| | | on rw.order_id = ogd.order_id and dd.order_number = ogd.order_number |
| | | |
| | | where dd.breakage_quantity-dd.quantity>0 and dd.available=0 and (dd.responsible_process=rw.this_process or (dd.quality_ins_status!=1)) and rw.reviewed_state!=-1 |
| | | and o.create_order>0 |
| | | order by dd.id desc |
| | | </select> |
| | | |
| | |
| | | left join sd.order_glass_detail as ogd on ogd.order_id=od.order_id and ogd.order_number=od.order_number and |
| | | ogd.technology_number=ps.technology_number |
| | | where ps.scheduling_id IS NOT NULL |
| | | and o.create_order>0 |
| | | and od.create_time between #{selectTime1} and #{selectTime2} |
| | | and position(#{processes} in ps.processes) |
| | | and position(#{orderIds} in ps.order_id) |
| | |
| | | where (od.quantity - IFNULL((ps.schedulingQuantity), 0)) > 0 |
| | | and od.create_time between #{selectTime1} and #{selectTime2} |
| | | and opd.reporting_work_num_count = 0 |
| | | |
| | | and o.create_order>0 |
| | | and position(#{orderIds} in ogd.order_id) |
| | | -- and position("切割" in ps.processes) |
| | | <if test="productionScheduling.order.orderId != null and productionScheduling.order.orderId != ''"> |
| | |
| | | where (od.quantity - IFNULL((ps.schedulingQuantity), 0)) > 0 |
| | | and od.create_time between #{selectTime1} and #{selectTime2} |
| | | and opd.reporting_work_num_count = 0 |
| | | |
| | | and o.create_order>0 |
| | | and position(#{orderId} in ogd.order_id) |
| | | -- and position("切割" in ps.processes) |
| | | <if test="productionScheduling.orderId != null and productionScheduling.orderId != ''"> |
| | |
| | | ogd.technology_number=ps.technology_number |
| | | where ps.scheduling_id IS NOT NULL |
| | | and od.create_time between #{selectTime1} and #{selectTime2} |
| | | and o.create_order>0 |
| | | and position(#{processes} in ps.processes) |
| | | and position(#{orderId} in ps.order_id) |
| | | <if test="productionScheduling.orderId != null and productionScheduling.orderId != ''"> |
| | |
| | | <select id="SelectTechnologicalProcess"> |
| | | select ifnull((select ogd.process |
| | | from sd.order_glass_detail as ogd |
| | | left join sd.`order` as o on o.order_id=ogd.order_id |
| | | where ogd.production_id = LEFT(#{processIdStr}, 11) |
| | | and o.create_order>0 |
| | | and POSITION(ogd.technology_number in #{technologyStr}) |
| | | limit 1),'') as process |
| | | |
| | |
| | | and rw.reporting_work_time between #{selectTime1} and #{selectTime2} |
| | | and position(#{orderId} in rw.order_id) |
| | | and rw.reviewed_state!=-1 |
| | | and o.create_order>0 |
| | | <if test="reportingWork.reportingWorkId != null and reportingWork.reportingWorkId != ''"> |
| | | and rw.reporting_work_id regexp #{reportingWork.reportingWorkId} |
| | | </if> |
| | |
| | | where rw.reviewed_state != 2 |
| | | and rw.reporting_work_time between #{selectTime1} and #{selectTime2} and position(#{orderId} in rw.order_id) |
| | | and rw.reviewed_state!=-1 |
| | | and o.create_order>0 |
| | | <if test="reportingWork.reportingWorkId != null and reportingWork.reportingWorkId != ''"> |
| | | and rw.reporting_work_id regexp #{reportingWork.reportingWorkId} |
| | | </if> |
| | |
| | | on r.order_id = ogd.order_id and r.order_sort = ogd.order_number |
| | | <where> |
| | | date(r.create_time)>=#{startDate} and date(r.create_time) <= #{endDate} |
| | | and o.create_order>0 |
| | | </where> |
| | | order by r.review_status,r.id desc limit #{offset},#{pageSize}; |
| | | </select> |
| | |
| | | on r.order_id = ogd.order_id and r.order_sort = ogd.order_number |
| | | <where> |
| | | date(r.create_time)>=#{startDate} and date(r.create_time) <= #{endDate} |
| | | and o.create_order>0 |
| | | </where> |
| | | ) as zu |
| | | limit #{offset},#{pageSize}; |
| | |
| | | left join (select * from sd.order_glass_detail group by order_id,order_number) as ogd |
| | | on rw.order_id = ogd.order_id and dd.order_number = ogd.order_number |
| | | |
| | | where dd.breakage_quantity-dd.quantity>0 and dd.available=1 order by dd.id desc |
| | | where dd.breakage_quantity-dd.quantity>0 and dd.available=1 and o.create_order>0 order by dd.id desc |
| | | </select> |
| | | |
| | | |
| | |
| | | left join `order` as o |
| | | on o.order_id=ogd.order_id |
| | | where ogd.production_id IS NOT NULL |
| | | |
| | | and o.order_review>0 |
| | | <if test="orderGlassDetail.orderId != null and orderGlassDetail.orderId != ''"> |
| | | and o.order_id regexp #{orderGlassDetail.orderId} |
| | | </if> |