+
设计验证表
@@ -165,24 +165,18 @@ const handleShowInfo = async (value: string | number) => {
// 日期格式化方法
const dateFormat = (date: string | Date | null): string => {
if (!date) return '';
-
// 处理字符串类型的日期
if (typeof date === 'string') {
date = new Date(date);
}
-
// 检查日期是否有效
if (isNaN(date.getTime())) {
return '';
}
-
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
- const hours = String(date.getHours()).padStart(2, '0');
- const minutes = String(date.getMinutes()).padStart(2, '0');
-
- return `${year}-${month}-${day} ${hours}:${minutes}`;
+ return `${year}年${month}月${day}日`;
};
// 获取详情
diff --git a/src/views/design/volumeCatalog/index.vue b/src/views/design/volumeCatalog/index.vue
index 13c6ff9..ac55b85 100644
--- a/src/views/design/volumeCatalog/index.vue
+++ b/src/views/design/volumeCatalog/index.vue
@@ -47,6 +47,8 @@
+
+
@@ -55,8 +57,6 @@
-
-
@@ -68,6 +68,7 @@
查看文件
+
@@ -100,7 +101,7 @@
-
+
@@ -95,8 +95,8 @@ const { t } = useI18n();
const loginForm = ref
({
tenantId: '000000',
- username: 'admin',
- password: 'admin123',
+ username: '',
+ password: '',
rememberMe: false,
code: '',
uuid: ''
diff --git a/src/views/materials/materialsEquipment/materialReceive/index.vue b/src/views/materials/materialsEquipment/materialReceive/index.vue
index 7e975bf..cfb3839 100644
--- a/src/views/materials/materialsEquipment/materialReceive/index.vue
+++ b/src/views/materials/materialsEquipment/materialReceive/index.vue
@@ -62,7 +62,7 @@
-
+
@@ -183,7 +183,7 @@
:prop="`itemList.${index}.acceptedQuantity`"
:rules="{ required: true, message: '验收数量不能为空', trigger: 'blur' }"
>
-
+
@@ -235,11 +235,16 @@
-
+
+
+ {{ dict.label }}
+
+
+
@@ -317,7 +322,7 @@ const getInitFormData = () => {
techDocCountFileId: undefined,
licenseCount: undefined,
licenseCountFileId: undefined,
- storageType: [],
+ storageType: '',
remark: undefined,
docId: undefined,
docCode: undefined,
@@ -425,12 +430,6 @@ const handleUpdate = async (row?: MaterialReceiveVO) => {
const _id = row?.id || ids.value[0];
const res = await getMaterialReceive(_id);
Object.assign(form.value, res.data);
- if (form.value.storageType && form.value.storageType.length) {
- form.value.storageType = form.value.storageType.split(',');
- } else {
- form.value.storageType = [];
- }
-
// 为每个条目添加监听
form.value.itemList.forEach((_, index) => {
watchItemChanges(index);
@@ -445,11 +444,10 @@ const submitForm = () => {
materialReceiveFormRef.value?.validate(async (valid: boolean) => {
if (valid) {
buttonLoading.value = true;
- form.value.storageType = form.value.storageType.join(',');
if (form.value.id) {
- await updateMaterialReceive(form.value).finally(() => (buttonLoading.value = false));
+ await updateMaterialReceive({ ...form.value }).finally(() => (buttonLoading.value = false));
} else {
- await addMaterialReceive(form.value).finally(() => (buttonLoading.value = false));
+ await addMaterialReceive({ ...form.value }).finally(() => (buttonLoading.value = false));
}
proxy?.$modal.msgSuccess('操作成功');
dialog.visible = false;
diff --git a/src/views/materials/materialsEquipment/materialReceive/word/index.vue b/src/views/materials/materialsEquipment/materialReceive/word/index.vue
index fac7c7e..01c096a 100644
--- a/src/views/materials/materialsEquipment/materialReceive/word/index.vue
+++ b/src/views/materials/materialsEquipment/materialReceive/word/index.vue
@@ -82,9 +82,9 @@
是否附带以下随机资料
(1) 合格证 {{ formData.certCountFile ? formData.certCountFile.length : 0 }} 份
- (2) 出厂报告 {{ formData.reportCountFileId ? formData.reportCountFileId.length : 0 }} 份
- (3) 技术资料文件 {{ formData.techDocCountFileId ? formData.techDocCountFileId.length : 0 }} 份
- (4) 厂家资质文件 {{ formData.licenseCountFileId ? formData.licenseCountFileId.length : 0 }} 份
+ (2) 出厂报告 {{ formData.reportCountFileId ? formData.reportCountFile.length : 0 }} 份
+ (3) 技术资料文件 {{ formData.techDocCountFileId ? formData.techDocCountFile.length : 0 }} 份
+ (4) 厂家资质文件 {{ formData.licenseCountFileId ? formData.licenseCountFile.length : 0 }} 份
diff --git a/src/views/materials/purchaseDoc/index.vue b/src/views/materials/purchaseDoc/index.vue
index 8927128..835fbf8 100644
--- a/src/views/materials/purchaseDoc/index.vue
+++ b/src/views/materials/purchaseDoc/index.vue
@@ -333,6 +333,9 @@ const data = reactive({
},
rules: {
id: [{ required: true, message: '主键ID不能为空', trigger: 'blur' }],
+ docCode: [{ required: true, message: '采购单编号不能为空', trigger: 'blur' }],
+ planId: [{ required: true, message: '需求计划不能为空', trigger: 'blur' }],
+ mrpBaseId: [{ required: true, message: '需求批次号不能为空', trigger: 'blur' }],
// 电话号码验证
technicalDirectorTel: [
{ required: true, message: '请输入电话', trigger: 'blur' },
diff --git a/src/views/materials/purchaseDoc/indexEdit.vue b/src/views/materials/purchaseDoc/indexEdit.vue
index c3683c8..62555ad 100644
--- a/src/views/materials/purchaseDoc/indexEdit.vue
+++ b/src/views/materials/purchaseDoc/indexEdit.vue
@@ -296,7 +296,7 @@ const submitCallback = async () => {
};
//审批
const approvalVerifyOpen = async () => {
- submitVerifyRef.value.openDialog(routeParams.value.taskId, true, routeParams.value.businessId);
+ submitVerifyRef.value.openDialog(routeParams.value.taskId, false, routeParams.value.businessId);
// submitVerifyRef.value.openDialog(routeParams.value.taskId);
};
// 图纸上传成功之后 开始提交
diff --git a/src/views/register.vue b/src/views/register.vue
index 0433e96..74a3b8e 100644
--- a/src/views/register.vue
+++ b/src/views/register.vue
@@ -67,7 +67,7 @@