流程bug
This commit is contained in:
@@ -43,25 +43,25 @@
|
||||
<template slot="title">填写信息</template>
|
||||
</process-title>
|
||||
<el-table
|
||||
:data="dataList"
|
||||
style="width: 100%; border: 1px solid #cccccc"
|
||||
row-key="standId"
|
||||
height="70%"
|
||||
border
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
:data="dataList"
|
||||
style="width: 100%; border: 1px solid #cccccc"
|
||||
row-key="standId"
|
||||
height="70%"
|
||||
border
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', height: '48px'}"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standEnName"
|
||||
label="标准编号"
|
||||
width="180"
|
||||
fixed="left"
|
||||
align="center"
|
||||
prop="standEnName"
|
||||
label="标准编号"
|
||||
width="180"
|
||||
fixed="left"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a v-if="scope.row.standYear" class="table-jump"
|
||||
@@ -72,126 +72,128 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
fixed="left"
|
||||
width="180"
|
||||
align="center"
|
||||
label="标准名称"
|
||||
prop="standName"
|
||||
fixed="left"
|
||||
width="180"
|
||||
align="center"
|
||||
label="标准名称"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="itemsNum"
|
||||
align="center"
|
||||
width="200"
|
||||
label="条款号">
|
||||
prop="itemsNum"
|
||||
align="center"
|
||||
width="200"
|
||||
label="条款号">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="itemsName"
|
||||
width="200"
|
||||
align="center"
|
||||
label="条款名称">
|
||||
prop="itemsName"
|
||||
width="200"
|
||||
align="center"
|
||||
label="条款名称">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="xcxssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="新车型实施日期">
|
||||
prop="xcxssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="新车型实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zccssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="在产车实施日期">
|
||||
prop="zccssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="在产车实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="productType"
|
||||
align="center"
|
||||
label="在研产品">
|
||||
prop="productType"
|
||||
align="center"
|
||||
label="在研产品">
|
||||
<el-table-column
|
||||
prop="complianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规">
|
||||
prop="complianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="160"
|
||||
prop="researchNonCompliance"
|
||||
label="不合规">
|
||||
align="center"
|
||||
width="160"
|
||||
prop="researchNonCompliance"
|
||||
label="不合规">
|
||||
<el-table-column
|
||||
prop="noCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
prop="noCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="countermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
prop="countermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="completionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
prop="completionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.completionTime ? $moment(scope.row.completionTime).format('YYYY-MM-DD') : '' }}</span>
|
||||
<span>{{ scope.row.completionTime ? $moment(scope.row.completionTime).format("YYYY-MM-DD") : ""
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="在产产品">
|
||||
align="center"
|
||||
label="在产产品">
|
||||
<el-table-column
|
||||
prop="zcComplianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规(具体情况)">
|
||||
prop="zcComplianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规(具体情况)">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规">
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规">
|
||||
<el-table-column
|
||||
prop="zcNoCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
prop="zcNoCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zcCountermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
prop="zcCountermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zcCompletionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
prop="zcCompletionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format('YYYY-MM-DD') : '' }}</span>
|
||||
<span>{{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format("YYYY-MM-DD") : ""
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="workPeople"
|
||||
align="center"
|
||||
width="200"
|
||||
label="责任人">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="workPeople"
|
||||
align="center"
|
||||
width="200"
|
||||
label="责任人">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div>
|
||||
@@ -351,14 +353,14 @@ export default {
|
||||
}, res => {
|
||||
this.standardData = res.data.list;
|
||||
this.standardData.forEach(item => {
|
||||
if(item.attrInfoMap === null){
|
||||
this.$set(item, "ZCCSSRQ", '');
|
||||
this.$set(item, "XCXSSRQ", '');
|
||||
}else{
|
||||
if (item.attrInfoMap === null) {
|
||||
this.$set(item, "ZCCSSRQ", "");
|
||||
this.$set(item, "XCXSSRQ", "");
|
||||
} else {
|
||||
this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ);
|
||||
this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ);
|
||||
}
|
||||
})
|
||||
});
|
||||
this.totalNo = res.data.count;
|
||||
}, e => {
|
||||
});
|
||||
@@ -410,9 +412,9 @@ export default {
|
||||
},
|
||||
//驳回事件
|
||||
beforeBack() {
|
||||
if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
|
||||
this.$message.warning('请填写审批意见')
|
||||
}else{
|
||||
if (this.commentText === null || this.commentText === undefined || this.commentText === "") {
|
||||
this.$message.warning("请填写审批意见");
|
||||
} else {
|
||||
this.listForm.bzFlag = "2";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
@@ -433,24 +435,26 @@ export default {
|
||||
},
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
this.listForm.bzFlag = "1";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
console.log(json)
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
this.isSubmit = true;
|
||||
this.listForm.bzFlag = "1";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
console.log(json);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
}, e => {
|
||||
});
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
listNoDataText() {
|
||||
|
||||
@@ -43,25 +43,25 @@
|
||||
<template slot="title">填写信息</template>
|
||||
</process-title>
|
||||
<el-table
|
||||
:data="dataList"
|
||||
style="width: 100%; border: 1px solid #cccccc"
|
||||
row-key="standId"
|
||||
height="70%"
|
||||
border
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
:data="dataList"
|
||||
style="width: 100%; border: 1px solid #cccccc"
|
||||
row-key="standId"
|
||||
height="70%"
|
||||
border
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', height: '48px'}"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standEnName"
|
||||
label="标准编号"
|
||||
width="180"
|
||||
fixed="left"
|
||||
align="center"
|
||||
prop="standEnName"
|
||||
label="标准编号"
|
||||
width="180"
|
||||
fixed="left"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a v-if="scope.row.standYear" class="table-jump"
|
||||
@@ -72,126 +72,128 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
fixed="left"
|
||||
width="180"
|
||||
align="center"
|
||||
label="标准名称"
|
||||
prop="standName"
|
||||
fixed="left"
|
||||
width="180"
|
||||
align="center"
|
||||
label="标准名称"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="itemsNum"
|
||||
align="center"
|
||||
width="200"
|
||||
label="条款号">
|
||||
prop="itemsNum"
|
||||
align="center"
|
||||
width="200"
|
||||
label="条款号">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="itemsName"
|
||||
width="200"
|
||||
align="center"
|
||||
label="条款名称">
|
||||
prop="itemsName"
|
||||
width="200"
|
||||
align="center"
|
||||
label="条款名称">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="xcxssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="新车型实施日期">
|
||||
prop="xcxssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="新车型实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zccssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="在产车实施日期">
|
||||
prop="zccssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="在产车实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="productType"
|
||||
align="center"
|
||||
label="在研产品">
|
||||
prop="productType"
|
||||
align="center"
|
||||
label="在研产品">
|
||||
<el-table-column
|
||||
prop="complianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规">
|
||||
prop="complianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="160"
|
||||
prop="researchNonCompliance"
|
||||
label="不合规">
|
||||
align="center"
|
||||
width="160"
|
||||
prop="researchNonCompliance"
|
||||
label="不合规">
|
||||
<el-table-column
|
||||
prop="noCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
prop="noCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="countermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
prop="countermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="completionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
prop="completionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.completionTime ? $moment(scope.row.completionTime).format('YYYY-MM-DD') : '' }}</span>
|
||||
<span>{{ scope.row.completionTime ? $moment(scope.row.completionTime).format("YYYY-MM-DD") : ""
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="在产产品">
|
||||
align="center"
|
||||
label="在产产品">
|
||||
<el-table-column
|
||||
prop="zcComplianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规(具体情况)">
|
||||
prop="zcComplianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规(具体情况)">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规">
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规">
|
||||
<el-table-column
|
||||
prop="zcNoCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
prop="zcNoCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zcCountermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
prop="zcCountermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zcCompletionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
prop="zcCompletionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format('YYYY-MM-DD') : '' }}</span>
|
||||
<span>{{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format("YYYY-MM-DD") : ""
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="workPeople"
|
||||
align="center"
|
||||
width="200"
|
||||
label="责任人">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="workPeople"
|
||||
align="center"
|
||||
width="200"
|
||||
label="责任人">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div>
|
||||
@@ -349,14 +351,14 @@ export default {
|
||||
}, res => {
|
||||
this.standardData = res.data.list;
|
||||
this.standardData.forEach(item => {
|
||||
if(item.attrInfoMap === null){
|
||||
this.$set(item, "ZCCSSRQ", '');
|
||||
this.$set(item, "XCXSSRQ", '');
|
||||
}else{
|
||||
if (item.attrInfoMap === null) {
|
||||
this.$set(item, "ZCCSSRQ", "");
|
||||
this.$set(item, "XCXSSRQ", "");
|
||||
} else {
|
||||
this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ);
|
||||
this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ);
|
||||
}
|
||||
})
|
||||
});
|
||||
this.totalNo = res.data.count;
|
||||
}, e => {
|
||||
});
|
||||
@@ -385,7 +387,7 @@ export default {
|
||||
taskIds: this.taskIds,
|
||||
pId: this.pId
|
||||
}).then(res => {
|
||||
console.log(res.mesg)
|
||||
console.log(res.mesg);
|
||||
if (res) {
|
||||
const processForm = JSON.parse(res.mesg);
|
||||
this.getFormFieldList(processForm);
|
||||
@@ -409,23 +411,25 @@ export default {
|
||||
},
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
this.listForm.bzFlag = "1";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
this.isSubmit = true;
|
||||
this.listForm.bzFlag = "1";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
}, e => {
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
|
||||
@@ -43,25 +43,25 @@
|
||||
<template slot="title">填写信息</template>
|
||||
</process-title>
|
||||
<el-table
|
||||
:data="dataList"
|
||||
style="width: 100%; border: 1px solid #cccccc"
|
||||
row-key="standId"
|
||||
height="70%"
|
||||
border
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
:data="dataList"
|
||||
style="width: 100%; border: 1px solid #cccccc"
|
||||
row-key="standId"
|
||||
height="70%"
|
||||
border
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', height: '48px'}"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standEnName"
|
||||
label="标准编号"
|
||||
width="180"
|
||||
fixed="left"
|
||||
align="center"
|
||||
prop="standEnName"
|
||||
label="标准编号"
|
||||
width="180"
|
||||
fixed="left"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a v-if="scope.row.standYear" class="table-jump"
|
||||
@@ -72,126 +72,128 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
fixed="left"
|
||||
width="180"
|
||||
align="center"
|
||||
label="标准名称"
|
||||
prop="standName"
|
||||
fixed="left"
|
||||
width="180"
|
||||
align="center"
|
||||
label="标准名称"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="itemsNum"
|
||||
align="center"
|
||||
width="200"
|
||||
label="条款号">
|
||||
prop="itemsNum"
|
||||
align="center"
|
||||
width="200"
|
||||
label="条款号">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="itemsName"
|
||||
width="200"
|
||||
align="center"
|
||||
label="条款名称">
|
||||
prop="itemsName"
|
||||
width="200"
|
||||
align="center"
|
||||
label="条款名称">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="xcxssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="新车型实施日期">
|
||||
prop="xcxssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="新车型实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zccssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="在产车实施日期">
|
||||
prop="zccssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="在产车实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="productType"
|
||||
align="center"
|
||||
label="在研产品">
|
||||
prop="productType"
|
||||
align="center"
|
||||
label="在研产品">
|
||||
<el-table-column
|
||||
prop="complianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规">
|
||||
prop="complianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="160"
|
||||
prop="researchNonCompliance"
|
||||
label="不合规">
|
||||
align="center"
|
||||
width="160"
|
||||
prop="researchNonCompliance"
|
||||
label="不合规">
|
||||
<el-table-column
|
||||
prop="noCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
prop="noCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="countermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
prop="countermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="completionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
prop="completionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.completionTime ? $moment(scope.row.completionTime).format('YYYY-MM-DD') : '' }}</span>
|
||||
<span>{{ scope.row.completionTime ? $moment(scope.row.completionTime).format("YYYY-MM-DD") : ""
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="在产产品">
|
||||
align="center"
|
||||
label="在产产品">
|
||||
<el-table-column
|
||||
prop="zcComplianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规(具体情况)">
|
||||
prop="zcComplianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规(具体情况)">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规">
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规">
|
||||
<el-table-column
|
||||
prop="zcNoCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
prop="zcNoCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zcCountermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
prop="zcCountermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zcCompletionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
prop="zcCompletionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format('YYYY-MM-DD') : '' }}</span>
|
||||
<span>{{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format("YYYY-MM-DD") : ""
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="workPeople"
|
||||
align="center"
|
||||
width="200"
|
||||
label="责任人">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="workPeople"
|
||||
align="center"
|
||||
width="200"
|
||||
label="责任人">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div>
|
||||
@@ -351,14 +353,14 @@ export default {
|
||||
}, res => {
|
||||
this.standardData = res.data.list;
|
||||
this.standardData.forEach(item => {
|
||||
if(item.attrInfoMap === null){
|
||||
this.$set(item, "ZCCSSRQ", '');
|
||||
this.$set(item, "XCXSSRQ", '');
|
||||
}else{
|
||||
if (item.attrInfoMap === null) {
|
||||
this.$set(item, "ZCCSSRQ", "");
|
||||
this.$set(item, "XCXSSRQ", "");
|
||||
} else {
|
||||
this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ);
|
||||
this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ);
|
||||
}
|
||||
})
|
||||
});
|
||||
this.totalNo = res.data.count;
|
||||
}, e => {
|
||||
});
|
||||
@@ -410,9 +412,9 @@ export default {
|
||||
},
|
||||
//驳回事件
|
||||
beforeBack() {
|
||||
if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
|
||||
this.$message.warning('请填写审批意见')
|
||||
}else{
|
||||
if (this.commentText === null || this.commentText === undefined || this.commentText === "") {
|
||||
this.$message.warning("请填写审批意见");
|
||||
} else {
|
||||
this.listForm.dlFlag = "2";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
@@ -433,23 +435,25 @@ export default {
|
||||
},
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
this.listForm.dlFlag = "1";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
this.isSubmit = true;
|
||||
this.listForm.dlFlag = "1";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
}, e => {
|
||||
});
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
listNoDataText() {
|
||||
@@ -459,7 +463,7 @@ export default {
|
||||
mounted() {
|
||||
this.processTable();
|
||||
this.getData();
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -44,7 +44,8 @@
|
||||
</process-title>
|
||||
<div class="tableTitle">
|
||||
<div class="tableButton">
|
||||
<el-button plain class="common-button-primary" size="mini" @click="choiceZRRS('', 2, '')">批量分发责任人</el-button>
|
||||
<el-button plain class="common-button-primary" size="mini" @click="choiceZRRS('', 2, '')">批量分发责任人
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
@@ -112,8 +113,9 @@
|
||||
width="170"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.liablePeopleId" style="display: none;"/>
|
||||
<el-input v-model="scope.row.liablePeople" placeholder="请选择分发责任人" @click.native="choiceZRRS(scope.row.liablePeopleId, 1, scope.$index)"/>
|
||||
<el-input v-model="scope.row.liablePeopleId" style="display: none;" />
|
||||
<el-input v-model="scope.row.liablePeople" placeholder="请选择分发责任人"
|
||||
@click.native="choiceZRRS(scope.row.liablePeopleId, 1, scope.$index)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -225,7 +227,7 @@
|
||||
import ProcessHeader from "../../components/ProcessHeader";
|
||||
import ProcessFooter from "../../components/ProcessFooter";
|
||||
import ProcessTitle from "../../components/ProcessTitle";
|
||||
import { inboundLiaisonDetail, saveTaskForPub } from "api/process";
|
||||
import { inboundLiaisonDetail, saveTaskForPub } from "api/process";
|
||||
|
||||
export default {
|
||||
name: "xmpg2Step4",
|
||||
@@ -247,8 +249,8 @@ export default {
|
||||
modalshowflag: false, // drawer开关
|
||||
selectList: [],
|
||||
treeData: [], // 人员数据
|
||||
zrIndex: '',
|
||||
zrType: '',
|
||||
zrIndex: "",
|
||||
zrType: "",
|
||||
roleForm: {
|
||||
liablePeople: ""
|
||||
},
|
||||
@@ -270,7 +272,7 @@ export default {
|
||||
detailData: [], //流程历史数据
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
taskIds: this.$route.query.taskIds,
|
||||
pId: this.$route.query.prcId,
|
||||
pId: this.$route.query.prcId
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -297,14 +299,14 @@ export default {
|
||||
}, res => {
|
||||
this.standardData = res.data.list;
|
||||
this.standardData.forEach(item => {
|
||||
if(item.attrInfoMap === null){
|
||||
this.$set(item, "ZCCSSRQ", '');
|
||||
this.$set(item, "XCXSSRQ", '');
|
||||
}else{
|
||||
if (item.attrInfoMap === null) {
|
||||
this.$set(item, "ZCCSSRQ", "");
|
||||
this.$set(item, "XCXSSRQ", "");
|
||||
} else {
|
||||
this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ);
|
||||
this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ);
|
||||
}
|
||||
})
|
||||
});
|
||||
this.totalNo = res.data.count;
|
||||
}, e => {
|
||||
});
|
||||
@@ -346,7 +348,7 @@ export default {
|
||||
getFormFieldList(item) {
|
||||
this.$nextTick(() => {
|
||||
this.listForm = JSON.parse(JSON.stringify(item));
|
||||
if(item.form === undefined){
|
||||
if (item.form === undefined) {
|
||||
this.listForm.prcNum = this.prcNum;
|
||||
this.listForm.prcName = this.prcName;
|
||||
this.listForm["id"] = item.id;
|
||||
@@ -354,8 +356,8 @@ export default {
|
||||
this.dataList = item.dataList;
|
||||
this.listForm.breakdownList = item.breakdownList;
|
||||
} else {
|
||||
this.listForm = item.form
|
||||
this.dataList = item.form.dataList
|
||||
this.listForm = item.form;
|
||||
this.dataList = item.form.dataList;
|
||||
}
|
||||
|
||||
});
|
||||
@@ -382,13 +384,14 @@ export default {
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
this.listForm.dataList.forEach(item => {
|
||||
if(item.liablePeople !== undefined){
|
||||
this.peopleFlag = true
|
||||
}else{
|
||||
this.peopleFlag = false
|
||||
if (item.liablePeople !== undefined) {
|
||||
this.peopleFlag = true;
|
||||
} else {
|
||||
this.peopleFlag = false;
|
||||
}
|
||||
})
|
||||
if(this.peopleFlag === true){
|
||||
});
|
||||
if (this.peopleFlag === true) {
|
||||
this.isSubmit = true;
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
@@ -402,30 +405,31 @@ export default {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
}, e => {
|
||||
});
|
||||
}else{
|
||||
this.$message.warning('请选择分发负责人')
|
||||
} else {
|
||||
this.$message.warning("请选择分发负责人");
|
||||
}
|
||||
},
|
||||
choiceZRRS (row, type, index) {
|
||||
this.type = type
|
||||
choiceZRRS(row, type, index) {
|
||||
this.type = type;
|
||||
if (type === 1) {
|
||||
this.drawerTitle = '选择责任人'
|
||||
this.nodeList = []
|
||||
this.zrIndex = index
|
||||
this.zrType = type
|
||||
this.nodeList.push(row)
|
||||
this.modalshowflag = true
|
||||
this.drawerTitle = "选择责任人";
|
||||
this.nodeList = [];
|
||||
this.zrIndex = index;
|
||||
this.zrType = type;
|
||||
this.nodeList.push(row);
|
||||
this.modalshowflag = true;
|
||||
} else if (type === 2) {
|
||||
// 批量
|
||||
if (this.selectList.length > 0) {
|
||||
this.zrType = type
|
||||
this.nodeList = []
|
||||
this.modalshowflag = true
|
||||
this.drawerTitle = '批量选择责任人'
|
||||
this.zrType = type;
|
||||
this.nodeList = [];
|
||||
this.modalshowflag = true;
|
||||
this.drawerTitle = "批量选择责任人";
|
||||
} else {
|
||||
this.$message.warning('请选择要分发的数据')
|
||||
this.$message.warning("请选择要分发的数据");
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -447,25 +451,25 @@ export default {
|
||||
this.roleRow = this.$refs.tree.getCheckedNodes()[0];
|
||||
}
|
||||
},
|
||||
checkedRole (data) {
|
||||
checkedRole(data) {
|
||||
if (this.type === 1) {
|
||||
const newRow = JSON.parse(JSON.stringify(this.dataList[this.zrIndex]))
|
||||
newRow.liablePeopleId = data[0].id
|
||||
newRow.liablePeople = data[0].name
|
||||
this.$set(this.dataList, this.zrIndex, newRow)
|
||||
} else if(this.type === 2) {
|
||||
const newRow = JSON.parse(JSON.stringify(this.dataList[this.zrIndex]));
|
||||
newRow.liablePeopleId = data[0].id;
|
||||
newRow.liablePeople = data[0].name;
|
||||
this.$set(this.dataList, this.zrIndex, newRow);
|
||||
} else if (this.type === 2) {
|
||||
this.dataList.forEach((item, index) => {
|
||||
this.selectList.forEach( items => {
|
||||
this.selectList.forEach(items => {
|
||||
if (item.standId === items.standId) {
|
||||
const newRow = JSON.parse(JSON.stringify(item))
|
||||
newRow.liablePeopleId = data[0].id
|
||||
newRow.liablePeople = data[0].name
|
||||
this.$set(this.dataList, index, newRow)
|
||||
const newRow = JSON.parse(JSON.stringify(item));
|
||||
newRow.liablePeopleId = data[0].id;
|
||||
newRow.liablePeople = data[0].name;
|
||||
this.$set(this.dataList, index, newRow);
|
||||
}
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
this.modalshowflag = false
|
||||
this.modalshowflag = false;
|
||||
},
|
||||
cancleUserInfo() {
|
||||
this.modalshowflag = false;
|
||||
|
||||
@@ -96,7 +96,8 @@
|
||||
<el-table-column label="责任人" prop="workPeople" align="center">
|
||||
<template slot-scope="scope">
|
||||
<div :class="{'fileClass': !scope.row.workPeople}">
|
||||
{{ scope.row.workPeople ? scope.row.workPeople: '' }}</div>
|
||||
{{ scope.row.workPeople ? scope.row.workPeople : "" }}
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -279,14 +280,14 @@ export default {
|
||||
}, res => {
|
||||
this.standardData = res.data.list;
|
||||
this.standardData.forEach(item => {
|
||||
if(item.attrInfoMap === null){
|
||||
this.$set(item, "ZCCSSRQ", '');
|
||||
this.$set(item, "XCXSSRQ", '');
|
||||
}else{
|
||||
if (item.attrInfoMap === null) {
|
||||
this.$set(item, "ZCCSSRQ", "");
|
||||
this.$set(item, "XCXSSRQ", "");
|
||||
} else {
|
||||
this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ);
|
||||
this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ);
|
||||
}
|
||||
})
|
||||
});
|
||||
this.totalNo = res.data.count;
|
||||
}, e => {
|
||||
});
|
||||
@@ -328,7 +329,7 @@ export default {
|
||||
getFormFieldList(item) {
|
||||
this.$nextTick(() => {
|
||||
this.listForm = JSON.parse(JSON.stringify(item));
|
||||
if(item.form === undefined){
|
||||
if (item.form === undefined) {
|
||||
this.listForm.prcNum = this.prcNum;
|
||||
this.listForm.prcName = this.prcName;
|
||||
this.listForm["id"] = item.id;
|
||||
@@ -362,8 +363,8 @@ export default {
|
||||
});
|
||||
this.listForm.children = children;
|
||||
} else {
|
||||
this.listForm = item.form
|
||||
this.dataList = item.form.dataList
|
||||
this.listForm = item.form;
|
||||
this.dataList = item.form.dataList;
|
||||
}
|
||||
|
||||
});
|
||||
@@ -389,21 +390,23 @@ export default {
|
||||
},
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}, e => {
|
||||
});
|
||||
this.isSubmit = true;
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
//批量分发按钮
|
||||
batchOperation(id) {
|
||||
@@ -434,7 +437,7 @@ export default {
|
||||
}
|
||||
},
|
||||
checkedRole(data) {
|
||||
console.log(data[0].name)
|
||||
console.log(data[0].name);
|
||||
// 选取负责人时的操作
|
||||
let deposit = new Map();
|
||||
let mis2 = new Map();
|
||||
@@ -456,19 +459,19 @@ export default {
|
||||
i.workPeople = undefined;
|
||||
});
|
||||
} else {
|
||||
const newItem = JSON.parse(JSON.stringify(item))
|
||||
newItem.workPeopleId = data[0].id
|
||||
newItem.workPeople = data[0].name
|
||||
this.$set(this.dataList, index, newItem)
|
||||
const newItem = JSON.parse(JSON.stringify(item));
|
||||
newItem.workPeopleId = data[0].id;
|
||||
newItem.workPeople = data[0].name;
|
||||
this.$set(this.dataList, index, newItem);
|
||||
}
|
||||
} else {
|
||||
if (item.children) {
|
||||
item.children.forEach((items, childIndex) => {
|
||||
if (deposit.get(items.standId)) {
|
||||
const childItems = JSON.parse(JSON.stringify(items))
|
||||
const childItems = JSON.parse(JSON.stringify(items));
|
||||
childItems.workPeopleId = deposit.get(items.standId).workPeopleId;
|
||||
childItems.workPeople = deposit.get(items.standId).workPeople;
|
||||
this.$set(this.dataList[index].children, childIndex, childItems)
|
||||
this.$set(this.dataList[index].children, childIndex, childItems);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
label="合规">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.complianceReasons"
|
||||
v-model="scope.row.complianceReasons"
|
||||
placeholder="请输入合规原因"
|
||||
>
|
||||
</el-input>
|
||||
@@ -142,7 +142,7 @@
|
||||
label="不合规项目">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.noCompliance"
|
||||
v-model="scope.row.noCompliance"
|
||||
placeholder="请输入不合规项目"
|
||||
>
|
||||
</el-input>
|
||||
@@ -155,7 +155,7 @@
|
||||
label="应对措施">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.countermeasures"
|
||||
v-model="scope.row.countermeasures"
|
||||
placeholder="请输入应对措施"
|
||||
>
|
||||
</el-input>
|
||||
@@ -168,7 +168,7 @@
|
||||
label="完成时间">
|
||||
<template slot-scope="scope">
|
||||
<el-date-picker
|
||||
v-model="scope.row.completionTime"
|
||||
v-model="scope.row.completionTime"
|
||||
type="date"
|
||||
placeholder="选择日期">
|
||||
</el-date-picker>
|
||||
@@ -186,7 +186,7 @@
|
||||
label="合规(具体情况)">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.zcComplianceReasons"
|
||||
v-model="scope.row.zcComplianceReasons"
|
||||
placeholder="请输入合规原因"
|
||||
>
|
||||
</el-input>
|
||||
@@ -203,7 +203,7 @@
|
||||
label="不合规项目">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.zcNoCompliance"
|
||||
v-model="scope.row.zcNoCompliance"
|
||||
placeholder="请输入不合规项目"
|
||||
>
|
||||
</el-input>
|
||||
@@ -216,7 +216,7 @@
|
||||
label="应对措施">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.zcCountermeasures"
|
||||
v-model="scope.row.zcCountermeasures"
|
||||
placeholder="请输入应对措施"
|
||||
>
|
||||
</el-input>
|
||||
@@ -229,7 +229,7 @@
|
||||
label="完成时间">
|
||||
<template slot-scope="scope">
|
||||
<el-date-picker
|
||||
v-model="scope.row.zcCompletionTime"
|
||||
v-model="scope.row.zcCompletionTime"
|
||||
type="date"
|
||||
placeholder="选择日期">
|
||||
</el-date-picker>
|
||||
@@ -370,24 +370,24 @@ export default {
|
||||
children: "children",
|
||||
label: "name"
|
||||
},
|
||||
complianceReasons:'',
|
||||
zcComplianceReasons:'',
|
||||
complianceReasons: "",
|
||||
zcComplianceReasons: "",
|
||||
//表单的数据
|
||||
listForm: {
|
||||
projectNumber: "", //项目编号
|
||||
projectName: "", //项目名称
|
||||
dataList: [
|
||||
{
|
||||
complianceReasons:'',
|
||||
zcComplianceReasons:'',
|
||||
complianceReasons: "",
|
||||
zcComplianceReasons: ""
|
||||
}
|
||||
], //项目下的标准数据
|
||||
children: [] //标准下的分解单数据
|
||||
},
|
||||
dataList: [
|
||||
{
|
||||
complianceReasons:'',
|
||||
zcComplianceReasons:'',
|
||||
complianceReasons: "",
|
||||
zcComplianceReasons: ""
|
||||
}
|
||||
], //展示的标准数据
|
||||
commentText: "", //审批意见
|
||||
@@ -421,14 +421,14 @@ export default {
|
||||
}, res => {
|
||||
this.standardData = res.data.list;
|
||||
this.standardData.forEach(item => {
|
||||
if(item.attrInfoMap === null){
|
||||
this.$set(item, "ZCCSSRQ", '');
|
||||
this.$set(item, "XCXSSRQ", '');
|
||||
}else{
|
||||
if (item.attrInfoMap === null) {
|
||||
this.$set(item, "ZCCSSRQ", "");
|
||||
this.$set(item, "XCXSSRQ", "");
|
||||
} else {
|
||||
this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ);
|
||||
this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ);
|
||||
}
|
||||
})
|
||||
});
|
||||
this.totalNo = res.data.count;
|
||||
}, e => {
|
||||
});
|
||||
@@ -458,7 +458,7 @@ export default {
|
||||
pId: this.pId
|
||||
}).then(res => {
|
||||
if (res) {
|
||||
console.log(res.mesg)
|
||||
console.log(res.mesg);
|
||||
const processForm = JSON.parse(res.mesg);
|
||||
this.getFormFieldList(processForm);
|
||||
}
|
||||
@@ -470,15 +470,15 @@ export default {
|
||||
getFormFieldList(item) {
|
||||
this.$nextTick(() => {
|
||||
this.listForm = JSON.parse(JSON.stringify(item));
|
||||
if(item.form === undefined){
|
||||
if (item.form === undefined) {
|
||||
this.listForm.prcNum = this.prcNum;
|
||||
this.listForm.prcName = this.prcName;
|
||||
this.listForm["id"] = item.id;
|
||||
// this.listForm.dataList = item.dataList;
|
||||
this.dataList = this.listForm.dataList;
|
||||
} else {
|
||||
this.listForm = item.form
|
||||
this.dataList = item.form.dataList
|
||||
this.listForm = item.form;
|
||||
this.dataList = item.form.dataList;
|
||||
}
|
||||
|
||||
});
|
||||
@@ -504,21 +504,23 @@ export default {
|
||||
},
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}, e => {
|
||||
});
|
||||
this.isSubmit = true;
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
//标准表格选择框改变
|
||||
selectStandChange(data) {
|
||||
@@ -537,7 +539,7 @@ export default {
|
||||
this.$refs.tree.setCheckedKeys([data.id]);
|
||||
this.roleRow = this.$refs.tree.getCheckedNodes()[0];
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
listNoDataText() {
|
||||
@@ -602,9 +604,9 @@ export default {
|
||||
height: calc(~'100% - 103px');
|
||||
overflow: auto;
|
||||
|
||||
.accessStandardsAndRegulations {
|
||||
height: 100%;
|
||||
}
|
||||
.accessStandardsAndRegulations {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.demo-drawer-content {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -433,6 +433,7 @@ export default {
|
||||
},
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
this.isSubmit = true;
|
||||
this.listForm.jgFlag = "1";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
@@ -447,6 +448,7 @@ export default {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
|
||||
@@ -43,25 +43,25 @@
|
||||
<template slot="title">填写信息</template>
|
||||
</process-title>
|
||||
<el-table
|
||||
:data="dataList"
|
||||
style="width: 100%; border: 1px solid #cccccc"
|
||||
row-key="standId"
|
||||
height="70%"
|
||||
border
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
:data="dataList"
|
||||
style="width: 100%; border: 1px solid #cccccc"
|
||||
row-key="standId"
|
||||
height="70%"
|
||||
border
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', height: '48px'}"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standEnName"
|
||||
label="标准编号"
|
||||
width="180"
|
||||
fixed="left"
|
||||
align="center"
|
||||
prop="standEnName"
|
||||
label="标准编号"
|
||||
width="180"
|
||||
fixed="left"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a v-if="scope.row.standYear" class="table-jump"
|
||||
@@ -72,126 +72,128 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
fixed="left"
|
||||
width="180"
|
||||
align="center"
|
||||
label="标准名称"
|
||||
prop="standName"
|
||||
fixed="left"
|
||||
width="180"
|
||||
align="center"
|
||||
label="标准名称"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="itemsNum"
|
||||
align="center"
|
||||
width="200"
|
||||
label="条款号">
|
||||
prop="itemsNum"
|
||||
align="center"
|
||||
width="200"
|
||||
label="条款号">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="itemsName"
|
||||
width="200"
|
||||
align="center"
|
||||
label="条款名称">
|
||||
prop="itemsName"
|
||||
width="200"
|
||||
align="center"
|
||||
label="条款名称">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="xcxssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="新车型实施日期">
|
||||
prop="xcxssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="新车型实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zccssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="在产车实施日期">
|
||||
prop="zccssrqgj"
|
||||
width="200"
|
||||
align="center"
|
||||
label="在产车实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="productType"
|
||||
align="center"
|
||||
label="在研产品">
|
||||
prop="productType"
|
||||
align="center"
|
||||
label="在研产品">
|
||||
<el-table-column
|
||||
prop="complianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规">
|
||||
prop="complianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="160"
|
||||
prop="researchNonCompliance"
|
||||
label="不合规">
|
||||
align="center"
|
||||
width="160"
|
||||
prop="researchNonCompliance"
|
||||
label="不合规">
|
||||
<el-table-column
|
||||
prop="noCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
prop="noCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="countermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
prop="countermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="completionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
prop="completionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.completionTime ? $moment(scope.row.completionTime).format('YYYY-MM-DD') : '' }}</span>
|
||||
<span>{{ scope.row.completionTime ? $moment(scope.row.completionTime).format("YYYY-MM-DD") : ""
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="在产产品">
|
||||
align="center"
|
||||
label="在产产品">
|
||||
<el-table-column
|
||||
prop="zcComplianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规(具体情况)">
|
||||
prop="zcComplianceReasons"
|
||||
align="center"
|
||||
width="160"
|
||||
label="合规(具体情况)">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规">
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规">
|
||||
<el-table-column
|
||||
prop="zcNoCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
prop="zcNoCompliance"
|
||||
align="center"
|
||||
width="160"
|
||||
label="不合规项目">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zcCountermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
prop="zcCountermeasures"
|
||||
align="center"
|
||||
width="160"
|
||||
label="应对措施">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="zcCompletionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
prop="zcCompletionTime"
|
||||
align="center"
|
||||
width="160"
|
||||
label="完成时间">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format('YYYY-MM-DD') : '' }}</span>
|
||||
<span>{{ scope.row.zcCompletionTime ? $moment(scope.row.zcCompletionTime).format("YYYY-MM-DD") : ""
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="workPeople"
|
||||
align="center"
|
||||
width="200"
|
||||
label="责任人">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="workPeople"
|
||||
align="center"
|
||||
width="200"
|
||||
label="责任人">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div>
|
||||
@@ -351,14 +353,14 @@ export default {
|
||||
}, res => {
|
||||
this.standardData = res.data.list;
|
||||
this.standardData.forEach(item => {
|
||||
if(item.attrInfoMap === null){
|
||||
this.$set(item, "ZCCSSRQ", '');
|
||||
this.$set(item, "XCXSSRQ", '');
|
||||
}else{
|
||||
if (item.attrInfoMap === null) {
|
||||
this.$set(item, "ZCCSSRQ", "");
|
||||
this.$set(item, "XCXSSRQ", "");
|
||||
} else {
|
||||
this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ);
|
||||
this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ);
|
||||
}
|
||||
})
|
||||
});
|
||||
this.totalNo = res.data.count;
|
||||
}, e => {
|
||||
});
|
||||
@@ -410,9 +412,9 @@ export default {
|
||||
},
|
||||
//驳回事件
|
||||
beforeBack() {
|
||||
if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
|
||||
this.$message.warning('请填写审批意见')
|
||||
}else{
|
||||
if (this.commentText === null || this.commentText === undefined || this.commentText === "") {
|
||||
this.$message.warning("请填写审批意见");
|
||||
} else {
|
||||
this.listForm.gcFlag = "2";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
@@ -433,23 +435,25 @@ export default {
|
||||
},
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
this.listForm.gcFlag = "1";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
this.isSubmit = true;
|
||||
this.listForm.gcFlag = "1";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
}, e => {
|
||||
});
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
listNoDataText() {
|
||||
|
||||
Reference in New Issue
Block a user