| | |
| | | export default { |
| | | serverUrl:"10.153.19.150:8080" |
| | | serverUrl:"10.153.19.150:8086" |
| | | //serverUrl:"res.abeim.cn" |
| | | } |
| | |
| | | oldProcess:'Old Process', |
| | | newProcess:'New Process', |
| | | reset:'Reset', |
| | | sure:'Sure', |
| | | }, |
| | | workOrder:{ |
| | | workOrder:'Work Order Management', |
| | |
| | | ReviewSuccess:'审核成功' |
| | | } |
| | | }, |
| | | product:{ |
| | | ProductHomePage:'产品首页', |
| | | create:'创建', |
| | | msg:{ |
| | | productLength:'请添加产品详情', |
| | | lastGlass:'产品详情最后一条不是玻璃,请完善', |
| | | glassType:'请选择产品类别', |
| | | saveSuccess: '创建成功', |
| | | operateSuccess: '操作成功', |
| | | operateFail: '操作失败', |
| | | glassReview:'请输入产品材料属性与工艺属性', |
| | | glassRepeat:'请先选择间隔物', |
| | | HollowReview:'请选择全部中空间隔物下拉框', |
| | | firstGlass:"请先选择产品", |
| | | InterlayerReview:'请选择全部中空间隔物下拉框', |
| | | glassTypeTitle:'材料属性', |
| | | thickness:'*厚度', |
| | | color:'*颜色', |
| | | craft:'*工艺属性', |
| | | location:'*位置', |
| | | lowELocation:'LOW-E面', |
| | | processAttribute:"工艺属性", |
| | | hollowThickness:'*中空厚度', |
| | | hollowGasType:'*充气方式:', |
| | | hollowType:'*封胶', |
| | | hollowGlueDepth:'*默认胶深:', |
| | | hollow:'中空间隔物', |
| | | hollowUpdate:'中空间隔物修改', |
| | | interlayerThickness:'*夹层厚度', |
| | | interlayerType:'*类型', |
| | | interlayerColor:'*颜色', |
| | | interlayer:'夹层间隔物', |
| | | interlayerUpdate:'夹层间隔物修改', |
| | | glassAttribute:'单片玻璃属性:', |
| | | reset:'重置', |
| | | processFlowAttribute:'工艺流程属性:', |
| | | sure:'确认', |
| | | update:'修改', |
| | | quickSearch:'快速查询', |
| | | weightThickness:'计重厚度', |
| | | allThickness:'厚度', |
| | | remarks:'备注', |
| | | product:'产品名称:', |
| | | updateGlass:'修改玻璃', |
| | | updateHollow:'修改中空', |
| | | updateInterlayer:'修改夹层', |
| | | delete: '删除', |
| | | create:'创建', |
| | | review:'审核', |
| | | cancelReview:'反审', |
| | | } |
| | | |
| | | |
| | | }, |
| | | |
| | | order:{ |
| | | orderHomePage:'订单首页', |
| | | orderReport:'订单报表', |
| | |
| | | oldProcess:'原流程', |
| | | newProcess:'流程', |
| | | reset:'重置', |
| | | sure:'确定', |
| | | // upperLeft:'左上', |
| | | // upperRight:'右上', |
| | | // lowLeft:'左下', |
| | | // lowRight:'右下', |
| | | // TrademarkAttribute:'商标参数', |
| | | // TrademarkOptions:'商标选项', |
| | | // xImage:'X轴镜像', |
| | | // yImage:'X轴镜像' |
| | | |
| | | }, |
| | | |
| | | workOrder:{ |
| | |
| | | import userInfo from '@/stores/userInfo' |
| | | import { sendSock, createWebSocket, closeSock,global_callback1 } from "@/utils/webSocket" |
| | | import { useI18n } from 'vue-i18n' |
| | | import i18n from "@/lang/index" |
| | | //语言获取 |
| | | const { t } = useI18n() |
| | | |
| | | let language = ref(localStorage.getItem('lang') || 'zh') |
| | | const store=userInfo() |
| | | let ruleFormRef = ref<FormInstance>() |
| | | const router = useRouter() |
| | |
| | | onUnmounted(() => { |
| | | window.removeEventListener('keydown', keyDown) |
| | | }) |
| | | |
| | | const changeLanguage = () =>{ |
| | | localStorage.setItem('lang',language.value) |
| | | location.reload() |
| | | } |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | <img id="img-pic" src="@/assets/img.png" alt=""> |
| | | </div> |
| | | <div id="div-login"> |
| | | <el-select |
| | | @change="changeLanguage" |
| | | v-model="language" |
| | | placeholder=" " |
| | | style="float: right;width: 6rem"> |
| | | <el-option value="zh" label="中文" /> |
| | | <el-option value="en" label="English" /> |
| | | </el-select> |
| | | <h2>{{$t('login.SysName')}}</h2> |
| | | <el-form |
| | | @submit.native.prevent |
| | |
| | | } |
| | | } |
| | | } |
| | | },//头部按钮事件 |
| | | },//右键按钮事件 |
| | | menuClick ({ menu, row, column }) { |
| | | const $grid = xGrid.value |
| | | if ($grid) { |
| | |
| | | |
| | | //模板下载 |
| | | const importTemplate = () => { |
| | | downLoadFile('../../../../public/importTemplate.xlsx','importTemplate.xlsx') |
| | | downLoadFile('/importTemplate.xlsx','importTemplate.xlsx') |
| | | } |
| | | |
| | | //行单元格修改修改触发此事件 |
| | |
| | | import request from "@/utils/request" |
| | | import {ElMessage} from "element-plus" |
| | | import {changeFilterEvent,filterChanged} from "@/hook" |
| | | import {addListener,toolbarButtonClickEvent} from "@/hook/mouseMove" |
| | | import {useI18n} from "vue-i18n" |
| | | const { t } = useI18n() |
| | | |
| | |
| | | let dialogTableVisible = ref(false) |
| | | let craftVisible = ref(false) |
| | | const xGrid = ref() |
| | | const trademarkLocation=ref(['左上','右上','左下','右下']) |
| | | const gridOptions = reactive({ |
| | | border: "full",//表格加边框 |
| | | keepSource: true,//保持源数据 |
| | |
| | | showStatus: true |
| | | },//表头参数 |
| | | columns:[ |
| | | {title: t('basicData.operate'), width: 110, slots: { default: 'button_slot' },fixed:"left",}, |
| | | {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: 'area',width:120, title: t('craft.area'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.quantity',width:120, title: t('order.quantity'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'process',width:120, title: t('craft.process'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'icon',width:120, title: t('order.icon'),editRender: { name: 'input'},filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'icon',width:120, title: t('order.icon'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.processingNote',width:120, title: t('order.processingNote'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.remarks',width:120, title: t('basicData.remarks'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.edgingType',width:120, title: t('order.edgingType'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged} |
| | |
| | | // { row: 0, col: 7, rowspan: 4, colspan: 1 }, |
| | | // { row: 0, col: 8, rowspan: 4, colspan: 1 }, |
| | | ], |
| | | menuConfig:{ |
| | | body:{ |
| | | options:[ |
| | | [ |
| | | { 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 }, |
| | | ] |
| | | ] |
| | | } |
| | | }, |
| | | toolbarConfig: { |
| | | buttons: [ |
| | | {'code': 'remarks', 'name': t('order.processingNote')}, |
| | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | menuClick ({ menu, row, column }) { |
| | | const $grid = xGrid.value |
| | | if ($grid) { |
| | | switch (menu.code) { |
| | | case 'copyChecked' :{ |
| | | let result = toolbarButtonClickEvent() |
| | | if(result){ |
| | | const dataList = xGrid.value.getTableData().visibleData |
| | | const val = dataList[result.start][result.cell] |
| | | dataList.forEach((item,index) =>{ |
| | | if(index>=result.start && index<=result.end){ |
| | | item[result.cell] = val |
| | | } |
| | | }) |
| | | } |
| | | break |
| | | } |
| | | case 'copyAll' :{ |
| | | let result = toolbarButtonClickEvent() |
| | | if(result){ |
| | | const dataList = xGrid.value.getTableData().visibleData |
| | | const val = dataList[result.start][result.cell] |
| | | dataList.forEach((item,index) =>{ |
| | | if(index>=result.start ){ |
| | | item[result.cell] = val |
| | | } |
| | | }) |
| | | } |
| | | break |
| | | } |
| | | case 'clearChecked' :{ |
| | | let result = toolbarButtonClickEvent() |
| | | if(result){ |
| | | const dataList = xGrid.value.getTableData().visibleData |
| | | dataList.forEach((item,index) =>{ |
| | | if(index>=result.start && index<=result.end){ |
| | | item[result.cell] = '' |
| | | } |
| | | }) |
| | | } |
| | | break |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | // 定义表头上传数据 |
| | |
| | | processingNote:'' |
| | | }) |
| | | |
| | | const trademarkAttr = ref({ |
| | | trademark:null, |
| | | xImage:null, |
| | | yImage:null, |
| | | tag:null, |
| | | tag2:null , |
| | | tag3:null, |
| | | xMargin:null, |
| | | yMargin:null, |
| | | location:[] |
| | | |
| | | }) |
| | | |
| | | let process = ref([]) |
| | | request.get(`/basicData/BasicDataByType/product/process`).then((res) =>{ |
| | | if (res.code==200){ |
| | | process.value=res.data |
| | | } |
| | | }) |
| | | const trademarkList =ref([]) |
| | | request.get(`/basicData/BasicDataByType/order/icon`).then((res) =>{ |
| | | if (res.code==200){ |
| | | trademarkList.value = res.data |
| | | } |
| | | }) |
| | | |
| | |
| | | }) |
| | | rowIndex.value = row |
| | | } |
| | | |
| | | //修改商标选项 |
| | | let trademarkVisible = ref(false) |
| | | const updateTrademark = (row) => { |
| | | trademarkVisible.value= true |
| | | Object.keys(trademarkAttr.value).forEach((key) => { |
| | | if(key==='location'){ |
| | | trademarkAttr.value[key] = [] |
| | | }else{ |
| | | trademarkAttr.value[key] = '' |
| | | } |
| | | }) |
| | | if(row.icon!=null){ |
| | | trademarkAttr.value = JSON.parse(row.icon) |
| | | } |
| | | |
| | | rowIndex.value = row |
| | | } |
| | | |
| | | const changeTrademark = ()=>{ |
| | | rowIndex.value.icon = JSON.stringify(trademarkAttr.value) |
| | | trademarkVisible.value=false |
| | | Object.keys(trademarkAttr.value).forEach((key) => (trademarkAttr.value[key] = '')) |
| | | } |
| | | |
| | | |
| | | |
| | | const craftObj = reactive({ |
| | | newCraft: [], |
| | | oldCraft: [] |
| | |
| | | |
| | | //初始化判断是否有id传入 |
| | | onMounted(()=>{ |
| | | addListener(xGrid.value,gridOptions) |
| | | const str = route.query.orderId |
| | | if (typeof str === 'undefined' || str === null || str === '' || str === '\n' || str === '\r'){ |
| | | return |
| | |
| | | gridOptions.toolbarConfig.buttons[2].disabled = true |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | xGrid.value.reloadData(res.data.orderGlassDetails) |
| | | |
| | | //xGrid.value.reloadData(res.data.orderDetails) |
| | | }else{ |
| | | ElMessage.error(res.msg) |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | // |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | <!--左边固定显示的插槽--> |
| | | <template #button_slot="{ row }"> |
| | | <el-button @click="updateCraft(row)" link type="primary" size="small">{{t('craft.updateCraft')}}</el-button> |
| | | <el-button @click="updateTrademark(row)" link type="primary" size="small">修改商标</el-button> |
| | | </template> |
| | | |
| | | <template #num1_filter="{ column, $panel }"> |
| | |
| | | </vxe-grid> |
| | | |
| | | </div> |
| | | <el-dialog v-model="dialogTableVisible" :title="$t('order.processingNote')" style="width: 60%;height:75% "> |
| | | <el-dialog |
| | | |
| | | v-model="dialogTableVisible" |
| | | :title="$t('order.processingNote')" |
| | | style="width: 60%;height:75% "> |
| | | <el-input |
| | | v-model="titleUploadData.processingNote" |
| | | type="textarea" |
| | |
| | | /> |
| | | </el-dialog> |
| | | |
| | | <el-dialog v-model="craftVisible" :title="$t('craft.technologicalProcess')" style="width: 60%;height:60% ;position: relative;" > |
| | | <el-dialog id="processChange" |
| | | v-model="craftVisible" |
| | | :title="$t('craft.technologicalProcess')" |
| | | :close-on-click-modal="false" |
| | | :close-on-press-escape="false" |
| | | style="width: 60%;height:60% ;position: relative;" > |
| | | <h5>{{$t('craft.processAttribute')}}</h5> |
| | | <el-checkbox |
| | | v-model="craftObj.newCraft" |
| | |
| | | <el-button type="primary" @click="saveCraft">{{$t('basicData.save')}}</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-dialog> |
| | | <el-dialog |
| | | id="trademark" |
| | | v-model="trademarkVisible" |
| | | :title="'商标参数'" |
| | | :close-on-click-modal="false" |
| | | :close-on-press-escape="false" |
| | | style="width: 60%;height:60% ; |
| | | position: relative;" > |
| | | <el-row> |
| | | <el-col :span="2">商标选项:</el-col> |
| | | <el-col :span="3"> |
| | | <el-select v-model="trademarkAttr.trademark" |
| | | > |
| | | <el-option :value="item.basicName" v-for="item in trademarkList" /> |
| | | </el-select> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="2">X轴镜像:</el-col> |
| | | <el-col :span="3"> |
| | | <el-select v-model="trademarkAttr.xImage"> |
| | | <el-option :value="true"/> |
| | | <el-option :value="false"/> |
| | | </el-select> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="2">Y轴镜像:</el-col> |
| | | <el-col :span="3"> |
| | | <el-select v-model="trademarkAttr.yImage"> |
| | | <el-option :value="true"/> |
| | | <el-option :value="false"/> |
| | | </el-select> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="2">打标使能:</el-col> |
| | | <el-col :span="3"> |
| | | <el-select v-model="trademarkAttr.tag"> |
| | | <el-option :value="true"/> |
| | | <el-option :value="false"/> |
| | | </el-select> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="2">标签2使能:</el-col> |
| | | <el-col :span="3"> |
| | | <el-select v-model="trademarkAttr.tag2"> |
| | | <el-option :value="true"/> |
| | | <el-option :value="false"/> |
| | | </el-select> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="2">标签3使能:</el-col> |
| | | <el-col :span="3"> |
| | | <el-select v-model="trademarkAttr.tag3"> |
| | | <el-option :value="true"/> |
| | | <el-option :value="false"/> |
| | | </el-select> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="2">X轴边距:</el-col> |
| | | <el-col :span="3"> |
| | | <el-input-number v-model="trademarkAttr.xMargin"/> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="2">Y轴边距:</el-col> |
| | | <el-col :span="3"> |
| | | <el-input-number v-model="trademarkAttr.yMargin"/> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col :span="2">商标位置:</el-col> |
| | | <el-col :span="8"> |
| | | <el-checkbox v-model="trademarkAttr.location" v-for="item in trademarkLocation" :label="item" /> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col > |
| | | <el-button @click="changeTrademark" style="float:right;" type="primary" >{{$t('craft.sure')}}</el-button> |
| | | <el-button style="float:right;margin-right: 0.5rem" type="primary" >{{$t('craft.reset')}}</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-dialog> |
| | | |
| | | </div> |
| | |
| | | width: 100%; |
| | | height: 90%; |
| | | } |
| | | .el-dialog .el-col{ |
| | | #trademark .el-row,#trademark .el-col{ |
| | | border: 0 |
| | | } |
| | | #processChange .el-col{ |
| | | border: 0;text-align: right |
| | | } |
| | | .el-dialog .el-text{ |
| | | #processChange .el-text{ |
| | | font-weight: bolder |
| | | } |
| | | .vxe-grid { |
| | | /* 禁用浏览器默认选中 */ |
| | | -webkit-user-select: none; |
| | | -moz-user-select: none; |
| | | -ms-user-select: none; |
| | | user-select: none; |
| | | } |
| | | </style> |
| | |
| | | <script setup> |
| | | import {ref} from "vue"; |
| | | import {ArrowLeftBold, ArrowRight, Search} from "@element-plus/icons-vue"; |
| | | import {ArrowLeftBold, ArrowRight, Search} from "@element-plus/icons-vue" |
| | | import request from "@/utils/request"; |
| | | import deepClone from "@/utils/deepClone"; |
| | | import {ElMessage} from "element-plus"; |
| | | import {useRouter,useRoute,onBeforeRouteUpdate} from "vue-router"; |
| | | import {useRouter,useRoute,onBeforeRouteUpdate} from "vue-router" |
| | | import {useI18n} from "vue-i18n" |
| | | const { t } = useI18n() |
| | | const router = useRouter() |
| | | const route = useRoute() |
| | | let indexFlag=$ref(1) |
| | |
| | | <div id="main"> |
| | | <div id="div-title"> |
| | | <el-breadcrumb :separator-icon="ArrowRight"> |
| | | <el-breadcrumb-item @click="changeRouter(1)" :class="indexFlag===1?'indexTag':''" :to="{ path: '/main/product/selectProduct' }">产品首页</el-breadcrumb-item> |
| | | <el-breadcrumb-item @click="changeRouter(2)" :class="indexFlag===2?'indexTag':''" :to="{ path: '/main/product/createProduct' }">创建</el-breadcrumb-item> |
| | | <el-breadcrumb-item @click="changeRouter(1)" :class="indexFlag===1?'indexTag':''" :to="{ path: '/main/product/selectProduct' }">{{$t('product.ProductHomePage')}}</el-breadcrumb-item> |
| | | <el-breadcrumb-item @click="changeRouter(2)" :class="indexFlag===2?'indexTag':''" :to="{ path: '/main/product/createProduct' }">{{$t('product.create')}}</el-breadcrumb-item> |
| | | <!-- <el-breadcrumb-item :to="{ path: '/main/product/test' }">测试</el-breadcrumb-item>--> |
| | | <!-- <el-breadcrumb-item :to="{ path: '/main/product/testSort11' }">测试</el-breadcrumb-item>--> |
| | | <el-breadcrumb-item v-show="false" :to="{ path: '/main/product/test1' }">测试</el-breadcrumb-item> |