flx: 修改基础信息 合作单位
This commit is contained in:
parent
888d751aed
commit
39d74e1727
@ -173,8 +173,8 @@ if (process.env.NODE_ENV == "development") {
|
|||||||
// axios.defaults.baseURL = 'http://192.168.34.221:28888/' //郭圣雄本地
|
// axios.defaults.baseURL = 'http://192.168.34.221:28888/' //郭圣雄本地
|
||||||
// axios.defaults.baseURL = 'http://192.168.34.221:28889/' //郭圣雄本地
|
// axios.defaults.baseURL = 'http://192.168.34.221:28889/' //郭圣雄本地
|
||||||
// axios.defaults.baseURL = "http://192.168.34.221:9111/"; //郭圣雄本地
|
// axios.defaults.baseURL = "http://192.168.34.221:9111/"; //郭圣雄本地
|
||||||
// axios.defaults.baseURL = 'http://192.168.34.155:19111/' //彭洁本地
|
axios.defaults.baseURL = 'http://192.168.34.155:19111/' //彭洁本地
|
||||||
axios.defaults.baseURL = 'http://182.90.224.237:51234/' //郭圣雄远程
|
// axios.defaults.baseURL = 'http://182.90.224.237:51234/' //郭圣雄远程
|
||||||
// axios.defaults.baseURL = 'http://jxj.zhgdyun.com:61212/' //彭洁远程
|
// axios.defaults.baseURL = 'http://jxj.zhgdyun.com:61212/' //彭洁远程
|
||||||
// axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈
|
// axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈
|
||||||
// axios.defaults.baseURL ='http://183.249.224.118:9000/' //嘉兴王江泾公用码头
|
// axios.defaults.baseURL ='http://183.249.224.118:9000/' //嘉兴王江泾公用码头
|
||||||
@ -183,7 +183,7 @@ if (process.env.NODE_ENV == "development") {
|
|||||||
// axios.defaults.baseURL = 'http://125.88.207.86:8099/'//中建四局(沙湖)线上(最新)地址
|
// axios.defaults.baseURL = 'http://125.88.207.86:8099/'//中建四局(沙湖)线上(最新)地址
|
||||||
// axios.defaults.baseURL = 'http://jxj.zhgdyun.com:15551/'//测试地址
|
// axios.defaults.baseURL = 'http://jxj.zhgdyun.com:15551/'//测试地址
|
||||||
// axios.defaults.baseURL = 'http://47.93.215.234:9809/'//鞍钢正式地址(弃用)
|
// axios.defaults.baseURL = 'http://47.93.215.234:9809/'//鞍钢正式地址(弃用)
|
||||||
// axios.defaults.baseURL = 'http://42.180.188.17:9809/'//鞍钢正式地址
|
// axios.defaults.baseURL = 'http://42.180.188.17:9809/' //鞍钢正式地址
|
||||||
// axios.defaults.baseURL = 'http://47.93.215.234:11211/'//鞍钢测试地址(弃用)
|
// axios.defaults.baseURL = 'http://47.93.215.234:11211/'//鞍钢测试地址(弃用)
|
||||||
// axios.defaults.baseURL = 'http://42.180.188.17:11211/' //鞍钢测试地址
|
// axios.defaults.baseURL = 'http://42.180.188.17:11211/' //鞍钢测试地址
|
||||||
// axios.defaults.baseURL = 'http://8.136.222.164:8808/' //中科安信正式地址
|
// axios.defaults.baseURL = 'http://8.136.222.164:8808/' //中科安信正式地址
|
||||||
|
|||||||
@ -52,22 +52,21 @@ export default new Vuex.Store({
|
|||||||
// FILEURL:'http://182.90.224.237:51234/image/',
|
// FILEURL:'http://182.90.224.237:51234/image/',
|
||||||
// UPLOADURL: "http://http://192.168.34.155:19111/upload/image/", // 洁本地
|
// UPLOADURL: "http://http://192.168.34.155:19111/upload/image/", // 洁本地
|
||||||
// FILEURL: "http://http://192.168.34.155:19111/image/", //洁本地
|
// FILEURL: "http://http://192.168.34.155:19111/image/", //洁本地
|
||||||
// UPLOADURL: 'http://192.168.34.221:9111/upload/image/', // 郭圣雄本地
|
UPLOADURL: 'http://192.168.34.221:9111/upload/image/', // 郭圣雄本地
|
||||||
// FILEURL: 'http://192.168.34.221:9111/image/', //郭圣雄本地
|
FILEURL: 'http://192.168.34.221:9111/image/', //郭圣雄本地
|
||||||
// WORKFLOWURL: "http://192.168.34.138:88/#/workspace/forms", //坤工作流地址(本地)
|
// WORKFLOWURL: "http://192.168.34.138:88/#/workspace/forms", //坤工作流地址(本地)
|
||||||
// WORKFLOWURL: "http://192.168.34.129:88/#/workspace/forms", //罗峰工作流地址(本地)
|
WORKFLOWURL: "http://192.168.34.129:88/#/workspace/forms", //罗峰工作流地址(本地)
|
||||||
// UPLOADURL:'http://182.90.224.237:51234/upload/image/',// 郭圣雄远程
|
// UPLOADURL:'http://182.90.224.237:51234/upload/image/',// 郭圣雄远程
|
||||||
// FILEURL:'http://182.90.224.237:51234/image/',//郭圣雄远程
|
// FILEURL:'http://182.90.224.237:51234/image/',//郭圣雄远程
|
||||||
// UPLOADURL:'http://42.180.188.17:11211/upload/image',//测试
|
// UPLOADURL: 'http://42.180.188.17:11211/upload/image', //测试
|
||||||
// FILEURL:'http://42.180.188.17:11211/image/',//测试
|
// FILEURL: 'http://42.180.188.17:11211/image/', //测试
|
||||||
BASEURL: baseUrl ?
|
// BASEURL: baseUrl ?
|
||||||
baseUrl :
|
// baseUrl : window.location.protocol + "//" + window.location.host + "/", //正式环境
|
||||||
window.location.protocol + "//" + window.location.host + "/", //正式环境
|
// UPLOADURL: window.location.protocol + "//" + window.location.host + "/upload/image", //正式环境
|
||||||
UPLOADURL: window.location.protocol + "//" + window.location.host + "/upload/image", //正式环境
|
// FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境
|
||||||
FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境
|
|
||||||
// // WORKFLOWURL: 'http://47.93.215.234:19998/#/workspace/forms',//鞍钢平台工作流地址(弃用)
|
// // WORKFLOWURL: 'http://47.93.215.234:19998/#/workspace/forms',//鞍钢平台工作流地址(弃用)
|
||||||
// // WORKFLOWURL: 'http://47.93.215.234:19098/#/workspace/forms',//鞍钢测试平台工作流地址(弃用)
|
// // WORKFLOWURL: 'http://47.93.215.234:19098/#/workspace/forms',//鞍钢测试平台工作流地址(弃用)
|
||||||
// WORKFLOWURL: 'http://42.180.188.17:19998/#/workspace/forms',//鞍钢平台工作流地址
|
// WORKFLOWURL: 'http://42.180.188.17:19998/#/workspace/forms', //鞍钢平台工作流地址
|
||||||
// WORKFLOWURL: "http://42.180.188.17:19098/#/workspace/forms", //鞍钢测试平台工作流地址
|
// WORKFLOWURL: "http://42.180.188.17:19098/#/workspace/forms", //鞍钢测试平台工作流地址
|
||||||
//---------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------
|
||||||
// BASEURL: baseUrl
|
// BASEURL: baseUrl
|
||||||
|
|||||||
@ -59,7 +59,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="table_wrap whiteBlock">
|
<div class="table_wrap whiteBlock">
|
||||||
<el-tabs
|
<el-tabs
|
||||||
v-model="activeName"
|
:value="activeName"
|
||||||
@tab-click="handleClick"
|
@tab-click="handleClick"
|
||||||
style="padding: 0 15px"
|
style="padding: 0 15px"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -30,7 +30,9 @@
|
|||||||
<el-table-column prop="value" min-width="35%">
|
<el-table-column prop="value" min-width="35%">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div
|
<div
|
||||||
v-if="scope.row.value instanceof Array && scope.row.value.length > 0"
|
v-if="
|
||||||
|
scope.row.value instanceof Array && scope.row.value.length > 0
|
||||||
|
"
|
||||||
class="showImg_wrap"
|
class="showImg_wrap"
|
||||||
>
|
>
|
||||||
<!-- <img
|
<!-- <img
|
||||||
@ -48,7 +50,11 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-else-if="scope.row.value && typeof(scope.row.value) == 'string' && scope.row.value.indexOf('http://') >= 0"
|
v-else-if="
|
||||||
|
scope.row.value &&
|
||||||
|
typeof scope.row.value == 'string' &&
|
||||||
|
scope.row.value.indexOf('http://') >= 0
|
||||||
|
"
|
||||||
class="showImg_wrap"
|
class="showImg_wrap"
|
||||||
>
|
>
|
||||||
<!-- <img
|
<!-- <img
|
||||||
@ -69,12 +75,15 @@
|
|||||||
{{ scope.row.value }}
|
{{ scope.row.value }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="fieldName2" min-width="15%"> </el-table-column>
|
<el-table-column prop="fieldName2" min-width="15%"> </el-table-column>
|
||||||
<el-table-column prop="value2" min-width="35%">
|
<el-table-column prop="value2" min-width="35%">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div
|
<div
|
||||||
v-if="scope.row.value2 instanceof Array && scope.row.value2.length > 0"
|
v-if="
|
||||||
|
scope.row.value2 instanceof Array &&
|
||||||
|
scope.row.value2.length > 0
|
||||||
|
"
|
||||||
class="showImg_wrap"
|
class="showImg_wrap"
|
||||||
>
|
>
|
||||||
<!-- <img
|
<!-- <img
|
||||||
@ -92,7 +101,11 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-else-if="scope.row.value2 && typeof(scope.row.value2) == 'string' && scope.row.value2.indexOf('http://') >= 0"
|
v-else-if="
|
||||||
|
scope.row.value2 &&
|
||||||
|
typeof scope.row.value2 == 'string' &&
|
||||||
|
scope.row.value2.indexOf('http://') >= 0
|
||||||
|
"
|
||||||
class="showImg_wrap"
|
class="showImg_wrap"
|
||||||
>
|
>
|
||||||
<!-- <img
|
<!-- <img
|
||||||
@ -123,10 +136,13 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
size="medium"
|
size="medium"
|
||||||
@click="addBtn(1)"
|
@click="addBtn(1)"
|
||||||
v-permission="{key: 'hzdw_add_qualifications', menuPath: '/project/summary/cooperationUnit'}"
|
v-permission="{
|
||||||
|
key: 'hzdw_add_qualifications',
|
||||||
|
menuPath: '/project/summary/cooperationUnit',
|
||||||
|
}"
|
||||||
>新增</el-button
|
>新增</el-button
|
||||||
>
|
>
|
||||||
|
<vue-scroll style="height: 600px">
|
||||||
<el-table
|
<el-table
|
||||||
:data="qualificationList"
|
:data="qualificationList"
|
||||||
stripe
|
stripe
|
||||||
@ -166,14 +182,38 @@
|
|||||||
bigImageUrl = url[index];
|
bigImageUrl = url[index];
|
||||||
"
|
"
|
||||||
/> -->
|
/> -->
|
||||||
<img
|
|
||||||
|
<!-- <div
|
||||||
|
v-for="item in scope.row.fileUrl && JSON.parse(scope.row.fileUrl)"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
|
|
||||||
|
</div> -->
|
||||||
|
<a
|
||||||
|
v-if="!scope.row.flag"
|
||||||
|
:href="scope.row.fileUrl"
|
||||||
|
:download="scope.row.fileNameNew.substring(0, scope.row.fileNameNew.indexOf('.'))"
|
||||||
|
target="self"
|
||||||
|
class="qualificationHref"
|
||||||
|
>{{ scope.row.fileNameNew }}</a
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
v-else
|
||||||
|
:src="scope.row.fileUrl"
|
||||||
|
class="showImg"
|
||||||
|
@click="showImgBtn(scope.row.fileUrl)"
|
||||||
|
/>
|
||||||
|
<!-- <img
|
||||||
|
v-else
|
||||||
:src="scope.row.fileUrl"
|
:src="scope.row.fileUrl"
|
||||||
class="showImg"
|
class="showImg"
|
||||||
@click="
|
@click="
|
||||||
bigImageDialog = true;
|
bigImageDialog = true;
|
||||||
bigImageUrl = scope.row.fileUrl;
|
bigImageUrl = scope.row.fileUrl;
|
||||||
"
|
"
|
||||||
/>
|
/> -->
|
||||||
|
|
||||||
|
|
||||||
<!-- <a
|
<!-- <a
|
||||||
:href="url[index]"
|
:href="url[index]"
|
||||||
download
|
download
|
||||||
@ -182,13 +222,13 @@
|
|||||||
target="self"
|
target="self"
|
||||||
class="qualificationHref"
|
class="qualificationHref"
|
||||||
> -->
|
> -->
|
||||||
<!-- <img
|
<!-- <img
|
||||||
v-if="scope.row.fileUrl && matchResult"
|
v-if="scope.row.fileUrl && matchResult"
|
||||||
:key="index"
|
:key="index"
|
||||||
:src="url[index]"
|
:src="url[index]"
|
||||||
class="showImg"
|
class="showImg"
|
||||||
/> -->
|
/> -->
|
||||||
<!-- {{ matchResult ? "" : url[index]}}
|
<!-- {{ matchResult ? "" : url[index]}}
|
||||||
</a> -->
|
</a> -->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -198,6 +238,7 @@
|
|||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
</vue-scroll>
|
||||||
</div>
|
</div>
|
||||||
<div class="qualificationDialog">
|
<div class="qualificationDialog">
|
||||||
<el-dialog
|
<el-dialog
|
||||||
@ -211,42 +252,40 @@
|
|||||||
:rules="qualificationFormRules"
|
:rules="qualificationFormRules"
|
||||||
ref="qualificationForm"
|
ref="qualificationForm"
|
||||||
label-width="120px"
|
label-width="120px"
|
||||||
size="medium"
|
size="medium"
|
||||||
class="dialogFormBox"
|
class="dialogFormBox"
|
||||||
>
|
>
|
||||||
<el-form-item label="资质文件名称" prop="fileName">
|
<el-form-item label="资质文件名称" prop="fileName">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="qualificationForm.fileName"
|
v-model="qualificationForm.fileName"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item label="资质文件编号" prop="fileNumber">
|
||||||
label="资质文件编号"
|
|
||||||
prop="fileNumber"
|
|
||||||
>
|
|
||||||
<el-input
|
<el-input
|
||||||
v-model="qualificationForm.fileNumber"
|
v-model="qualificationForm.fileNumber"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="上传资质文件" prop="fileUrl">
|
<el-form-item label="上传资质文件" prop="fileUrl">
|
||||||
|
<!-- accept="image/jpg,image/jpeg,image/png" -->
|
||||||
<el-upload
|
<el-upload
|
||||||
class="upload-demo"
|
class="upload-demo"
|
||||||
:action="$store.state.UPLOADURL"
|
:action="$store.state.UPLOADURL"
|
||||||
:on-preview="showImgBtn"
|
:on-preview="showImgBtn"
|
||||||
:on-remove="handleRemove"
|
:on-remove="handleRemove"
|
||||||
:on-success="handleSuccess"
|
:on-success="handleSuccess"
|
||||||
accept="image/jpg,image/jpeg,image/png"
|
|
||||||
:before-upload="handleBeforeUpload"
|
:before-upload="handleBeforeUpload"
|
||||||
name="files"
|
name="files"
|
||||||
multiple
|
multiple
|
||||||
ref="upload"
|
ref="upload"
|
||||||
|
:limit="1"
|
||||||
:file-list="fileList"
|
:file-list="fileList"
|
||||||
>
|
>
|
||||||
<el-button size="small" type="primary">点击上传</el-button>
|
<el-button size="small" type="primary">点击上传</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="备注" prop="remarks">
|
<el-form-item label="备注" prop="remarks">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="qualificationForm.remarks"
|
v-model="qualificationForm.remarks"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
@ -261,13 +300,17 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-show="activeIndex == '3'" class="content_wrap">
|
<div v-show="activeIndex == '3'" class="content_wrap">
|
||||||
<el-button
|
<el-button
|
||||||
v-permission="{key: 'hzdw_add_bad', menuPath: '/project/summary/cooperationUnit'}"
|
v-permission="{
|
||||||
|
key: 'hzdw_add_bad',
|
||||||
|
menuPath: '/project/summary/cooperationUnit',
|
||||||
|
}"
|
||||||
class="addBadRecordBtn"
|
class="addBadRecordBtn"
|
||||||
type="primary"
|
type="primary"
|
||||||
size="medium"
|
size="medium"
|
||||||
@click="addBtn(2)"
|
@click="addBtn(2)"
|
||||||
>新增</el-button
|
>新增</el-button
|
||||||
>
|
>
|
||||||
|
<vue-scroll style="height: 600px">
|
||||||
<el-table
|
<el-table
|
||||||
:data="badRecordList"
|
:data="badRecordList"
|
||||||
stripe
|
stripe
|
||||||
@ -307,6 +350,7 @@
|
|||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
</vue-scroll>
|
||||||
</div>
|
</div>
|
||||||
<div class="badRecordDialog">
|
<div class="badRecordDialog">
|
||||||
<el-dialog
|
<el-dialog
|
||||||
@ -320,22 +364,22 @@
|
|||||||
:rules="badRecordFormRules"
|
:rules="badRecordFormRules"
|
||||||
ref="badRecordForm"
|
ref="badRecordForm"
|
||||||
label-width="100px"
|
label-width="100px"
|
||||||
size="medium"
|
size="medium"
|
||||||
class="dialogFormBox"
|
class="dialogFormBox"
|
||||||
>
|
>
|
||||||
<el-form-item label="发生事项" prop="ariseMatter">
|
<el-form-item label="发生事项" prop="ariseMatter">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="badRecordForm.ariseMatter"
|
v-model="badRecordForm.ariseMatter"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="发生原因" prop="ariseReason">
|
<el-form-item label="发生原因" prop="ariseReason">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="badRecordForm.ariseReason"
|
v-model="badRecordForm.ariseReason"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="发生时间" prop="ariseTime">
|
<el-form-item label="发生时间" prop="ariseTime">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<span class="demonstration"></span>
|
<span class="demonstration"></span>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
@ -347,7 +391,7 @@
|
|||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="备注" prop="remarks">
|
<el-form-item label="备注" prop="remarks">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="badRecordForm.remarks"
|
v-model="badRecordForm.remarks"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
@ -381,11 +425,9 @@ import {
|
|||||||
addEnterpriseBadRecord,
|
addEnterpriseBadRecord,
|
||||||
} from "@/assets/js/api/cooperationUnit";
|
} from "@/assets/js/api/cooperationUnit";
|
||||||
|
|
||||||
import {
|
import { getProjectDetail } from "@/assets/js/api/baseInfo.js";
|
||||||
getProjectDetail
|
|
||||||
} from '@/assets/js/api/baseInfo.js'
|
|
||||||
export default {
|
export default {
|
||||||
props: ["detailId", "projectEnterpriseId","enterpriseSn"],
|
props: ["detailId", "projectEnterpriseId", "enterpriseSn"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
activeIndex: "1",
|
activeIndex: "1",
|
||||||
@ -432,7 +474,7 @@ export default {
|
|||||||
{ required: true, message: "请选择发生时间", trigger: "blur" },
|
{ required: true, message: "请选择发生时间", trigger: "blur" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
infoEnterpriseId: ""
|
infoEnterpriseId: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -455,13 +497,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 获取承包商信息
|
// 获取承包商信息
|
||||||
getDataDateils(){
|
getDataDateils() {
|
||||||
getProjectDetail({
|
getProjectDetail({
|
||||||
projectSn: this.$props.enterpriseSn,
|
projectSn: this.$props.enterpriseSn,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
if(!res.result) return;
|
if (!res.result) return;
|
||||||
console.log('~~~~~~~~~~~~~~~~~~~~',res)
|
console.log("~~~~~~~~~~~~~~~~~~~~", res);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -480,13 +522,20 @@ export default {
|
|||||||
fieldName2: this.$t("message.laborMange.photosOfQualification"),
|
fieldName2: this.$t("message.laborMange.photosOfQualification"),
|
||||||
value: res.result.enterpriseName,
|
value: res.result.enterpriseName,
|
||||||
value2:
|
value2:
|
||||||
res.result.enterpriseQualificationUrl && res.result.enterpriseQualificationUrl.split(',').length > 0?
|
res.result.enterpriseQualificationUrl &&
|
||||||
res.result.enterpriseQualificationUrl.split(',').map(item => {
|
res.result.enterpriseQualificationUrl.split(",").length > 0
|
||||||
return {
|
? res.result.enterpriseQualificationUrl
|
||||||
name: item.split('*')[0],
|
.split(",")
|
||||||
url: this.$store.state.FILEURL + item.split('*')[1],
|
.map((item) => {
|
||||||
}
|
return {
|
||||||
}) : res.result.enterpriseQualificationUrl.indexOf('http://') >= 0 ? res.result.enterpriseQualificationUrl: res.result.enterpriseQualificationUrl,
|
name: item.split("*")[0],
|
||||||
|
url: this.$store.state.FILEURL + item.split("*")[1],
|
||||||
|
};
|
||||||
|
})
|
||||||
|
: res.result.enterpriseQualificationUrl.indexOf("http://") >=
|
||||||
|
0
|
||||||
|
? res.result.enterpriseQualificationUrl
|
||||||
|
: res.result.enterpriseQualificationUrl,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: this.$t("message.laborMange.formOfBusiness"),
|
fieldName: this.$t("message.laborMange.formOfBusiness"),
|
||||||
@ -514,7 +563,9 @@ export default {
|
|||||||
? this.$t("message.cooperationUnit.subpackage10")
|
? this.$t("message.cooperationUnit.subpackage10")
|
||||||
: res.result.enterpriseTypeId == 11
|
: res.result.enterpriseTypeId == 11
|
||||||
? this.$t("message.cooperationUnit.subpackage11")
|
? this.$t("message.cooperationUnit.subpackage11")
|
||||||
: res.result.enterpriseTypeId == 12 ? this.$t("message.cooperationUnit.subpackage12") : '',
|
: res.result.enterpriseTypeId == 12
|
||||||
|
? this.$t("message.cooperationUnit.subpackage12")
|
||||||
|
: "",
|
||||||
value2: res.result.enterpriseLegalPerson,
|
value2: res.result.enterpriseLegalPerson,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -551,7 +602,9 @@ export default {
|
|||||||
fieldName: this.$t("message.laborMange.laborCertificateNo"),
|
fieldName: this.$t("message.laborMange.laborCertificateNo"),
|
||||||
fieldName2: this.$t("message.laborMange.safetyProductionLicense"),
|
fieldName2: this.$t("message.laborMange.safetyProductionLicense"),
|
||||||
value: res.result.qualificationNumber,
|
value: res.result.qualificationNumber,
|
||||||
value2: res.result.enterpriseSafeAllow && res.result.enterpriseSafeAllow,
|
value2:
|
||||||
|
res.result.enterpriseSafeAllow &&
|
||||||
|
res.result.enterpriseSafeAllow,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: this.$t("message.laborMange.natureOfUnit"),
|
fieldName: this.$t("message.laborMange.natureOfUnit"),
|
||||||
@ -564,12 +617,17 @@ export default {
|
|||||||
: res.result.enterpriseProperty == 3
|
: res.result.enterpriseProperty == 3
|
||||||
? this.$t("message.laborMange.collectiveEnterprises")
|
? this.$t("message.laborMange.collectiveEnterprises")
|
||||||
: this.$t("message.laborMange.privateEnterprise"),
|
: this.$t("message.laborMange.privateEnterprise"),
|
||||||
value2: res.result.logo && res.result.logo.split(',').length > 0 ? res.result.logo.split(',').map(item => {
|
value2:
|
||||||
return {
|
res.result.logo && res.result.logo.split(",").length > 0
|
||||||
name: item.split('*')[0],
|
? res.result.logo.split(",").map((item) => {
|
||||||
url: this.$store.state.FILEURL + item.split('*')[1],
|
return {
|
||||||
}
|
name: item.split("*")[0],
|
||||||
}) : res.result.logo.indexOf('http://') >= 0 || !res.result.logo ? res.result.logo : this.$store.state.FILEURL + res.result.logo
|
url: this.$store.state.FILEURL + item.split("*")[1],
|
||||||
|
};
|
||||||
|
})
|
||||||
|
: res.result.logo.indexOf("http://") >= 0 || !res.result.logo
|
||||||
|
? res.result.logo
|
||||||
|
: this.$store.state.FILEURL + res.result.logo,
|
||||||
// res.result.logo ? this.$store.state.FILEURL +res.result.logo : "",
|
// res.result.logo ? this.$store.state.FILEURL +res.result.logo : "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -581,70 +639,117 @@ export default {
|
|||||||
{
|
{
|
||||||
fieldName: "承包商名称",
|
fieldName: "承包商名称",
|
||||||
fieldName2: "项目施工区域",
|
fieldName2: "项目施工区域",
|
||||||
value: res.result.projectEnterprise.cbsName ? res.result.projectEnterprise.cbsName : "",
|
value: res.result.projectEnterprise.cbsName
|
||||||
value2: res.result.projectEnterprise.projectBuildArea ? res.result.projectEnterprise.projectBuildArea : "",
|
? res.result.projectEnterprise.cbsName
|
||||||
|
: "",
|
||||||
|
value2: res.result.projectEnterprise.projectBuildArea
|
||||||
|
? res.result.projectEnterprise.projectBuildArea
|
||||||
|
: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
||||||
fieldName: "项目经理",
|
fieldName: "项目经理",
|
||||||
fieldName2: "项目类型",
|
fieldName2: "项目类型",
|
||||||
value: res.result.projectEnterprise.projectManage ? res.result.projectEnterprise.projectManage :"",
|
value: res.result.projectEnterprise.projectManage
|
||||||
value2: res.result.projectEnterprise.cbsProjectTypeName ? res.result.projectEnterprise.cbsProjectTypeName:"",
|
? res.result.projectEnterprise.projectManage
|
||||||
|
: "",
|
||||||
|
value2: res.result.projectEnterprise.cbsProjectTypeName
|
||||||
|
? res.result.projectEnterprise.cbsProjectTypeName
|
||||||
|
: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: "施工阶段",
|
fieldName: "施工阶段",
|
||||||
fieldName2: "纬度位置",
|
fieldName2: "纬度位置",
|
||||||
value: res.result.projectEnterprise.constructionStageName?res.result.projectEnterprise.constructionStageName:"",
|
value: res.result.projectEnterprise.constructionStageName
|
||||||
value2: res.result.projectEnterprise.latitude ? res.result.projectEnterprise.latitude :"",
|
? res.result.projectEnterprise.constructionStageName
|
||||||
|
: "",
|
||||||
|
value2: res.result.projectEnterprise.latitude
|
||||||
|
? res.result.projectEnterprise.latitude
|
||||||
|
: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: "经度位置",
|
fieldName: "经度位置",
|
||||||
fieldName2: "工程类别",
|
fieldName2: "工程类别",
|
||||||
value: res.result.projectEnterprise.longitude ? res.result.projectEnterprise.longitude:"",
|
value: res.result.projectEnterprise.longitude
|
||||||
value2: res.result.projectEnterprise.projectTypeName?res.result.projectEnterprise.projectTypeName:"",
|
? res.result.projectEnterprise.longitude
|
||||||
|
: "",
|
||||||
|
value2: res.result.projectEnterprise.projectTypeName
|
||||||
|
? res.result.projectEnterprise.projectTypeName
|
||||||
|
: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: "项目编号",
|
fieldName: "项目编号",
|
||||||
fieldName2: "结构类型",
|
fieldName2: "结构类型",
|
||||||
value: res.result.projectEnterprise.projectNumber ? res.result.projectEnterprise.projectNumber:"",
|
value: res.result.projectEnterprise.projectNumber
|
||||||
value2: res.result.projectEnterprise.structureTypeName ? res.result.projectEnterprise.structureTypeName:"",
|
? res.result.projectEnterprise.projectNumber
|
||||||
|
: "",
|
||||||
|
value2: res.result.projectEnterprise.structureTypeName
|
||||||
|
? res.result.projectEnterprise.structureTypeName
|
||||||
|
: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: "项目面积(m²)",
|
fieldName: "项目面积(m²)",
|
||||||
fieldName2: "工程状态",
|
fieldName2: "工程状态",
|
||||||
value: res.result.projectEnterprise.projectAcreage ? res.result.projectEnterprise.projectAcreage:"",
|
value: res.result.projectEnterprise.projectAcreage
|
||||||
value2: this.$t('message.companyDiagram.BUILDSTATUS')[res.result.projectEnterprise.bulidStatus].name,
|
? res.result.projectEnterprise.projectAcreage
|
||||||
|
: "",
|
||||||
|
value2: this.$t("message.companyDiagram.BUILDSTATUS")[
|
||||||
|
res.result.projectEnterprise.bulidStatus
|
||||||
|
].name,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: "开工日期",
|
fieldName: "开工日期",
|
||||||
fieldName2: "竣工日期",
|
fieldName2: "竣工日期",
|
||||||
value: res.result.projectEnterprise.startWorkDate?res.result.projectEnterprise.startWorkDate:"",
|
value: res.result.projectEnterprise.startWorkDate
|
||||||
value2: res.result.projectEnterprise.completionDate ? res.result.projectEnterprise.completionDate :"",
|
? res.result.projectEnterprise.startWorkDate
|
||||||
|
: "",
|
||||||
|
value2: res.result.projectEnterprise.completionDate
|
||||||
|
? res.result.projectEnterprise.completionDate
|
||||||
|
: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: "现场布置图",
|
fieldName: "现场布置图",
|
||||||
fieldName2: "现场施工图",
|
fieldName2: "现场施工图",
|
||||||
value: res.result.projectEnterprise.layoutImage && JSON.parse(res.result.projectEnterprise.layoutImage) instanceof Array && JSON.parse(res.result.projectEnterprise.layoutImage).length > 0? JSON.parse(res.result.projectEnterprise.layoutImage).map(item => {
|
value:
|
||||||
return {
|
res.result.projectEnterprise.layoutImage &&
|
||||||
name: item.name,
|
JSON.parse(res.result.projectEnterprise.layoutImage) instanceof
|
||||||
url: this.$store.state.FILEURL + item.url,
|
Array &&
|
||||||
}
|
JSON.parse(res.result.projectEnterprise.layoutImage).length > 0
|
||||||
}) :"",
|
? JSON.parse(res.result.projectEnterprise.layoutImage).map(
|
||||||
value2: res.result.projectEnterprise.constructionMapUrl && JSON.parse(res.result.projectEnterprise.constructionMapUrl) instanceof Array && JSON.parse(res.result.projectEnterprise.constructionMapUrl).length > 0 ? JSON.parse(res.result.projectEnterprise.constructionMapUrl).map(item => {
|
(item) => {
|
||||||
return {
|
return {
|
||||||
name: item.name,
|
name: item.name,
|
||||||
url: this.$store.state.FILEURL + item.url,
|
url: this.$store.state.FILEURL + item.url,
|
||||||
}
|
};
|
||||||
}):"",
|
}
|
||||||
|
)
|
||||||
|
: "",
|
||||||
|
value2:
|
||||||
|
res.result.projectEnterprise.constructionMapUrl &&
|
||||||
|
JSON.parse(
|
||||||
|
res.result.projectEnterprise.constructionMapUrl
|
||||||
|
) instanceof Array &&
|
||||||
|
JSON.parse(res.result.projectEnterprise.constructionMapUrl)
|
||||||
|
.length > 0
|
||||||
|
? JSON.parse(
|
||||||
|
res.result.projectEnterprise.constructionMapUrl
|
||||||
|
).map((item) => {
|
||||||
|
return {
|
||||||
|
name: item.name,
|
||||||
|
url: this.$store.state.FILEURL + item.url,
|
||||||
|
};
|
||||||
|
})
|
||||||
|
: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: "联系电话",
|
fieldName: "联系电话",
|
||||||
value: res.result.projectEnterprise.projectTel?res.result.projectEnterprise.projectTel:"",
|
value: res.result.projectEnterprise.projectTel
|
||||||
|
? res.result.projectEnterprise.projectTel
|
||||||
|
: "",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
this.infoEnterpriseId = res.result.id;
|
this.infoEnterpriseId = res.result.id;
|
||||||
// this.getDataDateils();
|
// this.getDataDateils();
|
||||||
console.log(this.enterpriseInfo,666777888)
|
console.log(this.enterpriseInfo, 666777888);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -652,20 +757,34 @@ export default {
|
|||||||
getQueryById() {
|
getQueryById() {
|
||||||
let data = {
|
let data = {
|
||||||
// enterpriseId: this.$props.projectEnterpriseId,
|
// enterpriseId: this.$props.projectEnterpriseId,
|
||||||
enterpriseId: this.infoEnterpriseId
|
enterpriseId: this.infoEnterpriseId,
|
||||||
};
|
};
|
||||||
getQueryByIdListApi(data).then((res) => {
|
getQueryByIdListApi(data).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.qualificationList = res.result;
|
// console.log(22222222, res.result)
|
||||||
this.qualificationList.map(item => {
|
this.qualificationList = res.result.map((item) => {
|
||||||
|
// console.log(!item.fileUrl.includes(this.$store.state.FILEURL))
|
||||||
if (!item.fileUrl.includes(this.$store.state.FILEURL)) {
|
if (!item.fileUrl.includes(this.$store.state.FILEURL)) {
|
||||||
if(item.fileUrl.includes("name")){
|
// console.log(item.fileUrl.includes("name"))
|
||||||
|
const imageType = [ '.jpg','.png', '.jpeg']
|
||||||
|
if (item.fileUrl.includes("name")) {
|
||||||
|
const name = JSON.parse(item.fileUrl)[0].name;
|
||||||
|
const type = name.substring(name.indexOf('.'),name.length);
|
||||||
|
console.log(type)
|
||||||
|
item.flag = imageType.includes(type);
|
||||||
|
console.log(item.flag)
|
||||||
|
item.fileNameNew = name;
|
||||||
item.fileUrl = this.$store.state.FILEURL + JSON.parse(item.fileUrl)[0].url;
|
item.fileUrl = this.$store.state.FILEURL + JSON.parse(item.fileUrl)[0].url;
|
||||||
|
// // this.$set(item, "fileNameNew", JSON.parse(item.fileUrl)[0].name)
|
||||||
} else {
|
} else {
|
||||||
item.fileUrl = this.$store.state.FILEURL + item.fileUrl;
|
item.fileUrl = this.$store.state.FILEURL + item.fileUrl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
return {
|
||||||
|
...item
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// console.log(111111111, this.qualificationList)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -674,6 +793,7 @@ export default {
|
|||||||
// type 1新增企业资质按钮 2新增不良记录按钮
|
// type 1新增企业资质按钮 2新增不良记录按钮
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
this.qualificationDialog = true;
|
this.qualificationDialog = true;
|
||||||
|
this.fileList = [];
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.qualificationForm.resetFields();
|
this.$refs.qualificationForm.resetFields();
|
||||||
});
|
});
|
||||||
@ -687,18 +807,18 @@ export default {
|
|||||||
// 新增企业资质
|
// 新增企业资质
|
||||||
addQualification() {
|
addQualification() {
|
||||||
this.$refs.qualificationForm.validate((valid) => {
|
this.$refs.qualificationForm.validate((valid) => {
|
||||||
console.log('新增的参数',this.qualificationForm);
|
console.log("新增的参数", this.qualificationForm);
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let data = this.qualificationForm;
|
let data = this.qualificationForm;
|
||||||
// (data.enterpriseId = this.$props.projectEnterpriseId),
|
// (data.enterpriseId = this.$props.projectEnterpriseId),
|
||||||
data.enterpriseId = this.infoEnterpriseId;
|
data.enterpriseId = this.infoEnterpriseId;
|
||||||
addEnterpriseQualification(data).then((res) => {
|
addEnterpriseQualification(data).then((res) => {
|
||||||
// console.log('新增成功了吗',res)
|
// console.log('新增成功了吗',res)
|
||||||
this.getQueryById();
|
this.getQueryById();
|
||||||
this.$refs.upload.clearFiles();
|
this.$refs.upload.clearFiles();
|
||||||
this.fileList = [];
|
this.fileList = [];
|
||||||
this.$refs.qualificationForm.resetFields();
|
this.$refs.qualificationForm.resetFields();
|
||||||
});
|
});
|
||||||
this.qualificationDialog = false;
|
this.qualificationDialog = false;
|
||||||
} else {
|
} else {
|
||||||
console.log("error submit!!");
|
console.log("error submit!!");
|
||||||
@ -743,8 +863,13 @@ export default {
|
|||||||
},
|
},
|
||||||
// 资质文件上传成功
|
// 资质文件上传成功
|
||||||
handleSuccess(file) {
|
handleSuccess(file) {
|
||||||
console.log('上传成功放回的值',file)
|
console.log("上传成功放回的值", file);
|
||||||
let data = { name: file.data[0].filename, url: file.data[0].imageUrl };
|
let data = {
|
||||||
|
name: file.data[0].fileInfo.originalFilename
|
||||||
|
? file.data[0].fileInfo.originalFilename
|
||||||
|
: file.data[0].filename,
|
||||||
|
url: file.data[0].imageUrl,
|
||||||
|
};
|
||||||
// let data = { name: file.data[0].fileInfo.attr.originalFilename, url: file.data[0].imageUrl };
|
// let data = { name: file.data[0].fileInfo.attr.originalFilename, url: file.data[0].imageUrl };
|
||||||
this.fileList.push(data);
|
this.fileList.push(data);
|
||||||
this.qualificationForm.fileUrl =
|
this.qualificationForm.fileUrl =
|
||||||
@ -765,20 +890,20 @@ export default {
|
|||||||
},
|
},
|
||||||
// 判断上传的是否为图片
|
// 判断上传的是否为图片
|
||||||
handleBeforeUpload(file) {
|
handleBeforeUpload(file) {
|
||||||
var img = file.name.substring(file.name.lastIndexOf('.') + 1)
|
// var img = file.name.substring(file.name.lastIndexOf('.') + 1)
|
||||||
const suffix = img === 'jpg'
|
// const suffix = img === 'jpg'
|
||||||
const suffix2 = img === 'png'
|
// const suffix2 = img === 'png'
|
||||||
const suffix3 = img === 'jpeg'
|
// const suffix3 = img === 'jpeg'
|
||||||
const isLt1M = file.size / 1024 / 1024 < 1;
|
// const isLt1M = file.size / 1024 / 1024 < 1;
|
||||||
if (!suffix && !suffix2 && !suffix3) {
|
// if (!suffix && !suffix2 && !suffix3) {
|
||||||
this.$message.error("只能上传图片!");
|
// this.$message.error("只能上传图片!");
|
||||||
return false
|
// return false
|
||||||
}
|
// }
|
||||||
// 可以限制图片的大小
|
// // 可以限制图片的大小
|
||||||
if (!isLt1M) {
|
// if (!isLt1M) {
|
||||||
this.$message.error('上传图片大小不能超过 1MB!');
|
// this.$message.error('上传图片大小不能超过 1MB!');
|
||||||
}
|
// }
|
||||||
return suffix || suffix2 || suffix3
|
// return suffix || suffix2 || suffix3
|
||||||
},
|
},
|
||||||
|
|
||||||
//截取图片地址
|
//截取图片地址
|
||||||
@ -792,18 +917,18 @@ export default {
|
|||||||
showArr.push(this.fileUrl + showUrl);
|
showArr.push(this.fileUrl + showUrl);
|
||||||
}
|
}
|
||||||
return showArr;
|
return showArr;
|
||||||
} else if(type == 2) {
|
} else if (type == 2) {
|
||||||
let arr = JSON.parse(url);
|
let arr = JSON.parse(url);
|
||||||
// this.matchResult = arr.match("(.+?).(png|jpg|gif)");
|
// this.matchResult = arr.match("(.+?).(png|jpg|gif)");
|
||||||
// console.log('this.matchResult',this.matchResult)
|
// console.log('this.matchResult',this.matchResult)
|
||||||
// arr = arr.split(",");
|
// arr = arr.split(",");
|
||||||
let showArr = [];
|
let showArr = [];
|
||||||
showArr = arr.map((item)=>{
|
showArr = arr.map((item) => {
|
||||||
let showUrl = item.url
|
let showUrl = item.url;
|
||||||
let showArray = []
|
let showArray = [];
|
||||||
showArray.push(this.fileUrl + showUrl);
|
showArray.push(this.fileUrl + showUrl);
|
||||||
return showArray
|
return showArray;
|
||||||
})
|
});
|
||||||
return showArr;
|
return showArr;
|
||||||
|
|
||||||
// for (let i = 0; i < arr.length; i++) {
|
// for (let i = 0; i < arr.length; i++) {
|
||||||
@ -817,7 +942,6 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// console.log('showArr',showArr)
|
// console.log('showArr',showArr)
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -830,6 +954,9 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
.pageDataContainer {
|
||||||
|
overflow: initial;
|
||||||
|
}
|
||||||
.el-menu--horizontal > .el-menu-item {
|
.el-menu--horizontal > .el-menu-item {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user