diff --git a/src/api/mes/reportpStore/index.ts b/src/api/mes/reportpStore/index.ts
new file mode 100644
index 000000000..adb29ea36
--- /dev/null
+++ b/src/api/mes/reportpStore/index.ts
@@ -0,0 +1,56 @@
+import request from '@/config/axios'
+
+export interface ReportpStoreVO {
+ status: string
+ remark: string
+ planDayCode: string
+ workBillNo: string
+ batchCode: string
+ reportUuid: string
+ itemBasicCode: string
+ itemCounts: number
+ itemUom: string
+ workstationCode: string
+ productCode: string
+}
+
+// 查询工序报工物料明细列表
+export const getReportpStorePage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/mes/reportp-store/senior', data })
+ } else {
+ return await request.get({ url: `/mes/reportp-store/page`, params })
+ }
+}
+
+// 查询工序报工物料明细详情
+export const getReportpStore = async (id: number) => {
+ return await request.get({ url: `/mes/reportp-store/get?id=` + id })
+}
+
+// 新增工序报工物料明细
+export const createReportpStore = async (data: ReportpStoreVO) => {
+ return await request.post({ url: `/mes/reportp-store/create`, data })
+}
+
+// 修改工序报工物料明细
+export const updateReportpStore = async (data: ReportpStoreVO) => {
+ return await request.put({ url: `/mes/reportp-store/update`, data })
+}
+
+// 删除工序报工物料明细
+export const deleteReportpStore = async (id: number) => {
+ return await request.delete({ url: `/mes/reportp-store/delete?id=` + id })
+}
+
+// 导出工序报工物料明细 Excel
+export const exportReportpStore = async (params) => {
+ return await request.download({ url: `/mes/reportp-store/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/mes/reportp-store/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/views/mes/orderDay/components/schedule.vue b/src/views/mes/orderDay/components/schedule.vue
index cc2d11429..88127320a 100644
--- a/src/views/mes/orderDay/components/schedule.vue
+++ b/src/views/mes/orderDay/components/schedule.vue
@@ -25,12 +25,12 @@
@@ -40,11 +40,11 @@
操作
-
+
@@ -395,13 +395,13 @@ const opensearchTable = (
) => {
//console.log("opensearchTable")
const _searchCondition = {}
- const _searchTableTitle = "工序查询"
- const _searchTableAllSchemas = ProcessSearch.allSchemas
- const _searchTablePage = ProcessApi.getProcessPage
+ // const _searchTableTitle = "工序查询"
+ // const _searchTableAllSchemas = ProcessSearch.allSchemas
+ // const _searchTablePage = ProcessApi.getProcessPage
searchTableRef.value.open(
- _searchTableTitle,
- _searchTableAllSchemas,
- _searchTablePage,
+ '工序查询',
+ ProcessSearch.allSchemas,
+ ProcessApi.getProcessPage,
'process',
'process',
true,
@@ -409,8 +409,9 @@ const opensearchTable = (
undefined,
_searchCondition,
false,
- true
+ //true
)
+
}
const publishPlan=()=>{
message.confirm("确认发布当前计划?","question").then(async () => {
diff --git a/src/views/mes/processroute/components/configDialog.vue b/src/views/mes/processroute/components/configDialog.vue
index cf4426e07..2193afb2d 100644
--- a/src/views/mes/processroute/components/configDialog.vue
+++ b/src/views/mes/processroute/components/configDialog.vue
@@ -194,7 +194,7 @@ const opensearchTable = (
undefined,
_searchCondition,
false,
- true
+ //true
)
}
//查询工序
diff --git a/src/views/mes/reportpStore/index.vue b/src/views/mes/reportpStore/index.vue
new file mode 100644
index 000000000..4dc9f9542
--- /dev/null
+++ b/src/views/mes/reportpStore/index.vue
@@ -0,0 +1,244 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.code }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/mes/reportpStore/reportpStore.data.ts b/src/views/mes/reportpStore/reportpStore.data.ts
new file mode 100644
index 000000000..8d2f4243e
--- /dev/null
+++ b/src/views/mes/reportpStore/reportpStore.data.ts
@@ -0,0 +1,111 @@
+import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
+import { dateFormatter } from '@/utils/formatTime'
+
+// 表单校验
+export const ReportpStoreRules = reactive({
+})
+
+export const ReportpStore = useCrudSchemas(reactive([
+ {
+ label: '状态',
+ field: 'status',
+ sort: 'custom',
+ isSearch: true,
+ form: {
+ component: 'Radio'
+ },
+ },
+ {
+ label: '并发乐观锁',
+ field: 'concurrencyStamp',
+ sort: 'custom',
+ isTable: false,
+ isSearch: true,
+ isForm: false,
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ isTable: false,
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ sort: 'custom',
+ formatter: dateFormatter,
+ isSearch: true,
+ search: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'daterange',
+ defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
+ }
+ },
+ isForm: false,
+ },
+ {
+ label: '计划编码',
+ field: 'planDayCode',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '工单编码',
+ field: 'workBillNo',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '批次编码',
+ field: 'batchCode',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '报工流水号',
+ field: 'reportUuid',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '物料编码',
+ field: 'itemBasicCode',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '物料数量',
+ field: 'itemCounts',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '物料单位',
+ field: 'itemUom',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '工位',
+ field: 'workstationCode',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '产品编码',
+ field: 'productCode',
+ sort: 'custom',
+ isSearch: true,
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ }
+ }
+]))
diff --git a/src/views/qms/inspection/inspectionJob/addForm.vue b/src/views/qms/inspection/inspectionJob/addForm.vue
index 74718db60..afc1724a3 100644
--- a/src/views/qms/inspection/inspectionJob/addForm.vue
+++ b/src/views/qms/inspection/inspectionJob/addForm.vue
@@ -62,9 +62,9 @@
-
+
-
+
@@ -317,7 +317,7 @@ const rules = ref({
'inspectionJobCharacteristicsUpdateReqVO.estimateCode': [
{ required: true, message: '请选择评估代码', trigger: 'blur' }
],
- 'inspectionJobCharacteristicsUpdateReqVO.inspectionQty': [
+ 'inspectionJobCharacteristicsUpdateReqVO.sampleQty': [
{ required: true, message: '请输入样品份数', trigger: 'blur' }
],
qualifiedQuantity: [{ required: true, message: '请输入选择结束时间', trigger: 'blur' }]
@@ -347,7 +347,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 0) {
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList = []
- for (let i = 0; i < parseInt(item.inspectionJobCharacteristicsUpdateReqVO.inspectionQty); i++) {
+ for (let i = 0; i < parseInt(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty); i++) {
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.push({
inspectionValue: '', //检验值
qualitativeCode: '', //定性字典项值
@@ -597,8 +597,8 @@ const submitForm = async () => {
(cur, key) => {
console.log(12,cur.qualifiedQuantity)
console.log(13,cur.unqualifiedQuantity)
- console.log(14,item.inspectionJobCharacteristicsUpdateReqVO.inspectionQty)
- return parseFloat(cur.qualifiedQuantity) + parseFloat(cur.unqualifiedQuantity) != parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.inspectionQty)
+ console.log(14,item.inspectionJobCharacteristicsUpdateReqVO.sampleQty)
+ return parseFloat(cur.qualifiedQuantity) + parseFloat(cur.unqualifiedQuantity) != parseFloat(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty)
}
)
)
@@ -783,7 +783,7 @@ const resultEntryMethodChange = (e, item) => {
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList = []
if (e == 0) {
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true
- for (let i = 0; i < parseInt(item.inspectionJobCharacteristicsUpdateReqVO.inspectionQty); i++) {
+ for (let i = 0; i < parseInt(item.inspectionJobCharacteristicsUpdateReqVO.sampleQty); i++) {
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.push({
inspectionValue: '', //检验值
qualitativeCode: '', //定性字典项值