Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project version="4"> |
| | | <component name="dataSourceStorageLocal" created-in="IU-232.8660.185"> |
| | | <component name="dataSourceStorageLocal" created-in="IU-232.9559.62"> |
| | | <data-source name="@localhost [2]" uuid="165c5447-d19a-4aaf-af5f-cee92ae696c2"> |
| | | <database-info product="MySQL" version="8.0.22" jdbc-version="4.2" driver-name="MySQL Connector/J" driver-version="mysql-connector-java-8.0.25 (Revision: 08be9e9b4cba6aa115f9b27b215887af40b159e0)" dbms="MYSQL" exact-version="8.0.22" exact-driver-version="8.0"> |
| | | <extra-name-characters>#@</extra-name-characters> |
| | |
| | | <database-info product="MySQL" version="8.0.19" jdbc-version="4.2" driver-name="MySQL Connector/J" driver-version="mysql-connector-java-8.0.25 (Revision: 08be9e9b4cba6aa115f9b27b215887af40b159e0)" dbms="MYSQL" exact-version="8.0.19" exact-driver-version="8.0"> |
| | | <extra-name-characters>#@</extra-name-characters> |
| | | <identifier-quote-string>`</identifier-quote-string> |
| | | <jdbc-catalog-is-schema>true</jdbc-catalog-is-schema> |
| | | </database-info> |
| | | <case-sensitivity plain-identifiers="lower" quoted-identifiers="lower" /> |
| | | <secret-storage>master_key</secret-storage> |
| | |
| | | { |
| | | path: 'addRework', |
| | | name: 'addRework', |
| | | component: () => import('../views/pp/Rework/AddRework.vue'), |
| | | component: () => import('../views/pp/rework/AddRework.vue'), |
| | | }, |
| | | { |
| | | path: 'selectRework', |
| | | name: 'selectRework', |
| | | component: () => import('../views/pp/Rework/SelectRework.vue'), |
| | | component: () => import('../views/pp/rework/SelectRework.vue'), |
| | | }, |
| | | { |
| | | path: '', |
| | |
| | | import {ElMessage} from "element-plus"; |
| | | import {changeFilterEvent, filterChanged} from "@/hook" |
| | | import {indexOf} from "xe-utils"; |
| | | |
| | | let brokenVisible = ref(false) |
| | | const xGrid = ref() |
| | | let router = useRouter() |
| | | const getTableRow = (row, type) => { |
| | | switch (type) { |
| | | case 'edit' : { |
| | | //alert('我接收到子组件传送的编辑信息') |
| | | router.push({path: '/main/processCard/PrintFlowCard', query: {id: row.id}}) |
| | | break |
| | | } |
| | | case 'delete': { |
| | | alert('我接收到子组件传送的删除信息') |
| | | break |
| | | } |
| | | case 'setType': { |
| | | alert('我接收到子组件传送的排版状态') |
| | | break |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | //定义表头数据 |
| | | const titleUploadData = ref({ |
| | |
| | | // {type:'expand',fixed:"left",slots: { content:'content' },width: 50}, |
| | | { |
| | | field: 'order_number', |
| | | width: 90, |
| | | title: '序号', |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | |
| | | }, |
| | | { |
| | | field: 'glass_child', |
| | | width: 120, |
| | | title: '单片名称', |
| | | showOverflow: "ellipsis", |
| | | filters: [{data: ''}], |
| | |
| | | }, |
| | | { |
| | | field: 'technology_number', |
| | | width: 90, |
| | | title: '标记', |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | |
| | | }, |
| | | { |
| | | field: 'glass_address', |
| | | width: 100, |
| | | title: '片标记', |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | |
| | | }, |
| | | { |
| | | field: 'quantity_card', |
| | | width: 110, |
| | | title: '流程卡数量', |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | |
| | | }, |
| | | { |
| | | field: 'child_width', |
| | | width: 70, |
| | | title: '宽', |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | |
| | | }, |
| | | { |
| | | field: 'child_height', |
| | | width: 70, |
| | | title: '高', |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | |
| | | }, |
| | | { |
| | | field: 'shape', |
| | | width: 70, |
| | | title: '形状', |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | showOverflow: "ellipsis", |
| | | filterMethod: filterChanged |
| | | }, |
| | | {field: 'quantity', width: 120, title: '上工完工数量',}, |
| | | {field: 'quantity', title: '上工完工数量',}, |
| | | { |
| | | field: 'completedQuantity', width: 100, title: '完工数量', |
| | | field: 'completedQuantity', title: '完工数量', |
| | | editRender: { |
| | | name: 'input', |
| | | attrs: {placeholder: ''}, |
| | |
| | | |
| | | }, |
| | | { |
| | | field: 'breakageNumber', width: 100, title: '次破数量', |
| | | editRender: { |
| | | name: 'input', |
| | | attrs: {placeholder: ''} |
| | | } |
| | | }, |
| | | {field: 'available', width: 80, title: '可利用', editRender: {name: 'input', attrs: {placeholder: ''}}}, |
| | | {field: 'returnProcess', width: 100, title: '退回工序', editRender: {name: 'input', attrs: {placeholder: ''}}}, |
| | | { |
| | | field: 'reasonType', width: 100, title: '次破类型', |
| | | editRender: {name: 'input', attrs: {placeholder: '', type: 'selected'}} |
| | | }, |
| | | { |
| | | field: 'reasonDamage', width: 100, title: '次破原因', |
| | | editRender: {name: 'input', attrs: {placeholder: ''}} |
| | | }, |
| | | { |
| | | field: 'responsibleProcess', width: 100, title: '责任工序', |
| | | editRender: {}, |
| | | slots: {default: 'reportingWordSort_default', edit: 'reportingWordSort'} |
| | | //editRender: {name: 'input', attrs: {placeholder: '',type: 'selected'}}, |
| | | field: 'breakageNumber', title: '次破数量', |
| | | |
| | | }, |
| | | { |
| | | field: 'responsibleEquipment', |
| | | width: 100, |
| | | title: '责任设备', |
| | | editRender: {}, |
| | | slots: {default: 'reportingDeviceSort_default', edit: 'reportingDeviceSort'} |
| | | // {field: 'available', width: 80, title: '可利用', editRender: {name: 'input', attrs: {placeholder: ''}}}, |
| | | // {field: 'returnProcess', width: 100, title: '退回工序', editRender: {name: 'input', attrs: {placeholder: ''}}}, |
| | | // { |
| | | // field: 'reasonType', width: 100, title: '次破类型', |
| | | // editRender: {name: 'input', attrs: {placeholder: '', type: 'selected'}} |
| | | // }, |
| | | // { |
| | | // field: 'reasonDamage', width: 100, title: '次破原因', |
| | | // editRender: {name: 'input', attrs: {placeholder: ''}} |
| | | }, |
| | | |
| | | { |
| | | field: 'responsibleTeam', width: 100, title: '责任班组', |
| | | editRender: {name: 'input', attrs: {placeholder: ''}} |
| | | }, |
| | | { |
| | | field: 'responsibilityPersonnel', |
| | | width: 100, |
| | | title: '责任人员', |
| | | editRender: {name: 'input', attrs: {placeholder: ''}} |
| | | |
| | | }, |
| | | // }, |
| | | // { |
| | | // field: 'responsibleProcess', width: 100, title: '责任工序', |
| | | // editRender: {}, |
| | | // slots: {default: 'reportingWordSort_default', edit: 'reportingWordSort'} |
| | | // //editRender: {name: 'input', attrs: {placeholder: '',type: 'selected'}}, |
| | | // |
| | | // }, |
| | | // { |
| | | // field: 'responsibleEquipment', |
| | | // width: 100, |
| | | // title: '责任设备', |
| | | // editRender: {}, |
| | | // slots: {default: 'reportingDeviceSort_default', edit: 'reportingDeviceSort'} |
| | | // // editRender: {name: 'input', attrs: {placeholder: ''}} |
| | | // }, |
| | | // |
| | | // { |
| | | // field: 'responsibleTeam', width: 100, title: '责任班组', |
| | | // editRender: {name: 'input', attrs: {placeholder: ''}} |
| | | // }, |
| | | // { |
| | | // field: 'responsibilityPersonnel', |
| | | // width: 100, |
| | | // title: '责任人员', |
| | | // editRender: {name: 'input', attrs: {placeholder: ''}} |
| | | // |
| | | // }, |
| | | {field: 'completed', width: 90, title: '已完工',}, |
| | | {field: 'onceBroken', width: 90, title: '已次破',}, |
| | | |
| | |
| | | }, |
| | | data: [],//table body实际数据 |
| | | //脚部求和 |
| | | footerMethod({columns, data}) {//页脚函数 |
| | | let footList = ['', '', '', '', ''] |
| | | return [ |
| | | columns.map((column, columnIndex) => { |
| | | if (columnIndex === 0) { |
| | | return '合计:' |
| | | } |
| | | if (footList.includes(column.field)) { |
| | | return sumNum(data, column.field) |
| | | } |
| | | return '' |
| | | }) |
| | | ] |
| | | } |
| | | // footerMethod({columns, data}) {//页脚函数 |
| | | // let footList = ['', '', '', '', ''] |
| | | // return [ |
| | | // columns.map((column, columnIndex) => { |
| | | // if (columnIndex === 0) { |
| | | // return '合计:' |
| | | // } |
| | | // if (footList.includes(column.field)) { |
| | | // return sumNum(data, column.field) |
| | | // } |
| | | // return '' |
| | | // }) |
| | | // ] |
| | | // } |
| | | |
| | | }) |
| | | |
| | | let brokenRow = ref() |
| | | const gridEvents = { |
| | | cellDblclick (params) {//表格内容双击打开产品界面 |
| | | const { row } = params |
| | | brokenRow = row |
| | | console.log(row) |
| | | //brokenGrid.value.reload() |
| | | //brokenVisible.value = true |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | const brokenGrid =ref() |
| | | const brokenGridOptions = reactive({ |
| | | border: "full",//表格加边框 |
| | | keepSource: true,//保持源数据 |
| | | align: 'center',//文字居中 |
| | | stripe: true,//斑马纹 |
| | | rowConfig: {isCurrent: true, isHover: true, height: 30},//鼠标移动或选择高亮 |
| | | id: 'CustomerList', |
| | | showFooter: true,//显示脚 |
| | | printConfig: {}, |
| | | importConfig: {}, |
| | | exportConfig: {}, |
| | | scrollY: {enabled: true},//开启虚拟滚动 |
| | | showOverflow: true, |
| | | columnConfig: { |
| | | resizable: true, |
| | | useKey: true |
| | | }, |
| | | filterConfig: { //筛选配置项 |
| | | // remote: true |
| | | }, |
| | | customConfig: { |
| | | storage: true |
| | | }, |
| | | editConfig: { |
| | | trigger: 'click', |
| | | mode: 'row', |
| | | showStatus: true |
| | | },//表头参数 |
| | | columns: [ |
| | | // {type:'expand',fixed:"left",slots: { content:'content' },width: 50}, |
| | | { |
| | | field: 'order_number', |
| | | title: '序号', |
| | | filters: [{data: ''}], |
| | | slots: {filter: 'num1_filter'}, |
| | | filterMethod: filterChanged |
| | | }, |
| | | |
| | | { |
| | | field: 'breakageNumber', title: '次破数量', |
| | | |
| | | }, |
| | | {field: 'available', title: '可利用', editRender: {name: 'input', attrs: {placeholder: ''}}}, |
| | | {field: 'returnProcess', title: '退回工序', editRender: {name: 'input', attrs: {placeholder: ''}}}, |
| | | { |
| | | field: 'reasonType', title: '次破类型', |
| | | editRender: {name: 'input', attrs: {placeholder: '', type: 'selected'}} |
| | | }, |
| | | { |
| | | field: 'reasonDamage', title: '次破原因', |
| | | editRender: {name: 'input', attrs: {placeholder: ''}} |
| | | }, |
| | | { |
| | | field: 'responsibleProcess', title: '责任工序', |
| | | editRender: {}, |
| | | slots: {default: 'reportingWordSort_default', edit: 'reportingWordSort'} |
| | | //editRender: {name: 'input', attrs: {placeholder: '',type: 'selected'}}, |
| | | |
| | | }, |
| | | { |
| | | field: 'responsibleEquipment', |
| | | title: '责任设备', |
| | | editRender: {}, |
| | | slots: {default: 'reportingDeviceSort_default', edit: 'reportingDeviceSort'} |
| | | // editRender: {name: 'input', attrs: {placeholder: ''}} |
| | | }, |
| | | |
| | | { |
| | | field: 'responsibleTeam', title: '责任班组', |
| | | editRender: {name: 'input', attrs: {placeholder: ''}} |
| | | }, |
| | | { |
| | | field: 'responsibilityPersonnel', |
| | | title: '责任人员', |
| | | editRender: {name: 'input', attrs: {placeholder: ''}} |
| | | |
| | | }, |
| | | |
| | | ], |
| | | //表单验证 |
| | | editRules: {}, |
| | | toolbarConfig: {//表头按钮 |
| | | buttons: [ |
| | | {code: 'print_lck', name: '添加', status: 'primary', icon: 'vxe-icon-save'}, |
| | | ], |
| | | // import: false, |
| | | // export: true, |
| | | // print: true, |
| | | zoom: true, |
| | | custom: true |
| | | }, |
| | | }) |
| | | |
| | | |
| | | //第一次加载数据 |
| | | |
| | |
| | | max-height="100%" |
| | | size="small" |
| | | v-bind="gridOptions" |
| | | v-on="gridEvents" |
| | | @filter-change="filterChanged" |
| | | @edit-closed="verifyNum" |
| | | |
| | |
| | | |
| | | |
| | | </vxe-grid> |
| | | <el-dialog v-model="brokenVisible" title="破损列表" style="width: 80%;height:75% "> |
| | | <vxe-grid ref="brokenGrid" v-bind="brokenGridOptions"> |
| | | |
| | | </vxe-grid> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | const dateValue = ref("");//查询日期 |
| | | const dialogFormVisible = ref(false) |
| | | const formLabelWidth = '140px' |
| | | |
| | | /*编辑弹窗显示数据*/ |
| | | const editData = reactive({ |
| | | name: 'FG20202020', |
| | |
| | | import {ElMessage} from "element-plus"; |
| | | import {useRouter} from "vue-router"; |
| | | import GlassType from '@/components/basic/product/GlassType.vue' |
| | | |
| | | const router = useRouter() |
| | | let indexFlag=$ref(1) |
| | | function changeRouter(index){ |
| | |
| | | <el-breadcrumb-item @click="changeRouter(2)" :class="indexFlag===2?'indexTag':''" :to="{ path: '/main/processCard/SelectPrintFlowCard' }" style="display: none">打印</el-breadcrumb-item> |
| | | </el-breadcrumb> |
| | | </div> |
| | | |
| | | <div id="main-body"> |
| | | <router-view /> |
| | | </div> |
| | |
| | | <vxe-grid |
| | | @filter-change="filterChanged" |
| | | @cell-dblclick="cellClickEvent" |
| | | style="max-height: 95%" |
| | | max-height="100%" |
| | | class="mytable-scrollbar" |
| | | ref="xGrid" |
| | | v-bind="gridOptions" |
| | |
| | | <!-- 下拉显示所有信息插槽--> |
| | | <template #content="{ row }"> |
| | | <ul class="expand-wrapper"> |
| | | <li v-for="(item,index) in gridOptions.columns" v-show="item.field!=undefined "> |
| | | <li v-for="(item,index) in gridOptions.columns" v-show="item.field!=undefined && index>9"> |
| | | <span style="font-weight: bold">{{item.title+': '}}</span> |
| | | <span>{{ row[item.field] }}</span> |
| | | </li> |
| | |
| | | <el-breadcrumb-item @click="changeRouter(2)" :class="indexFlag===2?'indexTag':''" :to="{ path: '/main/product/createProduct' }">创建</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 :to="{ path: '/main/product/test1' }">测试</el-breadcrumb-item> |
| | | <el-breadcrumb-item v-show="false" :to="{ path: '/main/product/test1' }">测试</el-breadcrumb-item> |
| | | </el-breadcrumb> |
| | | |
| | | </div> |
| | |
| | | data:null,//表格数据 |
| | | toolbarConfig: { |
| | | buttons: [], |
| | | import: false, |
| | | export: true, |
| | | print: true, |
| | | // import: false, |
| | | // export: true, |
| | | // print: true, |
| | | zoom: true, |
| | | custom: true |
| | | }, |