Commit 13b212c8 by sunhaiwei

修改物料清单页面

parent a92993c0
...@@ -6,7 +6,19 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; ...@@ -6,7 +6,19 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
export interface MesBaseBomPageParams extends BasicPageParams { export interface MesBaseBomPageParams extends BasicPageParams {
bommc: string; bommc: string;
cpid: string; bomsl: string;
bombb: string;
cpbh: string;
cpgg: string;
cpxh: string;
sfyy: string;
bz: string;
} }
/** /**
...@@ -17,7 +29,9 @@ export interface MesBaseBomPageModel { ...@@ -17,7 +29,9 @@ export interface MesBaseBomPageModel {
bommc: string; bommc: string;
cpmc: string; bomsl: string;
bombb: string;
cpbh: string; cpbh: string;
...@@ -25,9 +39,9 @@ export interface MesBaseBomPageModel { ...@@ -25,9 +39,9 @@ export interface MesBaseBomPageModel {
cpxh: string; cpxh: string;
bomsl: string; sfyy: string;
bombb: string; bz: string;
} }
/** /**
......
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
function customClick(item) { function customClick(item) {
if (item.key == 'confirm') { if (item.key == 'confirm') {
handleSubmit(); handleSubmit();
} else if (item.key == 'cancel' && props.formType !== 'normal') { } else if (item.key == 'cancel') {
handleClose(); handleClose();
closeModal(); closeModal();
} else if (item.key == 'reset') { } else if (item.key == 'reset') {
...@@ -163,4 +163,3 @@ ...@@ -163,4 +163,3 @@
</script> </script>
\ No newline at end of file
...@@ -6,15 +6,14 @@ export const permissionList = [ ...@@ -6,15 +6,14 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '物料名称', fieldName: '产品名称',
fieldId: 'bommc', fieldId: 'cpid',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
type: 'input', type: 'associate-popup',
key: '0bb6edfef8ac486482e02a6e650306e6', key: 'c42ef62f38e1445b89e5c3362ffd3af2',
children: [], children: [],
options: {}, options: {},
defaultValue: '',
}, },
{ {
required: true, required: true,
...@@ -23,7 +22,7 @@ export const permissionList = [ ...@@ -23,7 +22,7 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '物料数量', fieldName: '产品数量',
fieldId: 'bomsl', fieldId: 'bomsl',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
...@@ -40,7 +39,7 @@ export const permissionList = [ ...@@ -40,7 +39,7 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '物料版本', fieldName: 'BOM版本',
fieldId: 'bombb', fieldId: 'bombb',
isSubTable: false, isSubTable: false,
showChildren: true, showChildren: true,
...@@ -51,22 +50,6 @@ export const permissionList = [ ...@@ -51,22 +50,6 @@ export const permissionList = [
defaultValue: '', defaultValue: '',
}, },
{ {
required: true,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '产品',
fieldId: 'cpid',
isSubTable: false,
showChildren: true,
type: 'associate-popup',
key: 'c42ef62f38e1445b89e5c3362ffd3af2',
children: [],
options: {},
},
{
required: false, required: false,
view: true, view: true,
edit: false, edit: false,
...@@ -90,23 +73,6 @@ export const permissionList = [ ...@@ -90,23 +73,6 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '产品名称',
fieldId: 'cpmc',
isSubTable: false,
showChildren: true,
type: 'input',
key: 'db0bea5c2dbf4505833e67179e8618f3',
children: [],
options: {},
defaultValue: '',
},
{
required: false,
view: true,
edit: false,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '产品规格', fieldName: '产品规格',
fieldId: 'cpgg', fieldId: 'cpgg',
isSubTable: false, isSubTable: false,
...@@ -158,6 +124,23 @@ export const permissionList = [ ...@@ -158,6 +124,23 @@ export const permissionList = [
disabled: false, disabled: false,
isSaveTable: false, isSaveTable: false,
tableName: '', tableName: '',
fieldName: '产品名称',
fieldId: 'bommc',
isSubTable: false,
showChildren: true,
type: 'input',
key: 'b44ff861a87d45b5b264515d85935042',
children: [],
options: {},
defaultValue: '',
},
{
required: false,
view: true,
edit: true,
disabled: false,
isSaveTable: false,
tableName: '',
fieldName: '备注', fieldName: '备注',
fieldId: 'bz', fieldId: 'bz',
isSubTable: false, isSubTable: false,
......
...@@ -24,7 +24,14 @@ ...@@ -24,7 +24,14 @@
</template> </template>
</template> </template>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.componentType === 'switch'">
<a-switch
v-model:checked="record[column.dataIndex]"
:unCheckedValue="0"
:checkedValue="1"
:disabled="true"
/>
</template>
<template v-if="column.dataIndex === 'action'"> <template v-if="column.dataIndex === 'action'">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment