diff --git a/src/api/supervision_device_entry.ts b/src/api/supervision_device_entry.ts
index 5590baf..b73b370 100644
--- a/src/api/supervision_device_entry.ts
+++ b/src/api/supervision_device_entry.ts
@@ -23,4 +23,14 @@ export function apiSupervisionDeviceEntryDelete(params: any) {
// 工程监理--设备进场详情
export function apiSupervisionDeviceEntryDetail(params: any) {
return request.get({ url: '/supervision_work.supervision_device_entry/detail', params })
-}
\ No newline at end of file
+}
+
+
+// 工程监理--设备进场详情
+export function apisupervision_device_entry_detail(params: any) {
+ return request.get({ url: '/supervision_work.supervision_device_entry_detail/lists', params })
+}
+
+export function apisupervision_device_entry_detail_delete(params: any) {
+ return request.post({ url: '/supervision_work.supervision_device_entry_detail/delete', params })
+}
diff --git a/src/api/supervision_diary.ts b/src/api/supervision_diary.ts
new file mode 100644
index 0000000..3d9b370
--- /dev/null
+++ b/src/api/supervision_diary.ts
@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 工程监理--监理日记列表
+export function apiSupervisionDiaryLists(params: any) {
+ return request.get({ url: '/supervision_work.supervision_diary/lists', params })
+}
+
+// 添加工程监理--监理日记
+export function apiSupervisionDiaryAdd(params: any) {
+ return request.post({ url: '/supervision_work.supervision_diary/add', params })
+}
+
+// 编辑工程监理--监理日记
+export function apiSupervisionDiaryEdit(params: any) {
+ return request.post({ url: '/supervision_work.supervision_diary/edit', params })
+}
+
+// 删除工程监理--监理日记
+export function apiSupervisionDiaryDelete(params: any) {
+ return request.post({ url: '/supervision_work.supervision_diary/delete', params })
+}
+
+// 工程监理--监理日记详情
+export function apiSupervisionDiaryDetail(params: any) {
+ return request.get({ url: '/supervision_work.supervision_diary/detail', params })
+}
\ No newline at end of file
diff --git a/src/api/supervision_entity_parallel_testing.ts b/src/api/supervision_entity_parallel_testing.ts
new file mode 100644
index 0000000..a2b03e8
--- /dev/null
+++ b/src/api/supervision_entity_parallel_testing.ts
@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 工程监理--实体平行检验列表
+export function apiSupervisionEntityParallelTestingLists(params: any) {
+ return request.get({ url: '/supervision_work.supervision_entity_parallel_testing/lists', params })
+}
+
+// 添加工程监理--实体平行检验
+export function apiSupervisionEntityParallelTestingAdd(params: any) {
+ return request.post({ url: '/supervision_work.supervision_entity_parallel_testing/add', params })
+}
+
+// 编辑工程监理--实体平行检验
+export function apiSupervisionEntityParallelTestingEdit(params: any) {
+ return request.post({ url: '/supervision_work.supervision_entity_parallel_testing/edit', params })
+}
+
+// 删除工程监理--实体平行检验
+export function apiSupervisionEntityParallelTestingDelete(params: any) {
+ return request.post({ url: '/supervision_work.supervision_entity_parallel_testing/delete', params })
+}
+
+// 工程监理--实体平行检验详情
+export function apiSupervisionEntityParallelTestingDetail(params: any) {
+ return request.get({ url: '/supervision_work.supervision_entity_parallel_testing/detail', params })
+}
\ No newline at end of file
diff --git a/src/api/supervision_material_entry.ts b/src/api/supervision_material_entry.ts
index 29362a9..cdac2f5 100644
--- a/src/api/supervision_material_entry.ts
+++ b/src/api/supervision_material_entry.ts
@@ -23,4 +23,14 @@ export function apiSupervisionMaterialEntryDelete(params: any) {
// 工程监理--材料进场详情
export function apiSupervisionMaterialEntryDetail(params: any) {
return request.get({ url: '/supervision_work.supervision_material_entry/detail', params })
-}
\ No newline at end of file
+}
+
+// 工程监理--材料进场详情
+export function apisupervision_material_entry_detail(params: any) {
+ return request.get({ url: '/supervision_work.supervision_material_entry_detail/lists', params })
+}
+
+export function apisupervision_material_entry_detail_delete(params: any) {
+ return request.post({ url: '/supervision_work.supervision_material_entry_detail/delete', params })
+}
+
diff --git a/src/api/supervision_material_equipment_info.ts b/src/api/supervision_material_equipment_info.ts
new file mode 100644
index 0000000..0f3cbd7
--- /dev/null
+++ b/src/api/supervision_material_equipment_info.ts
@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 工程监理--材料设备信息列表
+export function apiSupervisionMaterialEquipmentInfoLists(params: any) {
+ return request.get({ url: '/supervision_work.supervision_material_equipment_info/lists', params })
+}
+
+// 添加工程监理--材料设备信息
+export function apiSupervisionMaterialEquipmentInfoAdd(params: any) {
+ return request.post({ url: '/supervision_work.supervision_material_equipment_info/add', params })
+}
+
+// 编辑工程监理--材料设备信息
+export function apiSupervisionMaterialEquipmentInfoEdit(params: any) {
+ return request.post({ url: '/supervision_work.supervision_material_equipment_info/edit', params })
+}
+
+// 删除工程监理--材料设备信息
+export function apiSupervisionMaterialEquipmentInfoDelete(params: any) {
+ return request.post({ url: '/supervision_work.supervision_material_equipment_info/delete', params })
+}
+
+// 工程监理--材料设备信息详情
+export function apiSupervisionMaterialEquipmentInfoDetail(params: any) {
+ return request.get({ url: '/supervision_work.supervision_material_equipment_info/detail', params })
+}
\ No newline at end of file
diff --git a/src/api/supervision_meeting_minutes.ts b/src/api/supervision_meeting_minutes.ts
new file mode 100644
index 0000000..e2a63dd
--- /dev/null
+++ b/src/api/supervision_meeting_minutes.ts
@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 工程监理--会议纪要列表
+export function apiSupervisionMeetingMinutesLists(params: any) {
+ return request.get({ url: '/supervision_work.supervision_meeting_minutes/lists', params })
+}
+
+// 添加工程监理--会议纪要
+export function apiSupervisionMeetingMinutesAdd(params: any) {
+ return request.post({ url: '/supervision_work.supervision_meeting_minutes/add', params })
+}
+
+// 编辑工程监理--会议纪要
+export function apiSupervisionMeetingMinutesEdit(params: any) {
+ return request.post({ url: '/supervision_work.supervision_meeting_minutes/edit', params })
+}
+
+// 删除工程监理--会议纪要
+export function apiSupervisionMeetingMinutesDelete(params: any) {
+ return request.post({ url: '/supervision_work.supervision_meeting_minutes/delete', params })
+}
+
+// 工程监理--会议纪要详情
+export function apiSupervisionMeetingMinutesDetail(params: any) {
+ return request.get({ url: '/supervision_work.supervision_meeting_minutes/detail', params })
+}
\ No newline at end of file
diff --git a/src/api/supervision_notice.ts b/src/api/supervision_notice.ts
index 577e63d..93528f5 100644
--- a/src/api/supervision_notice.ts
+++ b/src/api/supervision_notice.ts
@@ -23,4 +23,14 @@ export function apiSupervisionNoticeDelete(params: any) {
// 工程监理--监理通知单详情
export function apiSupervisionNoticeDetail(params: any) {
return request.get({ url: '/supervision_work.supervision_notice/detail', params })
-}
\ No newline at end of file
+}
+
+// 工程监理--监理通知单详情
+export function apisupervision_notice_problem(params: any) {
+ return request.get({ url: '/supervision_work.supervision_notice_problem/lists', params })
+}
+
+// 工程监理--监理通知单详情
+export function apisupervision_notice_problem_delete(params: any) {
+ return request.post({ url: '/supervision_work.supervision_notice_problem/delete', params })
+}
diff --git a/src/api/supervision_problem.ts b/src/api/supervision_problem.ts
new file mode 100644
index 0000000..dc1b6e7
--- /dev/null
+++ b/src/api/supervision_problem.ts
@@ -0,0 +1,30 @@
+import request from '@/utils/request'
+
+// 工程监理--问题跟踪台账列表
+export function apiSupervisionProblemLists(params: any) {
+ return request.get({ url: '/supervision_work.supervision_problem/lists', params })
+}
+
+// 添加工程监理--问题跟踪台账
+export function apiSupervisionProblemAdd(params: any) {
+ return request.post({ url: '/supervision_work.supervision_problem/add', params })
+}
+
+// 编辑工程监理--问题跟踪台账
+export function apiSupervisionProblemEdit(params: any) {
+ return request.post({ url: '/supervision_work.supervision_problem/edit', params })
+}
+
+// 删除工程监理--问题跟踪台账
+export function apiSupervisionProblemDelete(params: any) {
+ return request.post({ url: '/supervision_work.supervision_problem/delete', params })
+}
+
+// 工程监理--问题跟踪台账详情
+export function apiSupervisionProblemDetail(params: any) {
+ return request.get({ url: '/supervision_work.supervision_problem/detail', params })
+}
+// 检查验收
+export function apisupervision_problem(params: any) {
+ return request.post({ url: '/supervision_work.supervision_problem/check', params })
+}
\ No newline at end of file
diff --git a/src/api/supervision_witness_sampling.ts b/src/api/supervision_witness_sampling.ts
index 5af333f..00d9d67 100644
--- a/src/api/supervision_witness_sampling.ts
+++ b/src/api/supervision_witness_sampling.ts
@@ -23,4 +23,16 @@ export function apiSupervisionWitnessSamplingDelete(params: any) {
// 工程监理--见证取样详情
export function apiSupervisionWitnessSamplingDetail(params: any) {
return request.get({ url: '/supervision_work.supervision_witness_sampling/detail', params })
-}
\ No newline at end of file
+}
+
+
+// 工程监理--见证取样列表
+export function apiSupervisionWitnessSamplingListsDetail(params: any) {
+ return request.get({ url: '/supervision_work.supervision_witness_sampling_detail/lists', params })
+}
+// 检验结果
+
+// 工程监理--见证取样列表
+export function apisupervision_witness_sampling_detail(params: any) {
+ return request.post({ url: '/supervision_work.supervision_witness_sampling_detail/check', params })
+}
diff --git a/src/api/supervision_work_contact.ts b/src/api/supervision_work_contact.ts
index 26c52d0..000b96d 100644
--- a/src/api/supervision_work_contact.ts
+++ b/src/api/supervision_work_contact.ts
@@ -23,4 +23,14 @@ export function apiSupervisionWorkContactDelete(params: any) {
// 工程监理--监理工作联系单详情
export function apiSupervisionWorkContactDetail(params: any) {
return request.get({ url: '/supervision_work.supervision_work_contact/detail', params })
-}
\ No newline at end of file
+}
+
+// 工程监理--监理工作联系单详情
+export function apisupervision_work_contact_problem(params: any) {
+ return request.get({ url: '/supervision_work.supervision_work_contact_problem/lists', params })
+}
+
+// 工程监理--监理工作联系单详情
+export function apisupervision_work_contact_problem_delete(params: any) {
+ return request.post({ url: '/supervision_work.supervision_work_contact_problem/delete', params })
+}
diff --git a/src/components/supervision_material_entry/index.vue b/src/components/supervision_material_entry/index.vue
new file mode 100644
index 0000000..4041731
--- /dev/null
+++ b/src/components/supervision_material_entry/index.vue
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/supervision_material_equipment_info/index.vue b/src/components/supervision_material_equipment_info/index.vue
new file mode 100644
index 0000000..86d143f
--- /dev/null
+++ b/src/components/supervision_material_equipment_info/index.vue
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/supervision_accept/index.vue b/src/views/supervision_accept/index.vue
index a551937..63c2df3 100644
--- a/src/views/supervision_accept/index.vue
+++ b/src/views/supervision_accept/index.vue
@@ -87,7 +87,7 @@
-
+
确定
取消
diff --git a/src/views/supervision_device_entry/edit.vue b/src/views/supervision_device_entry/edit.vue
index 236c0b7..822b925 100644
--- a/src/views/supervision_device_entry/edit.vue
+++ b/src/views/supervision_device_entry/edit.vue
@@ -1,32 +1,152 @@
@@ -34,8 +154,9 @@
diff --git a/src/views/supervision_diary/index.vue b/src/views/supervision_diary/index.vue
new file mode 100644
index 0000000..74ee966
--- /dev/null
+++ b/src/views/supervision_diary/index.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/supervision_entity_parallel_testing/edit.vue b/src/views/supervision_entity_parallel_testing/edit.vue
new file mode 100644
index 0000000..9553604
--- /dev/null
+++ b/src/views/supervision_entity_parallel_testing/edit.vue
@@ -0,0 +1,302 @@
+
+
+
+
+
diff --git a/src/views/supervision_entity_parallel_testing/index.vue b/src/views/supervision_entity_parallel_testing/index.vue
new file mode 100644
index 0000000..f1703da
--- /dev/null
+++ b/src/views/supervision_entity_parallel_testing/index.vue
@@ -0,0 +1,135 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/supervision_material_entry/edit.vue b/src/views/supervision_material_entry/edit.vue
index 777a594..2355500 100644
--- a/src/views/supervision_material_entry/edit.vue
+++ b/src/views/supervision_material_entry/edit.vue
@@ -1,38 +1,122 @@
@@ -40,7 +124,7 @@
diff --git a/src/views/supervision_material_equipment_info/index.vue b/src/views/supervision_material_equipment_info/index.vue
new file mode 100644
index 0000000..c11c821
--- /dev/null
+++ b/src/views/supervision_material_equipment_info/index.vue
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/supervision_meeting_minutes/edit.vue b/src/views/supervision_meeting_minutes/edit.vue
new file mode 100644
index 0000000..a3f73ef
--- /dev/null
+++ b/src/views/supervision_meeting_minutes/edit.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
diff --git a/src/views/supervision_meeting_minutes/index.vue b/src/views/supervision_meeting_minutes/index.vue
new file mode 100644
index 0000000..95e359e
--- /dev/null
+++ b/src/views/supervision_meeting_minutes/index.vue
@@ -0,0 +1,151 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/supervision_notice/edit.vue b/src/views/supervision_notice/edit.vue
index 8d77a48..1d75137 100644
--- a/src/views/supervision_notice/edit.vue
+++ b/src/views/supervision_notice/edit.vue
@@ -1,51 +1,88 @@
@@ -53,7 +90,7 @@
diff --git a/src/views/supervision_problem/index.vue b/src/views/supervision_problem/index.vue
new file mode 100644
index 0000000..0274447
--- /dev/null
+++ b/src/views/supervision_problem/index.vue
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 检查验收
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/supervision_test_blocks_specimens/edit.vue b/src/views/supervision_test_blocks_specimens/edit.vue
index 34c194d..42146c3 100644
--- a/src/views/supervision_test_blocks_specimens/edit.vue
+++ b/src/views/supervision_test_blocks_specimens/edit.vue
@@ -1,51 +1,114 @@
@@ -54,7 +117,9 @@
import type { FormInstance } from 'element-plus'
import Popup from '@/components/popup/index.vue'
import { apiSupervisionTestBlocksSpecimensAdd, apiSupervisionTestBlocksSpecimensEdit, apiSupervisionTestBlocksSpecimensDetail } from '@/api/supervision_test_blocks_specimens'
-import { timeFormat } from '@/utils/util'
+// import { timeFormat } from '@/utils/util'
+import { apisupervision_problem_delete, apisupervision_problem } from '@/api/supervision_inspection'
+
import type { PropType } from 'vue'
defineProps({
dictData: {
@@ -66,7 +131,16 @@ const emit = defineEmits(['success', 'close'])
const formRef = shallowRef
()
const popupRef = shallowRef>()
const mode = ref('add')
+const showDialog = ref(false)
+const showDialog2 = ref(false)
+const handleAvatarSuccess_four = (response: any) => {
+ Array.isArray(formData.annex) ? '' : formData.annex = []
+ // @ts-ignore
+ response.code != 0 ? formData.annex.push({ uri: response.data.uri, name: response.data.name }) : ElMessage.error(response.msg);
+};
+// 删除上传的文件
+const delFileFn = (index: number) => { formData.annex.splice(index, 1) }
// 弹窗标题
const popupTitle = computed(() => {
@@ -76,26 +150,64 @@ const popupTitle = computed(() => {
// 表单数据
const formData = reactive({
id: '',
- project_id: '',
+ project_id: 0,
+ project_name: '',
test_type: '',
code: '',
witness: '',
test_site: '',
company_id: '',
+ company_name: "",
start_date: '',
end_date: '',
test_result: '',
remark: '',
- annex: '',
+ annex: [],
create_user: '',
+ problem: [{
+ "problem_cate": '',
+ "problem_description": "",
+ "problem_name": ""
+ }]
})
+const handleAdd1 = () => {
+ formData.problem.push({
+ "problem_cate": '',
+ "problem_description": "",
+ "problem_name": ""
+ })
+}
+const handleDelete1 = async (row: any) => {
+ if (row.id) {
+ await apisupervision_problem_delete({ id: row.id })
+ const index = formData.problem.indexOf(row);
+ formData.problem.splice(index, 1);
+ } else {
+ const index = formData.problem.indexOf(row);
+ formData.problem.splice(index, 1);
+ }
+}
+
+const customEvent = (e) => {
+ formData.project_id = e.id
+ formData.project_name = e.project_name
+ showDialog.value = false
+ // formData.company_id = ''
+ // formData.company_name = ''
+
+}
+const customEvent1 = (e) => {
+ formData.company_id = e.id
+ formData.company_name = e.project_name
+ showDialog2.value = false
+}
// 表单验证
const formRules = reactive({
project_id: [{
required: true,
- message: '请输入项目id',
+ message: '请选择项目',
trigger: ['blur']
}],
test_type: [{
@@ -159,8 +271,10 @@ const setFormData = async (data: Record) => {
formData[key] = data[key]
}
}
-
-
+ apisupervision_problem({ data_id: formData.id }).then(res => {
+ formData.problem = res.lists
+ })
+
}
const getDetail = async (row: Record) => {
@@ -174,9 +288,9 @@ const getDetail = async (row: Record) => {
// 提交按钮
const handleSubmit = async () => {
await formRef.value?.validate()
- const data = { ...formData, }
- mode.value == 'edit'
- ? await apiSupervisionTestBlocksSpecimensEdit(data)
+ const data = { ...formData, }
+ mode.value == 'edit'
+ ? await apiSupervisionTestBlocksSpecimensEdit(data)
: await apiSupervisionTestBlocksSpecimensAdd(data)
popupRef.value?.close()
emit('success')
diff --git a/src/views/supervision_test_blocks_specimens/index.vue b/src/views/supervision_test_blocks_specimens/index.vue
index a7f15dd..59d0865 100644
--- a/src/views/supervision_test_blocks_specimens/index.vue
+++ b/src/views/supervision_test_blocks_specimens/index.vue
@@ -1,11 +1,7 @@
-
+
@@ -22,7 +18,8 @@
-
+
查询
@@ -31,57 +28,45 @@
-
+
新增
-
+
删除
-
+
-
+
-
+
-
-
-
+
编辑
-
+
删除
-
+
@@ -121,7 +106,7 @@ const handleSelectionChange = (val: any[]) => {
}
// 获取字典数据
-const { dictData } = useDictData('')
+const { dictData } = useDictData('accept_type,problem_cate')
// 分页相关
const { pager, getLists, resetParams, resetPage } = usePaging({
diff --git a/src/views/supervision_witness_sampling/edit.vue b/src/views/supervision_witness_sampling/edit.vue
index 7eab6e6..d003214 100644
--- a/src/views/supervision_witness_sampling/edit.vue
+++ b/src/views/supervision_witness_sampling/edit.vue
@@ -1,39 +1,106 @@
@@ -42,7 +109,9 @@
import type { FormInstance } from 'element-plus'
import Popup from '@/components/popup/index.vue'
import { apiSupervisionWitnessSamplingAdd, apiSupervisionWitnessSamplingEdit, apiSupervisionWitnessSamplingDetail } from '@/api/supervision_witness_sampling'
-import { timeFormat } from '@/utils/util'
+// import { timeFormat } from '@/utils/util'
+import { apisupervision_material_entry_detail, apisupervision_material_entry_detail_delete } from '@/api/supervision_material_entry'
+
import type { PropType } from 'vue'
defineProps({
dictData: {
@@ -54,7 +123,17 @@ const emit = defineEmits(['success', 'close'])
const formRef = shallowRef
()
const popupRef = shallowRef>()
const mode = ref('add')
+const showDialog = ref(false)
+const showDialog2 = ref(false)
+const handleAvatarSuccess_four = (response: any) => {
+ Array.isArray(formData.annex) ? '' : formData.annex = []
+ // @ts-ignore
+ response.code != 0 ? formData.annex.push({ uri: response.data.uri, name: response.data.name }) : ElMessage.error(response.msg);
+};
+
+// 删除上传的文件
+const delFileFn = (index: number) => { formData.annex.splice(index, 1) }
// 弹窗标题
const popupTitle = computed(() => {
@@ -65,21 +144,48 @@ const popupTitle = computed(() => {
const formData = reactive({
id: '',
project_id: '',
+ project_name: "",
material_entry_id: '',
+ material_entry_name: "",
code: '',
sampling_date: '',
witness: '',
sampler: '',
annex: '',
create_user: '',
-})
+ sampling_detail: [
+ {
+ "name": "",
+ "brand": "",
+ "model": "",
+ "unit": "",
+ "contract_brand": 0,
+ "entry_number": 0,
+ num: ""
+ }
+ ]
+})
+const customEvent = (e) => {
+ formData.project_id = e.id
+ formData.project_name = e.project_name
+ showDialog.value = false
+}
+const customEvent1 = async (e) => {
+ formData.project_name = e.project_name
+ formData.project_id = e.project_id
+ formData.material_entry_id = e.id
+ formData.material_entry_name = e.theme
+ showDialog2.value = false
+ let res = await apisupervision_material_entry_detail({ material_entry_id: e.id })
+ formData.sampling_detail = res.lists
+}
// 表单验证
const formRules = reactive({
- project_id: [{
+ project_name: [{
required: true,
- message: '请输入项目id',
+ message: '请选择项目',
trigger: ['blur']
}],
material_entry_id: [{
@@ -87,11 +193,6 @@ const formRules = reactive({
message: '请输入来源单据',
trigger: ['blur']
}],
- code: [{
- required: true,
- message: '请输入编号',
- trigger: ['blur']
- }],
sampling_date: [{
required: true,
message: '请输入取样日期',
@@ -107,11 +208,7 @@ const formRules = reactive({
message: '请输入取样人',
trigger: ['blur']
}],
- create_user: [{
- required: true,
- message: '请输入创建人',
- trigger: ['blur']
- }]
+
})
@@ -123,8 +220,9 @@ const setFormData = async (data: Record) => {
formData[key] = data[key]
}
}
-
-
+
+ let res = await apisupervision_material_entry_detail({ material_entry_id: formData.material_entry_id })
+ formData.sampling_detail = res.lists
}
const getDetail = async (row: Record) => {
@@ -138,9 +236,10 @@ const getDetail = async (row: Record) => {
// 提交按钮
const handleSubmit = async () => {
await formRef.value?.validate()
- const data = { ...formData, }
- mode.value == 'edit'
- ? await apiSupervisionWitnessSamplingEdit(data)
+ formData.sampling_detail = formData.sampling_detail.map(item => ({ material_entry_detail_id: item.id, num: item.num }))
+ const data = { ...formData, }
+ mode.value == 'edit'
+ ? await apiSupervisionWitnessSamplingEdit(data)
: await apiSupervisionWitnessSamplingAdd(data)
popupRef.value?.close()
emit('success')
diff --git a/src/views/supervision_witness_sampling/index.vue b/src/views/supervision_witness_sampling/index.vue
index aec5eb2..fad0cf7 100644
--- a/src/views/supervision_witness_sampling/index.vue
+++ b/src/views/supervision_witness_sampling/index.vue
@@ -1,14 +1,7 @@
-
-
-
-
+
@@ -34,47 +27,46 @@
新增
-
+
删除
-
-
-
+
+
+
+
+
-
-
-
+
编辑
-
+
删除
+
+
+
+ 明细
+
+
+
-
+
@@ -85,10 +77,12 @@
diff --git a/src/views/supervision_witness_sampling_detail/edit.vue b/src/views/supervision_witness_sampling_detail/edit.vue
new file mode 100644
index 0000000..63548ac
--- /dev/null
+++ b/src/views/supervision_witness_sampling_detail/edit.vue
@@ -0,0 +1,253 @@
+
+
+
+
+
diff --git a/src/views/supervision_witness_sampling_detail/index.vue b/src/views/supervision_witness_sampling_detail/index.vue
new file mode 100644
index 0000000..b826c5d
--- /dev/null
+++ b/src/views/supervision_witness_sampling_detail/index.vue
@@ -0,0 +1,130 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 检验结果
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/supervision_work_contact/edit.vue b/src/views/supervision_work_contact/edit.vue
index f8a110d..0a3060e 100644
--- a/src/views/supervision_work_contact/edit.vue
+++ b/src/views/supervision_work_contact/edit.vue
@@ -1,36 +1,74 @@
@@ -38,7 +76,7 @@