Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
yanyizhou
2021-11-26 16:45:57 +08:00
11 changed files with 223 additions and 227 deletions
+62 -67
View File
@@ -1,10 +1,9 @@
<!--符合性详情--> <!--符合性详情-->
<template> <template>
<div id="complianceDetails"> <div id="complianceDetails">
<!--不满足--> <!-- v-if="unfit.length"不满足-->
<el-divider content-position="left" v-if="unfit.length">不满足</el-divider> <el-divider content-position="left" >不满足</el-divider>
<el-table <el-table
v-if="unfit.length"
ref="selection" ref="selection"
:data="unfit" :data="unfit"
tooltip-effect="dark" tooltip-effect="dark"
@@ -13,65 +12,57 @@
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column <el-table-column
prop="sarNumber" prop="standNumber"
label="标准号/条款号" label="标准号"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="nonConfomity" prop="itemsNumber"
label="不满足内容" label="条款号"
align="center"
>
</el-table-column>
<el-table-column
prop=""
label="评估人"
align="center"
>
</el-table-column>
<el-table-column
prop=""
label="评估时间"
align="center"
>
</el-table-column>
<el-table-column
prop=""
label="不合规项目"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="current" prop=""
label="我司现状" label="应对措施"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="changeScheme" prop=""
label="更改方案" label="完成时间"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <!-- <el-table-column-->
prop="estimatedChangeCycle" <!-- prop="prcNum"-->
label="预估更改周期" <!-- label="流程"-->
align="center" <!-- align="center"-->
> <!-- width="170px"-->
</el-table-column> <!-- >-->
<el-table-column <!-- <template slot-scope="scope">-->
prop="estimatedCost" <!-- <span class="table-jump" @click="processCenterClick(scope.row)">{{ scope.row.prcNum }}</span>-->
label="预估成本" <!-- </template>-->
align="center" <!-- </el-table-column>-->
>
</el-table-column>
<el-table-column
prop="compPersonName"
label="评估人员"
align="center"
width="100px"
>
</el-table-column>
<el-table-column
prop="compTime"
label="评估时间"
align="center"
width="100px"
>
</el-table-column>
<el-table-column
prop="prcNum"
label="流程"
align="center"
width="170px"
>
<template slot-scope="scope">
<span class="table-jump" @click="processCenterClick(scope.row)">{{ scope.row.prcNum }}</span>
</template>
</el-table-column>
</el-table> </el-table>
<!--待验证--> <!--待验证-->
<el-divider content-position="left" v-if="check.length">待验证</el-divider> <el-divider content-position="left" v-if="check.length">待验证</el-divider>
@@ -151,41 +142,45 @@
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column <el-table-column
prop="sarNumber" prop="standNumber"
label="标准号/条款号" label="标准号"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="justified" prop="itemsNumber"
label="符合理由" label="条款号"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="compPersonName" prop=""
label="评估人" label="评估人"
align="center" align="center"
width="100px"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="compTime" prop=""
label="评估时间" label="评估时间"
align="center" align="center"
width="100px"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="prcNum" prop=""
label="流程" label="合规"
align="center" align="center"
width="170px"
> >
<template slot-scope="scope">
<span class="table-jump" @click="processCenterClick(scope.row)">{{ scope.row.prcNum }}</span>
</template>
</el-table-column> </el-table-column>
<!-- <el-table-column-->
<!-- prop="prcNum"-->
<!-- label="流程"-->
<!-- align="center"-->
<!-- width="170px"-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- <span class="table-jump" @click="processCenterClick(scope.row)">{{ scope.row.prcNum }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table> </el-table>
<!--不涉及--> <!--不涉及-->
<el-divider content-position="left" v-if="notInvolve.length">不涉及</el-divider> <el-divider content-position="left" v-if="notInvolve.length">不涉及</el-divider>
@@ -488,7 +488,8 @@ export default {
statusId: '', statusId: '',
itemsNum1: '', itemsNum1: '',
itemsName1: '', itemsName1: '',
oldNumber: '' oldNumber: '',
fileType: '',
}, },
formRules: { formRules: {
itemsNum: [ itemsNum: [
@@ -722,6 +723,7 @@ export default {
this.standId = bringData[0].standId this.standId = bringData[0].standId
this.statusId = bringData[0].id this.statusId = bringData[0].id
this.form.statusId = bringData[0].id this.form.statusId = bringData[0].id
this.form.fileType = bringData[0].fileType
this.listModel = false; this.listModel = false;
this.listModel2 = true this.listModel2 = true
this.$http.get('lawss/sarFileSplitItems/getSplitItemsByPage', { this.$http.get('lawss/sarFileSplitItems/getSplitItemsByPage', {
@@ -554,6 +554,7 @@
:drawerTitle="drawerTitle" :drawerTitle="drawerTitle"
:show-checkBox="showCheckBox" :show-checkBox="showCheckBox"
:url="url" :url="url"
:type="'car'"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1" :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs" @popoverHideCancel="popoverHideBusVsCancel"></tree-select-new> :nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs" @popoverHideCancel="popoverHideBusVsCancel"></tree-select-new>
@@ -570,6 +571,7 @@
:drawerTitle="drawerTitle" :drawerTitle="drawerTitle"
:show-checkBox="showCheckBox" :show-checkBox="showCheckBox"
:url="url" :url="url"
:type="'truck'"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2" :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel"></tree-select-new> :nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel"></tree-select-new>
@@ -791,6 +791,7 @@
:modalShowFlag="modalShowFlag2" :modalShowFlag="modalShowFlag2"
:drawerTitle="drawerTitle" :drawerTitle="drawerTitle"
:url="url" :url="url"
:type="'car'"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1" :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs" @popoverHideCancel="popoverHideBusVsCancel" ></tree-select-new> :nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs" @popoverHideCancel="popoverHideBusVsCancel" ></tree-select-new>
@@ -805,6 +806,7 @@
:modalShowFlag="modalShowFlag3" :modalShowFlag="modalShowFlag3"
:drawerTitle="drawerTitle" :drawerTitle="drawerTitle"
:url="url" :url="url"
:type="'truck'"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2" :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel"></tree-select-new> :nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel"></tree-select-new>
@@ -25,6 +25,22 @@
> >
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="分解单来源" class="add-form-item form-item-disabled">
<el-select
@change="fileTypeChange"
v-model="listForm.fileType"
placeholder="请选择"
filterable
>
<el-option
v-for="item in decomposeOptions"
:value="item.attrField"
:key="item.id"
:label="item.attrName"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="选择标准" prop="orgName" class="add-form-item form-item-disabled"> <el-form-item label="选择标准" prop="orgName" class="add-form-item form-item-disabled">
<el-button size="mini" type="primary" style="margin-left: 10px;" @click="choiceShow">选择已拆分标准</el-button> <el-button size="mini" type="primary" style="margin-left: 10px;" @click="choiceShow">选择已拆分标准</el-button>
</el-form-item> </el-form-item>
@@ -522,7 +538,7 @@ export default {
// 查询相关参数 // 查询相关参数
searching: false, searching: false,
commentText:'', commentText:'',
fileType: 'FBGBJBD', fileType: '',
standardSearch: { standardSearch: {
standType: "", standType: "",
standName: "" standName: ""
@@ -531,6 +547,7 @@ export default {
productLine: '', productLine: '',
uname: '', uname: '',
}, },
decomposeOptions: [], //分解单来源数据
standardTypeOptions: [ standardTypeOptions: [
{ {
value: "INLAND", value: "INLAND",
@@ -717,7 +734,12 @@ export default {
this.standardSearch.standType = type; this.standardSearch.standType = type;
}, },
choiceShow() { choiceShow() {
this.ListModel = true; if(!this.fileType){
this.$message.warning('请先选择分解单来源')
}else{
this.getStandData();
this.ListModel = true;
}
}, },
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());
@@ -913,7 +935,7 @@ export default {
this.listForm.id = this.selectedList[0].id; this.listForm.id = this.selectedList[0].id;
this.$http.get("SarStandItems/sar-stand-items/findAllItems", { this.$http.get("SarStandItems/sar-stand-items/findAllItems", {
ids: this.listForm.id, ids: this.listForm.id,
type: "FBGBJBD" type: this.fileType
}, { }, {
_this: this _this: this
}, res => { }, res => {
@@ -1002,6 +1024,9 @@ export default {
this.page = 1; this.page = 1;
this.getStandData(); this.getStandData();
}, },
fileTypeChange(type){
this.fileType = type
},
//获取标准数据 //获取标准数据
getStandData() { getStandData() {
this.$http.post("SarStandItems/sar-stand-items/findStand", { this.$http.post("SarStandItems/sar-stand-items/findStand", {
@@ -1050,10 +1075,19 @@ export default {
this.standStateOptions = res.data.WBZTCLASS; // 文本状态 this.standStateOptions = res.data.WBZTCLASS; // 文本状态
this.setMap(this.standStateOptions); this.setMap(this.standStateOptions);
}); });
//查找分解单来源数据
this.$http.get('lawss/sarStandAttrDetails/getListData',{},{
_this: this
}, res => {
res.data.forEach(item => {
if(item.sarType === 'STAND' || item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND'){
this.decomposeOptions.push(item)
}
})
})
this.getData(); this.getData();
this.getTree(); this.getTree();
this.getProductData(); this.getProductData();
this.getStandData();
} }
}; };
@@ -25,6 +25,22 @@
> >
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="分解单来源" class="add-form-item form-item-disabled">
<el-select
@change="fileTypeChange"
v-model="listForm.fileType"
placeholder="请选择"
filterable
>
<el-option
v-for="item in decomposeOptions"
:value="item.attrField"
:key="item.id"
:label="item.attrName"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="选择标准" prop="orgName" class="add-form-item form-item-disabled"> <el-form-item label="选择标准" prop="orgName" class="add-form-item form-item-disabled">
<el-button size="mini" type="primary" style="margin-left: 10px;" @click="choiceShow">选择已拆分标准</el-button> <el-button size="mini" type="primary" style="margin-left: 10px;" @click="choiceShow">选择已拆分标准</el-button>
</el-form-item> </el-form-item>
@@ -261,6 +277,7 @@
custom-class="demo-drawer" custom-class="demo-drawer"
> >
<div class="demo-drawer-content"> <div class="demo-drawer-content">
<loading :loading="tableLoading">数据获取中</loading>
<div style="position: absolute;bottom: 48px;top:60px;left: 0;right: 0"> <div style="position: absolute;bottom: 48px;top:60px;left: 0;right: 0">
<div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0"> <div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0">
<div class="left"> <div class="left">
@@ -500,6 +517,7 @@ import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter"; import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle"; import ProcessTitle from "../../components/ProcessTitle";
import { saveTaskFirst } from "api/process"; import { saveTaskFirst } from "api/process";
import file from "@/pages/knowledgeGraph/components/file";
export default { export default {
name: "xmpgStep1", name: "xmpgStep1",
@@ -516,6 +534,7 @@ export default {
satisfyFlag: true, satisfyFlag: true,
active: "1", active: "1",
standModel: false, standModel: false,
tableLoading: false,
sarAccessListDatas: [], sarAccessListDatas: [],
productData: [], //添加抽屉的数据 productData: [], //添加抽屉的数据
standList: [], //新添加的标准 standList: [], //新添加的标准
@@ -524,7 +543,7 @@ export default {
drawerTitle: "", //drawer标题 drawerTitle: "", //drawer标题
// 查询相关参数 // 查询相关参数
searching: false, searching: false,
fileType: "FBGBJBD", fileType: "",
projectSearch: { projectSearch: {
productLine: '', productLine: '',
uname: '', uname: '',
@@ -533,6 +552,7 @@ export default {
standType: "", standType: "",
standName: "" standName: ""
}, },
decomposeOptions: [], //分解单数据
standardTypeOptions: [ standardTypeOptions: [
{ {
value: "INLAND", value: "INLAND",
@@ -710,7 +730,13 @@ export default {
this.standardSearch.standType = type; this.standardSearch.standType = type;
}, },
choiceShow() { choiceShow() {
this.ListModel = true; if(!this.fileType){
this.$message.warning('请先选择分解单来源')
}else{
this.getStandData();
this.ListModel = true;
}
}, },
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());
@@ -906,7 +932,7 @@ export default {
this.listForm.id = this.selectedList[0].id; this.listForm.id = this.selectedList[0].id;
this.$http.get("SarStandItems/sar-stand-items/findAllItems", { this.$http.get("SarStandItems/sar-stand-items/findAllItems", {
ids: this.listForm.id, ids: this.listForm.id,
type: "FBGBJBD" type: this.fileType
}, { }, {
_this: this _this: this
}, res => { }, res => {
@@ -999,8 +1025,12 @@ export default {
this.page = 1; this.page = 1;
this.getStandData(); this.getStandData();
}, },
fileTypeChange(type){
this.fileType = type
},
//获取标准数据 //获取标准数据
getStandData() { getStandData() {
this.tableLoading = true
this.$http.post("SarStandItems/sar-stand-items/findStand", { this.$http.post("SarStandItems/sar-stand-items/findStand", {
page: this.page, page: this.page,
size: this.pageSize, size: this.pageSize,
@@ -1011,6 +1041,7 @@ export default {
}, res => { }, res => {
this.sarAccessListDatas = res.records; this.sarAccessListDatas = res.records;
this.total = res.total; this.total = res.total;
this.tableLoading = false
}, e => { }, e => {
}); });
@@ -1047,9 +1078,18 @@ export default {
this.standStateOptions = res.data.WBZTCLASS; // 文本状态 this.standStateOptions = res.data.WBZTCLASS; // 文本状态
this.setMap(this.standStateOptions); this.setMap(this.standStateOptions);
}); });
//查找分解单来源数据
this.$http.get('lawss/sarStandAttrDetails/getListData',{},{
_this: this
}, res => {
res.data.forEach(item => {
if(item.sarType === 'STAND' || item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND'){
this.decomposeOptions.push(item)
}
})
})
this.getTree(); this.getTree();
this.getProductData(); this.getProductData();
this.getStandData();
} }
}; };
@@ -18,7 +18,7 @@
<translate-cost v-if="activeName === 'translateCost'"></translate-cost> <translate-cost v-if="activeName === 'translateCost'"></translate-cost>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="标准制修订补助资金收支统计" name="subsidyCost"> <el-tab-pane label="标准制修订补助资金收支统计" name="subsidyCost">
<society-cost v-if="activeName === 'subsidyCost'"></society-cost> <subsidy-cost v-if="activeName === 'subsidyCost'"></subsidy-cost>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
@@ -47,9 +47,6 @@ export default {
activeName: 'societyCost', activeName: 'societyCost',
} }
}, },
mounted() {
console.log(5)
},
methods: { methods: {
doubleClick(tab) { doubleClick(tab) {
} }
@@ -3,7 +3,7 @@
<div id="societyCost" class="child1"> <div id="societyCost" class="child1">
<!-- 第一第二行表单 --> <!-- 第一第二行表单 -->
<el-form :inline="true" :model="formQuery" class="demo-form-inline"> <el-form :inline="true" :model="formQuery" class="demo-form-inline">
<el-form-item class="add-form-item" label="协会名称/标委会:"> <el-form-item class="add-form-item" label="协会名称:">
<el-input v-model="formQuery.scName" size="small" placeholder="请输入协会名称-标委会"></el-input> <el-input v-model="formQuery.scName" size="small" placeholder="请输入协会名称-标委会"></el-input>
</el-form-item> </el-form-item>
<el-form-item class="add-form-item" label="费用列支:"> <el-form-item class="add-form-item" label="费用列支:">
@@ -1,12 +1,12 @@
<!--标法规-工作组-项目费用统计信息-标准制修订补助资金收支统计--> <!--标法规-工作组-项目费用统计信息-标准制修订补助资金收支统计-->
<template> <template>
<div id="subsidyCost" class="subsidy-Cost"> <div id="subsidyCost" class="subsidy-Cost">
<el-tabs v-model="activeName" @tab-click="TreblingClick"> <el-tabs v-model="tabsName" @tab-click="TreblingClick">
<el-tab-pane label="收入表" name="inComeSubsidy"> <el-tab-pane label="收入表" name="inComeSubsidy">
<in-come-subsidy v-if="activeName === 'inComeSubsidy'"></in-come-subsidy> <in-come-subsidy v-if="tabsName === 'inComeSubsidy'"></in-come-subsidy>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="支出表" name="expendSubsidy"> <el-tab-pane label="支出表" name="expendSubsidy">
<expend-subsidy v-if="activeName === 'expendSubsidy'"></expend-subsidy> <expend-subsidy v-if="tabsName === 'expendSubsidy'"></expend-subsidy>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
@@ -24,7 +24,7 @@ export default {
}, },
data(){ data(){
return { return {
activeName: 'inComeSubsidy', tabsName: 'inComeSubsidy',
} }
}, },
mounted() { mounted() {
@@ -84,7 +84,7 @@
label="标准号" label="标准号"
fixed="left" fixed="left"
show-overflow-tooltip show-overflow-tooltip
width="120px" width="190px"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.standSortShow === undefined" <span v-if="scope.row.standSortShow === undefined"
@@ -101,14 +101,12 @@
prop="standName" prop="standName"
label="中文名称" label="中文名称"
show-overflow-tooltip show-overflow-tooltip
width="120px"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standEnName" prop="standEnName"
label="英文名称" label="英文名称"
show-overflow-tooltip show-overflow-tooltip
width="120px"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -157,25 +155,9 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="kccvppsbm" prop=""
width="180px" width="180px"
label="卡车VPPS编码"> label="合规评估结果">
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="cycvppscn"
width="180px"
label="卡车vpps中文名称">
</el-table-column>
<el-table-column
prop="cycvppsbm"
width="180px"
label="乘车VPPS编码">
</el-table-column>
<el-table-column
prop="cycvppscn"
width="180px"
label="乘车vpps中文名称">
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
@@ -48,7 +48,7 @@
<el-table-column <el-table-column
prop="standType" prop="standType"
label="标准/政策类型" label="标准/政策类型"
width="120" width="320"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.standType === 'INLAND'">国内标准法规</div> <div v-if="scope.row.standType === 'INLAND'">国内标准法规</div>
@@ -61,7 +61,7 @@
<el-table-column <el-table-column
prop="standNumber" prop="standNumber"
label="标准/政策号" label="标准/政策号"
width="180" width="320"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a class="table-jump" <a class="table-jump"
@@ -77,18 +77,13 @@
@click="handlePreview(scope.row)">{{ scope.row.standName }}</a> @click="handlePreview(scope.row)">{{ scope.row.standName }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="interpretationTime"
label="评估时间"
>
</el-table-column>
<el-table-column <el-table-column
fixed="right" fixed="right"
label="" label=""
width="50" width="80"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-view btn-i" @click="handleProjectCompliance(scope.row)"></i> <el-button size="mini" type="primary" class="common-button-primary" @click="handleProjectCompliance(scope.row)">查看</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -155,28 +150,40 @@
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}"> fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}">
<el-table-column <el-table-column
type="selection" type="index"
width="55" width="50"
align="center"> align="center">
</el-table-column> </el-table-column>
<!-- <el-table-column--> <el-table-column
<!-- width="150px"--> width="150px"
<!-- align="center"--> align="center"
<!-- prop="productLineId"--> prop="projectNumber"
<!-- label="产品线">--> label="项目编号">
<!-- </el-table-column>--> </el-table-column>
<!-- <el-table-column--> <el-table-column
<!-- width="150px"--> width="150px"
<!-- align="center"--> align="center"
<!-- prop="productId"--> prop="projectName"
<!-- label="项目编号">--> label="项目名称">
<!-- </el-table-column>--> </el-table-column>
<!-- <el-table-column--> <el-table-column
<!-- width="150px"--> width="110px"
<!-- align="center"--> align="center"
<!-- prop="productName"--> prop="projectGroup"
<!-- label="项目名称">--> label="项目群">
<!-- </el-table-column>--> </el-table-column>
<el-table-column
width="110px"
align="center"
prop="productLine"
label="产品线">
</el-table-column>
<el-table-column
width="110px"
align="center"
prop="uname"
label="产品线责任人">
</el-table-column>
<el-table-column <el-table-column
width="150px" width="150px"
align="center" align="center"
@@ -201,98 +208,20 @@
prop="clauseName" prop="clauseName"
label="条款名称"> label="条款名称">
</el-table-column> </el-table-column>
<!-- <el-table-column--> <el-table-column
<!-- align="center"--> width="150px"
<!-- prop="productType"--> align="center"
<!-- label="在研产品">--> prop=""
<el-table-column label="合规评估结果">
width="150px" <template slot-scope="scope">
align="center" <el-button @click="changeState(scope.row)">符合性状态</el-button>
prop="researchImplementationTime" <!-- <div class="table-jump" @click="changeState(scope.row)">-->
label="实施时间"> <!-- <div v-if="scope.row.sarState === 1">符合</div>-->
<template slot-scope="scope"> <!-- <div v-if="scope.row.sarState === 2">不符合</div>-->
<span>{{ scope.row.researchImplementationTime ? $moment(scope.row.researchImplementationTime).format('YYYY-MM-DD') : '' }}</span> <!-- <div v-if="scope.row.sarState === 3"></div>-->
</template> <!-- </div>-->
</el-table-column> </template>
<el-table-column </el-table-column>
width="150px"
align="center"
prop="researchCompliance"
label="合规">
</el-table-column>
<el-table-column
width="150px"
align="center"
label="不合规">
<el-table-column
width="150px"
align="center"
prop="researchNonCompliance"
label="不合规项目">
</el-table-column>
<el-table-column
width="150px"
align="center"
prop="researchCountermeasures"
label="应对措施">
</el-table-column>
<el-table-column
width="150px"
align="center"
prop="researchCompletionTime"
label="完成时间">
<template slot-scope="scope">
<span>{{ scope.row.researchCompletionTime ? $moment(scope.row.researchCompletionTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column>
</el-table-column>
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- align="center"-->
<!-- prop="center"-->
<!-- label="在产产品">-->
<!-- <el-table-column-->
<!-- width="150px"-->
<!-- align="center"-->
<!-- prop="productionImplementationTime"-->
<!-- label="实施时间">-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{ scope.row.productionImplementationTime ? $moment(scope.row.productionImplementationTime).format('YYYY-MM-DD') : '' }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- width="150px"-->
<!-- align="center"-->
<!-- prop="productionCompliance"-->
<!-- label="合规(具体情况)">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- width="150px"-->
<!-- align="center"-->
<!-- label="不合规">-->
<!-- <el-table-column-->
<!-- width="150px"-->
<!-- align="center"-->
<!-- prop="productionNonCompliance"-->
<!-- label="不合格项目">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- width="150px"-->
<!-- align="center"-->
<!-- prop="productionCountermeasures"-->
<!-- label="应对措施">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- width="150px"-->
<!-- align="center"-->
<!-- prop="productionCompletionTime"-->
<!-- label="完成时间">-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{ scope.row.productionCompletionTime ? $moment(scope.row.productionCompletionTime).format('YYYY-MM-DD') : '' }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table-column>-->
<!-- </el-table-column>-->
</el-table> </el-table>
<pagination <pagination
:page="sarProStateTotalPage" :page="sarProStateTotalPage"
@@ -339,6 +268,19 @@ export default {
}; };
}, },
methods: { methods: {
changeState (row) {
console.log(row);
let routeUrl = this.$router.resolve({
name: 'ComplianceDetails',
query: {
sarId: this.saveSarId,
productId: row.productId,
sarType: row.standType,
fromPage: 'product'
}
})
window.open(routeUrl.href, '_blank')
},
searchStandAndLaws() { searchStandAndLaws() {
this.page = 1; this.page = 1;
this.queryStandAndLaws(); this.queryStandAndLaws();