Merge branch 'master' of http://bore.pub:10439/r/ERP_override
| | |
| | | technology:'工艺', |
| | | amountReset:'金额重置', |
| | | OrderNum:'订单序号', |
| | | productId:'产品Id', |
| | | productId:'产品ID', |
| | | product:'产品', |
| | | price:'单价', |
| | | quantity:'数量', |
| | |
| | | |
| | | for (let i=0;i<BasicData.value.length;i++){ |
| | | let aa={field: "json."+BasicData.value[i].OperateType, width: '150',title: BasicData.value[i].OperateTypeName, sortable: true,showOverflow:'ellipsis' ,filters:[{ data: '' }],slots: { filter: 'num1_filter' },filterMethod:filterChanged} |
| | | console.log(aa) |
| | | |
| | | gridOptions.columns.push(aa) |
| | | |
| | | } |
| | |
| | | -moz-user-select: none; |
| | | -ms-user-select: none; |
| | | user-select: none; |
| | | transform: translateZ(0); |
| | | } |
| | | :deep(#product .el-dialog__body){ |
| | | height: 90%; |
| | |
| | | import {computed, onMounted, reactive, ref, watch} from "vue" |
| | | import {useRouter,useRoute} from "vue-router" |
| | | import request from "@/utils/request" |
| | | import {ElMessage} from "element-plus" |
| | | import {ElMessage, ElMessageBox} from "element-plus" |
| | | import {changeFilterEvent,filterChanged} from "@/hook" |
| | | import {addListener,toolbarButtonClickEvent} from "@/hook/mouseMove" |
| | | import {useI18n} from "vue-i18n" |
| | |
| | | const xGrid = ref() |
| | | const trademarkLocation=ref([t('craft.upperLeft'),t('craft.upperRight'),t('craft.lowLeft'),t('craft.lowRight')]) |
| | | const gridOptions = reactive({ |
| | | loading:true, |
| | | border: "full",//表格加边框 |
| | | keepSource: true,//保持源数据 |
| | | align: 'center',//文字居中 |
| | |
| | | printConfig: {}, |
| | | importConfig: {}, |
| | | exportConfig: {}, |
| | | scrollY:{ enabled: true },//开启虚拟滚动 |
| | | scrollY:{ enabled: true,gt:13 },//开启虚拟滚动 |
| | | showOverflow:true, |
| | | columnConfig: { |
| | | resizable: true, |
| | |
| | | },//表头参数 |
| | | columns:[ |
| | | {title: t('basicData.operate'), width: 220, slots: { default: 'button_slot' },fixed:"left",}, |
| | | {field: 'orderNumber',width:120, title: t('order.OrderNum'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | //{field: 'orderDetail.buildingNumber',width:120, title: '楼号',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'orderDetail.productName',width:120, title: t('order.product'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'glassAddress',width:120, title: t('craft.glassAddress'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderNumber',fixed:"left",width:120, title: t('order.OrderNum'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.productId',fixed:"left",width:120, title: t('order.productId'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'orderDetail.productName',fixed:"left",width:120, title: t('order.product'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'technologyNumber',width:120, title: t('craft.glassAddress'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'glassChild',width:120, title: t('craft.glassChild'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.width',width:120, title: t('craft.width'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.height',width:120, title: t('craft.height'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | |
| | | { code: 'copyChecked', name: t('basicData.selectSame'), prefixIcon: 'vxe-icon-copy', visible: true, disabled: false }, |
| | | { code: 'copyAll', name: t('basicData.sameAfterwards'), prefixIcon: 'vxe-icon-feedback', visible: true, disabled: false }, |
| | | { code: 'clearChecked', name: t('basicData.clearSelection'), prefixIcon: 'vxe-icon-indicator', visible: true, disabled: false }, |
| | | { code: 'computedSize', name: '科学计数', prefixIcon: 'vxe-icon-chart-line', visible: true, disabled: false }, |
| | | ] |
| | | ] |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | break |
| | | } |
| | | case 'computedSize' :{ |
| | | let result = toolbarButtonClickEvent() |
| | | if(!result || result.cell!=='childWidth'){ |
| | | break |
| | | } |
| | | ElMessageBox.prompt('', '', { |
| | | confirmButtonText: t('basicData.confirmButtonText'), |
| | | cancelButtonText: t('basicData.cancelButtonText'), |
| | | inputPattern:/^(-?\d{1,4}(\.\d{1,2})?|-?0(\.\d{1,2})?)$/, |
| | | inputErrorMessage: '-9999.99~9999.99', |
| | | }) |
| | | .then(({ value }) => { |
| | | const value1 = value*1 |
| | | $grid.getTableData().visibleData.forEach((item,index) =>{ |
| | | if(index>=result.start && index<=result.end){ |
| | | |
| | | item[result.cell] = item[result.cell]*1+value1 |
| | | } |
| | | |
| | | }) |
| | | }) |
| | | |
| | | break |
| | | } |
| | | case 'copyAll' :{ |
| | |
| | | } |
| | | request.post(`/order/getOrderCraftById/${str}`).then((res) => { |
| | | if(res.code==200){ |
| | | console.log(res.data) |
| | | titleUploadData.value = res.data.order |
| | | |
| | | //取消审核按钮禁用 |
| | |
| | | |
| | | } |
| | | xGrid.value.reloadData(res.data.orderGlassDetails) |
| | | gridOptions.loading = false |
| | | }else{ |
| | | ElMessage.error(res.msg) |
| | | } |
| | |
| | | <div class="order-detail"> |
| | | |
| | | <vxe-grid |
| | | max-height="97%" |
| | | height="100%" |
| | | class="mytable-scrollbar" |
| | | ref="xGrid" |
| | | v-bind="gridOptions" |
| | |
| | | }) |
| | | |
| | | let productGlassTypeStore = useProductGlassTypeStore() |
| | | productGlassTypeStore.GlassType=['',''] |
| | | productGlassTypeStore.GlassType=[null,null] |
| | | |
| | | //页面加载请求 |
| | | request.get(`/basicData/BasicDataByType/product`).then((res) => { |
| | |
| | | }) |
| | | |
| | | const saveProduct = () => { |
| | | console.log(productDetailList.value) |
| | | console.log(productGlassTypeStore.GlassType); |
| | | if(productDetailList.value.length===0){ |
| | | ElMessage.warning(t('product.msg.productLength')) |
| | | return |
| | | }else if(productDetailList.value[productDetailList.value.length-1].detailType!=='glass'){ |
| | | ElMessage.warning(t('product.msg.lastGlass')) |
| | | return |
| | | }else if(productGlassTypeStore.GlassType[1]==='' || productGlassTypeStore.GlassType[1]===null){ |
| | | }else if(productGlassTypeStore.GlassType===null || productGlassTypeStore.GlassType[1]==='' || productGlassTypeStore.GlassType[1]===null){ |
| | | ElMessage.warning(t('product.msg.glassType')) |
| | | return |
| | | } |
| | |
| | | } |
| | | case 'hollow' :{ |
| | | productName+='*'+item.detail+"*" |
| | | console.log(item.detail.slice(0,-2)) |
| | | break |
| | | } |
| | | } |
| | |
| | | //第一次加载数据 |
| | | request.post(`/product/1/100/${productGlassTypeStore.GlassType}`,filterData.value).then((res) => { |
| | | if(res.code==200){ |
| | | console.log(res.data.data) |
| | | pageTotal.value=res.data.total |
| | | produceList = produceList.value.concat(deepClone(res.data.data)) |
| | | xGrid.value.reloadData(produceList) |
| | |
| | | } |
| | | |
| | | BasicOtherMoney basicOtherMoney = basicOtherMoneyList.get(0); |
| | | String getColumn = basicOtherMoney.getColumn()==null?"0":basicOtherMoney.getColumn().replace("M",""); |
| | | String getColumn = basicOtherMoney.getColumn()==null? |
| | | "0": |
| | | String.valueOf(basicOtherMoney.getId()); |
| | | // basicOtherMoney.getColumn(). |
| | | // replace("M",""). |
| | | // replace("S",""); |
| | | int columnNum = Integer.parseInt(getColumn)+1; |
| | | BasicOtherMoney newBasicOtherMoney = new BasicOtherMoney(); |
| | | newBasicOtherMoney.setColumn("M"+String.format("%02d", columnNum)); |
| | |
| | | <association property="orderDetail" javaType="com.example.erp.entity.sd.OrderDetail"> |
| | | |
| | | <result column="building_number" property="buildingNumber"/> |
| | | <result column="product_id" property="productId"/> |
| | | <result column="product_name" property="productName"/> |
| | | <result column="width" property="width"/> |
| | | <result column="height" property="height"/> |
| | |
| | | a.order_id, |
| | | a.order_number, |
| | | b.building_number, |
| | | b.product_id, |
| | | b.product_name, |
| | | a.glass_address, |
| | | a.technology_number, |