|
|
@ -15,16 +15,15 @@ const userStore = useUserStore() |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const Q1Rules = reactive({ |
|
|
|
customerCode: [required], |
|
|
|
costCode: [required], |
|
|
|
itemCode: [required], |
|
|
|
qty: [required], |
|
|
|
code: [required], |
|
|
|
priority: [required], |
|
|
|
claimAmount: [required], |
|
|
|
claimReason: [required], |
|
|
|
claimTime: [required], |
|
|
|
handleTime: [required] |
|
|
|
itemCode: [{ required: true, message: '请选择物料代码', trigger: 'change' }], |
|
|
|
customerCode: [{ required: true, message: '请选择客户代码', trigger: 'change' }], |
|
|
|
qty: [{ required: true, message: '请输入数量', trigger: 'change' }], |
|
|
|
claimAmount: [{ required: true, message: '请输入索赔金额', trigger: 'change' }], |
|
|
|
code: [{ required: true, message: '请选择缺陷代码', trigger: 'change' }], |
|
|
|
priority: [{ required: true, message: '请选择优先级', trigger: 'change' }], |
|
|
|
costCode: [{ required: true, message: '请选择选择成本中心代码', trigger: 'change' }], |
|
|
|
claimTime: [{ required: true, message: '请选择选择索赔日期', trigger: 'change' }], |
|
|
|
handleTime: [{ required: true, message: '请选择选择处理时间', trigger: 'change' }] |
|
|
|
}) |
|
|
|
|
|
|
|
export const Q1 = useCrudSchemas( |
|
|
@ -41,40 +40,23 @@ export const Q1 = useCrudSchemas( |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '状态', |
|
|
|
field: 'status', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.PUBLISHE_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isForm: false, |
|
|
|
isSearch: false, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '客户代码', |
|
|
|
field: 'customerCode', |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择客户代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '客户信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: CustomerApi.getCustomerPage, // 查询弹窗所需分页方法
|
|
|
|
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
|
|
|
|
searchField: 'itemCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '客户物料信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Customeritem.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: CustomeritemApi.getCustomeritemPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
@ -84,7 +66,7 @@ export const Q1 = useCrudSchemas( |
|
|
|
], |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'code', |
|
|
|
key: 'itemCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
@ -93,50 +75,59 @@ export const Q1 = useCrudSchemas( |
|
|
|
} |
|
|
|
] // 失去焦点校验参数
|
|
|
|
} |
|
|
|
}, |
|
|
|
isSearch: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
label: '物料名称', |
|
|
|
field: 'itemName', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
|
|
|
|
searchField: 'itemCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '客户物料信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Customeritem.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: CustomeritemApi.getCustomeritemPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'customerCode', |
|
|
|
value: 'customerCode', |
|
|
|
message: '请填写客户代码!', |
|
|
|
isMainValue: true |
|
|
|
label: '客户代码', |
|
|
|
field: 'customerCode', |
|
|
|
sort: 'custom', |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Select', |
|
|
|
componentProps: { |
|
|
|
options: [], |
|
|
|
optionsAlias: { |
|
|
|
labelField: 'customerCode', |
|
|
|
valueField: 'customerCode' |
|
|
|
}, |
|
|
|
filterable: true |
|
|
|
} |
|
|
|
], |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'itemCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true |
|
|
|
} |
|
|
|
] // 失去焦点校验参数
|
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '客户名称', |
|
|
|
field: 'customerName', |
|
|
|
sort: 'custom', |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -176,41 +167,18 @@ export const Q1 = useCrudSchemas( |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '编码', |
|
|
|
field: 'code', |
|
|
|
label: '标准成本价格', |
|
|
|
field: 'standardCostPrice', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.QMS_Q1_CODE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '优先级', |
|
|
|
field: 'priority', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.QUALITY_NOTIFICATION_PRIORITY, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: false, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '负责用户', |
|
|
|
field: 'responUser', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
value: userStore.getUser.nickname, |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
@ -232,6 +200,33 @@ export const Q1 = useCrudSchemas( |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '缺陷编码', |
|
|
|
field: 'code', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.QMS_Q1_CODE, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '优先级', |
|
|
|
field: 'priority', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.QUALITY_NOTIFICATION_PRIORITY, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: false, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '成本中心代码', |
|
|
@ -303,6 +298,19 @@ export const Q1 = useCrudSchemas( |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '负责用户', |
|
|
|
field: 'responUser', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm: true, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
value: userStore.getUser.nickname, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '处理时间', |
|
|
|
field: 'handleTime', |
|
|
@ -325,6 +333,24 @@ export const Q1 = useCrudSchemas( |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '状态', |
|
|
|
field: 'status', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.PUBLISHE_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isForm: false, |
|
|
|
isSearch: false, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '描述', |
|
|
|
field: 'desc', |
|
|
@ -392,8 +418,17 @@ export const Q1 = useCrudSchemas( |
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
type: 'daterange', |
|
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
|
table: { |
|
|
|
width: 130 |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
isTable: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|