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 fe7153c..f78dd09 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 c491091..090e53a 100644 --- a/src/views/contract/limitPrice/index.vue +++ b/src/views/contract/limitPrice/index.vue @@ -47,7 +47,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); @@ -97,6 +97,7 @@ const options = ref([]); const sheets = ref([]); const tableData = ref([]); const isExpandAll = ref(false); +const reviewStatus = ref(''); //获取版本号 const getVersionNums = async () => { @@ -113,6 +114,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 { @@ -138,11 +140,11 @@ const changeVersions = () => { //选择表名 const changeSheet = () => { - getTableData(); + getTableData(); }; //获取表名 -const getSheetName = async () => { +const getSheetName = async () => { try { const params = { projectId: currentProject.value?.id, @@ -182,14 +184,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 { @@ -273,16 +271,19 @@ const handleExport = () => { ); }; // 审批 -function clickApprovalSheet() { - proxy.$tab.closePage(proxy.$route); - proxy.$router.push({ +const clickApprovalSheet = () => { + proxy.$tab.closePage(proxy?.$route); + proxy?.$router.push({ path: `/approval/contractLimitPrice/indexEdit`, query: { - id: '', - type: 'update' + projectId: currentProject.value?.id, + versions: queryForm.value.versions, + sheet: queryForm.value.sheet, + type: 'update', + status: reviewStatus.value } }); -} +}; onUnmounted(() => { listeningProject(); }); diff --git a/src/views/contract/limitPrice/indexEdit.vue b/src/views/contract/limitPrice/indexEdit.vue index c4571f2..d4e32da 100644 --- a/src/views/contract/limitPrice/indexEdit.vue +++ b/src/views/contract/limitPrice/indexEdit.vue @@ -34,17 +34,25 @@ + + + - + - + + + + {{ scope.row.price }} + + @@ -88,10 +96,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 { detailsMaterialAndEquipmentApproval } from '@/api/design/billofQuantities/index'; +import { listBillofquantitiesLimitList } from '@/api/contract/index'; // 获取用户 store const userStore = useUserStoreHook(); // 从 store 中获取项目列表和当前选中的项目 @@ -100,6 +108,7 @@ const buttonLoading = ref(false); const loading = ref(true); //路由参数 const routeParams = ref>({}); + const flowCode = ref(''); const status = ref(''); const dialogVisible = reactive({ @@ -113,8 +122,8 @@ const approvalRecordRef = ref>(); //按钮组件 const flowCodeOptions = [ { - value: currentProject.value?.id + '_contractPriceLimit', - label: '合同限价审核' + value: currentProject.value?.id + '_xianjiayilan', + label: '合约限价审核' } ]; @@ -132,11 +141,9 @@ const submitFormData = ref({ const taskVariables = ref>({}); const initFormData = { - id: undefined, - fileName: undefined, - fileUrl: undefined, - status: undefined, - originalName: undefined + versions: '', + sheet: '', + status: '' }; const data = reactive({ form: { ...initFormData }, @@ -162,13 +169,16 @@ const getInfo = () => { loading.value = true; buttonLoading.value = false; nextTick(async () => { - const res = await detailsMaterialAndEquipmentApproval(routeParams.value.id); + 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, res.data); + Object.assign(form.value, routeParams.value); console.log('form', form.value); - - tableData.value = res.data.auditData; + tableData.value = res.data; + console.log('tableData', tableData.value); loading.value = false; buttonLoading.value = false; }); @@ -185,10 +195,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.versions; + submitFormData.value.businessId = data.versions + '_xianjiayilan'; //流程变量 taskVariables.value = { // leave4/5 使用的流程变量 @@ -244,6 +254,8 @@ onMounted(() => { routeParams.value = 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(); console.log('routeParams.value', routeParams.value); 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 8df76ed..540b9c8 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 @@ -70,7 +70,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/plan/index.vue b/src/views/tender/plan/index.vue index c378eea..4cf702f 100644 --- a/src/views/tender/plan/index.vue +++ b/src/views/tender/plan/index.vue @@ -14,7 +14,7 @@ 搜索 重置 - 新增 + 新增 @@ -26,11 +26,10 @@ + - 查看文件 + 查看文件 @@ -52,6 +51,7 @@ value-format="YYYY-MM-DD" placeholder="选择时间" :disabled="scope.row.bidStatus == 1" + v-hasPermi="['tender:biddingPlan:edit']" /> @@ -69,6 +69,7 @@ :step="1" :controls="false" :disabled="scope.row.bidStatus == 1" + v-hasPermi="['tender:biddingPlan:edit']" /> @@ -80,7 +81,7 @@ link icon="FolderOpened" @click="handleSave(scope.row)" - v-hasPermi="['tender:segmentedIndicatorPlanning:edit']" + v-hasPermi="['tender:biddingPlan:uploadBiddingDocuments']" :disabled="scope.row.bidStatus == 1" >招标上传 @@ -89,7 +90,7 @@ link icon="FolderOpened" @click="handleWinTheBid(scope.row)" - v-hasPermi="['tender:segmentedIndicatorPlanning:edit']" + v-hasPermi="['tender:biddingPlan:uploadBiddingDocuments']" :disabled="scope.row.bidStatus == 1" >中标上传 @@ -102,7 +103,7 @@ icon="View" @click="handleDetail(scope.row)" :disabled="scope.row.bidStatus == 1" - v-hasPermi="['tender:segmentedIndicatorPlanning:getMore']" + v-hasPermi="['tender:biddingPlan:getMore']" >详情 删除 确定 @@ -232,7 +233,15 @@ 查看 - 删除 + 删除