diff --git a/.env.development b/.env.development index 6e07116..b7dcd4d 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,10 @@ VITE_APP_TITLE = 煤科建管平台 VITE_APP_ENV = 'development' # 开发环境 -VITE_APP_BASE_API = 'http://192.168.110.149:8899' +#朱银 +# VITE_APP_BASE_API = 'http://192.168.110.149:8899' +#曾涛 +VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 无人机接口地址 diff --git a/src/views/contract/division/index.vue b/src/views/contract/division/index.vue index e6a10d1..57e007c 100644 --- a/src/views/contract/division/index.vue +++ b/src/views/contract/division/index.vue @@ -25,6 +25,7 @@ + diff --git a/src/views/contract/limitPrice/index.vue b/src/views/contract/limitPrice/index.vue index 9128276..8dfa223 100644 --- a/src/views/contract/limitPrice/index.vue +++ b/src/views/contract/limitPrice/index.vue @@ -44,7 +44,7 @@ - + import { useUserStoreHook } from '@/store/modules/user'; import { listBillofquantitiesLimitList, obtainAllVersionNumbers, sheetList, updatePrice, importExcelFile } from '@/api/contract/index'; -const { proxy } = getCurrentInstance() as ComponentInternalInstance; +const { proxy } = getCurrentInstance() as any; const userStore = useUserStoreHook(); const currentProject = computed(() => userStore.selectedProject); @@ -94,6 +94,7 @@ const options = ref([]); const sheets = ref([]); const tableData = ref([]); const isExpandAll = ref(false); +const reviewStatus = ref(''); //获取版本号 const getVersionNums = async () => { @@ -110,6 +111,7 @@ const getVersionNums = async () => { options.value = res.data; if (res.data.length > 0) { queryForm.value.versions = res.data[0].versions; + reviewStatus.value = res.data[0].status; getSheetName(); } else { @@ -179,14 +181,10 @@ const getTableData = async () => { }; const res = await listBillofquantitiesLimitList(params); if (res.code == 200) { - tableData.value = [res.data[0]]; + tableData.value = res.data; } } catch (error) { console.log(error); - ElMessage({ - message: '获取表格失败', - type: 'error' - }); tableData.value = []; loading.value = false; } finally { @@ -269,6 +267,20 @@ const handleExport = () => { `限价一览表${queryForm.value.sheet}.xlsx` ); }; +// 审批 +const clickApprovalSheet = () => { + proxy.$tab.closePage(proxy?.$route); + proxy?.$router.push({ + path: `/approval/contractLimitPrice/indexEdit`, + query: { + projectId: currentProject.value?.id, + versions: queryForm.value.versions, + sheet: queryForm.value.sheet, + type: 'update', + status: reviewStatus.value + } + }); +}; onUnmounted(() => { listeningProject(); }); diff --git a/src/views/out/outTable/index.vue b/src/views/out/outTable/index.vue index acf57f8..7b2510e 100644 --- a/src/views/out/outTable/index.vue +++ b/src/views/out/outTable/index.vue @@ -1,7 +1,7 @@ - - + + @@ -13,70 +13,66 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - + + diff --git a/src/views/tender/bidd/index.vue b/src/views/tender/bidd/index.vue index e476fe7..de2e21c 100644 --- a/src/views/tender/bidd/index.vue +++ b/src/views/tender/bidd/index.vue @@ -27,7 +27,7 @@ class="upload-demo" :http-request="importExcel" :show-file-list="false" - v-hasPermi="['tender:billofquantitiesLimitList:importExcelFile']" + v-hasPermi="['tender:tenderPlanLimitList:importExcelFile']" > 导入excel @@ -35,7 +35,7 @@ - 导出excel + 导出excel 审核 @@ -73,7 +73,7 @@ size="small" @click="handleSave(scope.row)" v-if="scope.row.quantity && scope.row.quantity != 0" - v-hasPermi="['tender:billofquantitiesLimitList:edit']" + v-hasPermi="['tender:tenderPlanLimitList:edit']" >确定 diff --git a/src/views/tender/bidd/indexEdit.vue b/src/views/tender/bidd/indexEdit.vue index e92d56a..148647c 100644 --- a/src/views/tender/bidd/indexEdit.vue +++ b/src/views/tender/bidd/indexEdit.vue @@ -19,23 +19,34 @@ 施工产值 - + + + + + + + + + + + + + + + - - - (scope.row.unitPrice = val)" - :precision="2" - :step="0.1" - :controls="false" - v-if="scope.row.quantity && scope.row.quantity != 0" - /> - - + {{ scope.row.price }} @@ -84,12 +95,10 @@ import SubmitVerify from '@/components/Process/submitVerify.vue'; import ApprovalRecord from '@/components/Process/approvalRecord.vue'; import ApprovalButton from '@/components/Process/approvalButton.vue'; import { StartProcessBo } from '@/api/workflow/workflowCommon/types'; -const { proxy } = getCurrentInstance() as ComponentInternalInstance; +const { proxy } = getCurrentInstance() as any; import { useUserStoreHook } from '@/store/modules/user'; const { design_change_reason_type } = toRefs(proxy?.useDict('design_change_reason_type')); -import { getKnowledgeDocument } from '@/api/design/technicalStandard'; -import { getConstructionValue } from '@/api/out/constructionValue'; -import { workScheduleListDetail } from '@/api/progress/plan'; +import { listBillofquantitiesLimitList } from '@/api/contract/index'; // 获取用户 store const userStore = useUserStoreHook(); // 从 store 中获取项目列表和当前选中的项目 @@ -98,6 +107,7 @@ const buttonLoading = ref(false); const loading = ref(true); //路由参数 const routeParams = ref>({}); + const flowCode = ref(''); const status = ref(''); const dialogVisible = reactive({ @@ -111,8 +121,8 @@ const approvalRecordRef = ref>(); //按钮组件 const flowCodeOptions = [ { - value: currentProject.value?.id + '_constructionValue', - label: '施工产值审批' + value: currentProject.value?.id + '_xianjiayilan', + label: '合约限价审核' } ]; @@ -131,19 +141,9 @@ const submitFormData = ref({ const taskVariables = ref>({}); const initFormData = { - id: undefined, - projectId: currentProject.value?.id, - matrixName: undefined, - progressCategoryName: undefined, - artificialNum: undefined, - planNum: undefined, - planDate: undefined, - uavNum: undefined, - confirmNum: undefined, - outValue: undefined, - reportDate: undefined, - reportDateId: undefined, - auditStatus: undefined + versions: '', + sheet: '', + status: '' }; const data = reactive({ form: { ...initFormData }, @@ -168,8 +168,16 @@ const getInfo = () => { loading.value = true; buttonLoading.value = false; nextTick(async () => { - const res = await getConstructionValue(routeParams.value.id); - Object.assign(form.value, res.data); + const res = await listBillofquantitiesLimitList({ + projectId: routeParams.value?.id, + versions: routeParams.value.versions, + sheet: routeParams.value.sheet + }); + console.log('res.data', res.data); + Object.assign(form.value, routeParams.value); + console.log('form', form.value); + tableData.value = res.data; + console.log('tableData', tableData.value); loading.value = false; buttonLoading.value = false; }); @@ -186,10 +194,10 @@ const submitFlow = async () => { dialogVisible.visible = false; }; //提交申请 -const handleStartWorkFlow = async (data: LeaveForm) => { +const handleStartWorkFlow = async (data: any) => { try { submitFormData.value.flowCode = flowCode.value; - submitFormData.value.businessId = data.id; + submitFormData.value.businessId = data.versions + '_xianjiayilan'; //流程变量 taskVariables.value = { // leave4/5 使用的流程变量 @@ -246,6 +254,8 @@ onMounted(() => { console.log('🚀 ~ proxy.$route.query:', proxy.$route.query); reset(); loading.value = false; + console.log(routeParams.value); + if (routeParams.value.type === 'update' || routeParams.value.type === 'view' || routeParams.value.type === 'approval') { getInfo(); } diff --git a/src/views/tender/plan/index.vue b/src/views/tender/plan/index.vue index 9574eec..914ce32 100644 --- a/src/views/tender/plan/index.vue +++ b/src/views/tender/plan/index.vue @@ -13,7 +13,7 @@ 搜索 重置 - 新增 + 新增 @@ -25,11 +25,10 @@ + - 查看文件 + 查看文件 @@ -51,6 +50,7 @@ value-format="YYYY-MM-DD" placeholder="选择时间" :disabled="scope.row.bidStatus == 1" + v-hasPermi="['tender:biddingPlan:edit']" /> @@ -68,6 +68,7 @@ :step="1" :controls="false" :disabled="scope.row.bidStatus == 1" + v-hasPermi="['tender:biddingPlan:edit']" /> @@ -79,7 +80,7 @@ link icon="FolderOpened" @click="handleSave(scope.row)" - v-hasPermi="['tender:segmentedIndicatorPlanning:edit']" + v-hasPermi="['tender:biddingPlan:uploadBiddingDocuments']" :disabled="scope.row.bidStatus == 1" >招标上传 @@ -88,7 +89,7 @@ link icon="FolderOpened" @click="handleWinTheBid(scope.row)" - v-hasPermi="['tender:segmentedIndicatorPlanning:edit']" + v-hasPermi="['tender:biddingPlan:uploadBiddingDocuments']" :disabled="scope.row.bidStatus == 1" >中标上传 @@ -101,7 +102,7 @@ icon="View" @click="handleDetail(scope.row)" :disabled="scope.row.bidStatus == 1" - v-hasPermi="['tender:segmentedIndicatorPlanning:getMore']" + v-hasPermi="['tender:biddingPlan:getMore']" >详情 @@ -111,7 +112,7 @@ icon="Delete" @click="delHandle(scope.row)" :disabled="scope.row.bidStatus == 1" - v-hasPermi="['tender:segmentedIndicatorPlanning:remove']" + v-hasPermi="['tender:biddingPlan:remove']" >删除 确定 @@ -232,7 +233,15 @@ 查看 - 删除 + 删除