添加右键菜单相关语言,对应界面添加客户名称字段,配置标签打印按钮和打印类型下拉框
| | |
| | | pleaseSelectCustomPrintLabelStyle:'Please select a custom print label style', |
| | | mergePrinting:'Merge printing', |
| | | printStatus:'Print status', |
| | | addAutomatically:'Auto fill', |
| | | selectFill:'Select fill' |
| | | }, |
| | | reportingWorks:{ |
| | | glassNumber:'number', |
| | |
| | | mergePrinting:'合并打印', |
| | | printStatus:'打印状态', |
| | | labelPrinting2:'标签打印2', |
| | | addAutomatically:'自动填充', |
| | | selectFill:'选中填充' |
| | | }, |
| | | reportingWorks:{ |
| | | glassNumber:'编号', |
| | |
| | | ] |
| | | |
| | | //标签类型 |
| | | let filteredOptions=[] |
| | | const lableType = ref('1') |
| | | const lableTypeOptions = [ |
| | | { |
| | |
| | | label: `${company.printLabel.labelType3}`, |
| | | }, |
| | | ] |
| | | let hidePrintLabels = company.printLabel.hideButton; |
| | | |
| | | if (hidePrintLabels=='true'){ |
| | | filteredOptions = lableTypeOptions.filter((option, index) => index !== 2); |
| | | }else { |
| | | filteredOptions = lableTypeOptions; |
| | | } |
| | | |
| | | //合片流程卡打印下拉选项 |
| | | const printMerge = ref('') |
| | |
| | | }); |
| | | xGrid.value.reloadData(produceList) |
| | | gridOptions.loading = false |
| | | hideButton() |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | | } |
| | |
| | | return '' |
| | | }) |
| | | ] |
| | | } |
| | | }, |
| | | |
| | | |
| | | }) |
| | | |
| | | const gridEvents = { |
| | |
| | | }, |
| | | { |
| | | code: 'addAutomatically', |
| | | name: "自动填充", |
| | | name: t('processCard.addAutomatically'), |
| | | prefixIcon: 'vxe-icon-indicator', |
| | | visible: true, |
| | | disabled: false |
| | | }, |
| | | { |
| | | code: 'selectFill', |
| | | name: "选中填充", |
| | | name: t('processCard.selectFill'), |
| | | prefixIcon: 'vxe-icon-indicator', |
| | | visible: true, |
| | | disabled: false |
| | |
| | | addListener(xGridDetail.value, detailGridOptions) |
| | | } |
| | | |
| | | const hideButton = () =>{ |
| | | // 根据条件值 hidePrintLabels 过滤按钮数组 |
| | | gridOptions.toolbarConfig.buttons = gridOptions.toolbarConfig.buttons.filter(button => { |
| | | // 这里根据 hidePrintLabels 的值决定是否隐藏 printLabel 和 printLabel2 |
| | | if (hidePrintLabels=='true') { |
| | | return button.code !== 'printLabel' && button.code !== 'printLabel2'; |
| | | } else { |
| | | return true; // 不隐藏任何按钮 |
| | | } |
| | | }) |
| | | } |
| | | |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | |
| | | <el-select v-model="lableType" class="m-2" :placeholder="lableTypeOptions[0].label" style="width: 140px"> |
| | | <el-option |
| | | v-for="item in lableTypeOptions" |
| | | v-for="item in filteredOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | }, |
| | | {field: 'customer_name', title: t('processCard.customerName'), filters: [{data: ''}], slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged, width: 110}, |
| | | |
| | | { |
| | | field: 'project', |
| | | title: t('order.project'), |
| | |
| | | {title: t('basicData.operate'), width: 100, slots: {default: 'button_slot'}, fixed: "left"}, |
| | | {type: 'seq', fixed: "left", title: t('basicData.Number'), width: 50}, |
| | | {field: 'orderId', title: t('order.orderId'), filters: [{data: ''}], slots: {filter: 'num1_filter'}, width: 110}, |
| | | {field: 'order.customerName', title: t('processCard.customerName'), filters: [{data: ''}], slots: {filter: 'num1_filter'}, width: 110}, |
| | | { |
| | | field: 'processId', |
| | | width: 140, |
| | |
| | | {title: t('basicData.operate'), width: 110, slots: {default: 'button_slot'}, fixed: "left"}, |
| | | {type: 'seq', fixed: "left", title: t('basicData.Number'), width: 50}, |
| | | {field: 'orderId', title: t('order.orderId'), filters: [{data: ''}], slots: {filter: 'num1_filter'}, width: 110}, |
| | | {field: 'order.customerName', title: t('processCard.customerName'), filters: [{data: ''}], slots: {filter: 'num1_filter'}, width: 110}, |
| | | { |
| | | field: 'productionId', |
| | | title: t('workOrder.productionId'), |
| | |
| | | sum(c.compute_gross_area) as compute_gross_area, |
| | | a.founder, |
| | | c.processing_note, |
| | | b.customer_name, |
| | | if(a.layout_status=0,'不可排版',if(a.layout_status=1,'可排版','已排版')) as layout_status |
| | | from (select id,order_id,process_id,order_number, quantity,founder,layout_status,create_time from flow_card |
| | | group by process_Id,order_number) as a left join sd.`order` as b on a.order_Id=b.order_id |
| | |
| | | <if test="flowCard.layoutStatus != null and flowCard.layoutStatus != '' and flowCard.layoutStatus == '已排版'"> |
| | | and a.layout_status regexp 2 |
| | | </if> |
| | | |
| | | <if test="flowCard.order.customerName != null and flowCard.order.customerName!= ''"> |
| | | and b.customer_name regexp #{flowCard.order.customerName} |
| | | </if> |
| | | group by a.process_Id |
| | | ORDER BY a.id desc |
| | | limit #{offset},#{pageSize}; |
| | |
| | | <result column="project" property="order.project"/> |
| | | <result column="area" property="order.area"/> |
| | | <result column="creator" property="order.creator"/> |
| | | <result column="customer_name" property="order.customerName"/> |
| | | <!-- <association property="orderDetail" javaType="com.example.erp.entity.sd.OrderDetail">--> |
| | | <!-- <result column="product_id" property="productId"/>--> |
| | | <!-- <result column="product_name" property="productName"/>--> |
| | |
| | | o.order_type, |
| | | o.area as gross_area, |
| | | o.quantity as quantity, |
| | | o.creator |
| | | o.creator, |
| | | o.customer_name |
| | | from sd.order_detail as od |
| | | left join `order` as o |
| | | on o.order_id=od.order_id |
| | |
| | | </if> |
| | | <if test="orderGlassDetail.order.orderType != null and orderGlassDetail.order.orderType!= ''"> |
| | | and o.order_type regexp #{orderGlassDetail.order.orderType} |
| | | </if> |
| | | <if test="orderGlassDetail.order.customerName != null and orderGlassDetail.order.customerName!= ''"> |
| | | and o.customer_name regexp #{orderGlassDetail.order.customerName} |
| | | </if> |
| | | |
| | | <if test="orderGlassDetail.createTime != ''"> |
| | |
| | | (od.gross_area) as gross_area, |
| | | (od.quantity) as quantity, |
| | | o.creator, |
| | | od.id |
| | | od.id, |
| | | o.customer_name |
| | | from sd.order_glass_detail as ogd |
| | | left join order_detail as od |
| | | on od.order_id=ogd.order_id |
| | |
| | | <if test="orderGlassDetail.order.orderType != null and orderGlassDetail.order.orderType!= ''"> |
| | | and o.order_type regexp #{orderGlassDetail.order.orderType} |
| | | </if> |
| | | <if test="orderGlassDetail.order.customerName != null and orderGlassDetail.order.customerName!= ''"> |
| | | and o.customer_name regexp #{orderGlassDetail.order.customerName} |
| | | </if> |
| | | |
| | | <if test="orderGlassDetail.createTime != ''"> |
| | | and DATE_FORMAT((o.create_time),'%Y-%m-%d') BETWEEN #{ selectTime1 } AND #{ selectTime2 } |