diff --git a/.env.development b/.env.development index b59befd..d905b86 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VITE_APP_TITLE = 煤科建管平台 VITE_APP_ENV = 'development' # 开发环境 -VITE_APP_BASE_API = 'http://192.168.110.180:8899' +VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 无人机接口地址 diff --git a/src/App.vue b/src/App.vue index 1419fbe..c641c7d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -19,22 +19,3 @@ onMounted(() => { }); }); - diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 2fb0c49..913f847 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -96,7 +96,8 @@ const props = defineProps({ // 大小限制(MB) fileSize: propTypes.number.def(5), // 文件类型, 例如['png', 'jpg', 'jpeg'] - fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf', 'png', 'jpg', 'jpeg', 'zip']), + // fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf', 'png', 'jpg', 'jpeg', 'zip']), + fileType: propTypes.array.def(['pdf']), // 是否显示提示 isShowTip: propTypes.bool.def(true), //是否为施工人员上传 @@ -310,11 +311,6 @@ const uploadedSuccessfully = (res: any) => { emit('update:modelValue', listToString(fileList.value)); proxy?.$modal.closeLoading(); } - if (props.autoUpload && props.limit === fileList.value.length) { - fileUploadRef.value?.clearFiles(); - fileList.value = []; - emit('update:modelValue', ''); // 同步到外部 v-model - } // if (props.autoUpload && props.limit === fileList.value.length) { // fileUploadRef.value?.clearFiles(); // fileList.value = []; diff --git a/src/components/Process/approvalRecord.vue b/src/components/Process/approvalRecord.vue index f7e0e97..95a0560 100644 --- a/src/components/Process/approvalRecord.vue +++ b/src/components/Process/approvalRecord.vue @@ -31,6 +31,7 @@ label="运行时长" width="140" :show-overflow-tooltip="true" + :sort-method="sortTime" sortable align="center" > @@ -114,6 +115,25 @@ const handleDownload = (ossId: string) => { proxy?.$download.oss(ossId); }; +// 解析时间字符串,返回秒数 +function parseTimeStr(str: string): number { + let total = 0; + const minMatch = str.match(/(\d+)分钟/); + const secMatch = str.match(/(\d+)秒/); + + if (minMatch) total += parseInt(minMatch[1]) * 60; + if (secMatch) total += parseInt(secMatch[1]); + return total; +} + +// 排序函数,根据时间字符串解析后的秒数排序 +function sortTime(a: any, b: any) { + console.log(a, b); + return a.runDurationNum - b.runDurationNum; + + // return parseTimeStr(a.runDuration) - parseTimeStr(b.runDuration); +} + /** * 对外暴露子组件方法 */ diff --git a/src/components/Process/submitVerify.vue b/src/components/Process/submitVerify.vue index ab58fbf..03000a9 100644 --- a/src/components/Process/submitVerify.vue +++ b/src/components/Process/submitVerify.vue @@ -4,8 +4,8 @@ 站内信 - 邮件 - 短信 + 邮件 + 短信 diff --git a/src/views/materials/appointment/index.vue b/src/views/materials/appointment/index.vue index 3af5ac1..cad7e11 100644 --- a/src/views/materials/appointment/index.vue +++ b/src/views/materials/appointment/index.vue @@ -10,7 +10,7 @@ @click="isDisabled = false" class="px-8 py-2.5 transition-all duration-300 font-medium" v-if="isDisabled" - v-hasPermi="['cailiaoshebei:purchaseUser:addOrUpdate']" + v-hasPermi="['ailiaoshebei:purchaseUser:byProject']" > 点击编辑 @@ -38,11 +38,16 @@ @click="submitForm" icon="Check" class="px-8 py-2.5 transition-all duration-300 transform hover:scale-105 bg-blue-500 hover:bg-blue-600 text-white font-medium" - v-hasPermi="['cailiaoshebei:purchaseUser:addOrUpdate']" + v-hasPermi="['ailiaoshebei:purchaseUser:byProject']" > 确认提交 - + 重置 diff --git a/src/views/materials/batchPlan/index.vue b/src/views/materials/batchPlan/index.vue index b9ef3fc..fb9ae9b 100644 --- a/src/views/materials/batchPlan/index.vue +++ b/src/views/materials/batchPlan/index.vue @@ -21,7 +21,7 @@ > - 修改 + 修改 - 审核 + 审核 @@ -82,7 +86,7 @@ - + @@ -139,9 +143,9 @@ - + @@ -232,7 +236,8 @@ const initFormData: any = { name: undefined, specification: undefined, unit: undefined, - quantity: undefined, + suppliespriceId: undefined, + demandQuantity: undefined, qs: undefined, arrivalTime: undefined, remark: undefined @@ -289,7 +294,7 @@ const selectName = (val: any, row: any) => { row.specification = selected.specification; row.unit = selected.unit; row.qs = selected.qs; - row.quantity = selected.quantity; + row.demandQuantity = selected.quantity; row.remark = selected.remark; row.arrivalTime = selected.arrivalTime; } @@ -328,7 +333,7 @@ const addRow = () => { name: undefined, specification: undefined, unit: undefined, - quantity: undefined, + demandQuantity: undefined, qs: undefined, arrivalTime: undefined, remark: undefined @@ -352,7 +357,9 @@ const reset = () => { name: undefined, specification: undefined, unit: undefined, - quantity: undefined, + suppliespriceId: undefined, + + demandQuantity: undefined, qs: undefined, arrivalTime: undefined, remark: undefined @@ -398,7 +405,7 @@ const handleUpdata = () => { }, {}); }); - console.log(form.value); + console.log(form.value.planList); }); dialog.visible = true; dialog.title = '修改物资-需求'; diff --git a/src/views/materials/cailiaoshebei/index.vue b/src/views/materials/cailiaoshebei/index.vue index bf945a9..97cee79 100644 --- a/src/views/materials/cailiaoshebei/index.vue +++ b/src/views/materials/cailiaoshebei/index.vue @@ -58,10 +58,20 @@ @@ -125,7 +135,9 @@ > - 审核 + 审核 diff --git a/src/views/materials/materialsEquipment/materialIssue/index.vue b/src/views/materials/materialsEquipment/materialIssue/index.vue index dffe178..c0c360f 100644 --- a/src/views/materials/materialsEquipment/materialIssue/index.vue +++ b/src/views/materials/materialsEquipment/materialIssue/index.vue @@ -26,8 +26,8 @@ - 搜索 - 重置 + 搜索 + 重置 diff --git a/src/views/materials/materialsEquipment/materialReceive/index.vue b/src/views/materials/materialsEquipment/materialReceive/index.vue index 7e975bf..5e45156 100644 --- a/src/views/materials/materialsEquipment/materialReceive/index.vue +++ b/src/views/materials/materialsEquipment/materialReceive/index.vue @@ -23,8 +23,9 @@ - 搜索 - 重置 + 搜索 + + 重置 @@ -183,7 +184,7 @@ :prop="`itemList.${index}.acceptedQuantity`" :rules="{ required: true, message: '验收数量不能为空', trigger: 'blur' }" > - + diff --git a/src/views/materials/materialsEquipment/materialReceive/word/index.vue b/src/views/materials/materialsEquipment/materialReceive/word/index.vue index fac7c7e..d717d19 100644 --- a/src/views/materials/materialsEquipment/materialReceive/word/index.vue +++ b/src/views/materials/materialsEquipment/materialReceive/word/index.vue @@ -81,10 +81,10 @@ 是否附带以下随机资料
- (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 }} 份 + (1) 合格证 {{ formData.certCount ? formData.certCount : 0 }} 份 + (2) 出厂报告 {{ formData.reportCount ? formData.reportCount : 0 }} 份 + (3) 技术资料文件 {{ formData.techDocCount ? formData.techDocCount : 0 }} 份 + (4) 厂家资质文件 {{ formData.licenseCount ? formData.licenseCount : 0 }} 份
diff --git a/src/views/materials/materialsInventory/index.vue b/src/views/materials/materialsInventory/index.vue index c7c4562..b6adb46 100644 --- a/src/views/materials/materialsInventory/index.vue +++ b/src/views/materials/materialsInventory/index.vue @@ -8,8 +8,9 @@ - 搜索 - 重置 + 搜索 + + 重置 diff --git a/src/views/materials/orderEquipment/index.vue b/src/views/materials/orderEquipment/index.vue index 70f8c3b..e8abf10 100644 --- a/src/views/materials/orderEquipment/index.vue +++ b/src/views/materials/orderEquipment/index.vue @@ -47,13 +47,15 @@ plain icon="Check" @click="submitForm" - v-hasPermi="['cailiaoshebei:cailiaoshebei:delete']" + v-hasPermi="['cailiaoshebei:materialsorder:modifyTheOrderForm']" >保存 - 审核 + 审核
- 分享 + 分享 diff --git a/src/views/materials/orderMaterials/index.vue b/src/views/materials/orderMaterials/index.vue index 9612746..18f0ee2 100644 --- a/src/views/materials/orderMaterials/index.vue +++ b/src/views/materials/orderMaterials/index.vue @@ -65,7 +65,12 @@ diff --git a/src/views/materials/repertory/index.vue b/src/views/materials/repertory/index.vue index 240a584..5a06175 100644 --- a/src/views/materials/repertory/index.vue +++ b/src/views/materials/repertory/index.vue @@ -8,8 +8,9 @@ - 搜索 - 重置 + 搜索 + + 重置 diff --git a/src/views/materials/repertoryDetails/index.vue b/src/views/materials/repertoryDetails/index.vue index 9a22002..e4a076a 100644 --- a/src/views/materials/repertoryDetails/index.vue +++ b/src/views/materials/repertoryDetails/index.vue @@ -8,56 +8,34 @@ - 搜索 - 重置 + 搜索 + + 重置 - - - - - - \ No newline at end of file + diff --git a/src/views/materials/usageMaterials/material/indexSon.vue b/src/views/materials/usageMaterials/material/indexSon.vue index 6f228b2..79d28b7 100644 --- a/src/views/materials/usageMaterials/material/indexSon.vue +++ b/src/views/materials/usageMaterials/material/indexSon.vue @@ -1,8 +1,24 @@ \ No newline at end of file + routeParams.value = proxy.$route.query; + console.log('routeParams.value', routeParams.value); + materialsUsageDetails1(); +}); + diff --git a/src/views/out/constructionValue/index.vue b/src/views/out/constructionValue/index.vue index 555c353..ff6efb9 100644 --- a/src/views/out/constructionValue/index.vue +++ b/src/views/out/constructionValue/index.vue @@ -208,7 +208,20 @@ const data = reactive>({ artificialNum: [{ required: true, message: '人工填报数量不能为空', trigger: 'blur' }], reportDateId: [{ required: true, message: '上报日期不能为空', trigger: 'blur' }], uavNum: [{ required: true, message: '无人机识别数量不能为空', trigger: 'blur' }], - confirmNum: [{ required: true, message: '确认数量不能为空', trigger: 'blur' }], + confirmNum: [ + { required: true, message: '确认数量不能为空', trigger: 'blur' }, + { + validator: (rule: any, value: any, callback: any) => { + // 判断是否整数 + if (!/^\d+$/.test(value)) { + callback(new Error('请输入整数')); + } else { + callback(); + } + }, + trigger: 'blur' + } + ], outValue: [{ required: true, message: '产值不能为空', trigger: 'blur' }] } }); diff --git a/src/views/progress/progressCategory/index.vue b/src/views/progress/progressCategory/index.vue index 7e92e55..6ff7948 100644 --- a/src/views/progress/progressCategory/index.vue +++ b/src/views/progress/progressCategory/index.vue @@ -73,7 +73,7 @@