| | |
| | | <script setup> |
| | | import {computed, onMounted, reactive, ref} from "vue" |
| | | 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" |
| | | import companyInfo from "@/stores/sd/companyInfo"; |
| | | const { t } = useI18n() |
| | | |
| | | const router = useRouter() |
| | | const route = useRoute() |
| | | let dialogTableVisible = ref(false) |
| | | let craftVisible = ref(false) |
| | | const iconNickname = ref() |
| | | const company = companyInfo() |
| | | const xGrid = ref() |
| | | const trademarkLocation=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',//文字居中 |
| | | stripe:true,//斑马纹楼号 |
| | | rowConfig: {isCurrent: true, isHover: true,height: 30},//鼠标移动或选择高亮 |
| | | id: 'OrderList', |
| | | showFooter: true,//显示脚 |
| | | id: 'updateOrderCraft', |
| | | printConfig: {}, |
| | | importConfig: {}, |
| | | exportConfig: {}, |
| | | scrollY:{ enabled: true },//开启虚拟滚动 |
| | | scrollY:{ enabled: true,gt:13 },//开启虚拟滚动 |
| | | scrollX:{ enabled: true,gt:7 },//开启虚拟滚动 |
| | | showOverflow:true, |
| | | columnConfig: { |
| | | resizable: true, |
| | | useKey: true |
| | | }, |
| | | mouseConfig:{selected: true}, |
| | | filterConfig: { //筛选配置项 |
| | | // remote: true |
| | | }, |
| | |
| | | storage: true |
| | | }, |
| | | editConfig: { |
| | | trigger: 'click', |
| | | mode: 'row', |
| | | trigger: 'dblclick', |
| | | mode: 'cell', |
| | | showStatus: 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,filterMethod:filterChanged}, |
| | | {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, fixed:"left", 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}, |
| | |
| | | {field: 'totalArea',width:120, title: t('craft.totalArea'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'childWidth',width:120, title: t('craft.childWidth'),editRender: { name: 'input'},filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'childHeight',width:120, title: t('craft.childHeight'),editRender: { name: 'input'},filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'arc',width:120, title: t('craft.arc'),editRender: { name: 'input'},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}, |
| | |
| | | { 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: t('basicData.computedSize'), prefixIcon: 'vxe-icon-chart-line', visible: true, disabled: false }, |
| | | { code: 'paste', name: t('basicData.paste'), prefixIcon: 'vxe-icon-paste', visible: true, disabled: false }, |
| | | ] |
| | | ] |
| | | } |
| | |
| | | {'code': 'review', 'name': t('basicData.review'),status: 'primary'}, |
| | | ], |
| | | // import: false, |
| | | // export: true, |
| | | export: true, |
| | | // print: true, |
| | | zoom: true, |
| | | custom: true |
| | | }, |
| | | footerMethod ({ columns, data }) {//页脚函数 |
| | | return[ |
| | | columns.map((column, columnIndex) => { |
| | | if (columnIndex === 0) { |
| | | return t('basicData.total') |
| | | } |
| | | // if (props.tableProp.footList.includes(column.field)) { |
| | | // return sumNum(data, column.field) |
| | | // } |
| | | return '' |
| | | }) |
| | | ] |
| | | } |
| | | |
| | | |
| | | }) |
| | | |
| | |
| | | } |
| | | } |
| | | }, |
| | | menuClick ({ menu, row, column }) { |
| | | async menuClick ({ menu, row, column }) { |
| | | const $grid = xGrid.value |
| | | if ($grid) { |
| | | switch (menu.code) { |
| | |
| | | } |
| | | }) |
| | | } |
| | | 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' :{ |
| | |
| | | } |
| | | }) |
| | | } |
| | | break |
| | | } |
| | | case 'paste' :{ |
| | | if(xGrid.value.getSelectedCell()===null){ |
| | | return |
| | | } |
| | | if(xGrid.value.getSelectedCell().column.editRender===undefined){ |
| | | return |
| | | } |
| | | const flag = xGrid.value.getSelectedCell()['_rowIndex'] |
| | | const column =xGrid.value.getSelectedCell().column.field |
| | | ElMessageBox.prompt() |
| | | .then(({ value }) => { |
| | | let text = value |
| | | text = text.split(' ') |
| | | if(text===null){ |
| | | return |
| | | } |
| | | |
| | | const data = xGrid.value.getTableData().visibleData |
| | | //let i = 0 |
| | | for (let i=0; i<text.length; i++) { |
| | | if(i+flag>=data.length){ |
| | | return |
| | | } |
| | | data[i+flag][column] = text[i] |
| | | } |
| | | }) |
| | | |
| | | |
| | | |
| | | break |
| | | } |
| | | } |
| | |
| | | tag:null, |
| | | tag2:null , |
| | | tag3:null, |
| | | xMargin:null, |
| | | yMargin:null, |
| | | xMargin:30, |
| | | yMargin:30, |
| | | location:[] |
| | | |
| | | }) |
| | | |
| | | |
| | | |
| | | let process = ref([]) |
| | | request.get(`/basicData/BasicDataByType/product/process`).then((res) =>{ |
| | |
| | | request.get(`/basicData/BasicDataByType/order/icon`).then((res) =>{ |
| | | if (res.code==200){ |
| | | trademarkList.value = res.data |
| | | trademarkList.value.forEach(item =>{ |
| | | item.basicName |
| | | }) |
| | | |
| | | } |
| | | }) |
| | | |
| | |
| | | let trademarkVisible = ref(false) |
| | | const updateTrademark = (row) => { |
| | | trademarkVisible.value= true |
| | | Object.keys(trademarkAttr.value).forEach((key) => { |
| | | /*Object.keys(trademarkAttr.value).forEach((key) => { |
| | | if(key==='location'){ |
| | | trademarkAttr.value[key] = [] |
| | | }else if(key==='xMargin' || key==='yMargin'){ |
| | | trademarkAttr.value[key] = 30 |
| | | }else{ |
| | | trademarkAttr.value[key] = '' |
| | | } |
| | | }) |
| | | })*/ |
| | | trademarkAttr.value = { |
| | | trademark:"3C", |
| | | xImage:false, |
| | | yImage:false, |
| | | tag:true, |
| | | tag2:true , |
| | | tag3:true, |
| | | xMargin:30, |
| | | yMargin:30, |
| | | location:t('craft.lowLeft') |
| | | } |
| | | if(row.icon!=null){ |
| | | trademarkAttr.value = JSON.parse(row.icon) |
| | | } |
| | | trademarkList.value.forEach(item =>{ |
| | | if(item.basicName===trademarkAttr.value.trademark){ |
| | | iconNickname.value=item.nickname |
| | | } |
| | | }) |
| | | |
| | | rowIndex.value = row |
| | | } |
| | |
| | | request.post(`/order/getOrderCraftById/${str}`).then((res) => { |
| | | if(res.code==200){ |
| | | titleUploadData.value = res.data.order |
| | | console.log(res.data.orderGlassDetails) |
| | | |
| | | //取消审核按钮禁用 |
| | | if(res.data.order.processReview === 2 ){ |
| | |
| | | |
| | | } |
| | | xGrid.value.reloadData(res.data.orderGlassDetails) |
| | | gridOptions.loading = false |
| | | }else{ |
| | | ElMessage.error(res.msg) |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | const tagCheck = (state) => { |
| | | return trademarkAttr.value.location === state |
| | | } |
| | | const resetTrademark = () => { |
| | | for(const key in trademarkAttr.value){ |
| | | |
| | | trademarkAttr.value[key] = '' |
| | | if(key==='location'){ |
| | | trademarkAttr.value[key] = [] |
| | | } |
| | | } |
| | | } |
| | | |
| | | const iconChange = () => { |
| | | trademarkList.value.forEach(item =>{ |
| | | if(item.basicName===trademarkAttr.value.trademark){ |
| | | iconNickname.value=item.nickname |
| | | } |
| | | }) |
| | | if(trademarkAttr.value.trademark===company.icon){ |
| | | trademarkAttr.value.yMargin=66 |
| | | } |
| | | |
| | | } |
| | | |
| | | let enlargementFlag = ref(false) |
| | | const trademarkenlargement = () => { |
| | | enlargementFlag.value = !enlargementFlag.value |
| | | } |
| | | |
| | | |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | <div class="order-detail"> |
| | | |
| | | <vxe-grid |
| | | max-height="97%" |
| | | height="100%" |
| | | class="mytable-scrollbar" |
| | | ref="xGrid" |
| | | v-bind="gridOptions" |
| | |
| | | |
| | | <!--左边固定显示的插槽--> |
| | | <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> |
| | | <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">{{$t('craft.modifyTrademark')}}</el-button> |
| | | </template> |
| | | |
| | | <template #num1_filter="{ column, $panel }"> |
| | |
| | | <el-dialog |
| | | id="trademark" |
| | | v-model="trademarkVisible" |
| | | :title="'商标参数'" |
| | | :title="$t('craft.TrademarkAttribute')" |
| | | :close-on-click-modal="false" |
| | | :close-on-press-escape="false" |
| | | style="width: 60%;height:60% ; |
| | | style="width: 922px;height:443px ; |
| | | 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> |
| | | <div style="width: 50%;height: 100%;float: left"> |
| | | <el-row style=""> |
| | | <el-col :span="4">{{$t('craft.TrademarkOptions')}}:</el-col> |
| | | <el-col :span="6"> |
| | | <el-select v-model="trademarkAttr.trademark" @change ="iconChange" filterable> |
| | | <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="4">{{$t('craft.xImage')}}:</el-col> |
| | | <el-col :span="6"> |
| | | <el-select v-model="trademarkAttr.xImage"> |
| | | <el-option :value="true" :label="$t('basicData.true')"/> |
| | | <el-option :value="false" :label="$t('basicData.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="4">{{$t('craft.yImage')}}:</el-col> |
| | | <el-col :span="6"> |
| | | <el-select v-model="trademarkAttr.yImage"> |
| | | <el-option :value="true" :label="$t('basicData.true')"/> |
| | | <el-option :value="false" :label="$t('basicData.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="4">{{$t('craft.tag')}}:</el-col> |
| | | <el-col :span="6"> |
| | | <el-select v-model="trademarkAttr.tag"> |
| | | <el-option :value="true" :label="$t('basicData.true')"/> |
| | | <el-option :value="false" :label="$t('basicData.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="4">{{$t('craft.tag2')}}:</el-col> |
| | | <el-col :span="6"> |
| | | <el-select v-model="trademarkAttr.tag2"> |
| | | <el-option :value="true" :label="$t('basicData.true')"/> |
| | | <el-option :value="false" :label="$t('basicData.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="4">{{$t('craft.tag3')}}:</el-col> |
| | | <el-col :span="6"> |
| | | <el-select v-model="trademarkAttr.tag3"> |
| | | <el-option :value="true" :label="$t('basicData.true')"/> |
| | | <el-option :value="false" :label="$t('basicData.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="4">{{$t('craft.xMargin')}}:</el-col> |
| | | <el-col :span="6"> |
| | | <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="4">{{$t('craft.yMargin')}}:</el-col> |
| | | <el-col :span="6"> |
| | | <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 :span="4">{{$t('craft.location')}}:</el-col> |
| | | <el-col :span="25"> |
| | | <el-radio 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-row> |
| | | <el-col > |
| | | <el-button @click="changeTrademark" style="float:right;" type="primary" >{{$t('craft.sure')}}</el-button> |
| | | <el-button @click="resetTrademark" style="float:right;margin-right: 0.5rem" type="primary" >{{$t('craft.reset')}}</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div v-if="!enlargementFlag" style="width: 400px;height: 250px;border: 2px solid #000;float: left;position: relative;"> |
| | | <div |
| | | v-if="tagCheck(t('craft.upperLeft'))" |
| | | style="float: left;width: 50px;height: 90px;margin-left: 1rem;margin-top: 15px"> |
| | | <el-row class="icon"> |
| | | <el-col class="icon" > |
| | | <el-image @dblclick="trademarkenlargement" style="width: 100%;height: 100%" :class="{'xStyle':trademarkAttr.xImage,'yStyle':trademarkAttr.yImage}" :src="iconNickname"/> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row > |
| | | <el-col :span="5" >X:</el-col> |
| | | <el-col :span="2" >{{trademarkAttr.xMargin}}</el-col> |
| | | </el-row> |
| | | <el-row > |
| | | <el-col :span="5" >Y:</el-col> |
| | | <el-col :span="2" >{{trademarkAttr.yMargin}}</el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | | <div |
| | | v-if="tagCheck(t('craft.upperRight'))" |
| | | style="float: right;width: 50px;height: 90px;margin-right: 1rem;margin-top: 15px"> |
| | | <el-row class="icon"> |
| | | <el-col class="icon" > |
| | | <el-image @dblclick="trademarkenlargement" style="width: 100%;height: 100%" :class="{'xStyle':trademarkAttr.xImage,'yStyle':trademarkAttr.yImage}" :src="iconNickname"/> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row > |
| | | <el-col :span="5" >X:</el-col> |
| | | <el-col :span="2" >{{trademarkAttr.xMargin}}</el-col> |
| | | </el-row> |
| | | <el-row > |
| | | <el-col :span="5" >Y:</el-col> |
| | | <el-col :span="2" >{{trademarkAttr.yMargin}}</el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | | |
| | | <div |
| | | |
| | | v-if="tagCheck(t('craft.lowLeft'))" |
| | | style="width: 50px;height: 90px;margin-left: 1rem;float: left;position: absolute;bottom: 15px" > |
| | | <el-row > |
| | | <el-col :span="5" >X:</el-col> |
| | | <el-col :span="2" >{{trademarkAttr.xMargin}}</el-col> |
| | | </el-row> |
| | | <el-row > |
| | | <el-col :span="5" >Y:</el-col> |
| | | <el-col :span="2" >{{trademarkAttr.yMargin}}</el-col> |
| | | </el-row> |
| | | <el-row class="icon"> |
| | | <el-col class="icon" > |
| | | <el-image @dblclick="trademarkenlargement" style="width: 100%;height: 100%" :class="{'xStyle':trademarkAttr.xImage,'yStyle':trademarkAttr.yImage}" :src="iconNickname"/> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | </div> |
| | | |
| | | |
| | | <div |
| | | v-if="tagCheck(t('craft.lowRight'))" |
| | | style="width: 50px;height: 90px;position: absolute;bottom: 15px;right: 1rem"> |
| | | <el-row> |
| | | <el-col :span="5" >X:</el-col> |
| | | <el-col :span="2" >{{trademarkAttr.xMargin}}</el-col> |
| | | </el-row> |
| | | <el-row > |
| | | <el-col :span="5" >Y:</el-col> |
| | | <el-col :span="2" >{{trademarkAttr.yMargin}}</el-col> |
| | | </el-row> |
| | | <el-row class="icon"> |
| | | <el-col class="icon"> |
| | | <el-image style="width: 100%;height: 100%" @dblclick="trademarkenlargement" :class="{'xStyle':trademarkAttr.xImage,'yStyle':trademarkAttr.yImage}" :src="iconNickname"/> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | <div v-if="enlargementFlag" style="width: 400px;height: 250px;float: left;position: relative;"> |
| | | <el-image @dblclick="trademarkenlargement" style="z-index: 9999;max-width: 100%;max-height: 100%" :src="iconNickname"/> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | </div> |
| | |
| | | } |
| | | .order-detail{ |
| | | width: 100%; |
| | | height: 90%; |
| | | height: 85%; |
| | | } |
| | | #trademark .el-row,#trademark .el-col{ |
| | | border: 0 |
| | |
| | | -ms-user-select: none; |
| | | user-select: none; |
| | | } |
| | | .xStyle{ |
| | | transform : rotateY(180deg) |
| | | } |
| | | .yStyle{ |
| | | transform : rotateX(180deg) |
| | | } |
| | | .icon{ |
| | | width: 50px; |
| | | height: 50px; |
| | | } |
| | | </style> |