2022-06-08 14:51:11 +08:00
|
|
|
<template>
|
2023-02-04 10:49:03 +08:00
|
|
|
<!-- 表格形式的项目信息页面 -- 简易版 -->
|
2022-06-08 14:51:11 +08:00
|
|
|
<div class="extendInfo whiteBlock">
|
|
|
|
|
<vue-scroll style="width: 100%">
|
|
|
|
|
<div class="btn_wrap">
|
2024-05-01 00:06:15 +08:00
|
|
|
<el-button
|
2024-05-01 23:42:04 +08:00
|
|
|
v-permission="{key: 'xmkzxx_edit', menuPath: '/project/summary/extendInfo'}"
|
2024-05-01 00:06:15 +08:00
|
|
|
type="primary"
|
|
|
|
|
size="medium"
|
|
|
|
|
@click="editBtn">{{$t("message.companyDiagram.Table.edit")}}
|
|
|
|
|
</el-button>
|
2022-06-08 14:51:11 +08:00
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="custom_tab">
|
|
|
|
|
<div class="title">
|
2024-04-22 20:00:32 +08:00
|
|
|
{{ $t("message.extendInfo.projectExtension") }}
|
2022-06-08 14:51:11 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="flex4">
|
|
|
|
|
<div class="type_content">
|
2024-05-25 18:43:14 +08:00
|
|
|
<!-- 施工合同额 -->
|
2022-06-08 14:51:11 +08:00
|
|
|
<div class="flex3">
|
|
|
|
|
<span class="width_35">
|
2024-04-22 20:00:32 +08:00
|
|
|
{{ $t("message.extendInfo.contractPrice") }}
|
2022-06-08 14:51:11 +08:00
|
|
|
</span>
|
2023-02-04 10:49:03 +08:00
|
|
|
<span class="width_65">{{ projectDetail.contractPrice }}</span>
|
2022-06-08 14:51:11 +08:00
|
|
|
</div>
|
2024-05-25 18:43:14 +08:00
|
|
|
<!-- 总投资额(万元) -->
|
|
|
|
|
<div class="flex3">
|
|
|
|
|
<span class="width_35">
|
|
|
|
|
{{ $t("message.extendInfo.investmentPrice") }}
|
|
|
|
|
</span>
|
|
|
|
|
<span class="width_65">{{ projectDetail.contractPrice }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
<div class="flex3">
|
|
|
|
|
<span class="width_35">
|
2024-04-22 20:00:32 +08:00
|
|
|
{{ $t("message.extendInfo.contractSigning") }}
|
2022-06-08 14:51:11 +08:00
|
|
|
</span>
|
|
|
|
|
<span class="width_65">{{
|
|
|
|
|
projectDetail.contractSignTime
|
|
|
|
|
}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex3">
|
|
|
|
|
<span class="width_35">
|
2024-04-22 20:00:32 +08:00
|
|
|
{{ $t("message.extendInfo.contractProjectTime") }}
|
2022-06-08 14:51:11 +08:00
|
|
|
</span>
|
|
|
|
|
<span class="width_65 bg_color"
|
|
|
|
|
>{{ projectDetail.contractPeriodStartTime }} /
|
|
|
|
|
{{ projectDetail.contractPeriodEndTime }}</span
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex3">
|
|
|
|
|
<span class="width_35">
|
2024-04-22 20:00:32 +08:00
|
|
|
{{ $t("message.extendInfo.actualConstructionTime") }}
|
2022-06-08 14:51:11 +08:00
|
|
|
</span>
|
|
|
|
|
<span class="width_65"
|
|
|
|
|
>{{ projectDetail.realPeriodStartTime }} /
|
|
|
|
|
{{ projectDetail.realPeriodEndTime }}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex3">
|
|
|
|
|
<span class="width_35">
|
2024-04-22 20:00:32 +08:00
|
|
|
{{ $t("message.extendInfo.toryBurchOnSale") }}
|
2022-06-08 14:51:11 +08:00
|
|
|
</span>
|
|
|
|
|
<span class="width_65 bg_color">{{
|
|
|
|
|
projectDetail.bidWinner
|
|
|
|
|
}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex3">
|
|
|
|
|
<span class="width_35">
|
2024-04-22 20:00:32 +08:00
|
|
|
{{ $t("message.extendInfo.architect") }}
|
2022-06-08 14:51:11 +08:00
|
|
|
</span>
|
|
|
|
|
<span class="width_65">{{ projectDetail.designUnit }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex3">
|
2024-04-22 20:00:32 +08:00
|
|
|
<span class="width_35 bg_color">
|
|
|
|
|
{{ $t("message.extendInfo.ownersUnit") }}
|
2022-06-08 14:51:11 +08:00
|
|
|
</span>
|
2024-04-22 20:00:32 +08:00
|
|
|
<span class="width_65 bg_color" style="padding: 0 15px">{{
|
2022-06-08 14:51:11 +08:00
|
|
|
projectDetail.ownerUnit
|
|
|
|
|
}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
2023-02-04 10:49:03 +08:00
|
|
|
<div class="flex3" style="height: 120px">
|
2022-06-08 14:51:11 +08:00
|
|
|
<span class="width_35">
|
2024-04-22 20:00:32 +08:00
|
|
|
{{ $t("message.extendInfo.projectProfile") }}
|
2022-06-08 14:51:11 +08:00
|
|
|
</span>
|
|
|
|
|
<span
|
|
|
|
|
class="position"
|
|
|
|
|
style="padding: 0 15px; box-sizing: border-box"
|
|
|
|
|
>{{ projectDetail.projectOverview }}</span
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="type_content">
|
|
|
|
|
<div class="flex3">
|
|
|
|
|
<!-- <span class="width_35"></span> -->
|
|
|
|
|
<span class="width_65"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex3">
|
|
|
|
|
<!-- <span class="width_35"></span> -->
|
|
|
|
|
<span class="width_65"></span>
|
|
|
|
|
</div>
|
2024-05-25 18:43:14 +08:00
|
|
|
<div class="flex3">
|
|
|
|
|
<!-- <span class="width_35"></span> -->
|
|
|
|
|
<span class="width_65"></span>
|
|
|
|
|
</div>
|
2022-06-08 14:51:11 +08:00
|
|
|
<div class="flex3">
|
|
|
|
|
<span
|
|
|
|
|
class="width_35 bg_color"
|
|
|
|
|
style="width: 35%; height: 60px; border: none"
|
|
|
|
|
></span>
|
|
|
|
|
<span class="width_65 bg_color"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex3">
|
|
|
|
|
<!-- <span class="width_35"></span> -->
|
|
|
|
|
<span class="width_65"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex3">
|
|
|
|
|
<span class="width_35 border_l">
|
2024-04-22 20:00:32 +08:00
|
|
|
{{ $t("message.extendInfo.constructionUnit") }}
|
2022-06-08 14:51:11 +08:00
|
|
|
</span>
|
|
|
|
|
<span class="width_65 bg_color">{{
|
|
|
|
|
projectDetail.constructionUnit
|
|
|
|
|
}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex3">
|
|
|
|
|
<span class="width_35 border_l">
|
2024-04-22 20:00:32 +08:00
|
|
|
{{ $t("message.extendInfo.supervisingUnit") }}
|
2022-06-08 14:51:11 +08:00
|
|
|
</span>
|
|
|
|
|
<span class="width_65">{{ projectDetail.supervisorUnit }}</span>
|
|
|
|
|
</div>
|
2022-07-22 15:53:09 +08:00
|
|
|
<!-- <div class="flex3">
|
|
|
|
|
<span class="width_35 border_l">
|
|
|
|
|
{{'代建单位'}}
|
|
|
|
|
</span>
|
|
|
|
|
<span class="width_65">{{ projectDetail.supervisorUnit }}</span>
|
|
|
|
|
</div> -->
|
2022-06-08 14:51:11 +08:00
|
|
|
<div class="flex3">
|
2024-04-22 20:00:32 +08:00
|
|
|
<span class="width_35 border_l">
|
|
|
|
|
安全教育培训
|
|
|
|
|
</span>
|
2024-04-22 21:27:47 +08:00
|
|
|
<span class="width_65 bg_color">{{ projectDetail.eduCourseName }}</span>
|
2022-06-08 14:51:11 +08:00
|
|
|
</div>
|
2023-02-04 10:49:03 +08:00
|
|
|
<div class="flex3" style="height: 120px">
|
2022-06-08 14:51:11 +08:00
|
|
|
<span class=""></span>
|
|
|
|
|
<span class="width_65"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</vue-scroll>
|
|
|
|
|
<!-- 项目弹框 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
:modal-append-to-body="false"
|
|
|
|
|
class="projectDialog"
|
|
|
|
|
:title="projectDialogTitle"
|
|
|
|
|
:visible.sync="editProjectDialog"
|
|
|
|
|
width="700px"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
>
|
|
|
|
|
<div class="dialog_content" style="padding: 0 100px">
|
|
|
|
|
<el-form
|
|
|
|
|
ref="editProjectForm"
|
|
|
|
|
:model="editProjectForm"
|
2024-05-25 18:43:14 +08:00
|
|
|
label-width="140px"
|
2023-02-04 10:49:03 +08:00
|
|
|
:rules="editProjectFormRules"
|
|
|
|
|
size="medium"
|
2022-06-08 14:51:11 +08:00
|
|
|
>
|
2023-02-04 10:49:03 +08:00
|
|
|
<el-form-item
|
2022-06-08 14:51:11 +08:00
|
|
|
:label="$t('message.extendInfo.contractPrice')"
|
|
|
|
|
prop="contractPrice"
|
|
|
|
|
>
|
2023-06-27 14:20:11 +08:00
|
|
|
<el-input
|
|
|
|
|
type="number"
|
|
|
|
|
@change="checkValue()"
|
|
|
|
|
v-model="editProjectForm.contractPrice"
|
|
|
|
|
placeholder="请输入数字类型"
|
|
|
|
|
></el-input>
|
|
|
|
|
<!-- <el-input-number
|
|
|
|
|
type="number"
|
|
|
|
|
@change="checkValue()"
|
2023-02-04 10:49:03 +08:00
|
|
|
style="width: 100%"
|
|
|
|
|
v-model="editProjectForm.contractPrice"
|
|
|
|
|
:min="0"
|
|
|
|
|
:placeholder="$t('message.extendInfo.pleaseEnter')"
|
2023-06-27 14:20:11 +08:00
|
|
|
></el-input-number> -->
|
2022-06-08 14:51:11 +08:00
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item
|
|
|
|
|
:label="$t('message.extendInfo.contractSigning')"
|
|
|
|
|
prop="contractSignTime"
|
|
|
|
|
>
|
|
|
|
|
<el-date-picker
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
v-model="editProjectForm.contractSignTime"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
:placeholder="$t('message.extendInfo.optionDate')"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item
|
|
|
|
|
:label="$t('message.extendInfo.contractProjectTime')"
|
|
|
|
|
prop="contractPeriodEndTime"
|
|
|
|
|
>
|
2023-02-04 10:49:03 +08:00
|
|
|
<!-- 合同 -->
|
2022-06-08 14:51:11 +08:00
|
|
|
<el-date-picker
|
2023-06-27 14:20:11 +08:00
|
|
|
v-model="editProjectForm.contractTime"
|
2022-06-08 14:51:11 +08:00
|
|
|
type="daterange"
|
2023-02-04 10:49:03 +08:00
|
|
|
unlink-panels
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
clearable
|
2022-06-08 14:51:11 +08:00
|
|
|
value-format="yyyy-MM-dd"
|
2023-02-04 10:49:03 +08:00
|
|
|
format="yyyy-MM-dd"
|
|
|
|
|
@input="getContractTime"
|
2022-06-08 14:51:11 +08:00
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item
|
|
|
|
|
:label="$t('message.extendInfo.actualConstructionTime')"
|
|
|
|
|
prop="realPeriodStartTime"
|
|
|
|
|
>
|
2023-02-04 10:49:03 +08:00
|
|
|
<!-- 实际 -->
|
2022-06-08 14:51:11 +08:00
|
|
|
<el-date-picker
|
2023-02-07 10:10:36 +08:00
|
|
|
v-model="editProjectForm.realTime"
|
2023-02-04 10:49:03 +08:00
|
|
|
type="daterange"
|
|
|
|
|
unlink-panels
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
clearable
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
format="yyyy-MM-dd"
|
|
|
|
|
@input="getRealTime"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
<!-- <el-date-picker
|
2022-06-08 14:51:11 +08:00
|
|
|
style="width: 100%"
|
|
|
|
|
v-model="editProjectForm.realTime"
|
|
|
|
|
type="daterange"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
:range-separator="$t('message.extendInfo.to')"
|
|
|
|
|
:start-placeholder="$t('message.extendInfo.startDate')"
|
|
|
|
|
:end-placeholder="$t('message.extendInfo.endingDate')"
|
|
|
|
|
@change="getRealTime"
|
|
|
|
|
>
|
2023-02-04 10:49:03 +08:00
|
|
|
</el-date-picker> -->
|
2022-06-08 14:51:11 +08:00
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item
|
|
|
|
|
:label="$t('message.extendInfo.toryBurchOnSale')"
|
|
|
|
|
prop="bidWinner"
|
|
|
|
|
>
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="editProjectForm.bidWinner"
|
|
|
|
|
:placeholder="$t('message.extendInfo.pleaseEnter')"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
2023-02-04 10:49:03 +08:00
|
|
|
<el-form-item
|
|
|
|
|
:label="$t('message.extendInfo.architect')"
|
|
|
|
|
prop="designUnit"
|
|
|
|
|
>
|
2022-06-08 14:51:11 +08:00
|
|
|
<el-input
|
|
|
|
|
v-model="editProjectForm.designUnit"
|
|
|
|
|
:placeholder="$t('message.extendInfo.pleaseEnter')"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
2023-02-04 10:49:03 +08:00
|
|
|
<el-form-item
|
|
|
|
|
:label="$t('message.extendInfo.constructionUnit')"
|
|
|
|
|
prop="constructionUnit"
|
|
|
|
|
>
|
2022-06-08 14:51:11 +08:00
|
|
|
<el-input
|
|
|
|
|
v-model="editProjectForm.constructionUnit"
|
|
|
|
|
:placeholder="$t('message.extendInfo.pleaseEnter')"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
2023-02-04 10:49:03 +08:00
|
|
|
<el-form-item
|
|
|
|
|
:label="$t('message.extendInfo.supervisingUnit')"
|
|
|
|
|
prop="supervisorUnit"
|
|
|
|
|
>
|
2022-06-08 14:51:11 +08:00
|
|
|
<el-input
|
|
|
|
|
v-model="editProjectForm.supervisorUnit"
|
|
|
|
|
:placeholder="$t('message.extendInfo.pleaseEnter')"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
2023-02-04 10:49:03 +08:00
|
|
|
<el-form-item
|
|
|
|
|
:label="$t('message.extendInfo.ownersUnit')"
|
|
|
|
|
prop="ownerUnit"
|
|
|
|
|
>
|
2022-06-08 14:51:11 +08:00
|
|
|
<el-input
|
|
|
|
|
v-model="editProjectForm.ownerUnit"
|
|
|
|
|
:placeholder="$t('message.extendInfo.pleaseEnter')"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
2024-04-22 20:00:32 +08:00
|
|
|
<el-form-item label="安全教育培训" prop="educationId">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="editProjectForm.educationId"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in educationList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.eduCourseName"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
2023-02-04 10:49:03 +08:00
|
|
|
<el-form-item
|
|
|
|
|
:label="$t('message.extendInfo.projectProfile')"
|
|
|
|
|
prop="projectOverview"
|
|
|
|
|
>
|
2022-06-08 14:51:11 +08:00
|
|
|
<el-input
|
|
|
|
|
v-model="editProjectForm.projectOverview"
|
|
|
|
|
:placeholder="$t('message.extendInfo.pleaseEnter')"
|
|
|
|
|
type="textarea"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div class="dialog-footer">
|
|
|
|
|
<el-button
|
|
|
|
|
class="cancleBtn"
|
|
|
|
|
@click="editProjectDialog = false"
|
|
|
|
|
icon="el-icon-circle-close"
|
|
|
|
|
size="medium"
|
2024-04-22 20:00:32 +08:00
|
|
|
>{{ $t("message.companyDiagram.cancel") }}</el-button
|
2022-06-08 14:51:11 +08:00
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="el-icon-circle-check"
|
|
|
|
|
size="medium"
|
|
|
|
|
@click="onSubmit('editProjectForm')"
|
2024-04-22 20:00:32 +08:00
|
|
|
>{{ $t("message.companyDiagram.determine") }}</el-button
|
2022-06-08 14:51:11 +08:00
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<!-- 查看大图 -->
|
|
|
|
|
<el-dialog :modal-append-to-body="false" :visible.sync="bigImageDialog">
|
|
|
|
|
<img width="100%" :src="bigImageUrl" alt />
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
getProjectExtendInfoApi,
|
|
|
|
|
editProjectExtendApi,
|
2024-04-22 20:00:32 +08:00
|
|
|
getSafeEducationDataApi
|
2022-06-08 14:51:11 +08:00
|
|
|
} from "@/assets/js/api/baseInfo.js";
|
|
|
|
|
export default {
|
|
|
|
|
name: "extendInfo",
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
projectDialogTitle: this.$t("message.extendInfo.editProjectInfo"),
|
|
|
|
|
editProjectDialog: false,
|
|
|
|
|
editProjectForm: {
|
2023-02-07 10:10:36 +08:00
|
|
|
contractTime: ["", ""],
|
2022-06-08 14:51:11 +08:00
|
|
|
realTime: [],
|
|
|
|
|
contractSignTime: "",
|
|
|
|
|
contractPeriodEndTime: "",
|
|
|
|
|
contractPeriodStartTime: "",
|
|
|
|
|
realPeriodStartTime: "",
|
|
|
|
|
realPeriodEndTime: "",
|
|
|
|
|
bidWinner: "",
|
|
|
|
|
designUnit: "",
|
|
|
|
|
constructionUnit: "",
|
|
|
|
|
supervisorUnit: "",
|
|
|
|
|
ownerUnit: "",
|
|
|
|
|
projectOverview: "",
|
2024-04-22 20:00:32 +08:00
|
|
|
educationId: "",
|
2023-02-04 10:49:03 +08:00
|
|
|
contractPrice: "",
|
2022-06-08 14:51:11 +08:00
|
|
|
},
|
2024-04-22 20:00:32 +08:00
|
|
|
educationList: [],
|
2022-06-08 14:51:11 +08:00
|
|
|
editProjectFormRules: this.$t("message.extendInfo.editProjectFormRules"),
|
|
|
|
|
projectSn: "",
|
|
|
|
|
projectDetail: {},
|
|
|
|
|
bigImageDialog: false,
|
|
|
|
|
bigImageUrl: "",
|
|
|
|
|
provincesCityArr: [],
|
|
|
|
|
provincesCityList: [],
|
|
|
|
|
cascaderProps: {
|
|
|
|
|
label: "name",
|
|
|
|
|
children: "childrenlist",
|
|
|
|
|
value: "code",
|
|
|
|
|
},
|
|
|
|
|
showMap: false,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.projectSn = this.$store.state.projectSn;
|
|
|
|
|
this.getProjectExtendInfo();
|
2024-04-22 20:00:32 +08:00
|
|
|
this.getEducationListFn();
|
2022-06-08 14:51:11 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
2024-04-22 20:00:32 +08:00
|
|
|
getEducationListFn() {
|
|
|
|
|
let requestData = {
|
|
|
|
|
projectSn: this.projectSn,
|
|
|
|
|
pageSize: -1
|
|
|
|
|
}
|
|
|
|
|
getSafeEducationDataApi(requestData).then(res => {
|
|
|
|
|
console.log(res,'123测试520')
|
|
|
|
|
if(res.code == 200){
|
|
|
|
|
this.educationList = res.result.records;
|
|
|
|
|
} else {
|
|
|
|
|
this.educationList = [];
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2023-06-27 14:20:11 +08:00
|
|
|
checkValue() {
|
2024-04-22 20:00:32 +08:00
|
|
|
var value = "" + this.editProjectForm.contractPrice.toString();
|
2023-06-27 14:20:11 +08:00
|
|
|
value = value
|
2024-04-22 20:00:32 +08:00
|
|
|
.replace(/[^\d.]/g, "") // 清除“数字”和“.”以外的字符
|
|
|
|
|
.replace(/\.{2,}/g, ".") // 只保留第一个. 清除多余的
|
|
|
|
|
.replace(/^\./g, "") //保证第一个为数字而不是.
|
|
|
|
|
.replace(".", "$#$")
|
|
|
|
|
.replace(/\./g, "")
|
|
|
|
|
.replace("$#$", ".")
|
|
|
|
|
.replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3"); // 只能输入两个小数
|
|
|
|
|
if (value.indexOf(".") < 0 && value != "") {
|
2023-06-27 14:20:11 +08:00
|
|
|
// 以上已经过滤,此处控制的是如果没有小数点,首位不能为类似于 01、02的金额
|
|
|
|
|
value = parseFloat(value);
|
|
|
|
|
}
|
|
|
|
|
value = Number(value).toFixed(2); //不足补位
|
|
|
|
|
this.editProjectForm.contractPrice = value;
|
|
|
|
|
},
|
2022-06-08 14:51:11 +08:00
|
|
|
//获取列表信息
|
|
|
|
|
getProjectExtendInfo() {
|
|
|
|
|
let data = {
|
|
|
|
|
projectSn: this.projectSn,
|
|
|
|
|
};
|
|
|
|
|
getProjectExtendInfoApi(data).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.projectDetail = res.result
|
|
|
|
|
? JSON.parse(JSON.stringify(res.result))
|
|
|
|
|
: this.editProjectForm;
|
|
|
|
|
this.editProjectForm = res.result
|
|
|
|
|
? JSON.parse(JSON.stringify(res.result))
|
|
|
|
|
: this.editProjectForm;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 编辑按钮
|
|
|
|
|
editBtn() {
|
|
|
|
|
this.editProjectDialog = true;
|
|
|
|
|
if (this.editProjectForm.id) {
|
|
|
|
|
let data = JSON.parse(JSON.stringify(this.editProjectForm));
|
|
|
|
|
data.contractTime = [];
|
|
|
|
|
data.realTime = [];
|
|
|
|
|
this.editProjectForm = data;
|
|
|
|
|
this.editProjectForm.contractTime = [
|
|
|
|
|
data.contractPeriodStartTime,
|
|
|
|
|
data.contractPeriodEndTime,
|
|
|
|
|
];
|
|
|
|
|
this.editProjectForm.realTime = [
|
|
|
|
|
data.realPeriodStartTime,
|
|
|
|
|
data.realPeriodEndTime,
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//获取合同工期
|
|
|
|
|
getContractTime(value) {
|
|
|
|
|
if (value) {
|
|
|
|
|
this.editProjectForm.contractPeriodStartTime = value[0];
|
|
|
|
|
this.editProjectForm.contractPeriodEndTime = value[1];
|
|
|
|
|
} else {
|
|
|
|
|
this.editProjectForm.contractPeriodStartTime = "";
|
|
|
|
|
this.editProjectForm.contractPeriodEndTime = "";
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//获取实际工期
|
|
|
|
|
getRealTime(value) {
|
|
|
|
|
if (value) {
|
|
|
|
|
this.editProjectForm.realPeriodStartTime = value[0];
|
|
|
|
|
this.editProjectForm.realPeriodEndTime = value[1];
|
|
|
|
|
} else {
|
|
|
|
|
this.editProjectForm.realPeriodStartTime = "";
|
|
|
|
|
this.editProjectForm.realPeriodEndTime = "";
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onSubmit(formName) {
|
|
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
let data = this.editProjectForm;
|
|
|
|
|
data.projectSn = this.projectSn;
|
|
|
|
|
editProjectExtendApi(data).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
2023-02-04 10:49:03 +08:00
|
|
|
this.$message.success(
|
|
|
|
|
this.$t("message.extendInfo.modifySuccessfully")
|
|
|
|
|
);
|
2022-06-08 14:51:11 +08:00
|
|
|
this.editProjectDialog = false;
|
|
|
|
|
this.getProjectExtendInfo();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
console.log("error submit!!");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.flex {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
.flex2 {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
}
|
|
|
|
|
.flex3 {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
.flex4 {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
.flex5 {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
.extendInfo {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
// background: #ffffff;
|
|
|
|
|
padding: 15px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
.btn_wrap {
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
.custom_tab {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
border: 1px solid rgba(148, 148, 148, 0.5);
|
|
|
|
|
border-bottom: none;
|
2024-05-25 18:43:14 +08:00
|
|
|
margin-top: 23px;
|
2022-06-08 14:51:11 +08:00
|
|
|
// color: #333;
|
|
|
|
|
.title {
|
|
|
|
|
width: 100%;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
padding: 12px 20px;
|
|
|
|
|
border-bottom: 1px solid rgba(148, 148, 148, 0.5);
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
height: 60px;
|
|
|
|
|
background: #eeeeee;
|
2022-11-02 17:51:02 +08:00
|
|
|
line-height: 35px;
|
2022-06-08 14:51:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.type_content {
|
|
|
|
|
width: 50%;
|
|
|
|
|
div {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
// padding: 12px 0;
|
|
|
|
|
height: 60px;
|
|
|
|
|
// line-height: 60px;
|
|
|
|
|
// display: inline-flex;
|
|
|
|
|
// align-items: center;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
border-bottom: 1px solid rgba(148, 148, 148, 0.5);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.width_65 {
|
|
|
|
|
width: 65%;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
height: 100%;
|
|
|
|
|
padding: 0 15px;
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
}
|
|
|
|
|
.width_35 {
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 35%;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
border-right: 1px solid rgba(148, 148, 148, 0.5);
|
|
|
|
|
padding: 0 15px;
|
|
|
|
|
text-align: right;
|
|
|
|
|
background: rgba(235, 234, 234, 0.5);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.bg_color {
|
|
|
|
|
background: rgba(235, 234, 234, 0.5);
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
.border_l {
|
|
|
|
|
border-left: 1px solid rgba(148, 148, 148, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .el-dialog {
|
|
|
|
|
margin-top: 80px !important;
|
|
|
|
|
}
|
|
|
|
|
.avatar-uploader {
|
|
|
|
|
border: 1px dashed #d9d9d9;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
position: relative;
|
|
|
|
|
// overflow: hidden;
|
|
|
|
|
height: 178px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.avatar-uploader:hover {
|
|
|
|
|
border-color: #409eff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.avatar-uploader-icon {
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
color: #8c939d;
|
|
|
|
|
width: 178px;
|
|
|
|
|
height: 178px;
|
|
|
|
|
line-height: 178px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
|
width: 178px;
|
|
|
|
|
height: 178px;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.imgBox {
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
.el-icon-error {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: -10px;
|
|
|
|
|
top: -10px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.position {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
width: calc(100% - 17.5%);
|
|
|
|
|
z-index: 2;
|
|
|
|
|
height: 60px;
|
|
|
|
|
top: auto;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-04-22 20:00:32 +08:00
|
|
|
</style>
|