|
|
@ -10,30 +10,30 @@ import { Q1 } from '@/views/qms/inspectionQ1/inspectionQ1.data' |
|
|
|
import * as SupplieritemApi from '@/api/wms/supplieritem' |
|
|
|
import { Supplieritem } from '@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data' |
|
|
|
|
|
|
|
import * as SupplierApi from '@/api/wms/supplier' |
|
|
|
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' |
|
|
|
|
|
|
|
import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' |
|
|
|
import { PurchasereceiptRecordDetail } from '@/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data' |
|
|
|
|
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
|
|
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
const userStore = useUserStore() |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const Q2Rules = reactive({ |
|
|
|
number: [required], |
|
|
|
supplierCode: [required], |
|
|
|
itemCode: [required], |
|
|
|
purchaseReceiptNumber: [required], |
|
|
|
qty: [required], |
|
|
|
code: [required], |
|
|
|
priority: [required], |
|
|
|
claimAmount: [required], |
|
|
|
costCode: [required], |
|
|
|
claimTime: [required], |
|
|
|
handleTime: [required], |
|
|
|
available: [required], |
|
|
|
concurrencyStamp: [required] |
|
|
|
itemCode: [{ required: true, message: '请选择供应商物料代码', trigger: 'change' }], |
|
|
|
supplierCode: [{ required: true, message: '请选择供应商代码', trigger: 'change' }], |
|
|
|
purchaseReceiptNumber: [{ required: true, message: '请选择采购收货单号', trigger: 'change' }], |
|
|
|
claimTime: [{ required: true, message: '请选择索赔日期', trigger: 'change' }], |
|
|
|
lightItemCode: [{ required: true, message: '请选择整灯物料代码', trigger: 'change' }], |
|
|
|
lightQty: [{ required: true, message: '请选择整灯数量', trigger: 'change' }], |
|
|
|
code: [{ required: true, message: '请选择缺陷代码', trigger: 'change' }], |
|
|
|
priority: [{ required: true, message: '请选择优先级', trigger: 'change' }], |
|
|
|
claimMultiple: [{ required: true, message: '请选择索赔倍数', trigger: 'change' }], |
|
|
|
claimAmount: [{ required: true, message: '请输入索赔金额', trigger: 'change' }], |
|
|
|
costCode: [{ required: true, message: '请选择选择成本中心代码', trigger: 'change' }], |
|
|
|
cashierEmail: [{ required: true, message: '请选择选择出纳邮件地址', trigger: 'change' }], |
|
|
|
handleTime: [{ required: true, message: '请选择选择处理时间', trigger: 'change' }] |
|
|
|
}) |
|
|
|
|
|
|
|
export const Q2 = useCrudSchemas( |
|
|
@ -50,7 +50,7 @@ export const Q2 = useCrudSchemas( |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料代码', |
|
|
|
label: '供应商物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
@ -72,6 +72,11 @@ export const Q2 = useCrudSchemas( |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'type', |
|
|
|
value: 'Q2', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
verificationParams: [ |
|
|
@ -88,7 +93,7 @@ export const Q2 = useCrudSchemas( |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料名称', |
|
|
|
label: '供应商物料名称', |
|
|
|
field: 'itemName', |
|
|
|
sort: 'custom', |
|
|
|
dictClass: 'string', |
|
|
@ -97,6 +102,9 @@ export const Q2 = useCrudSchemas( |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
@ -113,6 +121,9 @@ export const Q2 = useCrudSchemas( |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Select', |
|
|
|
componentProps: { |
|
|
@ -132,6 +143,9 @@ export const Q2 = useCrudSchemas( |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
@ -154,6 +168,7 @@ export const Q2 = useCrudSchemas( |
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
disabled: true, |
|
|
|
multiple: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择采购收货记录单号', // 输入框占位文本
|
|
|
|
searchField: 'number', // 查询弹窗赋值字段
|
|
|
@ -206,64 +221,73 @@ export const Q2 = useCrudSchemas( |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '数量', |
|
|
|
field: 'qty', |
|
|
|
label: '整灯物料代码', |
|
|
|
field: 'lightItemCode', |
|
|
|
sort: 'custom', |
|
|
|
isTable: true, |
|
|
|
isSearch: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 2 |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '物料基础信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'type', |
|
|
|
value: 'CCP', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'lightItemCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true |
|
|
|
} |
|
|
|
] // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单位', |
|
|
|
field: 'uom', |
|
|
|
label: '整灯物料名称', |
|
|
|
field: 'lightItemName', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '标准成本价格', |
|
|
|
field: 'standardCostPrice', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '索赔金额', |
|
|
|
field: 'claimAmount', |
|
|
|
label: '整灯数量', |
|
|
|
field: 'lightQty', |
|
|
|
sort: 'custom', |
|
|
|
isTable: false, |
|
|
|
isTable: true, |
|
|
|
isSearch: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
@ -303,6 +327,60 @@ export const Q2 = useCrudSchemas( |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '索赔倍数', |
|
|
|
field: 'claimMultiple', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.QMS_CLAIM_MULTIPLE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
isSearch: false, |
|
|
|
table: { |
|
|
|
width: 100 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: {} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '标准成本价格', |
|
|
|
field: 'standardCostPrice', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '索赔金额', |
|
|
|
field: 'claimAmount', |
|
|
|
sort: 'custom', |
|
|
|
isTable: false, |
|
|
|
isSearch: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 2 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '其他索赔描述', |
|
|
|
field: 'otherClaimDesc', |
|
|
@ -328,7 +406,7 @@ export const Q2 = useCrudSchemas( |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -350,39 +428,35 @@ export const Q2 = useCrudSchemas( |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '成本中心代码', |
|
|
|
field: 'costCode', |
|
|
|
label: '抛账金额', |
|
|
|
field: 'disbursementAmount', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isTable: false, |
|
|
|
isForm: true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择成本中心', // 输入框占位文本
|
|
|
|
searchField: 'costcentreCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '成本中心信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: QadCostcentre.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: QadCostcentreApi.getQadCostcentrePage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'costcentreCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true |
|
|
|
} |
|
|
|
] // 失去焦点校验参数
|
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '剩余金额', |
|
|
|
field: 'remainingAmount', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -430,6 +504,57 @@ export const Q2 = useCrudSchemas( |
|
|
|
}, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '成本中心代码', |
|
|
|
field: 'costCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isTable: false, |
|
|
|
isForm: true, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择成本中心', // 输入框占位文本
|
|
|
|
searchField: 'costcentreCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '成本中心信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: QadCostcentre.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: QadCostcentreApi.getQadCostcentrePage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'costcentreCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true |
|
|
|
} |
|
|
|
] // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '出纳邮件地址', |
|
|
|
field: 'cashierEmail', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
table: { |
|
|
|
width: '150' |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Input', |
|
|
|
componentProps: {} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '负责用户', |
|
|
|
field: 'responUser', |
|
|
|