日期回显及展示

This commit is contained in:
宋伟佳
2021-12-10 14:11:35 +08:00
parent 20371651a3
commit 08ac403036
24 changed files with 145 additions and 255 deletions
@@ -134,7 +134,17 @@ export default {
}, res => { }, res => {
if (res.ok) { if (res.ok) {
this.fit = res.data.fit.records this.fit = res.data.fit.records
this.fit.forEach(item => {
if(item.standardItem){
item.standNumber = item.standardItem
}
})
this.unfit = res.data.unfit.records this.unfit = res.data.unfit.records
this.unfit.forEach(item => {
if(item.standardItem){
item.standNumber = item.standardItem
}
})
} else { } else {
this.$message.warning(res.message) this.$message.warning(res.message)
} }
@@ -593,7 +593,7 @@
style="width: 100%" style="width: 100%"
border border
ref="table" ref="table"
height="100%" class="table-height"
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="selectThree" @selection-change="selectThree"
@@ -796,7 +796,7 @@ export default {
ListModel: false, //选择清单抽屉状态 ListModel: false, //选择清单抽屉状态
standModel: false, // 选择标准抽屉状态 standModel: false, // 选择标准抽屉状态
active: "1", active: "1",
signFlag: "1", //是否会签 1为会签 2为不会签 signFlag: "", //是否会签 1为会签 2为不会签
listType: "country", //选择的清单类型 listType: "country", //选择的清单类型
isSubmit: false, isSubmit: false,
saveLoading: false, saveLoading: false,
@@ -818,7 +818,7 @@ export default {
model: "", // 上传模板 model: "", // 上传模板
modelName: "", modelName: "",
standId: "", //选择的清单的id standId: "", //选择的清单的id
signFlag: "1", //是否会签 1为会签 2为不会签 signFlag: "", //是否会签 1为会签 2为不会签
inforlist: " ", //用来存放标准列表的标准id inforlist: " ", //用来存放标准列表的标准id
dataList: [{ dataList: [{
code: "", //标准号 code: "", //标准号
@@ -865,6 +865,7 @@ export default {
this.fileInfoList.push(itemId) this.fileInfoList.push(itemId)
this.getFileInfo(); this.getFileInfo();
}); });
this.signFlag = mes.form.signFlag
this.listForm = mes.form; this.listForm = mes.form;
this.dataList = mes.form.dataList; this.dataList = mes.form.dataList;
this.roleForm = mes.roleForm; this.roleForm = mes.roleForm;
@@ -938,9 +939,9 @@ export default {
//判断当前是否会签 //判断当前是否会签
selectSign(type) { selectSign(type) {
if (type === "1") { if (type === "1") {
this.listForm.signFlag = 1; this.listForm.signFlag = '1';
} else if (type == "2") { } else if (type == "2") {
this.listForm.signFlag = 2; this.listForm.signFlag = '2';
} }
}, },
queryDetailsData() { queryDetailsData() {
@@ -1595,5 +1596,9 @@ export default {
.demo-drawer-content { .demo-drawer-content {
margin-top: 10px; margin-top: 10px;
} }
.table-height{
height: calc(~'100% - 65px');
overflow: auto;
}
} }
</style> </style>
@@ -101,25 +101,19 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
sortable
label="发布日期"> label="发布日期">
<template slot-scope="scope">
<span>{{ scope.row.issueTime ? $moment(scope.row.issueTime).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="XCXSSRQ" prop="XCXSSRQ"
sortable
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.XCXSSRQ ? $moment(scope.row.XCXSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="ZCCSSRQ" prop="ZCCSSRQ"
sortable
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.ZCCSSRQ ? $moment(scope.row.ZCCSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
@@ -181,7 +175,6 @@
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="创建时间" label="创建时间"
sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD') : '' }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD') : '' }}</span>
@@ -319,18 +312,12 @@
prop="XCXSSRQ" prop="XCXSSRQ"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.XCXSSRQ ? $moment(scope.row.XCXSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="ZCCSSRQ" prop="ZCCSSRQ"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.ZCCSSRQ ? $moment(scope.row.ZCCSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
@@ -527,13 +514,8 @@ export default {
}, res => { }, res => {
this.standardData = res.data.list; this.standardData = res.data.list;
this.standardData.forEach(item => { this.standardData.forEach(item => {
if(item.attrInfoMap === null){ this.$set(item, "ZCCSSRQ", item.zccssrq);
this.$set(item, "ZCCSSRQ", ''); this.$set(item, "XCXSSRQ", item.xcxssrq);
this.$set(item, "XCXSSRQ", '');
}else{
this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ);
this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ);
}
}) })
this.totalNo = res.data.count; this.totalNo = res.data.count;
}, e => { }, e => {
@@ -97,25 +97,19 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
sortable
label="发布日期"> label="发布日期">
<template slot-scope="scope">
<span>{{ scope.row.issueTime ? $moment(scope.row.issueTime).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="XCXSSRQ" prop="XCXSSRQ"
sortable
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.XCXSSRQ ? $moment(scope.row.XCXSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="ZCCSSRQ" prop="ZCCSSRQ"
sortable
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.ZCCSSRQ ? $moment(scope.row.ZCCSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
@@ -177,7 +171,6 @@
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="创建时间" label="创建时间"
sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span>
@@ -563,7 +563,7 @@
style="width: 100%" style="width: 100%"
border border
ref="table" ref="table"
height="90%" class="table-height"
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="selectThree" @selection-change="selectThree"
@@ -870,9 +870,9 @@ export default {
//判断当前是否会签 //判断当前是否会签
selectSign(type) { selectSign(type) {
if (type === "1") { if (type === "1") {
this.listForm.signFlag = 1; this.listForm.signFlag = '1';
} else if (type == "2") { } else if (type == "2") {
this.listForm.signFlag = 2; this.listForm.signFlag = '2';
} }
}, },
queryDetailsData() { queryDetailsData() {
@@ -1528,5 +1528,9 @@ export default {
.demo-drawer-content { .demo-drawer-content {
margin-top: 10px; margin-top: 10px;
} }
.table-height{
height: calc(~'100% - 65px');
overflow: auto;
}
} }
</style> </style>
@@ -97,25 +97,19 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
sortable
label="发布日期"> label="发布日期">
<template slot-scope="scope">
<span>{{ scope.row.issueTime ? $moment(scope.row.issueTime).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="XCXSSRQ" prop="XCXSSRQ"
sortable
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.XCXSSRQ ? $moment(scope.row.XCXSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="ZCCSSRQ" prop="ZCCSSRQ"
sortable
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.ZCCSSRQ ? $moment(scope.row.ZCCSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
@@ -177,7 +171,6 @@
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="创建时间" label="创建时间"
sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span>
@@ -116,25 +116,19 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
sortable
label="发布日期"> label="发布日期">
<template slot-scope="scope">
<span>{{ scope.row.issueTime ? $moment(scope.row.issueTime).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="XCXSSRQ" prop="XCXSSRQ"
sortable
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.XCXSSRQ ? $moment(scope.row.XCXSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="ZCCSSRQ" prop="ZCCSSRQ"
sortable
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.ZCCSSRQ ? $moment(scope.row.ZCCSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
@@ -196,7 +190,6 @@
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="创建时间" label="创建时间"
sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD') : '' }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD') : '' }}</span>
@@ -293,7 +286,7 @@
style="width: 100%" style="width: 100%"
border border
ref="table" ref="table"
height="100%" class="table-height"
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="selectThree" @selection-change="selectThree"
@@ -338,18 +331,12 @@
prop="XCXSSRQ" prop="XCXSSRQ"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.XCXSSRQ ? $moment(scope.row.XCXSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="ZCCSSRQ" prop="ZCCSSRQ"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.ZCCSSRQ ? $moment(scope.row.ZCCSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
@@ -595,13 +582,8 @@ export default {
this.standardData = res.data.list; this.standardData = res.data.list;
this.loading = false this.loading = false
this.standardData.forEach(item => { this.standardData.forEach(item => {
if(item.attrInfoMap === null){ this.$set(item, "ZCCSSRQ", item.zccssrq);
this.$set(item, "ZCCSSRQ", ''); this.$set(item, "XCXSSRQ", item.xcxssrq);
this.$set(item, "XCXSSRQ", '');
}else{
this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ);
this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ);
}
}) })
this.totalNo = res.data.count; this.totalNo = res.data.count;
}, e => { }, e => {
@@ -994,6 +976,10 @@ export default {
.demo-drawer-content { .demo-drawer-content {
margin-top: 10px; margin-top: 10px;
} }
.table-height{
height: calc(~'100% - 65px');
overflow: auto;
}
} }
</style> </style>
@@ -98,25 +98,19 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
sortable
label="发布日期"> label="发布日期">
<template slot-scope="scope">
<span>{{ scope.row.issueTime ? $moment(scope.row.issueTime).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="XCXSSRQ" prop="XCXSSRQ"
sortable
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.XCXSSRQ ? $moment(scope.row.XCXSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="ZCCSSRQ" prop="ZCCSSRQ"
sortable
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.ZCCSSRQ ? $moment(scope.row.ZCCSSRQ).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
@@ -178,7 +172,6 @@
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="创建时间" label="创建时间"
sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span>
@@ -116,7 +116,6 @@
prop="ssrq" prop="ssrq"
width="190px" width="190px"
align="center" align="center"
sortable
label="标准实施日期"> label="标准实施日期">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -128,7 +127,6 @@
<el-table-column <el-table-column
prop="zccssrq" prop="zccssrq"
align="center" align="center"
sortable
width="190px" width="190px"
label="在产车实施日期"> label="在产车实施日期">
</el-table-column> </el-table-column>
@@ -93,22 +93,16 @@
label="条款名称"> label="条款名称">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="xcxssrqgj" prop="xcxssrq"
width="200" width="200"
align="center" align="center"
label="新车型实施日期"> 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>
<el-table-column <el-table-column
prop="zccssrqgj" prop="zccssrq"
width="200" width="200"
align="center" align="center"
label="在产车实施日期"> 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>
<el-table-column <el-table-column
prop="complianceReasons" prop="complianceReasons"
@@ -208,7 +202,6 @@
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="创建时间" label="创建时间"
sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span>
@@ -86,7 +86,6 @@
prop="ssrq" prop="ssrq"
width="190px" width="190px"
align="center" align="center"
sortable
label="标准实施日期"> label="标准实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.ssrq ? $moment(scope.row.ssrq).format("YYYY-MM-DD") : "" }}</span> <span>{{ scope.row.ssrq ? $moment(scope.row.ssrq).format("YYYY-MM-DD") : "" }}</span>
@@ -104,7 +103,6 @@
<el-table-column <el-table-column
prop="zccssrq" prop="zccssrq"
align="center" align="center"
sortable
width="190px" width="190px"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -169,7 +167,6 @@
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="创建时间" label="创建时间"
sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span>
@@ -126,7 +126,6 @@
prop="ssrq" prop="ssrq"
width="190px" width="190px"
align="center" align="center"
sortable
label="标准实施日期"> label="标准实施日期">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -138,7 +137,6 @@
<el-table-column <el-table-column
prop="zccssrq" prop="zccssrq"
align="center" align="center"
sortable
width="190px" width="190px"
label="在产车实施日期"> label="在产车实施日期">
</el-table-column> </el-table-column>
@@ -45,7 +45,6 @@
<el-table <el-table
:data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) " :data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) "
style="width: 100%; border: 1px solid #cccccc;height: 400px" style="width: 100%; border: 1px solid #cccccc;height: 400px"
row-key="standId"
height="70%" height="70%"
border border
highlight-current-row highlight-current-row
@@ -100,18 +99,12 @@
width="200" width="200"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zccssrq" prop="zccssrq"
width="200" width="200"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="productType"--> <!-- prop="productType"-->
@@ -45,7 +45,6 @@
<el-table <el-table
:data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) " :data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) "
style="width: 100%; border: 1px solid #cccccc;height: 400px" style="width: 100%; border: 1px solid #cccccc;height: 400px"
row-key="standId"
height="70%" height="70%"
border border
highlight-current-row highlight-current-row
@@ -100,18 +99,12 @@
width="200" width="200"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zccssrqgj" prop="zccssrq"
width="200" width="200"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="productType"--> <!-- prop="productType"-->
@@ -456,7 +449,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);
@@ -45,7 +45,6 @@
<el-table <el-table
:data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) " :data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) "
style="width: 100%; border: 1px solid #cccccc;height: 400px" style="width: 100%; border: 1px solid #cccccc;height: 400px"
row-key="standId"
height="70%" height="70%"
border border
highlight-current-row highlight-current-row
@@ -100,18 +99,12 @@
width="200" width="200"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zccssrq" prop="zccssrq"
width="200" width="200"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="productType"--> <!-- prop="productType"-->
@@ -86,30 +86,19 @@
prop="ssrq" prop="ssrq"
width="190px" width="190px"
align="center" align="center"
sortable
label="标准实施日期"> label="标准实施日期">
<template slot-scope="scope">
<span>{{ scope.row.ssrq ? $moment(scope.row.ssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="xcxssrq" prop="xcxssrq"
width="190px" width="190px"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zccssrq" prop="zccssrq"
align="center" align="center"
sortable
width="190px" width="190px"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zrbm" prop="zrbm"
@@ -169,7 +158,6 @@
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="创建时间" label="创建时间"
sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span>
@@ -98,11 +98,19 @@
<el-table-column <el-table-column
prop="ssrq" prop="ssrq"
align="center" align="center"
sortable
label="标准实施日期"> label="标准实施日期">
<template slot-scope="scope"> </el-table-column>
<span>{{ scope.row.ssrq ? $moment(scope.row.ssrq).format("YYYY-MM-DD") : "" }}</span> <el-table-column
</template> prop="xcxssrq"
width="190px"
align="center"
label="新车型实施日期">
</el-table-column>
<el-table-column
prop="zccssrq"
align="center"
width="190px"
label="在产车实施日期">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zrbm" prop="zrbm"
@@ -161,7 +169,6 @@
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="创建时间" label="创建时间"
sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span>
@@ -96,11 +96,19 @@
<el-table-column <el-table-column
prop="ssrq" prop="ssrq"
align="center" align="center"
sortable
label="标准实施日期"> label="标准实施日期">
<template slot-scope="scope"> </el-table-column>
<span>{{ scope.row.ssrq ? $moment(scope.row.ssrq).format("YYYY-MM-DD") : "" }}</span> <el-table-column
</template> prop="xcxssrq"
width="190px"
align="center"
label="新车型实施日期">
</el-table-column>
<el-table-column
prop="zccssrq"
align="center"
width="190px"
label="在产车实施日期">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zrbm" prop="zrbm"
@@ -169,7 +177,6 @@
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="创建时间" label="创建时间"
sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span>
@@ -52,7 +52,6 @@
<el-table <el-table
:data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) " :data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) "
style="width: 100%; border: 1px solid #cccccc;height: 400px" style="width: 100%; border: 1px solid #cccccc;height: 400px"
row-key="standId"
height="70%" height="70%"
border border
highlight-current-row highlight-current-row
@@ -109,18 +108,12 @@
width="200" width="200"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zccssrqgj" prop="zccssrq"
width="200" width="200"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="productType"--> <!-- prop="productType"-->
@@ -804,7 +797,7 @@ export default {
this.listForm["id"] = item.id; this.listForm["id"] = item.id;
this.listForm.dataList = item.dataList; this.listForm.dataList = item.dataList;
this.listForm.dataList.forEach(item => { this.listForm.dataList.forEach(item => {
if(item.children.length < 1 && item.workPeopleId === this.$store.getters.userInfo.userId ){ if(item.workPeopleId === this.$store.getters.userInfo.userId ){
this.dataList.push(item) this.dataList.push(item)
} }
item.children.forEach(items=> { item.children.forEach(items=> {
@@ -45,7 +45,6 @@
<el-table <el-table
:data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) " :data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) "
style="width: 100%; border: 1px solid #cccccc;height: 400px" style="width: 100%; border: 1px solid #cccccc;height: 400px"
row-key="standId"
height="70%" height="70%"
border border
highlight-current-row highlight-current-row
@@ -95,23 +94,18 @@
align="center" align="center"
label="条款名称"> label="条款名称">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="xcxssrq" prop="xcxssrq"
width="200" width="200"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zccssrq" prop="zccssrq"
width="200" width="200"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="complianceReasons" prop="complianceReasons"
@@ -45,7 +45,6 @@
<el-table <el-table
:data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) " :data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) "
style="width: 100%; border: 1px solid #cccccc;height: 400px" style="width: 100%; border: 1px solid #cccccc;height: 400px"
row-key="standId"
height="70%" height="70%"
border border
highlight-current-row highlight-current-row
@@ -100,18 +99,12 @@
width="200" width="200"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zccssrq" prop="zccssrq"
width="200" width="200"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="productType"--> <!-- prop="productType"-->
@@ -45,7 +45,6 @@
<el-table <el-table
:data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) " :data="dataList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) "
style="width: 100%; border: 1px solid #cccccc;height: 400px" style="width: 100%; border: 1px solid #cccccc;height: 400px"
row-key="standId"
height="70%" height="70%"
border border
highlight-current-row highlight-current-row
@@ -100,18 +99,12 @@
width="200" width="200"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span>{{ scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zccssrq" prop="zccssrq"
width="200" width="200"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column> </el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="productType"--> <!-- prop="productType"-->
@@ -180,12 +180,6 @@
width="210px" width="210px"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span v-if="scope.row.zccssrqgj === null">
{{ scope.row.zccssrqgj }}
</span>
<span v-else>{{ scope.row.zccssrqgj.slice(0, 10) }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="xcxssrqgj" prop="xcxssrqgj"
@@ -193,12 +187,6 @@
align="center" align="center"
width="210px" width="210px"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span v-if="scope.row.xcxssrqgj === null">
{{ scope.row.xcxssrqgj }}
</span>
<span v-else>{{ scope.row.xcxssrqgj.slice(0, 10) }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
@@ -214,34 +202,6 @@
align="center" align="center"
label="适用产品线"> label="适用产品线">
</el-table-column> </el-table-column>
<el-table-column
show-overflow-tooltip
prop="cycvppsbm"
width="210px"
align="center"
label="乘用车VPPS编码">
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="cycvppscn"
width="210px"
align="center"
label="乘用车VPPS中文名称">
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="kccvppsbm"
align="center"
width="210px"
label="卡车VPPS编码">
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="kccvppscn"
align="center"
width="210px"
label="卡车VPPS中文名称">
</el-table-column>
</el-table> </el-table>
<pagination :page="standardForm.page" :total="standardFormTotal" @pageChange="pageChange" <pagination :page="standardForm.page" :total="standardFormTotal" @pageChange="pageChange"
@pageSizeChange="pageSizeChange"></pagination> @pageSizeChange="pageSizeChange"></pagination>
@@ -415,41 +415,6 @@
<el-col :span="24"> <el-col :span="24">
<el-form :model="addForm" inline class="label-input-form" :rules="formRules" label-width="180px" <el-form :model="addForm" inline class="label-input-form" :rules="formRules" label-width="180px"
ref="addForm"> ref="addForm">
<el-form-item prop="productName" label="项目名称" style="width: 100%; margin-right:10px"
class="add-form-item">
<el-select v-model="addForm.productName" filterable @change="handleChange" placeholder="请选择项目名称">
<el-option
v-for="item in ProjectDatas"
:key="item.id"
:label="item.projectName"
:value="item"
></el-option>
</el-select>
</el-form-item>
<el-form-item prop="productId" label="项目编号" style="width: 100%; margin-right:10px"
class="add-form-item">
<el-input
:disabled="true"
v-model="addForm.productId"
placeholder="请输入项目编号"
/>
</el-form-item>
<el-form-item prop="productType" label="产品类型" style="width: 100%; margin-right:10px"
class="add-form-item">
<el-input
:disabled="true"
v-model="addForm.productType"
placeholder="请输入产品类型"
/>
</el-form-item>
<el-form-item prop="productLine" label="产品线" style="width: 100%; margin-right:10px"
class="add-form-item">
<el-input
:disabled="true"
v-model="addForm.productLine"
placeholder="请输入产品线"
/>
</el-form-item>
<el-form-item prop="standSerialNumber" label="标准号" style="width: 100%; margin-right:10px" <el-form-item prop="standSerialNumber" label="标准号" style="width: 100%; margin-right:10px"
class="add-form-item"> class="add-form-item">
<el-select <el-select
@@ -472,7 +437,7 @@
:disabled="true" :disabled="true"
v-model="addForm.standName" v-model="addForm.standName"
placeholder="请输入标准名称" placeholder="请输入标准名称"
/> />
</el-form-item> </el-form-item>
<el-form-item prop="itemsNum" label="条款号" style="width: 100%; margin-right:10px" <el-form-item prop="itemsNum" label="条款号" style="width: 100%; margin-right:10px"
class="add-form-item add-input"> class="add-form-item add-input">
@@ -489,6 +454,41 @@
placeholder="请输入条款名称" placeholder="请输入条款名称"
:maxlength="500" /> :maxlength="500" />
</el-form-item> </el-form-item>
<el-form-item prop="productLine" label="产品线" style="width: 100%; margin-right:10px"
class="add-form-item">
<!-- <el-input-->
<!-- :disabled="true"-->
<!-- v-model="addForm.productLine"-->
<!-- placeholder="请输入产品线"-->
<!-- />-->
<el-select v-model="addForm.productLine" filterable @change="handleChangeLine" placeholder="请选择产品线">
<el-option
v-for="item in productLines"
:key="item.id"
:label="item.productLine"
:value="item"
></el-option>
</el-select>
</el-form-item>
<el-form-item prop="productName" label="项目名称" style="width: 100%; margin-right:10px"
class="add-form-item">
<el-select v-model="addForm.productName" filterable @change="handleChange" placeholder="请选择项目名称">
<el-option
v-for="item in ProjectDatas"
:key="item.id"
:label="item.projectName"
:value="item"
></el-option>
</el-select>
</el-form-item>
<el-form-item prop="productId" label="项目编号" style="width: 100%; margin-right:10px"
class="add-form-item">
<el-input
:disabled="true"
v-model="addForm.productId"
placeholder="请输入项目编号"
/>
</el-form-item>
<el-form-item prop="responsibleUnit" label="责任部门" style="width: 100%; margin-right:10px" <el-form-item prop="responsibleUnit" label="责任部门" style="width: 100%; margin-right:10px"
class="add-form-item"> class="add-form-item">
<el-input <el-input
@@ -593,6 +593,7 @@ export default {
loading: false, loading: false,
nonList: [], //未符合项表格数据 nonList: [], //未符合项表格数据
replaceLoading: false, replaceLoading: false,
productLines: [], //产品线数据
//项目数据 //项目数据
ProjectDatas: [], ProjectDatas: [],
itemsData: [], itemsData: [],
@@ -1006,6 +1007,7 @@ export default {
}, },
//新增事件 //新增事件
addModel() { addModel() {
alert('222')
this.dataList = [] this.dataList = []
this.serialNumber = true this.serialNumber = true
this.drawerTitle = "新增"; this.drawerTitle = "新增";
@@ -1099,6 +1101,11 @@ export default {
this.pageSizeNo = pageSize; this.pageSizeNo = pageSize;
this.getTableByPage(); this.getTableByPage();
}, },
//产品线change事件
handleChangeLine(val){
console.log(val);
this.ProjectDatas = val.sarStandProjectLibraries
},
/** 项目名称change事件 */ /** 项目名称change事件 */
handleChange(val) { handleChange(val) {
@@ -1108,12 +1115,11 @@ export default {
} }
this.addForm.productId = val.id this.addForm.productId = val.id
this.addForm.productId = val.projectNumber this.addForm.productId = val.projectNumber
this.addForm.productLine = val.productLine
this.addForm.productName = val.projectName this.addForm.productName = val.projectName
this.addForm.productType = val.projectPlatfor this.addForm.productType = val.projectPlatfor
this.serialNumber = false this.serialNumber = false
let productId = val.id // let productId = val.id
this.getStandData(productId) // this.getStandData(productId)
}, },
/** 标准号change事件 */ /** 标准号change事件 */
standChange(item) { standChange(item) {
@@ -1179,11 +1185,30 @@ export default {
this.addForm.responsibleUnit = nameList; this.addForm.responsibleUnit = nameList;
}, },
//获取产品线数据
getProductData() {
this.$http.get("sarStandProjectLibrary/queryProjectManager", {
current: 1,
PageSize:100,
}, {
_this: this
}, res => {
res.data.records.forEach(item => {
if(item.productLine){
this.productLines.push(item)
}
})
}, e => {
});
},
}, },
mounted() { mounted() {
//查询已维护的项目 //查询已维护的项目
this.getProjectData(); this.getProjectData();
//查询产品线
this.getProductData()
this.getData() this.getData()
// 加载所有的部门 // 加载所有的部门
this.getOrgTreeSource(); this.getOrgTreeSource();