样式调整

menu_style
zhangdi 3 months ago
parent 110f158b7f
commit ea58d8eec8
  1. 58
      src/views/productionSchedulingPlan/productPlan.vue
  2. 26
      src/views/productionSchedulingPlan/productRlue.vue

@ -5,7 +5,7 @@
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
@refresh-change="refreshChange" @on-load="onLoad"> @refresh-change="refreshChange" @on-load="onLoad">
<template #menu-left> <template #menu-left>
<el-button type="danger" icon="el-icon-delete" v-if="permission.role_delete" plain size="small" <el-button type="danger" icon="el-icon-delete" v-if="permission.role_delete" plain
@click="handleDelete"> @click="handleDelete">
</el-button> </el-button>
<!-- <el-upload :auto-upload="false" :show-file-list="false" action="action" :on-change="handleChange" <!-- <el-upload :auto-upload="false" :show-file-list="false" action="action" :on-change="handleChange"
@ -18,27 +18,27 @@
</template> </template>
<template #poCode="{ row }"> <template #poCode="{ row }">
<el-text type="primary" size="small">{{ row.poCode }}</el-text> <el-text type="primary" size="medium">{{ row.poCode }}</el-text>
</template> </template>
<template #prodIdent="{row}"> <template #prodIdent="{row}">
<el-tag size="small">{{ row.prodIdent }}</el-tag> <el-tag size="medium">{{ row.prodIdent }}</el-tag>
</template> </template>
<template #curStatusText="{ row }"> <template #curStatusText="{ row }">
<el-tag v-if="row.curStatusText == '已派工'" size="small">{{ row.curStatusText }}</el-tag> <el-tag v-if="row.curStatusText == '已派工'" size="medium">{{ row.curStatusText }}</el-tag>
<el-tag class="ml-2" type="success" v-if="row.curStatusText == '已完工'" size="small"> {{ row.curStatusText }}</el-tag> <el-tag class="ml-2" type="success" v-if="row.curStatusText == '已完工'" size="medium"> {{ row.curStatusText }}</el-tag>
<el-tag class="ml-2" type="info" v-if="row.curStatusText == '已关闭'" size="small">{{ row.curStatusText }}</el-tag> <el-tag class="ml-2" type="info" v-if="row.curStatusText == '已关闭'" size="medium">{{ row.curStatusText }}</el-tag>
<el-tag class="ml-2" type="warning" v-if="row.curStatusText == '加工中'" size="small">{{ row.curStatusText }}</el-tag> <el-tag class="ml-2" type="warning" v-if="row.curStatusText == '加工中'" size="medium">{{ row.curStatusText }}</el-tag>
<el-tag class="ml-2" type="danger" v-if="row.curStatusText == '已退回'" size="small">{{ row.curStatusText }}</el-tag> <el-tag class="ml-2" type="danger" v-if="row.curStatusText == '已退回'" size="medium">{{ row.curStatusText }}</el-tag>
</template> </template>
<template #menu="{ row }"> <template #menu="{ row }">
<el-button type="primary" text plain style="border: 0; background-color: transparent !important" <el-button type="primary" text plain style="border: 0; background-color: transparent !important"
size="small" @click.stop="updateLog(row)" icon="el-icon-view">查看工艺路线 size="medium" @click.stop="updateLog(row)" icon="el-icon-view">查看工艺路线
</el-button> </el-button>
<el-button type="primary" text plain style="border: 0; background-color: transparent !important" <el-button type="primary" text plain style="border: 0; background-color: transparent !important"
size="small" @click.stop="updateLog(row)" icon="el-icon-reading">分批 size="medium" @click.stop="updateLog(row)" icon="el-icon-reading">分批
</el-button> </el-button>
<el-button type="primary" text plain style="border: 0; background-color: transparent !important" <el-button type="primary" text plain style="border: 0; background-color: transparent !important"
size="small" @click.stop="updateLog(row)" icon="el-icon-remove">关闭 size="medium" @click.stop="updateLog(row)" icon="el-icon-remove">关闭
</el-button> </el-button>
</template> </template>
</avue-crud> </avue-crud>
@ -88,7 +88,7 @@ export default {
}, },
option: { option: {
tip: false, tip: false,
size: 'small', size: 'medium',
simplePage: true, simplePage: true,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,
@ -103,7 +103,7 @@ export default {
editBtnText: '修改', editBtnText: '修改',
labelWidth: 120, labelWidth: 120,
searchLabelWidth: 100, searchLabelWidth: 100,
menuWidth: 300, menuWidth: 330,
dialogWidth: 900, dialogWidth: 900,
dialogClickModal: false, dialogClickModal: false,
searchEnter: true, searchEnter: true,
@ -117,7 +117,7 @@ export default {
{ {
label: '计划单号', label: '计划单号',
prop: 'poCode', prop: 'poCode',
search: true, search: false,
sortable: true, sortable: true,
width: 150, width: 150,
span: 12, span: 12,
@ -132,7 +132,7 @@ export default {
{ {
label: '零件号', label: '零件号',
prop: 'partCode', prop: 'partCode',
search: true, search: false,
sortable: true, sortable: true,
width: 150, width: 150,
span: 12, span: 12,
@ -147,7 +147,7 @@ export default {
{ {
label: '产品型号', label: '产品型号',
prop: 'productType', prop: 'productType',
search: true, search: false,
sortable: true, sortable: true,
disabled: true, disabled: true,
width: 120, width: 120,
@ -163,7 +163,7 @@ export default {
{ {
label: '名称', label: '名称',
prop: 'partName', prop: 'partName',
search: true, search: false,
sortable: true, sortable: true,
disabled: true, disabled: true,
span: 12, span: 12,
@ -179,7 +179,7 @@ export default {
{ {
label: '镀种', label: '镀种',
prop: 'plate', prop: 'plate',
search: true, search: false,
sortable: true, sortable: true,
disabled: true, disabled: true,
span: 12, span: 12,
@ -194,7 +194,7 @@ export default {
{ {
label: '镀种小类', label: '镀种小类',
prop: 'plate', prop: 'plate',
search: true, search: false,
sortable: true, sortable: true,
width: 120, width: 120,
display: false, display: false,
@ -225,7 +225,7 @@ export default {
{ {
label: '使用部门', label: '使用部门',
prop: 'useDept', prop: 'useDept',
search: true, search: false,
sortable: true, sortable: true,
disabled: true, disabled: true,
width: 120, width: 120,
@ -272,7 +272,7 @@ export default {
{ {
label: '需求交期', label: '需求交期',
prop: 'demandDate', prop: 'demandDate',
search: true, search: false,
sortable: true, sortable: true,
width: 150, width: 150,
span: 12, span: 12,
@ -288,7 +288,7 @@ export default {
{ {
label: '计划员', label: '计划员',
prop: 'planUser', prop: 'planUser',
search: true, search: false,
sortable: true, sortable: true,
width: 120, width: 120,
span: 12, span: 12,
@ -464,6 +464,14 @@ export default {
// display: false, // display: false,
// }, // },
{
label: '关键字',
prop: 'serchTxt',
search: true,
sortable: true,
searchPlaceholder: '关键字模糊搜索',
span: 12,
},
], ],
}, },
@ -690,7 +698,7 @@ export default {
this.data = [ this.data = [
{ {
"alreadyBranchQty": 5.0, "alreadyBranchQty": 5.0,
"bsPlatingSmall": { "bsPlatingmedium": {
"bpsId": 4, "bpsId": 4,
"bpsName": "小类04", "bpsName": "小类04",
"bsWorkCenter": { "bsWorkCenter": {
@ -941,7 +949,7 @@ export default {
}, },
{ {
"alreadyBranchQty": 5.0, "alreadyBranchQty": 5.0,
"bsPlatingSmall": { "bsPlatingmedium": {
"bpsId": 6, "bpsId": 6,
"bpsName": "小类06", "bpsName": "小类06",
"bsWorkCenter": { "bsWorkCenter": {
@ -1192,7 +1200,7 @@ export default {
}, },
{ {
"alreadyBranchQty": 3.0, "alreadyBranchQty": 3.0,
"bsPlatingSmall": { "bsPlatingmedium": {
"bpsId": 5, "bpsId": 5,
"bpsName": "小类05", "bpsName": "小类05",
"bsWorkCenter": { "bsWorkCenter": {

@ -4,9 +4,10 @@
@row-del="rowDel" @search-change="searchChange" @search-reset="searchReset" @row-del="rowDel" @search-change="searchChange" @search-reset="searchReset"
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
@refresh-change="refreshChange" @on-load="onLoad"> @refresh-change="refreshChange" @on-load="onLoad">
<template #menu-left> <template #menu-left>
<el-button type="danger" icon="el-icon-delete" v-if="permission.role_delete" plain @click="handleDelete" <el-button type="danger" icon="el-icon-delete" v-if="permission.role_delete" plain @click="handleDelete"
size="small"> >
</el-button> </el-button>
<!-- <el-button type="primary" @click="handleGet">下载模版</el-button> --> <!-- <el-button type="primary" @click="handleGet">下载模版</el-button> -->
<!-- <el-upload :auto-upload="false" :show-file-list="false" action="action" :on-change="handleChange" <!-- <el-upload :auto-upload="false" :show-file-list="false" action="action" :on-change="handleChange"
@ -31,7 +32,7 @@
<template #menu="{ row }"> <template #menu="{ row }">
<el-button type="primary" text icon="el-icon-tickets" plain <el-button type="primary" text icon="el-icon-tickets" plain
style="border: 0; background-color: transparent !important" @click.stop="updateLog(row)" style="border: 0; background-color: transparent !important" @click.stop="updateLog(row)"
size="small">修改记录 size="medium">修改记录
</el-button> </el-button>
</template> </template>
</avue-crud> </avue-crud>
@ -55,8 +56,8 @@
</el-tabs> </el-tabs>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="box = false" size="small"> </el-button> <el-button @click="box = false" size="medium"> </el-button>
<el-button type="primary" @click="submit" size="small"> </el-button> <el-button type="primary" @click="submit" size="medium"> </el-button>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>
@ -68,7 +69,7 @@
</avue-crud> </avue-crud>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="updateVisible = false" size="small"> </el-button> <el-button @click="updateVisible = false" size="medium"> </el-button>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>
@ -129,7 +130,7 @@ export default {
selection: true, selection: true,
viewBtn: true, viewBtn: true,
labelWidth: 120, labelWidth: 120,
searchLabelWidth: 60, searchLabelWidth: 100,
menuWidth: 350, menuWidth: 350,
dialogWidth: 600, dialogWidth: 600,
dialogClickModal: false, dialogClickModal: false,
@ -139,6 +140,7 @@ export default {
index: false, index: false,
searchShowBtn: false, searchShowBtn: false,
column: [ column: [
{ {
label: '规则ID', label: '规则ID',
prop: 'rlueId', prop: 'rlueId',
@ -198,7 +200,7 @@ export default {
{ {
label: '状态', label: '状态',
prop: 'rlueStatus', prop: 'rlueStatus',
search: true, search: false,
sortable: true, sortable: true,
span: 12, span: 12,
rules: [ rules: [
@ -223,11 +225,19 @@ export default {
}, },
], ],
}, },
{
label: '关键字',
prop: 'serchTxt',
search: true,
sortable: true,
searchPlaceholder: '关键字模糊搜索',
span: 12,
},
], ],
}, },
optionLog: { optionLog: {
size: 'small', size: 'medium',
tip: false, tip: false,
simplePage: true, simplePage: true,
searchShow: false, searchShow: false,

Loading…
Cancel
Save