Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -71,6 +71,9 @@
|
|||||||
prop="useFlag"
|
prop="useFlag"
|
||||||
label="角色状态"
|
label="角色状态"
|
||||||
width="170px">
|
width="170px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.useFlag===0?'禁用':'启用' }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="operator"
|
prop="operator"
|
||||||
@@ -184,9 +187,20 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="角色描述" prop="remarks" label-width="80px" class="add-form-item">
|
<el-form-item label="角色描述" prop="remarks" label-width="80px" class="add-form-item">
|
||||||
<el-input v-model="addForm.remarks"
|
<el-input v-model="addForm.remarks"
|
||||||
placeholder="请输入上级描述"
|
placeholder="请输入角色描述"
|
||||||
clearable></el-input>
|
clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="角色状态" prop="useFlag" label-width="145px">
|
||||||
|
<el-select class="bead-input" v-model="addForm.useFlag">
|
||||||
|
<el-option
|
||||||
|
v-for="item in options"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<div slot="footer">
|
<div slot="footer">
|
||||||
@@ -243,7 +257,8 @@ export default {
|
|||||||
SuperiorRoleModel: false,
|
SuperiorRoleModel: false,
|
||||||
addFormRules: {
|
addFormRules: {
|
||||||
name: [
|
name: [
|
||||||
{ required: true, message: '请输入角色名称', trigger: 'blur' }
|
{ required: true, message: '请输入角色名称', trigger: 'blur' },
|
||||||
|
{type: 'string', max: 100, message: '角色名称不能超过100个字符', trigger: 'blur'}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
addForm: {
|
addForm: {
|
||||||
@@ -251,8 +266,19 @@ export default {
|
|||||||
parentId: '', // 上级ID
|
parentId: '', // 上级ID
|
||||||
remarks: '', // 角色描述
|
remarks: '', // 角色描述
|
||||||
parent: '',
|
parent: '',
|
||||||
|
useFlag: '',
|
||||||
id: ''
|
id: ''
|
||||||
},
|
},
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
value: "0",
|
||||||
|
label: "禁用",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "1",
|
||||||
|
label: "启用",
|
||||||
|
}
|
||||||
|
],
|
||||||
addModel: false,
|
addModel: false,
|
||||||
treeData3: [],
|
treeData3: [],
|
||||||
defaultProps3: {
|
defaultProps3: {
|
||||||
|
|||||||
@@ -259,10 +259,10 @@ export default {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
fileType: [
|
fileType: [
|
||||||
{ required: true, message: "文本状态称不能为空", trigger: "blur" },
|
{ required: true, message: "文本状态称不能为空", trigger: "change" },
|
||||||
],
|
],
|
||||||
fileName: [
|
fileName: [
|
||||||
{ required: true, message: '文件不能为空', trigger: 'blur' }
|
{ required: true, message: '文件不能为空', trigger: 'change' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
@@ -515,7 +515,8 @@ export default {
|
|||||||
message: "文件上传成功",
|
message: "文件上传成功",
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
// this.$refs['uploadFilesdfEo'].resetFields()
|
this.$refs['uploadFilesdfEo'].clearValidate('fileName')
|
||||||
|
this.$refs['uploadFilesdfEo'].clearValidate('standName')
|
||||||
} else {
|
} else {
|
||||||
this.defaultFileList = [];
|
this.defaultFileList = [];
|
||||||
this.uploadFilesdfEo.attId = "";
|
this.uploadFilesdfEo.attId = "";
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '项目合规评估流程',
|
label: '项目合规评估流程',
|
||||||
value: '7'
|
value: '5'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '未符合项整改流程',
|
label: '未符合项整改流程',
|
||||||
|
|||||||
@@ -67,48 +67,48 @@
|
|||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="附件" prop="modelName" class="add-form-item form-item-disabled">
|
<!-- <el-form-item label="附件" prop="modelName" class="add-form-item form-item-disabled">-->
|
||||||
<el-input
|
<!-- <el-input-->
|
||||||
disabled
|
<!-- disabled-->
|
||||||
style="display: none;"
|
<!-- style="display: none;"-->
|
||||||
v-model="listForm.modelName"
|
<!-- v-model="listForm.modelName"-->
|
||||||
clearable
|
<!-- clearable-->
|
||||||
></el-input>
|
<!-- ></el-input>-->
|
||||||
<div v-if="listForm.modelName" @click="fileUpload" class="fileClass">
|
<!-- <div v-if="listForm.modelName" @click="fileUpload" class="fileClass">-->
|
||||||
{{ listForm.modelName }}
|
<!-- {{ listForm.modelName }}-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div v-else>
|
<!-- <div v-else>-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
type="primary"
|
<!-- type="primary"-->
|
||||||
class="common-button-primary"
|
<!-- class="common-button-primary"-->
|
||||||
@click="fileUpload"
|
<!-- @click="fileUpload"-->
|
||||||
size="mini">
|
<!-- size="mini">-->
|
||||||
点击上传
|
|
||||||
</el-button>
|
|
||||||
</div>
|
|
||||||
</el-form-item>
|
|
||||||
<!-- <el-form-item label="附件" prop="fileId" class="add-form-item form-item-disabled">-->
|
|
||||||
<!-- <el-upload-->
|
|
||||||
<!-- v-if="listForm.fileId == null || this.listForm.fileId== 'undefined' || this.listForm.fileId == '' "-->
|
|
||||||
<!-- :action="uploadFileListPath"-->
|
|
||||||
<!-- show-file-list-->
|
|
||||||
<!-- :file-list="fileInfoList"-->
|
|
||||||
<!-- name="file"-->
|
|
||||||
<!-- accept=".PDF, .pdf, .doc, .DOC, .docx, .DOCX, .xls, .xlsx, .ppt, .pptx, .PPT, .PPTX, .JPG, .JPEG, .PNG, .jpg, .jpeg, .png"-->
|
|
||||||
<!-- :on-remove="delFileInfo"-->
|
|
||||||
<!-- :on-success="uploadBackSuccess"-->
|
|
||||||
<!-- :before-upload="beforeUpload"-->
|
|
||||||
<!-- >-->
|
|
||||||
<!-- <el-button class="common-button-default" size="mini">-->
|
|
||||||
<!-- 点击上传-->
|
<!-- 点击上传-->
|
||||||
<!-- </el-button>-->
|
<!-- </el-button>-->
|
||||||
<!-- </el-upload>-->
|
<!-- </div>-->
|
||||||
<!-- <el-input-->
|
|
||||||
<!-- v-else-->
|
|
||||||
<!-- v-model="listForm.fileId"-->
|
|
||||||
<!-- placeholder=""-->
|
|
||||||
<!-- ></el-input>-->
|
|
||||||
<!-- </el-form-item>-->
|
<!-- </el-form-item>-->
|
||||||
|
<el-form-item label="附件" prop="fileId" class="add-form-item form-item-disabled">
|
||||||
|
<el-upload
|
||||||
|
v-if="listForm.fileId == null || this.listForm.fileId== 'undefined' || this.listForm.fileId == '' "
|
||||||
|
:action="uploadFileListPath"
|
||||||
|
show-file-list
|
||||||
|
:file-list="fileInfoList"
|
||||||
|
name="file"
|
||||||
|
accept=".PDF, .pdf, .doc, .DOC, .docx, .DOCX, .xls, .xlsx, .ppt, .pptx, .PPT, .PPTX, .JPG, .JPEG, .PNG, .jpg, .jpeg, .png"
|
||||||
|
:on-remove="delFileInfo"
|
||||||
|
:on-success="uploadBackSuccess"
|
||||||
|
:before-upload="beforeUpload"
|
||||||
|
>
|
||||||
|
<el-button class="common-button-default" size="mini">
|
||||||
|
点击上传
|
||||||
|
</el-button>
|
||||||
|
</el-upload>
|
||||||
|
<el-input
|
||||||
|
v-else
|
||||||
|
v-model="listForm.fileId"
|
||||||
|
placeholder=""
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="会签" prop="sign" class="add-form-item form-item-disabled">
|
<el-form-item label="会签" prop="sign" class="add-form-item form-item-disabled">
|
||||||
<el-radio-group v-model="signFlag" @change="selectSign">
|
<el-radio-group v-model="signFlag" @change="selectSign">
|
||||||
<el-radio label="1">是</el-radio>
|
<el-radio label="1">是</el-radio>
|
||||||
@@ -1111,6 +1111,46 @@ export default {
|
|||||||
fileUpload () {
|
fileUpload () {
|
||||||
this.fileMadel = true
|
this.fileMadel = true
|
||||||
},
|
},
|
||||||
|
// 上传文件成功回调
|
||||||
|
uploadBackSuccess (res, file, fileList) {
|
||||||
|
console.log(file);
|
||||||
|
console.log(fileList)
|
||||||
|
if (res.ok) {
|
||||||
|
this.fileInfoList = fileList
|
||||||
|
this.fileInfoList[this.fileInfoList.length - 1].id = res.data.id
|
||||||
|
this.$message.success('上传成功')
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message)
|
||||||
|
fileList.pop()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 相关附件 上传之前钩子
|
||||||
|
beforeUpload (file) {
|
||||||
|
var filename = file.name
|
||||||
|
var index1 = filename.lastIndexOf('.')
|
||||||
|
var index2 = filename.length
|
||||||
|
var fileSuffix = filename.substring(index1, index2)
|
||||||
|
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
||||||
|
//把后缀转大写
|
||||||
|
if(fileSuffix !== undefined && fileSuffix !== null){
|
||||||
|
fileSuffix = fileSuffix.toUpperCase()
|
||||||
|
}
|
||||||
|
// 判断上传文件格式
|
||||||
|
if (fileSuffix === '.PDF' || fileSuffix === '.DOC' || fileSuffix === '.DOCX' || fileSuffix === '.PPT'
|
||||||
|
|| fileSuffix === '.PPTX'|| fileSuffix === '.XLS'|| fileSuffix === '.XLSX'
|
||||||
|
|| fileSuffix === '.PNG'|| fileSuffix === '.JPG'|| fileSuffix === '.JPEG') {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
this.$message.error('文件' + file.name + '格式不正确,请上传pdf、doc、docx、ppt、pptx、xls、xlsx、png、jpg、jpeg等文件')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
// 判断文件上传大小
|
||||||
|
if (file.size / 1024 / 1024 > 300) {
|
||||||
|
this.$message.warning('文件' + file.name + '大小不能超过300M')
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
|
|||||||
@@ -629,42 +629,49 @@ export default {
|
|||||||
},
|
},
|
||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
var json = Object.assign(this.listForm, this.roleForm)
|
this.dataList.forEach(item => {
|
||||||
json.prcCreateUser = this.$store.getters.userInfo.userId;
|
if(item.distributePerson === '' || item.distributePerson === null || item.distributePerson === undefined){
|
||||||
json.prcCreateUserName = this.$store.getters.userInfo.account;
|
this.$message.warning('请选择分发责任人')
|
||||||
json.standId = this.listForm.standId;
|
} else {
|
||||||
json.XCXSSRQ = this.sarAccessListDatas[0].xcxssrqgj
|
var json = Object.assign(this.listForm, this.roleForm)
|
||||||
json.ZCCSSRQ = this.sarAccessListDatas[0].zccssrqgj
|
json.prcCreateUser = this.$store.getters.userInfo.userId;
|
||||||
this.$refs['listForm'].validate((valid) => {
|
json.prcCreateUserName = this.$store.getters.userInfo.account;
|
||||||
if (valid) {
|
json.standId = this.listForm.standId;
|
||||||
this.$refs['roleForm'].validate((valid) => {
|
json.XCXSSRQ = this.sarAccessListDatas[0].xcxssrqgj
|
||||||
|
json.ZCCSSRQ = this.sarAccessListDatas[0].zccssrqgj
|
||||||
|
this.$refs['listForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$http.get("lawss/activiti/startProcess", { type: "5" }, {
|
this.$refs['roleForm'].validate((valid) => {
|
||||||
_this: this
|
if (valid) {
|
||||||
}, res => {
|
this.$http.get("lawss/activiti/startProcess", { type: "5" }, {
|
||||||
if (res.ok) {
|
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
|
||||||
taskIds: res.data,
|
|
||||||
userId: this.$store.getters.userInfo.userId,
|
|
||||||
json: JSON.stringify(json)
|
|
||||||
}, {
|
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.success) {
|
if (res.ok) {
|
||||||
this.$message.success(res.message);
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
this.$router.push("/processCenter");
|
taskIds: res.data,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: JSON.stringify(json)
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
return this.$message.warning("请完善人员信息");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return this.$message.warning("请完善人员信息");
|
return this.$message.warning("请完善基础信息");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
return this.$message.warning("请完善基础信息");
|
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
//选择拆分标准取消事件
|
//选择拆分标准取消事件
|
||||||
closeDrawer() {
|
closeDrawer() {
|
||||||
@@ -683,7 +690,6 @@ export default {
|
|||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
console.log(res)
|
|
||||||
this.listForm.breakdownList = res.data;
|
this.listForm.breakdownList = res.data;
|
||||||
this.ListModel = false;
|
this.ListModel = false;
|
||||||
}, e => {
|
}, e => {
|
||||||
|
|||||||
@@ -303,7 +303,6 @@ export default {
|
|||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res.mesg);
|
|
||||||
if (res) {
|
if (res) {
|
||||||
const processForm = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
this.getFormFieldList(processForm)
|
this.getFormFieldList(processForm)
|
||||||
@@ -317,7 +316,6 @@ export default {
|
|||||||
*/
|
*/
|
||||||
getFormFieldList (item) {
|
getFormFieldList (item) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
console.log(item.dataList)
|
|
||||||
this.listForm = JSON.parse(JSON.stringify(item))
|
this.listForm = JSON.parse(JSON.stringify(item))
|
||||||
this.listForm.prcNum = this.prcNum
|
this.listForm.prcNum = this.prcNum
|
||||||
this.listForm.prcName = this.prcName
|
this.listForm.prcName = this.prcName
|
||||||
|
|||||||
@@ -364,7 +364,6 @@ export default {
|
|||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res.mesg);
|
|
||||||
if (res) {
|
if (res) {
|
||||||
const processForm = JSON.parse(res.mesg);
|
const processForm = JSON.parse(res.mesg);
|
||||||
this.getFormFieldList(processForm);
|
this.getFormFieldList(processForm);
|
||||||
@@ -386,6 +385,7 @@ export default {
|
|||||||
for (let i = 0; i < item.pepdtos.length; i++) {
|
for (let i = 0; i < item.pepdtos.length; i++) {
|
||||||
for (let j = 0; j < item.pepdtos[i].breakdownList.length; j++) {
|
for (let j = 0; j < item.pepdtos[i].breakdownList.length; j++) {
|
||||||
this.listForm.breakdownList.push({
|
this.listForm.breakdownList.push({
|
||||||
|
itemId: new Date().getTime(),
|
||||||
itemsName: item.pepdtos[i].breakdownList[j].itemsName,
|
itemsName: item.pepdtos[i].breakdownList[j].itemsName,
|
||||||
itemNum: item.pepdtos[i].breakdownList[j].itemsNum,
|
itemNum: item.pepdtos[i].breakdownList[j].itemsNum,
|
||||||
responsibleEngineer: item.pepdtos[i].breakdownList[j].responsibleEngineer,
|
responsibleEngineer: item.pepdtos[i].breakdownList[j].responsibleEngineer,
|
||||||
@@ -406,14 +406,23 @@ export default {
|
|||||||
zCCSSRQ: item.pepdtos[i].zCCSSRQ,
|
zCCSSRQ: item.pepdtos[i].zCCSSRQ,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log(item.pepdtos);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
saveUserInfo() {
|
saveUserInfo() {
|
||||||
if (this.type === "implementer") {
|
if (this.type === "implementer") {
|
||||||
|
// 如果有勾选的项
|
||||||
|
if (this.selectList.length) {
|
||||||
|
this.listForm.breakdownList.forEach((item, index) => {
|
||||||
|
if (this.selectList.includes(item.itemId)) {
|
||||||
|
this.listForm.breakdownList[index].implementerId = this.roleRow.id;
|
||||||
|
this.listForm.breakdownList[index].implementer = this.roleRow.name;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.listForm.breakdownList[this.dsadadadsada].implementerId = this.roleRow.id;
|
||||||
|
this.listForm.breakdownList[this.dsadadadsada].implementer = this.roleRow.name;
|
||||||
|
}
|
||||||
this.listForm.implementer = this.roleRow.name;
|
this.listForm.implementer = this.roleRow.name;
|
||||||
this.listForm.breakdownList[this.dsadadadsada].implementerId = this.roleRow.id;
|
|
||||||
this.listForm.breakdownList[this.dsadadadsada].implementer = this.roleRow.name;
|
|
||||||
this.showColumn = false;
|
this.showColumn = false;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.showColumn = true;
|
this.showColumn = true;
|
||||||
@@ -443,28 +452,34 @@ export default {
|
|||||||
},
|
},
|
||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
|
this.listForm.breakdownList.forEach(item => {
|
||||||
this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId;
|
if(item.implementer === null || item.implementer === '' || item.implementer === undefined){
|
||||||
this.listForm.prcCreateUserName = this.$store.getters.userInfo.account;
|
this.$message.warning('请选择落实人')
|
||||||
this.listForm.zrUserId = this.$store.getters.userInfo.userId;
|
} else {
|
||||||
this.listForm.commentText = this.commentText;
|
this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
|
||||||
this.listForm.approvalOpinion = "";
|
this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId;
|
||||||
this.listForm.signFlag = "";
|
this.listForm.prcCreateUserName = this.$store.getters.userInfo.account;
|
||||||
const json = JSON.stringify(this.listForm.breakdownList);
|
this.listForm.zrUserId = this.$store.getters.userInfo.userId;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.listForm.commentText = this.commentText;
|
||||||
taskIds: this.taskIds,
|
this.listForm.approvalOpinion = "";
|
||||||
userId: this.userId,
|
this.listForm.signFlag = "";
|
||||||
json: json
|
const json = JSON.stringify(this.listForm.breakdownList);
|
||||||
}, {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
_this: this
|
taskIds: this.taskIds,
|
||||||
}, res => {
|
userId: this.userId,
|
||||||
if (res.success) {
|
json: json
|
||||||
this.$message.success(res.message);
|
}, {
|
||||||
this.$router.push("/processCenter");
|
_this: this
|
||||||
}
|
}, res => {
|
||||||
}, e => {
|
if (res.success) {
|
||||||
|
this.$message.success(res.message);
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
}, e => {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
drawerCheck(data) {
|
drawerCheck(data) {
|
||||||
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
|
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
|
||||||
@@ -477,10 +492,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//标准表格选择框改变
|
//标准表格选择框改变
|
||||||
selectStandChange(data) {
|
selectStandChange(data) {
|
||||||
this.selectList = [];
|
this.selectList = data.map(item => item.itemId)
|
||||||
for (let i = 0; i < data.length; i++) {
|
|
||||||
this.selectList.push(data[i].id);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
selectThree() {
|
selectThree() {
|
||||||
|
|
||||||
|
|||||||
@@ -477,7 +477,6 @@ export default {
|
|||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res.mesg);
|
|
||||||
if (res) {
|
if (res) {
|
||||||
const processForm = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
this.getFormFieldList(processForm)
|
this.getFormFieldList(processForm)
|
||||||
|
|||||||
@@ -419,7 +419,6 @@ export default {
|
|||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res.mesg);
|
|
||||||
if (res) {
|
if (res) {
|
||||||
const processForm = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
this.getFormFieldList(processForm)
|
this.getFormFieldList(processForm)
|
||||||
@@ -432,7 +431,6 @@ export default {
|
|||||||
* @description: 动态表单读取
|
* @description: 动态表单读取
|
||||||
*/
|
*/
|
||||||
getFormFieldList (item) {
|
getFormFieldList (item) {
|
||||||
console.log(item);
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.listForm = JSON.parse(JSON.stringify(item))
|
this.listForm = JSON.parse(JSON.stringify(item))
|
||||||
this.listForm.prcNum = this.prcNum
|
this.listForm.prcNum = this.prcNum
|
||||||
@@ -461,7 +459,6 @@ export default {
|
|||||||
this.listForm.fenFlag = "1";
|
this.listForm.fenFlag = "1";
|
||||||
this.listForm.dataList = this.dataList
|
this.listForm.dataList = this.dataList
|
||||||
const json = JSON.stringify(this.listForm);
|
const json = JSON.stringify(this.listForm);
|
||||||
console.log(json);
|
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
@@ -504,7 +501,6 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.processTable()
|
this.processTable()
|
||||||
this.getData()
|
this.getData()
|
||||||
// console.log(this.$store.getters.getHandleInfo);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -419,7 +419,6 @@ export default {
|
|||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res.mesg);
|
|
||||||
if (res) {
|
if (res) {
|
||||||
const processForm = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
this.getFormFieldList(processForm)
|
this.getFormFieldList(processForm)
|
||||||
@@ -432,13 +431,12 @@ export default {
|
|||||||
* @description: 动态表单读取
|
* @description: 动态表单读取
|
||||||
*/
|
*/
|
||||||
getFormFieldList (item) {
|
getFormFieldList (item) {
|
||||||
console.log(item);
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.listForm = JSON.parse(JSON.stringify(item))
|
this.listForm = JSON.parse(JSON.stringify(item))
|
||||||
this.listForm.prcNum = this.prcNum
|
this.listForm.prcNum = this.prcNum
|
||||||
this.listForm.prcName = this.prcName
|
this.listForm.prcName = this.prcName
|
||||||
this.listForm['id'] = item.id
|
this.listForm['id'] = item.id
|
||||||
this.dataList = item.step3DTOS
|
this.dataList = item.dataList
|
||||||
this.listForm.standName = item.step3DTOS[0].standName
|
this.listForm.standName = item.step3DTOS[0].standName
|
||||||
this.listForm.standNumber = item.step3DTOS[0].standNumber
|
this.listForm.standNumber = item.step3DTOS[0].standNumber
|
||||||
this.listForm.qualityEngineer = item.step3DTOS[0].qualityEngineer
|
this.listForm.qualityEngineer = item.step3DTOS[0].qualityEngineer
|
||||||
@@ -503,7 +501,6 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.processTable()
|
this.processTable()
|
||||||
this.getData()
|
this.getData()
|
||||||
// console.log(this.$store.getters.getHandleInfo);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -419,7 +419,6 @@ export default {
|
|||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res.mesg);
|
|
||||||
if (res) {
|
if (res) {
|
||||||
const processForm = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
this.getFormFieldList(processForm)
|
this.getFormFieldList(processForm)
|
||||||
@@ -432,7 +431,6 @@ export default {
|
|||||||
* @description: 动态表单读取
|
* @description: 动态表单读取
|
||||||
*/
|
*/
|
||||||
getFormFieldList (item) {
|
getFormFieldList (item) {
|
||||||
console.log(item.dataList);
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.listForm = JSON.parse(JSON.stringify(item))
|
this.listForm = JSON.parse(JSON.stringify(item))
|
||||||
this.listForm.prcNum = this.prcNum
|
this.listForm.prcNum = this.prcNum
|
||||||
@@ -501,7 +499,6 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.processTable()
|
this.processTable()
|
||||||
this.getData()
|
this.getData()
|
||||||
// console.log(this.$store.getters.getHandleInfo);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
+16
-1
@@ -86,6 +86,12 @@
|
|||||||
prop="countryArea"
|
prop="countryArea"
|
||||||
label="国家/地区"
|
label="国家/地区"
|
||||||
align="center">
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.countryArea.indexOf(',') >= 0">
|
||||||
|
<span>{{ scope.row.countryArea }}</span>
|
||||||
|
</span>
|
||||||
|
<span v-else>{{ countryAreaMap[scope.row.countryArea] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="detailedListName"
|
prop="detailedListName"
|
||||||
@@ -170,6 +176,7 @@ export default {
|
|||||||
name: "listOfCountries",
|
name: "listOfCountries",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
countryAreaMap: {},
|
||||||
searching: false,
|
searching: false,
|
||||||
total: 0,
|
total: 0,
|
||||||
page: 1,
|
page: 1,
|
||||||
@@ -345,9 +352,16 @@ export default {
|
|||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "ListOfStandardsAndRegulationsDetails",
|
name: "ListOfStandardsAndRegulationsDetails",
|
||||||
query: {
|
query: {
|
||||||
id: item.id
|
id: item.id,
|
||||||
|
fileIds: item.fileIds
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
// 将文本状态的id与name对应
|
||||||
|
setMap(data){
|
||||||
|
data.forEach(item => {
|
||||||
|
this.$set(this.countryAreaMap, item.value, item.label)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -358,6 +372,7 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.countryOptions = res.data.COUNTRY;
|
this.countryOptions = res.data.COUNTRY;
|
||||||
|
this.setMap(this.countryOptions)
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -352,7 +352,8 @@ export default {
|
|||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "OtherAddEit",
|
name: "OtherAddEit",
|
||||||
query: {
|
query: {
|
||||||
id: item.id
|
id: item.id,
|
||||||
|
fileIds: item.fileIds
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -355,7 +355,8 @@ export default {
|
|||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "ProjectAddEit",
|
name: "ProjectAddEit",
|
||||||
query: {
|
query: {
|
||||||
id: item.id
|
id: item.id,
|
||||||
|
fileIds: item.fileIds
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -242,6 +242,9 @@
|
|||||||
prop="textStatus"
|
prop="textStatus"
|
||||||
width="120px"
|
width="120px"
|
||||||
label="文本状态">
|
label="文本状态">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -336,25 +339,31 @@
|
|||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="standEnName"
|
||||||
align="center"
|
align="center"
|
||||||
width="180px"
|
width="180px"
|
||||||
label="英文名称">
|
label="英文名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="typeApplicable"
|
||||||
align="center"
|
align="center"
|
||||||
width="180px"
|
width="180px"
|
||||||
label="适用车型">
|
label="适用车型">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ typeApplicableMap[scope.row.typeApplicable] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="nylx"
|
||||||
align="center"
|
align="center"
|
||||||
width="180px"
|
width="180px"
|
||||||
label="能源类型">
|
label="能源类型">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ nylxMap[scope.row.nylx] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="putTime"
|
||||||
sortable
|
sortable
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
@@ -362,14 +371,14 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="zccssrq"
|
prop="zccssrqgj"
|
||||||
sortable
|
sortable
|
||||||
width="210px"
|
width="210px"
|
||||||
align="center"
|
align="center"
|
||||||
label="在产车实施日期">
|
label="在产车实施日期">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="XCXSSRQ"
|
prop="xcxssrqgj"
|
||||||
sortable
|
sortable
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
@@ -377,40 +386,53 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="zccssrq"
|
prop="zrbm"
|
||||||
width="210px"
|
width="210px"
|
||||||
align="center"
|
align="center"
|
||||||
label="责任部门">
|
label="责任部门">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ zrbmMap[scope.row.zrbm] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="sycpx"
|
||||||
width="180px"
|
width="180px"
|
||||||
align="center"
|
align="center"
|
||||||
label="适用产品线">
|
label="适用产品线">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ sycpxMap[scope.row.sycpx] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="cycvppsbm"
|
||||||
|
width="210px"
|
||||||
|
align="center"
|
||||||
|
label="乘用车VPPS编码">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
show-overflow-tooltip
|
||||||
|
prop="cycvppscn"
|
||||||
width="210px"
|
width="210px"
|
||||||
align="center"
|
align="center"
|
||||||
label="乘用车VPPS中文名称">
|
label="乘用车VPPS中文名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="kccvppsbm"
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
label="卡车VPPS编码">
|
label="卡车VPPS编码">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="kccvppscn"
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
label="卡车VPPS中文名称">
|
label="卡车VPPS中文名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column>
|
<el-table-column width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
@@ -421,6 +443,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
type="danger"
|
type="danger"
|
||||||
|
style="margin-left: 0px"
|
||||||
size="small" @click="moveDown(scope.$index, scope.row)"
|
size="small" @click="moveDown(scope.$index, scope.row)"
|
||||||
v-if="!disabledFlag"
|
v-if="!disabledFlag"
|
||||||
>下移</el-button>
|
>下移</el-button>
|
||||||
@@ -526,12 +549,18 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
return {
|
return {
|
||||||
|
textStatusMap: {},
|
||||||
|
typeApplicableMap: {},
|
||||||
|
nylxMap: {},
|
||||||
|
zrbmMap: {},
|
||||||
|
sycpxMap: {},
|
||||||
selectSearch : [],
|
selectSearch : [],
|
||||||
// 新增、编辑 基础信息字段
|
// 新增、编辑 基础信息字段
|
||||||
sarAccessEO: {
|
sarAccessEO: {
|
||||||
id: '',
|
id: '',
|
||||||
sortKey: 1,
|
sortKey: 1,
|
||||||
countryArea: '',
|
countryArea: '',
|
||||||
|
fileIds: '',
|
||||||
detailedListName: '',
|
detailedListName: '',
|
||||||
energyKind: '',
|
energyKind: '',
|
||||||
type: '',
|
type: '',
|
||||||
@@ -552,9 +581,6 @@ export default {
|
|||||||
detailedListName: [
|
detailedListName: [
|
||||||
{required: true, message: '清单名称不能为空', trigger: 'blur'},
|
{required: true, message: '清单名称不能为空', trigger: 'blur'},
|
||||||
{type: 'string', max: 100, message: '表单名称不能超过100个字符', trigger: 'blur'}
|
{type: 'string', max: 100, message: '表单名称不能超过100个字符', trigger: 'blur'}
|
||||||
],
|
|
||||||
remark: [
|
|
||||||
{required: true,type: 'string', max: 500, message: '表单名称不能超过500个字符', trigger: 'blur'}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
disabledFlag: false,
|
disabledFlag: false,
|
||||||
@@ -846,7 +872,6 @@ export default {
|
|||||||
uploadBackSuccess (res, file, fileList) {
|
uploadBackSuccess (res, file, fileList) {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.fileInfoList = fileList
|
this.fileInfoList = fileList
|
||||||
console.log(this.fileInfoList)
|
|
||||||
this.fileInfoList[this.fileInfoList.length - 1].id = res.data.id
|
this.fileInfoList[this.fileInfoList.length - 1].id = res.data.id
|
||||||
this.$message.success('上传成功')
|
this.$message.success('上传成功')
|
||||||
} else {
|
} else {
|
||||||
@@ -1186,8 +1211,7 @@ export default {
|
|||||||
this.fileInfoList.map(item => {
|
this.fileInfoList.map(item => {
|
||||||
relateFile.push(item.id)
|
relateFile.push(item.id)
|
||||||
})
|
})
|
||||||
sarAccessEO.relateFile = relateFile.join(',')
|
sarAccessEO.fileIds = relateFile.join(',')
|
||||||
console.log(sarAccessEO.relateFile)
|
|
||||||
}
|
}
|
||||||
if (!sarAccessEO.id) {
|
if (!sarAccessEO.id) {
|
||||||
// 新增
|
// 新增
|
||||||
@@ -1201,12 +1225,8 @@ export default {
|
|||||||
this.$message.success('新增成功')
|
this.$message.success('新增成功')
|
||||||
this.isNext = true
|
this.isNext = true
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'AccessStandardsAndRegulations',
|
name: 'AccessStandardsAndRegulations'
|
||||||
query: {
|
|
||||||
relateFile: sarAccessEO.relateFile
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
console.log(sarAccessEO)
|
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
@@ -1604,7 +1624,7 @@ export default {
|
|||||||
// 请求上传的文件信息
|
// 请求上传的文件信息
|
||||||
getFileInfo () {
|
getFileInfo () {
|
||||||
this.$http.get('att/attFile/getMultiFileInfos', {
|
this.$http.get('att/attFile/getMultiFileInfos', {
|
||||||
fileIds: this.sarAccessEO.relateFile
|
fileIds: this.$route.query.fileIds
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
@@ -1696,6 +1716,16 @@ export default {
|
|||||||
this.sarAccessInfoList = res.data
|
this.sarAccessInfoList = res.data
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
// 将文本状态的id与name对应
|
||||||
|
setMap(data){
|
||||||
|
data.forEach(item => {
|
||||||
|
this.$set(this.textStatusMap, item.value, item.label)
|
||||||
|
this.$set(this.typeApplicableMap, item.value, item.label)
|
||||||
|
this.$set(this.nylxMap, item.value, item.label)
|
||||||
|
this.$set(this.zrbmMap, item.value, item.label)
|
||||||
|
this.$set(this.sycpxMap, item.value, item.label)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -1732,6 +1762,15 @@ export default {
|
|||||||
this.ROLELIST = res.data.ROLELIST
|
this.ROLELIST = res.data.ROLELIST
|
||||||
this.GXHBQOptions = res.data.GXHBQXX
|
this.GXHBQOptions = res.data.GXHBQXX
|
||||||
this.askNatureOptions = res.data.ACCESSTYPE
|
this.askNatureOptions = res.data.ACCESSTYPE
|
||||||
|
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
||||||
|
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
||||||
|
this.textStatusOptions = res.data.WBZTCLASS
|
||||||
|
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
||||||
|
this.setMap(this.textStatusOptions)
|
||||||
|
this.setMap(this.zrbmOptions)
|
||||||
|
this.setMap(this.categoryOptions)
|
||||||
|
this.setMap(this.sycpxOptions)
|
||||||
|
this.setMap(this.energyKindOptions)
|
||||||
this.getGzzOption()
|
this.getGzzOption()
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -11,7 +11,10 @@
|
|||||||
<div v-show="heightShow" class="transition-box">
|
<div v-show="heightShow" class="transition-box">
|
||||||
<p class="transition-box-p">
|
<p class="transition-box-p">
|
||||||
<label class="transition-box-label">国家/地区:</label>
|
<label class="transition-box-label">国家/地区:</label>
|
||||||
<span class="transition-box-span">{{ sarAccessEO.countryArea }}</span>
|
<span class="transition-box-span" v-if="sarAccessEO.countryArea.indexOf(',') >= 0">
|
||||||
|
<span>{{ sarAccessEO.countryArea }}</span>
|
||||||
|
</span>
|
||||||
|
<span class="transition-box-span" v-else>{{ countryAreaMap[sarAccessEO.countryArea] }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="transition-box-p">
|
<p class="transition-box-p">
|
||||||
<label class="transition-box-label">清单说明:</label>
|
<label class="transition-box-label">清单说明:</label>
|
||||||
@@ -21,7 +24,7 @@
|
|||||||
<label class="transition-box-label">附件:</label>
|
<label class="transition-box-label">附件:</label>
|
||||||
<div class="file-box" v-if="fileInfoList.length > 0">
|
<div class="file-box" v-if="fileInfoList.length > 0">
|
||||||
<p v-for="item in fileInfoList"
|
<p v-for="item in fileInfoList"
|
||||||
:key="item.id">
|
:key="item.id"> {{ item.name }}
|
||||||
<i
|
<i
|
||||||
title="下载"
|
title="下载"
|
||||||
@click="downloadFile(item.id)"
|
@click="downloadFile(item.id)"
|
||||||
@@ -124,31 +127,35 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="standName"
|
prop="standName"
|
||||||
label="中文名称"
|
label="中文名称"
|
||||||
align="center"
|
|
||||||
fixed="left"
|
|
||||||
width="180px"
|
width="180px"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="standEnName"
|
||||||
align="center"
|
align="center"
|
||||||
width="180px"
|
width="180px"
|
||||||
label="英文名称">
|
label="英文名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="typeApplicable"
|
||||||
align="center"
|
align="center"
|
||||||
width="180px"
|
width="180px"
|
||||||
label="适用车型">
|
label="适用车型">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ typeApplicableMap[scope.row.typeApplicable] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="nylx"
|
||||||
align="center"
|
align="center"
|
||||||
width="180px"
|
width="180px"
|
||||||
label="能源类型">
|
label="能源类型">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ nylxMap[scope.row.nylx] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="putTime"
|
||||||
sortable
|
sortable
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
@@ -156,14 +163,14 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="zccssrq"
|
prop="zccssrqgj"
|
||||||
sortable
|
sortable
|
||||||
width="210px"
|
width="210px"
|
||||||
align="center"
|
align="center"
|
||||||
label="在产车实施日期">
|
label="在产车实施日期">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="xcxssrq"
|
prop="xcxssrqgj"
|
||||||
sortable
|
sortable
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
@@ -171,35 +178,48 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="zccssrq"
|
prop="zrbm"
|
||||||
width="210px"
|
width="210px"
|
||||||
align="center"
|
align="center"
|
||||||
label="责任部门">
|
label="责任部门">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ zrbmMap[scope.row.zrbm] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="sycpx"
|
||||||
width="180px"
|
width="180px"
|
||||||
align="center"
|
align="center"
|
||||||
label="适用产品线">
|
label="适用产品线">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ sycpxMap[scope.row.sycpx] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="cycvppsbm"
|
||||||
|
width="210px"
|
||||||
|
align="center"
|
||||||
|
label="乘用车VPPS编码">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
show-overflow-tooltip
|
||||||
|
prop="cycvppscn"
|
||||||
width="210px"
|
width="210px"
|
||||||
align="center"
|
align="center"
|
||||||
label="乘用车VPPS中文名称">
|
label="乘用车VPPS中文名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="kccvppsbm"
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
label="卡车VPPS编码">
|
label="卡车VPPS编码">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="kccvppscn"
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
label="卡车VPPS中文名称">
|
label="卡车VPPS中文名称">
|
||||||
@@ -256,6 +276,12 @@ export default {
|
|||||||
name: "AccessStandardDetails",
|
name: "AccessStandardDetails",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
textStatusMap: {},
|
||||||
|
typeApplicableMap: {},
|
||||||
|
nylxMap: {},
|
||||||
|
zrbmMap: {},
|
||||||
|
sycpxMap: {},
|
||||||
|
countryAreaMap: {},
|
||||||
standinfoList: [],
|
standinfoList: [],
|
||||||
standardFormTotal: 0,
|
standardFormTotal: 0,
|
||||||
relateDialog: false,
|
relateDialog: false,
|
||||||
@@ -452,9 +478,8 @@ export default {
|
|||||||
},
|
},
|
||||||
// 请求上传的文件信息
|
// 请求上传的文件信息
|
||||||
getFileInfo() {
|
getFileInfo() {
|
||||||
console.log(this.sarAccessEO)
|
|
||||||
this.$http.get("att/attFile/getMultiFileInfos", {
|
this.$http.get("att/attFile/getMultiFileInfos", {
|
||||||
fileIds: this.sarAccessEO.relateFile
|
fileIds: this.sarAccessEO.fileIds
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
@@ -474,7 +499,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 附件下载事件
|
// 附件下载事件
|
||||||
fileDownLoad(attId) {
|
fileDownLoad(attId) {
|
||||||
window.location.href = "/api/att/attFile/downloadFile?fileId=" + attId;
|
window.location.href = "/api/att/attFile/downloadFile?fileId=" + attId
|
||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(item) {
|
handlePreview(item) {
|
||||||
@@ -560,6 +585,17 @@ export default {
|
|||||||
doLayout() {
|
doLayout() {
|
||||||
this.$refs.adminTable && this.$refs.adminTable.doLayout();
|
this.$refs.adminTable && this.$refs.adminTable.doLayout();
|
||||||
this.$refs.skillTable && this.$refs.skillTable.doLayout();
|
this.$refs.skillTable && this.$refs.skillTable.doLayout();
|
||||||
|
},
|
||||||
|
// 将文本状态的id与name对应
|
||||||
|
setMap(data){
|
||||||
|
data.forEach(item => {
|
||||||
|
this.$set(this.textStatusMap, item.value, item.label)
|
||||||
|
this.$set(this.typeApplicableMap, item.value, item.label)
|
||||||
|
this.$set(this.nylxMap, item.value, item.label)
|
||||||
|
this.$set(this.zrbmMap, item.value, item.label)
|
||||||
|
this.$set(this.sycpxMap, item.value, item.label)
|
||||||
|
this.$set(this.countryAreaMap, item.value, item.label)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -589,6 +625,16 @@ export default {
|
|||||||
this.ROLELIST = res.data.ROLELIST;
|
this.ROLELIST = res.data.ROLELIST;
|
||||||
this.GXHBQOptions = res.data.GXHBQXX;
|
this.GXHBQOptions = res.data.GXHBQXX;
|
||||||
this.askNatureOptions = res.data.ACCESSTYPE;
|
this.askNatureOptions = res.data.ACCESSTYPE;
|
||||||
|
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
||||||
|
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
||||||
|
this.textStatusOptions = res.data.WBZTCLASS
|
||||||
|
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
||||||
|
this.setMap(this.textStatusOptions)
|
||||||
|
this.setMap(this.zrbmOptions)
|
||||||
|
this.setMap(this.categoryOptions)
|
||||||
|
this.setMap(this.sycpxOptions)
|
||||||
|
this.setMap(this.energyKindOptions)
|
||||||
|
this.setMap(this.drawerCountryOptions)
|
||||||
this.getGzzOption();
|
this.getGzzOption();
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
|
|||||||
+60
-13
@@ -227,6 +227,9 @@
|
|||||||
prop="textStatus"
|
prop="textStatus"
|
||||||
width="120px"
|
width="120px"
|
||||||
label="文本状态">
|
label="文本状态">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -321,25 +324,31 @@
|
|||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="standEnName"
|
||||||
align="center"
|
align="center"
|
||||||
width="180px"
|
width="180px"
|
||||||
label="英文名称">
|
label="英文名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="typeApplicable"
|
||||||
align="center"
|
align="center"
|
||||||
width="180px"
|
width="180px"
|
||||||
label="适用车型">
|
label="适用车型">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ typeApplicableMap[scope.row.typeApplicable] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="nylx"
|
||||||
align="center"
|
align="center"
|
||||||
width="180px"
|
width="180px"
|
||||||
label="能源类型">
|
label="能源类型">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ nylxMap[scope.row.nylx] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="putTime"
|
||||||
sortable
|
sortable
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
@@ -347,14 +356,14 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="zccssrq"
|
prop="zccssrqgj"
|
||||||
sortable
|
sortable
|
||||||
width="210px"
|
width="210px"
|
||||||
align="center"
|
align="center"
|
||||||
label="在产车实施日期">
|
label="在产车实施日期">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="XCXSSRQ"
|
prop="xcxssrqgj"
|
||||||
sortable
|
sortable
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
@@ -362,35 +371,48 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="zccssrq"
|
prop="zrbm"
|
||||||
width="210px"
|
width="210px"
|
||||||
align="center"
|
align="center"
|
||||||
label="责任部门">
|
label="责任部门">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ zrbmMap[scope.row.zrbm] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="sycpx"
|
||||||
width="180px"
|
width="180px"
|
||||||
align="center"
|
align="center"
|
||||||
label="适用产品线">
|
label="适用产品线">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ sycpxMap[scope.row.sycpx] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="cycvppsbm"
|
||||||
|
width="210px"
|
||||||
|
align="center"
|
||||||
|
label="乘用车VPPS编码">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
show-overflow-tooltip
|
||||||
|
prop="cycvppscn"
|
||||||
width="210px"
|
width="210px"
|
||||||
align="center"
|
align="center"
|
||||||
label="乘用车VPPS中文名称">
|
label="乘用车VPPS中文名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="kccvppsbm"
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
label="卡车VPPS编码">
|
label="卡车VPPS编码">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="kccvppscn"
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
label="卡车VPPS中文名称">
|
label="卡车VPPS中文名称">
|
||||||
@@ -511,11 +533,17 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
return {
|
return {
|
||||||
|
textStatusMap: {},
|
||||||
|
typeApplicableMap: {},
|
||||||
|
nylxMap: {},
|
||||||
|
zrbmMap: {},
|
||||||
|
sycpxMap: {},
|
||||||
selectSearch : [],
|
selectSearch : [],
|
||||||
// 新增、编辑 基础信息字段
|
// 新增、编辑 基础信息字段
|
||||||
sarAccessEO: {
|
sarAccessEO: {
|
||||||
id: '',
|
id: '',
|
||||||
sortKey: 4,
|
sortKey: 4,
|
||||||
|
fileIds: '',
|
||||||
detailedList: '',
|
detailedList: '',
|
||||||
detailedListName: '',
|
detailedListName: '',
|
||||||
energyKind: '',
|
energyKind: '',
|
||||||
@@ -1167,7 +1195,7 @@ export default {
|
|||||||
this.fileInfoList.map(item => {
|
this.fileInfoList.map(item => {
|
||||||
relateFile.push(item.id)
|
relateFile.push(item.id)
|
||||||
})
|
})
|
||||||
sarAccessEO.relateFile = relateFile.join(',')
|
sarAccessEO.fileIds = relateFile.join(',')
|
||||||
}
|
}
|
||||||
if (!sarAccessEO.id) {
|
if (!sarAccessEO.id) {
|
||||||
// 新增
|
// 新增
|
||||||
@@ -1584,7 +1612,7 @@ export default {
|
|||||||
// 请求上传的文件信息
|
// 请求上传的文件信息
|
||||||
getFileInfo () {
|
getFileInfo () {
|
||||||
this.$http.get('att/attFile/getMultiFileInfos', {
|
this.$http.get('att/attFile/getMultiFileInfos', {
|
||||||
fileIds: this.sarAccessEO.relateFile
|
fileIds: this.$route.query.fileIds
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
@@ -1678,6 +1706,16 @@ export default {
|
|||||||
}, e => {
|
}, e => {
|
||||||
|
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
// 将文本状态的id与name对应
|
||||||
|
setMap(data){
|
||||||
|
data.forEach(item => {
|
||||||
|
this.$set(this.textStatusMap, item.value, item.label)
|
||||||
|
this.$set(this.typeApplicableMap, item.value, item.label)
|
||||||
|
this.$set(this.nylxMap, item.value, item.label)
|
||||||
|
this.$set(this.zrbmMap, item.value, item.label)
|
||||||
|
this.$set(this.sycpxMap, item.value, item.label)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -1714,6 +1752,15 @@ export default {
|
|||||||
this.ROLELIST = res.data.ROLELIST
|
this.ROLELIST = res.data.ROLELIST
|
||||||
this.GXHBQOptions = res.data.GXHBQXX
|
this.GXHBQOptions = res.data.GXHBQXX
|
||||||
this.askNatureOptions = res.data.ACCESSTYPE
|
this.askNatureOptions = res.data.ACCESSTYPE
|
||||||
|
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
||||||
|
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
||||||
|
this.textStatusOptions = res.data.WBZTCLASS
|
||||||
|
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
||||||
|
this.setMap(this.textStatusOptions)
|
||||||
|
this.setMap(this.zrbmOptions)
|
||||||
|
this.setMap(this.categoryOptions)
|
||||||
|
this.setMap(this.sycpxOptions)
|
||||||
|
this.setMap(this.energyKindOptions)
|
||||||
this.getGzzOption()
|
this.getGzzOption()
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
|
|||||||
+60
-13
@@ -227,6 +227,9 @@
|
|||||||
prop="textStatus"
|
prop="textStatus"
|
||||||
width="120px"
|
width="120px"
|
||||||
label="文本状态">
|
label="文本状态">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -321,25 +324,31 @@
|
|||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="standEnName"
|
||||||
align="center"
|
align="center"
|
||||||
width="180px"
|
width="180px"
|
||||||
label="英文名称">
|
label="英文名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="typeApplicable"
|
||||||
align="center"
|
align="center"
|
||||||
width="180px"
|
width="180px"
|
||||||
label="适用车型">
|
label="适用车型">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ typeApplicableMap[scope.row.typeApplicable] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="nylx"
|
||||||
align="center"
|
align="center"
|
||||||
width="180px"
|
width="180px"
|
||||||
label="能源类型">
|
label="能源类型">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ nylxMap[scope.row.nylx] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="issueTime"
|
prop="putTime"
|
||||||
sortable
|
sortable
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
@@ -347,14 +356,14 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="zccssrq"
|
prop="zccssrqgj"
|
||||||
sortable
|
sortable
|
||||||
width="210px"
|
width="210px"
|
||||||
align="center"
|
align="center"
|
||||||
label="在产车实施日期">
|
label="在产车实施日期">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="XCXSSRQ"
|
prop="xcxssrqgj"
|
||||||
sortable
|
sortable
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
@@ -362,35 +371,48 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="zccssrq"
|
prop="zrbm"
|
||||||
width="210px"
|
width="210px"
|
||||||
align="center"
|
align="center"
|
||||||
label="责任部门">
|
label="责任部门">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ zrbmMap[scope.row.zrbm] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="sycpx"
|
||||||
width="180px"
|
width="180px"
|
||||||
align="center"
|
align="center"
|
||||||
label="适用产品线">
|
label="适用产品线">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ sycpxMap[scope.row.sycpx] }}</span>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="cycvppsbm"
|
||||||
|
width="210px"
|
||||||
|
align="center"
|
||||||
|
label="乘用车VPPS编码">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
show-overflow-tooltip
|
||||||
|
prop="cycvppscn"
|
||||||
width="210px"
|
width="210px"
|
||||||
align="center"
|
align="center"
|
||||||
label="乘用车VPPS中文名称">
|
label="乘用车VPPS中文名称">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="kccvppsbm"
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
label="卡车VPPS编码">
|
label="卡车VPPS编码">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
prop="textStatus"
|
prop="kccvppscn"
|
||||||
align="center"
|
align="center"
|
||||||
width="210px"
|
width="210px"
|
||||||
label="卡车VPPS中文名称">
|
label="卡车VPPS中文名称">
|
||||||
@@ -511,11 +533,17 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
return {
|
return {
|
||||||
|
textStatusMap: {},
|
||||||
|
typeApplicableMap: {},
|
||||||
|
nylxMap: {},
|
||||||
|
zrbmMap: {},
|
||||||
|
sycpxMap: {},
|
||||||
selectSearch : [],
|
selectSearch : [],
|
||||||
// 新增、编辑 基础信息字段
|
// 新增、编辑 基础信息字段
|
||||||
sarAccessEO: {
|
sarAccessEO: {
|
||||||
id: '',
|
id: '',
|
||||||
sortKey: 2,
|
sortKey: 2,
|
||||||
|
fileIds: '',
|
||||||
projectName: '',
|
projectName: '',
|
||||||
detailedListName: '',
|
detailedListName: '',
|
||||||
energyKind: '',
|
energyKind: '',
|
||||||
@@ -1168,7 +1196,7 @@ export default {
|
|||||||
this.fileInfoList.map(item => {
|
this.fileInfoList.map(item => {
|
||||||
relateFile.push(item.id)
|
relateFile.push(item.id)
|
||||||
})
|
})
|
||||||
sarAccessEO.relateFile = relateFile.join(',')
|
sarAccessEO.fileIds = relateFile.join(',')
|
||||||
}
|
}
|
||||||
if (!sarAccessEO.id) {
|
if (!sarAccessEO.id) {
|
||||||
// 新增
|
// 新增
|
||||||
@@ -1585,7 +1613,7 @@ export default {
|
|||||||
// 请求上传的文件信息
|
// 请求上传的文件信息
|
||||||
getFileInfo () {
|
getFileInfo () {
|
||||||
this.$http.get('att/attFile/getMultiFileInfos', {
|
this.$http.get('att/attFile/getMultiFileInfos', {
|
||||||
fileIds: this.sarAccessEO.relateFile
|
fileIds: this.$route.query.fileIds
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
@@ -1679,6 +1707,16 @@ export default {
|
|||||||
}, e => {
|
}, e => {
|
||||||
|
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
// 将文本状态的id与name对应
|
||||||
|
setMap(data){
|
||||||
|
data.forEach(item => {
|
||||||
|
this.$set(this.textStatusMap, item.value, item.label)
|
||||||
|
this.$set(this.typeApplicableMap, item.value, item.label)
|
||||||
|
this.$set(this.nylxMap, item.value, item.label)
|
||||||
|
this.$set(this.zrbmMap, item.value, item.label)
|
||||||
|
this.$set(this.sycpxMap, item.value, item.label)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -1715,6 +1753,15 @@ export default {
|
|||||||
this.ROLELIST = res.data.ROLELIST
|
this.ROLELIST = res.data.ROLELIST
|
||||||
this.GXHBQOptions = res.data.GXHBQXX
|
this.GXHBQOptions = res.data.GXHBQXX
|
||||||
this.askNatureOptions = res.data.ACCESSTYPE
|
this.askNatureOptions = res.data.ACCESSTYPE
|
||||||
|
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
||||||
|
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
||||||
|
this.textStatusOptions = res.data.WBZTCLASS
|
||||||
|
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
||||||
|
this.setMap(this.textStatusOptions)
|
||||||
|
this.setMap(this.zrbmOptions)
|
||||||
|
this.setMap(this.categoryOptions)
|
||||||
|
this.setMap(this.sycpxOptions)
|
||||||
|
this.setMap(this.energyKindOptions)
|
||||||
this.getGzzOption()
|
this.getGzzOption()
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user