Merge branch 'develop' into FOTON

This commit is contained in:
super_liu
2021-12-13 20:22:48 +08:00
30 changed files with 1359 additions and 854 deletions
+2 -2
View File
@@ -6653,7 +6653,7 @@ var PDFPageView = function () {
watermark_cols: 0,//水印列数 watermark_cols: 0,//水印列数
watermark_x_space: 18,//水印x轴间隔 watermark_x_space: 18,//水印x轴间隔
watermark_y_space: 20,//水印y轴间隔 watermark_y_space: 20,//水印y轴间隔
watermark_color: 'rgba(192, 192, 192)',//水印字体颜色 watermark_color: 'rgba(232,232,240)',//水印字体颜色
watermark_alpha: 0.3,//水印透明度 watermark_alpha: 0.3,//水印透明度
watermark_fontsize: '40px',//水印字体大小 watermark_fontsize: '40px',//水印字体大小
watermark_font: '微软雅黑',//水印字体 watermark_font: '微软雅黑',//水印字体
@@ -6671,7 +6671,7 @@ var PDFPageView = function () {
watermark_cols: 0,//水印列数 watermark_cols: 0,//水印列数
watermark_x_space: 2,//水印x轴间隔 watermark_x_space: 2,//水印x轴间隔
watermark_y_space: 27,//水印y轴间隔 watermark_y_space: 27,//水印y轴间隔
watermark_color: 'rgba(192, 192, 192)',//水印字体颜色 watermark_color: 'rgba(232,232,240)',//水印字体颜色
watermark_alpha: 0.3,//水印透明度 watermark_alpha: 0.3,//水印透明度
watermark_fontsize: '40px',//水印字体大小 watermark_fontsize: '40px',//水印字体大小
watermark_font: '微软雅黑',//水印字体 watermark_font: '微软雅黑',//水印字体
+2 -4
View File
@@ -65,7 +65,7 @@ export function meetingByMonth(params) {
export function addUn( export function addUn(
closeState,standId, standSerialNumber, standName, closeState,standId, standSerialNumber, standName,
itemsNum, itemsName, productType, itemsNum, itemsName, productType,
productLine, productName,productId,reason, responsibleUnit, productLine, productName,productId,reason,
dutyEngineer, authEngineer, qaEngineer, planCloseTime) { dutyEngineer, authEngineer, qaEngineer, planCloseTime) {
const data = { const data = {
closeState, closeState,
@@ -79,7 +79,6 @@ export function addUn(
productName, //项目名称 productName, //项目名称
productId, //项目编号 productId, //项目编号
reason, //不合规项目 reason, //不合规项目
responsibleUnit, //责任部门
dutyEngineer, //责任工程师 dutyEngineer, //责任工程师
authEngineer, //认证工程师 authEngineer, //认证工程师
qaEngineer, //质量工程师 qaEngineer, //质量工程师
@@ -96,7 +95,7 @@ export function addUn(
export function editUn( export function editUn(
closeState, standId, standSerialNumber, standName, closeState, standId, standSerialNumber, standName,
itemsNum, itemsName, productType, itemsNum, itemsName, productType,
productLine, productName, reason, responsibleUnit, productLine, productName, reason,
dutyEngineer, authEngineer, qaEngineer, planCloseTime, id) { dutyEngineer, authEngineer, qaEngineer, planCloseTime, id) {
const data = { const data = {
closeState, closeState,
@@ -109,7 +108,6 @@ export function editUn(
productLine, //产品线 productLine, //产品线
productName, //项目名称 productName, //项目名称
reason, //不合规项目 reason, //不合规项目
responsibleUnit, //责任部门
dutyEngineer, //责任工程师 dutyEngineer, //责任工程师
authEngineer, //认证工程师 authEngineer, //认证工程师
qaEngineer, //质量工程师 qaEngineer, //质量工程师
+9 -9
View File
@@ -16,7 +16,7 @@
<el-menu <el-menu
unique-opened unique-opened
:default-active="defaultActive" :default-active="defaultActive"
background-color="#4788c0" background-color="#8fb0cc"
text-color="#fff" text-color="#fff"
active-text-color="#000" active-text-color="#000"
router router
@@ -518,11 +518,11 @@
} }
.el-menu--collapse { .el-menu--collapse {
.is-active { .is-active {
background-color: #697178 !important; background-color: rgb(49, 112, 167) !important;
.shangqi-icon { .shangqi-icon {
color: #fff !important; color: #fff !important;
} }
color: #697178 !important; color: rgb(49, 112, 167) !important;
} }
} }
.nav-menu { .nav-menu {
@@ -532,7 +532,7 @@
user-select: none; user-select: none;
box-sizing: border-box; box-sizing: border-box;
position: absolute; position: absolute;
background: #697178; background: rgb(49, 112, 167);
background-size: 100% 100%; background-size: 100% 100%;
/deep/.el-tooltip { /deep/.el-tooltip {
padding: 0px 16px !important; padding: 0px 16px !important;
@@ -542,7 +542,7 @@
} }
&:not(.is-collapse) { &:not(.is-collapse) {
width: 200px; width: 200px;
background: #697178; background: rgb(49, 112, 167);
background-size: 100% 100%; background-size: 100% 100%;
.logo { .logo {
padding: 10px; padding: 10px;
@@ -581,7 +581,7 @@
/*background:url("../../assets/images/shangqi/home/logo3.png");*/ /*background:url("../../assets/images/shangqi/home/logo3.png");*/
} }
/deep/:not(.is-collapse) .el-menu-item.is-active{ /deep/:not(.is-collapse) .el-menu-item.is-active{
background: #4788c0 !important; background: #8fb0cc !important;
color: #fff !important; color: #fff !important;
} }
} }
@@ -614,7 +614,7 @@
color: #fff; color: #fff;
} }
.nav-menu{ .nav-menu{
background-color: #697178; background-color: rgb(49, 112, 167);
scrollbar-width: none; scrollbar-width: none;
-ms-overflow-style: none; /* IE 10+ */ -ms-overflow-style: none; /* IE 10+ */
} }
@@ -626,11 +626,11 @@
} }
.nav-menu-popper .el-menu .el-menu-item.is-active { .nav-menu-popper .el-menu .el-menu-item.is-active {
background-color: #fff !important; background-color: #fff !important;
color: #4788c0 !important; color: #8fb0cc !important;
font-weight: bold; font-weight: bold;
} }
.nav-menu-popper .el-menu .el-menu-item:hover { .nav-menu-popper .el-menu .el-menu-item:hover {
background-color: #697178 !important; background-color: rgb(49, 112, 167) !important;
color: #fff !important; color: #fff !important;
font-weight: bold; font-weight: bold;
} }
@@ -4,6 +4,7 @@
<!--title 标题--> <!--title 标题-->
<div class="details-header"> <div class="details-header">
<span>{{sarStandardsInfoEO.standCode}} 《{{sarStandardsInfoEO.standName}}》 企标详情</span> <span>{{sarStandardsInfoEO.standCode}} 《{{sarStandardsInfoEO.standName}}》 企标详情</span>
<b style="float:right;font-size: 25px;color: #ff9900">{{ ((qualityCommentScore*2*0.9)+(dynamicCommentScore*2*0.1)).toFixed(3) }}</b>
<!-- 之前的,先注掉--> <!-- 之前的,先注掉-->
<!-- <span>{{sarStandardsInfoEO.standCode}}-{{sarStandardsInfoEO.standYear}} 《{{sarStandardsInfoEO.standName}}》 企标详情</span>--> <!-- <span>{{sarStandardsInfoEO.standCode}}-{{sarStandardsInfoEO.standYear}} 《{{sarStandardsInfoEO.standName}}》 企标详情</span>-->
</div> </div>
@@ -1761,6 +1762,7 @@ export default {
}, res => { }, res => {
if (res.ok){ if (res.ok){
this.$message.success('提交成功') this.$message.success('提交成功')
this.businessCommentDialog = false
this.commentSubmitLoading = false this.commentSubmitLoading = false
//重新评分之后刷新历史评分人 //重新评分之后刷新历史评分人
let standId = this.$route.params.id let standId = this.$route.params.id
@@ -1777,6 +1779,15 @@ export default {
}, e => { }, e => {
}) })
//刷新动态评价总平均分和质量评价总平均分
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getScore', {lawId:standId}, {
_this: this
}, res => {
this.qualityCommentScore = res.data.quality.toFixed(3)/2
this.dynamicCommentScore = res.data.dynamic.toFixed(3)/2
}, e => {
})
} }
}, e => { }, e => {
}) })
@@ -2857,7 +2868,17 @@ export default {
// } // }
}, },
async mounted () { async mounted () {
//查询动态评价总平均分和质量评价总平均分
let standId = this.$route.params.id let standId = this.$route.params.id
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getScore', {lawId:standId}, {
_this: this
}, res => {
this.qualityCommentScore = res.data.quality.toFixed(3)/2
this.dynamicCommentScore = res.data.dynamic.toFixed(3)/2
}, e => {
})
//查询评价人表
const qualityRequest = { const qualityRequest = {
lawId: standId, lawId: standId,
evaluationType: 'quality' evaluationType: 'quality'
@@ -56,6 +56,28 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="上传附件" prop="modelNameList" class="add-form-item form-item-disabled">
<el-input
disabled
style="display: none;"
v-model="form.modelNameList"
clearable
></el-input>
<div v-if="form.modelList.length > 0" class="fileClass" style="display: flex;">
<div v-for="(item, index) in form.modelList" :key="index" @click="fileUpload" style="margin-right: 5px; padding-left: 10px;">
{{ item.name }}
</div>
</div>
<div v-else class="addButton" style="padding-left: 10px">
<el-button
type="primary"
class="common-button-primary"
@click="fileUpload"
size="small">
点击上传
</el-button>
</div>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -97,12 +119,12 @@
<el-timeline-item timestamp="指派责任人" placement="top" :color="roleForm.dockUserList ? '#66b1ff' : ''"> <el-timeline-item timestamp="指派责任人" placement="top" :color="roleForm.dockUserList ? '#66b1ff' : ''">
<el-card> <el-card>
<el-form-item prop="dockUserList" style="margin-bottom: 0"> <el-form-item prop="dockUserList" style="margin-bottom: 0">
<h4>责任领导</h4> <h4>责任部门对接人</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.dockUserList" style="display: none;"/> <el-input v-model="roleForm.dockUserList" style="display: none;"/>
<el-input <el-input
v-model="roleForm.dockUserListName" v-model="roleForm.dockUserListName"
placeholder="选择责任领导" placeholder="选择责任部门对接人"
@click.native="choiceZRRS"> @click.native="choiceZRRS">
</el-input> </el-input>
</div> </div>
@@ -253,7 +275,7 @@
</div> </div>
</el-drawer> </el-drawer>
<Role-tree <Role-tree
is-title="选择责任领导" is-title="选择责任部门对接人"
:is-visible.sync="modalshowflag2" :is-visible.sync="modalshowflag2"
@checkedRole="checkedRole2" @checkedRole="checkedRole2"
:nodeList="nodeList2" :nodeList="nodeList2"
@@ -297,6 +319,26 @@
</div> </div>
</div> </div>
</el-drawer> </el-drawer>
<el-dialog width='400px' :visible.sync="fileMadel" title="上传附件">
<el-upload
multiple
class="upload-demo"
drag
:action="fileUrl"
ref="importfile"
name="file"
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
:before-upload="beginImportFile"
:on-success="importFileSuccess"
:on-remove="importFileRemove"
:show-file-list="true"
>
<div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i>
<p>点击或拖拽上传文件</p>
</div>
</el-upload>
</el-dialog>
</div> </div>
</template> </template>
@@ -311,6 +353,9 @@ export default {
name: "bzzqyjStep1-1", name: "bzzqyjStep1-1",
data() { data() {
return { return {
fileUrl: 'api/att/attFile/upload',
fileMadel: false,
OCRoptions: [],
addFjList: [], addFjList: [],
fzShow: false, fzShow: false,
fzlistModel: false, fzlistModel: false,
@@ -330,7 +375,11 @@ export default {
standType: '', standType: '',
standId: '', standId: '',
fjList: [], fjList: [],
fjListId: '' fjListId: '',
fjListId: '',
textType: '',
modelList: [],
modelNameList: ''
}, },
formRules: { formRules: {
cid: [ cid: [
@@ -401,6 +450,11 @@ export default {
ProcessTitle ProcessTitle
}, },
mounted() { mounted() {
this.$http.get('lawss/sarStandAttrDetails/getListData', '', {
_this: this
}, res => {
this.OCRoptions = res.data
})
this.getData() this.getData()
this.sarStandCompareHis() this.sarStandCompareHis()
this.$http.get('sys/dictype/getDicTypeListCode', '', { this.$http.get('sys/dictype/getDicTypeListCode', '', {
@@ -415,6 +469,78 @@ export default {
} }
}, },
methods: { methods: {
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
return true
} else {
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
return false
}
// 判断文件上传大小
// eslint-disable-next-line no-unreachable
if (file.size / 1024 / 1024 <= 200) {
return true
} else {
this.$message.error('文件' + file.name + '大小不超过200M')
return false
}
return true
},
importFileRemove (file, fileList) {
let list = ''
this.form.modelList = []
fileList.forEach(item => {
this.form.modelList.push(item)
if (list.length > 0) {
list += ','
list += item.name
} else {
list+= item.name
}
})
this.form.modelNameList = list
},
// 导入标准数据成功后执行
importFileSuccess (response, file) {
if (response.ok) {
this.form.modelList.push(response.data)
let list = ''
this.form.modelList.forEach(item => {
if (list.length > 0) {
list += ','
list += item.name
} else {
list+= item.name
}
})
this.form.modelNameList = list
this.$message({
showClose: true,
message: response.message,
type: 'success'
})
} else {
this.$message.error('程序异常,上传失败')
}
},
fileUpload () {
this.fileMadel = true
},
setWBType(type) {
let text = ''
for (let a = 0; a < this.OCRoptions.length; a++) {
if (this.OCRoptions[a].attrField === type) {
text = this.OCRoptions[a].attrName
}
}
return text
},
updataFj(item) { updataFj(item) {
let id let id
let type = item.fileName.split('.') let type = item.fileName.split('.')
@@ -426,15 +552,36 @@ export default {
window.open('/static/pdf/phone/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id)) window.open('/static/pdf/phone/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
}, },
addfjList() { addfjList() {
this.$http.get('lawss/sarStandFile/queryFileInfo', { this.$http.get('lawss/sarStandFile/queryFileInfoNew', {
type: '0',
standId: this.form.standId standId: this.form.standId
}, {}, res => { }, {
this.fjList = res.data _this: this
}, res => {
this.OCRLoading = false
if (res.ok) {
if (res.data.length > 0) {
this.fjList = res.data
this.fzlistModel = true
} else {
this.$message.warning('当前标准没有' + text + '文件')
this.fjList = []
}
}
}) })
this.fzlistModel = true // this.$http.get('lawss/sarStandFile/queryFileInfo', {
// standId: this.form.standId
// }, {}, res => {
// this.fjList = res.data
// this.fzlistModel = true
// })
}, },
handleSelection2(data) { handleSelection2(data) {
this.addFjList = data if (data.length > 1) {
this.$message.warning('最多选择1条附件')
} else {
this.addFjList = data
}
}, },
closeDrawer2() { closeDrawer2() {
this.fzlistModel = false this.fzlistModel = false
@@ -443,11 +590,16 @@ export default {
enterDrawer2() { enterDrawer2() {
this.fzlistModel = false this.fzlistModel = false
this.form.fjList = this.addFjList this.form.fjList = this.addFjList
let idList this.form.textType = this.setWBType(this.addFjList[0].standFileClassify)
this.form.textValue = this.addFjList[0].standFileClassify
let idList = []
let nameList = []
this.addFjList.forEach(item => { this.addFjList.forEach(item => {
idList += item.id + ',' idList.push(item.id)
nameList.push(item.fileName)
}) })
this.form.fjListId = idList this.form.fjListName = nameList.join(',')
this.form.fjListId = idList.join(',')
}, },
// 点击查看 // 点击查看
handlePreview(item) { handlePreview(item) {
@@ -56,6 +56,34 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<!-- <el-form-item label="文本状态" prop="textType" class="add-form-item form-item-disabled">-->
<!-- <el-input-->
<!-- disabled-->
<!-- v-model="form.textType"-->
<!-- />-->
<!-- </el-form-item>-->
<el-form-item label="上传附件" prop="modelNameList" class="add-form-item form-item-disabled">
<el-input
disabled
style="display: none;"
v-model="form.modelNameList"
clearable
></el-input>
<div v-if="form.modelList.length > 0" class="fileClass" style="display: flex;">
<div v-for="(item, index) in form.modelList" :key="index" @click="fileUpload" style="margin-right: 5px; padding-left: 10px;">
{{ item.name }}
</div>
</div>
<div v-else class="addButton" style="padding-left: 10px">
<el-button
type="primary"
class="common-button-primary"
@click="fileUpload"
size="small">
点击上传
</el-button>
</div>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -97,12 +125,12 @@
<el-timeline-item timestamp="指派责任人" placement="top" :color="roleForm.dockUserList ? '#66b1ff' : ''"> <el-timeline-item timestamp="指派责任人" placement="top" :color="roleForm.dockUserList ? '#66b1ff' : ''">
<el-card> <el-card>
<el-form-item prop="dockUserList" style="margin-bottom: 0"> <el-form-item prop="dockUserList" style="margin-bottom: 0">
<h4>责任领导</h4> <h4>责任部门对接人</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.dockUserList" style="display: none;"/> <el-input v-model="roleForm.dockUserList" style="display: none;"/>
<el-input <el-input
v-model="roleForm.dockUserListName" v-model="roleForm.dockUserListName"
placeholder="选择责任领导" placeholder="选择责任部门对接人"
@click.native="choiceZRRS"> @click.native="choiceZRRS">
</el-input> </el-input>
</div> </div>
@@ -254,7 +282,7 @@
</div> </div>
</el-drawer> </el-drawer>
<Role-tree <Role-tree
is-title="选择责任领导" is-title="选择责任部门对接人"
:is-visible.sync="modalshowflag2" :is-visible.sync="modalshowflag2"
@checkedRole="checkedRole2" @checkedRole="checkedRole2"
:nodeList="nodeList2" :nodeList="nodeList2"
@@ -286,7 +314,15 @@
@selection-change="handleSelection2" @selection-change="handleSelection2"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"> :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column label="附件名" align="center" prop="fileOldName"></el-table-column> <el-table-column label="附件名" align="center" prop="fileName"></el-table-column>
<el-table-column
prop="standFileClassify"
label="文本状态"
align="center">
<template slot-scope="scope">
<div>{{ setWBType(scope.row.standFileClassify) }}</div>
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
@@ -298,6 +334,26 @@
</div> </div>
</div> </div>
</el-drawer> </el-drawer>
<el-dialog width='400px' :visible.sync="fileMadel" title="上传附件">
<el-upload
multiple
class="upload-demo"
drag
:action="fileUrl"
ref="importfile"
name="file"
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
:before-upload="beginImportFile"
:on-success="importFileSuccess"
:on-remove="importFileRemove"
:show-file-list="true"
>
<div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i>
<p>点击或拖拽上传文件</p>
</div>
</el-upload>
</el-dialog>
</div> </div>
</template> </template>
@@ -312,6 +368,9 @@ export default {
name: "bzzqyjStep1", name: "bzzqyjStep1",
data() { data() {
return { return {
fileUrl: 'api/att/attFile/upload',
fileMadel: false,
OCRoptions: [],
addFjList: [], addFjList: [],
fzShow: false, fzShow: false,
fzlistModel: false, fzlistModel: false,
@@ -332,7 +391,11 @@ export default {
standId: '', standId: '',
fjList: [], fjList: [],
fjListName: '', fjListName: '',
fjListId: '' fjListId: '',
textValue: '',
textType: '',
modelList: [],
modelNameList: ''
}, },
formRules: { formRules: {
cid: [ cid: [
@@ -401,6 +464,11 @@ export default {
ProcessTitle ProcessTitle
}, },
mounted() { mounted() {
this.$http.get('lawss/sarStandAttrDetails/getListData', '', {
_this: this
}, res => {
this.OCRoptions = res.data
})
this.sarStandCompareHis() this.sarStandCompareHis()
this.$http.get('sys/dictype/getDicTypeListCode', '', { this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this _this: this
@@ -414,6 +482,78 @@ export default {
} }
}, },
methods: { methods: {
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
return true
} else {
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
return false
}
// 判断文件上传大小
// eslint-disable-next-line no-unreachable
if (file.size / 1024 / 1024 <= 200) {
return true
} else {
this.$message.error('文件' + file.name + '大小不超过200M')
return false
}
return true
},
importFileRemove (file, fileList) {
let list = ''
this.form.modelList = []
fileList.forEach(item => {
this.form.modelList.push(item)
if (list.length > 0) {
list += ','
list += item.name
} else {
list+= item.name
}
})
this.form.modelNameList = list
},
// 导入标准数据成功后执行
importFileSuccess (response, file) {
if (response.ok) {
this.form.modelList.push(response.data)
let list = ''
this.form.modelList.forEach(item => {
if (list.length > 0) {
list += ','
list += item.name
} else {
list+= item.name
}
})
this.form.modelNameList = list
this.$message({
showClose: true,
message: response.message,
type: 'success'
})
} else {
this.$message.error('程序异常,上传失败')
}
},
fileUpload () {
this.fileMadel = true
},
setWBType(type) {
let text = ''
for (let a = 0; a < this.OCRoptions.length; a++) {
if (this.OCRoptions[a].attrField === type) {
text = this.OCRoptions[a].attrName
}
}
return text
},
updataFj(item) { updataFj(item) {
let id let id
let type = item.fileName.split('.') let type = item.fileName.split('.')
@@ -427,14 +567,30 @@ export default {
addfjList() { addfjList() {
this.$http.get('lawss/sarStandFile/queryFileInfo', { this.$http.get('lawss/sarStandFile/queryFileInfo', {
standId: this.form.standId standId: this.form.standId
}, {}, res => { }, {
this.fjList = res.data _this: this
}, res => {
this.OCRLoading = false
if (res.ok) {
if (res.data.length > 0) {
this.fjList = res.data
this.fzlistModel = true
} else {
this.$message.warning('当前标准没有文件')
this.fjList = []
}
}
}) })
this.fzlistModel = true // this.$http.get('lawss/sarStandFile/queryFileInfo', {
// standId: this.form.standId
// }, {}, res => {
// this.fjList = res.data
// this.fzlistModel = true
// })
}, },
handleSelection2(data) { handleSelection2(data) {
if (data.length > 5) { if (data.length > 1) {
this.$message.warning('最多选择5条附件') this.$message.warning('最多选择1条附件')
} else { } else {
this.addFjList = data this.addFjList = data
} }
@@ -446,6 +602,8 @@ export default {
enterDrawer2() { enterDrawer2() {
this.fzlistModel = false this.fzlistModel = false
this.form.fjList = this.addFjList this.form.fjList = this.addFjList
this.form.textType = this.setWBType(this.addFjList[0].standFileClassify)
this.form.textValue = this.addFjList[0].standFileClassify
let idList = [] let idList = []
let nameList = [] let nameList = []
this.addFjList.forEach(item => { this.addFjList.forEach(item => {
@@ -46,7 +46,17 @@
style="display: none;" style="display: none;"
></el-input> ></el-input>
<div style="display: flex;"> <div style="display: flex;">
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">{{ item.fileName }}</div> <div class="fileClass" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">{{ item.fileName }}</div>
</div>
</el-form-item>
<el-form-item label="其他附件" prop="model" class="add-form-item form-item-disabled">
<div v-if="form.modelList.length > 0" style="display: flex;">
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="updataFj(item)">
{{ item.name }}
</div>
</div>
<div v-else>
- -
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="责任人" prop="responUserList" class="add-form-item form-item-disabled"> <el-form-item label="责任人" prop="responUserList" class="add-form-item form-item-disabled">
@@ -192,7 +202,10 @@ export default {
fjList: [], fjList: [],
fjListId: '', fjListId: '',
responUserList: "", responUserList: "",
responUserListName: "" responUserListName: "",
textType: '',
modelList: [],
modelNameList: '',
}, },
formRules: { formRules: {
responUserList: [ responUserList: [
@@ -339,11 +352,14 @@ export default {
this.form.endTime = data.endTime this.form.endTime = data.endTime
this.form.cname = data.cname this.form.cname = data.cname
this.form.fjList = data.fjList this.form.fjList = data.fjList
this.form.fjListId = data.fjListId // this.form.fjListId = data.fjListId
this.form.textType = data.textType
this.form.modelList = data.modelList
this.form.modelNameList = data.modelNameList
if (data.fjListId === '') { if (data.fjListId === '') {
this.form.fjListId = '' this.form.fjListId = ''
} else { } else {
this.form.fjListId = data.form.fjListId || data.fjListId this.form.fjListId = data.fjListId || data.form.fjListId
} }
this.json = data this.json = data
}).catch(e => { }).catch(e => {
File diff suppressed because it is too large Load Diff
@@ -46,12 +46,22 @@
style="display: none;" style="display: none;"
></el-input> ></el-input>
<div style="display: flex;"> <div style="display: flex;">
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index"> <div class="fileClass" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
{{ item.fileName }} {{ item.fileName }}
<el-button type="primary" class="common-button-primary" size="mini" @click="downloadFile(item.attId)">下载</el-button> <el-button type="primary" class="common-button-primary" size="mini" @click="downloadFile(item.attId)">下载</el-button>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="其他附件" prop="model" class="add-form-item form-item-disabled">
<div v-if="form.modelList.length > 0" style="display: flex;">
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;" @click="updataFj(item)">
{{ item.name }}
</div>
</div>
<div v-else>
- -
</div>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -96,6 +106,9 @@
prop="oldText" prop="oldText"
align="center" align="center"
label="修改前"> label="修改前">
<template slot-scope="scope">
<el-button size="mini" type="primary" :disabled="scope.row.chapterNumber.length === 0" @click="itermsConditionsOpen(scope.row.oldText)" class="common-button-primary">查看修改前内容</el-button>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="newText" prop="newText"
@@ -213,6 +226,15 @@
:is-visible.sync="drawerModal" :is-visible.sync="drawerModal"
@checkedRole="checkedRole" @checkedRole="checkedRole"
></Role-tree> ></Role-tree>
<el-dialog
title="查看修改前内容"
:visible.sync="itermsConditionsFlag"
size="800px">
<div style="height: 500px;overflow: auto;" v-html="itermsConditionsTitle"></div>
<div slot="footer">
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="itermsConditionsClose">关闭</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
@@ -227,6 +249,8 @@ export default {
name: "bzzqyjStep4", name: "bzzqyjStep4",
data() { data() {
return { return {
itermsConditionsFlag: false,
itermsConditionsTitle: '',
drawerModal: false, drawerModal: false,
histortData: [], histortData: [],
data: [], data: [],
@@ -254,6 +278,9 @@ export default {
cname: '', // 名称 cname: '', // 名称
fjList: [], fjList: [],
fjListId: '', fjListId: '',
textType: '',
modelList: [],
modelNameList: '',
}, },
formRules: { formRules: {
responUserList: [ responUserList: [
@@ -269,6 +296,13 @@ export default {
ProcessTitle ProcessTitle
}, },
methods: { methods: {
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
},
downloadFile (attId) { downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
}, },
@@ -381,7 +415,11 @@ export default {
this.form.cid = data.cid || data.form.cid this.form.cid = data.cid || data.form.cid
this.form.endTime = data.endTime || data.form.endTime this.form.endTime = data.endTime || data.form.endTime
this.form.cname = data.cname || data.form.cname this.form.cname = data.cname || data.form.cname
this.form.textType = data.textType
this.form.modelList = data.modelList
this.form.modelNameList = data.modelNameList
this.json = data this.json = data
console.log(data);
this.data = data.info || data.data this.data = data.info || data.data
}).catch(e => { }).catch(e => {
}) })
@@ -646,6 +646,7 @@
v-show="verifySarStandard" v-show="verifySarStandard"
show-save show-save
show-submit show-submit
:submitLoading="isSubmit"
:saveLoading="saveLoading" :saveLoading="saveLoading"
@save="handleSave" @save="handleSave"
@submit="handleSubmit" @submit="handleSubmit"
@@ -1003,6 +1003,7 @@
}, },
loading: false, loading: false,
drawerModal: false, drawerModal: false,
taskInfo:'标准法规部部长审核',
assigneeNewLoading: false, assigneeNewLoading: false,
disabledState: true, disabledState: true,
userId:this.$store.getters.userInfo.userId, userId:this.$store.getters.userInfo.userId,
@@ -188,11 +188,17 @@
prop="planStatus" prop="planStatus"
label="计划状态" label="计划状态"
align="center"> align="center">
<template slot-scope="scope">
<div>{{ scope.row.planStatus === '0'? '完成' : (scope.row.planStatus === '1'? '修订' : '制定') }}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="reviseStatus" prop="reviseStatus"
align="center" align="center"
label="制修订状态"> label="制修订状态">
<template slot-scope="scope">
<div>{{ scope.row.reviseStatus === '0'? '制定完成' : (scope.row.reviseStatus === '1'? '制定中' : '未制定') }}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="drafterName" prop="drafterName"
@@ -354,10 +360,10 @@ export default {
this.qbfsForm.esName = this.selectList[0].esName this.qbfsForm.esName = this.selectList[0].esName
this.qbfsForm.draftTime = this.selectList[0].draftTime this.qbfsForm.draftTime = this.selectList[0].draftTime
this.qbfsForm.drafterName = this.selectList[0].drafterName this.qbfsForm.drafterName = this.selectList[0].drafterName
this.qbfsForm.planStatus = this.selectList[0].planStatus this.qbfsForm.planStatus = this.selectList[0].planStatus === '0'? '完成' : (this.selectList[0].planStatus === '1'? '修订' : '制定')
this.qbfsForm.releaseTime = this.selectList[0].releaseTime this.qbfsForm.releaseTime = this.selectList[0].releaseTime
this.qbfsForm.resPersonName = this.selectList[0].resPersonName this.qbfsForm.resPersonName = this.selectList[0].resPersonName
this.qbfsForm.reviseStatus = this.selectList[0].reviseStatus this.qbfsForm.reviseStatus = this.selectList[0].reviseStatus === '0'? '制定完成' : (this.selectList[0].reviseStatus === '1'? '制定中' : '未制定')
this.qbfsForm.unit = this.selectList[0].unit this.qbfsForm.unit = this.selectList[0].unit
this.qbfsForm.wgLeaderName = this.selectList[0].wgLeaderName this.qbfsForm.wgLeaderName = this.selectList[0].wgLeaderName
this.ListModel = false this.ListModel = false
@@ -204,11 +204,17 @@
prop="planStatus" prop="planStatus"
label="计划状态" label="计划状态"
align="center"> align="center">
<template slot-scope="scope">
<div>{{ scope.row.planStatus === '0'? '完成' : (scope.row.planStatus === '1'? '修订' : '制定') }}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="reviseStatus" prop="reviseStatus"
align="center" align="center"
label="制修订状态"> label="制修订状态">
<template slot-scope="scope">
<div>{{ scope.row.reviseStatus === '0'? '制定完成' : (scope.row.reviseStatus === '1'? '制定中' : '未制定') }}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="drafterName" prop="drafterName"
@@ -376,10 +382,10 @@ export default {
this.qbfsForm.esName = this.selectList[0].esName this.qbfsForm.esName = this.selectList[0].esName
this.qbfsForm.draftTime = this.selectList[0].draftTime this.qbfsForm.draftTime = this.selectList[0].draftTime
this.qbfsForm.drafterName = this.selectList[0].drafterName this.qbfsForm.drafterName = this.selectList[0].drafterName
this.qbfsForm.planStatus = this.selectList[0].planStatus this.qbfsForm.planStatus = this.selectList[0].planStatus === '0'? '完成' : (this.selectList[0].planStatus === '1'? '修订' : '制定')
this.qbfsForm.releaseTime = this.selectList[0].releaseTime this.qbfsForm.releaseTime = this.selectList[0].releaseTime
this.qbfsForm.resPersonName = this.selectList[0].resPersonName this.qbfsForm.resPersonName = this.selectList[0].resPersonName
this.qbfsForm.reviseStatus = this.selectList[0].reviseStatus this.qbfsForm.reviseStatus = this.selectList[0].reviseStatus === '0'? '制定完成' : (this.selectList[0].reviseStatus === '1'? '制定中' : '未制定')
this.qbfsForm.unit = this.selectList[0].unit this.qbfsForm.unit = this.selectList[0].unit
this.qbfsForm.wgLeaderName = this.selectList[0].wgLeaderName this.qbfsForm.wgLeaderName = this.selectList[0].wgLeaderName
this.ListModel = false this.ListModel = false
@@ -23,7 +23,7 @@
<el-form-item label="计划状态" prop="planStatus1" class="add-form-item form-item-disabled"> <el-form-item label="计划状态" prop="planStatus1" class="add-form-item form-item-disabled">
<el-input readonly v-model="qbfsForm.planStatus1" placeholder="请输入计划状态" clearable></el-input> <el-input readonly v-model="qbfsForm.planStatus1" placeholder="请输入计划状态" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item v-show="standShow" label="制修订状态" prop="reviseStatus1" class="add-form-item form-item-disabled"> <el-form-item label="制修订状态" prop="reviseStatus1" class="add-form-item form-item-disabled">
<el-input readonly v-model="qbfsForm.reviseStatus1" placeholder="请输入制修订状态" clearable></el-input> <el-input readonly v-model="qbfsForm.reviseStatus1" placeholder="请输入制修订状态" clearable></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@@ -37,7 +37,7 @@
<el-form-item label="计划状态" prop="planStatus2" class="add-form-item form-item-disabled"> <el-form-item label="计划状态" prop="planStatus2" class="add-form-item form-item-disabled">
<el-input readonly v-model="qbfsForm.planStatus2" placeholder="请输入计划状态" clearable></el-input> <el-input readonly v-model="qbfsForm.planStatus2" placeholder="请输入计划状态" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item v-show="standShow2" label="制修订状态" prop="reviseStatus2" class="add-form-item form-item-disabled"> <el-form-item label="制修订状态" prop="reviseStatus2" class="add-form-item form-item-disabled">
<el-input readonly v-model="qbfsForm.reviseStatus2" placeholder="请输入制修订状态" clearable></el-input> <el-input readonly v-model="qbfsForm.reviseStatus2" placeholder="请输入制修订状态" clearable></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@@ -216,11 +216,17 @@
prop="planStatus" prop="planStatus"
label="计划状态" label="计划状态"
align="center"> align="center">
<template slot-scope="scope">
<div>{{ scope.row.planStatus === '0'? '完成' : (scope.row.planStatus === '1'? '修订' : '制定') }}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="reviseStatus" prop="reviseStatus"
align="center" align="center"
label="制修订状态"> label="制修订状态">
<template slot-scope="scope">
<div>{{ scope.row.reviseStatus === '0'? '制定完成' : (scope.row.reviseStatus === '1'? '制定中' : '未制定') }}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="drafterName" prop="drafterName"
@@ -548,8 +554,8 @@ export default {
if(this.showType === 'one'){ if(this.showType === 'one'){
this.qbfsForm.esId1 = this.selectList[0].id || '--' this.qbfsForm.esId1 = this.selectList[0].id || '--'
this.qbfsForm.esName1 = this.selectList[0].esName || '--' this.qbfsForm.esName1 = this.selectList[0].esName || '--'
this.qbfsForm.planStatus1 = this.selectList[0].planStatus || '--' this.qbfsForm.planStatus1 = this.selectList[0].planStatus === '0'? '完成' : (this.selectList[0].planStatus === '1'? '修订' : '制定')
this.qbfsForm.reviseStatus1 = this.selectList[0].reviseStatus || '--' this.qbfsForm.reviseStatus1 = this.selectList[0].reviseStatus === '0'? '制定完成' : (this.selectList[0].reviseStatus === '1'? '制定中' : '未制定')
this.standShow = true this.standShow = true
}else{ }else{
if(this.qbfsForm.esName1 === this.selectList[0].esName ){ if(this.qbfsForm.esName1 === this.selectList[0].esName ){
@@ -557,8 +563,8 @@ export default {
}else{ }else{
this.qbfsForm.esId2 = this.selectList[0].id || '--' this.qbfsForm.esId2 = this.selectList[0].id || '--'
this.qbfsForm.esName2 = this.selectList[0].esName || '--' this.qbfsForm.esName2 = this.selectList[0].esName || '--'
this.qbfsForm.planStatus2 = this.selectList[0].planStatus || '--' this.qbfsForm.planStatus2 = this.selectList[0].planStatus === '0'? '完成' : (this.selectList[0].planStatus === '1'? '修订' : '制定')
this.qbfsForm.reviseStatus2= this.selectList[0].reviseStatus || '--' this.qbfsForm.reviseStatus2 = this.selectList[0].reviseStatus === '0'? '制定完成' : (this.selectList[0].reviseStatus === '1'? '制定中' : '未制定')
this.standShow2 = true this.standShow2 = true
} }
} }
@@ -195,11 +195,17 @@
prop="planStatus" prop="planStatus"
label="计划状态" label="计划状态"
align="center"> align="center">
<template slot-scope="scope">
<div>{{ scope.row.planStatus === '0'? '完成' : (scope.row.planStatus === '1'? '修订' : '制定') }}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="reviseStatus" prop="reviseStatus"
align="center" align="center"
label="制修订状态"> label="制修订状态">
<template slot-scope="scope">
<div>{{ scope.row.reviseStatus === '0'? '制定完成' : (scope.row.reviseStatus === '1'? '制定中' : '未制定') }}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="drafterName" prop="drafterName"
@@ -364,10 +370,10 @@ export default {
this.qbfsForm.esName = this.selectList[0].esName this.qbfsForm.esName = this.selectList[0].esName
this.qbfsForm.draftTime = this.selectList[0].draftTime this.qbfsForm.draftTime = this.selectList[0].draftTime
this.qbfsForm.drafterName = this.selectList[0].drafterName this.qbfsForm.drafterName = this.selectList[0].drafterName
this.qbfsForm.planStatus = this.selectList[0].planStatus this.qbfsForm.planStatus = this.selectList[0].planStatus === '0'? '完成' : (this.selectList[0].planStatus === '1'? '修订' : '制定')
this.qbfsForm.releaseTime = this.selectList[0].releaseTime this.qbfsForm.releaseTime = this.selectList[0].releaseTime
this.qbfsForm.resPersonName = this.selectList[0].resPersonName this.qbfsForm.resPersonName = this.selectList[0].resPersonName
this.qbfsForm.reviseStatus = this.selectList[0].reviseStatus this.qbfsForm.reviseStatus = this.selectList[0].reviseStatus === '0'? '制定完成' : (this.selectList[0].reviseStatus === '1'? '制定中' : '未制定')
this.qbfsForm.unit = this.selectList[0].unit this.qbfsForm.unit = this.selectList[0].unit
this.qbfsForm.wgLeaderName = this.selectList[0].wgLeaderName this.qbfsForm.wgLeaderName = this.selectList[0].wgLeaderName
this.ListModel = false this.ListModel = false
@@ -92,6 +92,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.mergeReason" v-model="qbfsForm.mergeReason"
placeholder="请输入合并原因" placeholder="请输入合并原因"
@@ -100,6 +101,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled
v-model="qbfsForm.yqDraftTime" v-model="qbfsForm.yqDraftTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@@ -108,6 +110,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled
v-model="qbfsForm.yqReleaseTime" v-model="qbfsForm.yqReleaseTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@@ -116,6 +119,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.delayReason" v-model="qbfsForm.delayReason"
placeholder="请输入延期原因" placeholder="请输入延期原因"
@@ -124,6 +128,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.cancelReason" v-model="qbfsForm.cancelReason"
placeholder="请输入取消原因" placeholder="请输入取消原因"
@@ -132,6 +137,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.renameReason" v-model="qbfsForm.renameReason"
placeholder="请输入更名原因" placeholder="请输入更名原因"
@@ -92,6 +92,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.mergeReason" v-model="qbfsForm.mergeReason"
placeholder="请输入合并原因" placeholder="请输入合并原因"
@@ -100,6 +101,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled
v-model="qbfsForm.yqDraftTime" v-model="qbfsForm.yqDraftTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@@ -108,6 +110,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled
v-model="qbfsForm.yqReleaseTime" v-model="qbfsForm.yqReleaseTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@@ -116,6 +119,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.delayReason" v-model="qbfsForm.delayReason"
placeholder="请输入延期原因" placeholder="请输入延期原因"
@@ -124,6 +128,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.cancelReason" v-model="qbfsForm.cancelReason"
placeholder="请输入取消原因" placeholder="请输入取消原因"
@@ -132,6 +137,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.renameReason" v-model="qbfsForm.renameReason"
placeholder="请输入更名原因" placeholder="请输入更名原因"
@@ -163,7 +169,7 @@
</div> </div>
</div> </div>
<div class="content" v-show="active === '3'"> <div class="content" v-show="active === '3'">
<div class="flow-list"> <div class="flow-list" style="height: 100%">
<el-table <el-table
height="100%" height="100%"
ref="selection" ref="selection"
@@ -92,6 +92,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.mergeReason" v-model="qbfsForm.mergeReason"
placeholder="请输入合并原因" placeholder="请输入合并原因"
@@ -100,6 +101,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled
v-model="qbfsForm.yqDraftTime" v-model="qbfsForm.yqDraftTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@@ -108,6 +110,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled
v-model="qbfsForm.yqReleaseTime" v-model="qbfsForm.yqReleaseTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@@ -116,6 +119,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.delayReason" v-model="qbfsForm.delayReason"
placeholder="请输入延期原因" placeholder="请输入延期原因"
@@ -124,6 +128,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.cancelReason" v-model="qbfsForm.cancelReason"
placeholder="请输入取消原因" placeholder="请输入取消原因"
@@ -132,6 +137,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.renameReason" v-model="qbfsForm.renameReason"
placeholder="请输入更名原因" placeholder="请输入更名原因"
@@ -92,6 +92,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.mergeReason" v-model="qbfsForm.mergeReason"
placeholder="请输入合并原因" placeholder="请输入合并原因"
@@ -100,6 +101,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled
v-model="qbfsForm.yqDraftTime" v-model="qbfsForm.yqDraftTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@@ -108,6 +110,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled
v-model="qbfsForm.yqReleaseTime" v-model="qbfsForm.yqReleaseTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@@ -116,6 +119,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.delayReason" v-model="qbfsForm.delayReason"
placeholder="请输入延期原因" placeholder="请输入延期原因"
@@ -124,6 +128,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.cancelReason" v-model="qbfsForm.cancelReason"
placeholder="请输入取消原因" placeholder="请输入取消原因"
@@ -132,6 +137,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.renameReason" v-model="qbfsForm.renameReason"
placeholder="请输入更名原因" placeholder="请输入更名原因"
@@ -163,7 +169,7 @@
</div> </div>
</div> </div>
<div class="content" v-show="active === '3'"> <div class="content" v-show="active === '3'">
<div class="flow-list"> <div class="flow-list" style="height: 100%">
<el-table <el-table
height="100%" height="100%"
ref="selection" ref="selection"
@@ -92,6 +92,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '1'" label="合并原因" prop="mergeReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.mergeReason" v-model="qbfsForm.mergeReason"
placeholder="请输入合并原因" placeholder="请输入合并原因"
@@ -100,6 +101,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期后初稿完成时间" prop="yqDraftTime" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled
v-model="qbfsForm.yqDraftTime" v-model="qbfsForm.yqDraftTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@@ -108,6 +110,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期后标准发布时间" prop="yqReleaseTime" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled
v-model="qbfsForm.yqReleaseTime" v-model="qbfsForm.yqReleaseTime"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@@ -116,6 +119,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '2'" label="延期原因" prop="delayReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.delayReason" v-model="qbfsForm.delayReason"
placeholder="请输入延期原因" placeholder="请输入延期原因"
@@ -124,6 +128,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '3'" label="取消原因" prop="cancelReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.cancelReason" v-model="qbfsForm.cancelReason"
placeholder="请输入取消原因" placeholder="请输入取消原因"
@@ -132,6 +137,7 @@
</el-form-item> </el-form-item>
<el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled"> <el-form-item v-if="type === '4'" label="更名原因" prop="renameReason" class="add-form-item form-item-disabled">
<el-input <el-input
disabled
type="textarea" type="textarea"
v-model="qbfsForm.renameReason" v-model="qbfsForm.renameReason"
placeholder="请输入更名原因" placeholder="请输入更名原因"
@@ -163,7 +169,7 @@
</div> </div>
</div> </div>
<div class="content" v-show="active === '3'"> <div class="content" v-show="active === '3'">
<div class="flow-list"> <div class="flow-list" style="height: 100%">
<el-table <el-table
height="100%" height="100%"
ref="selection" ref="selection"
@@ -206,10 +206,6 @@
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
</el-table-column> </el-table-column>
<el-table-column
prop="productType"
align="center"
label="在研产品">
<el-table-column <el-table-column
prop="complianceReasons" prop="complianceReasons"
align="center" align="center"
@@ -243,43 +239,6 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
</el-table-column>
<el-table-column
align="center"
label="在产产品">
<el-table-column
prop="zcComplianceReasons"
align="center"
width="160"
label="合规(具体情况)">
</el-table-column>
<el-table-column
align="center"
width="160"
label="不合规">
<el-table-column
prop="zcNoCompliance"
align="center"
width="170"
label="不合规项目">
</el-table-column>
<el-table-column
prop="zcCountermeasures"
align="center"
width="160"
label="应对措施">
</el-table-column>
<el-table-column
prop="zcCompletionTime"
align="center"
width="120"
label="完成时间">
<template slot-scope="scope">
<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 <el-table-column
fixed="right" fixed="right"
align="center" align="center"
@@ -142,12 +142,12 @@
</div> </div>
<el-table <el-table
ref="multipleTable" ref="multipleTable"
:data="listForm.breakdownList" :data="listForm.breakdownList.slice((currentPage - 1) * pageSize, currentPage * pageSize ) "
tooltip-effect="dark" style="width: 100%; border: 1px solid #cccccc;height: 400px"
style="width: 100%" height="48%"
border border
highlight-current-row
@selection-change="selectStandChange" @selection-change="selectStandChange"
:height="sarProStateTableHeight"
: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
@@ -158,46 +158,55 @@
<el-table-column <el-table-column
prop="productLine" prop="productLine"
align="center" align="center"
width="150"
label="产品线"> label="产品线">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="projectNumber" prop="projectNumber"
align="center" align="center"
width="160px"
label="项目编号"> label="项目编号">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="projectName" prop="projectName"
align="center" align="center"
min-width="300"
label="项目名称"> label="项目名称">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="itemNum" prop="itemNum"
align="center" align="center"
width="100px"
label="条款号"> label="条款号">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="itemsName" prop="itemsName"
align="center" align="center"
width="160px"
label="条款名称"> label="条款名称">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="technicalRequir" prop="technicalRequir"
align="center" align="center"
width="160px"
label="核心技术要求/变化点"> label="核心技术要求/变化点">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="changePoint" prop="changePoint"
align="center" align="center"
width="160px"
label="基于上一版本差异"> label="基于上一版本差异">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="xcxssrq" prop="xcxssrq"
align="center" align="center"
width="120px"
label="新车型实施日期"> label="新车型实施日期">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zccssrq" prop="zccssrq"
align="center" align="center"
width="120px"
label="在产车实施日期"> label="在产车实施日期">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -211,7 +220,14 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination
layout="total,sizes, prev, pager, next"
background
:page-sizes="[20, 40, 60]"
:total="total"
@current-change="handleCurrentChange"
>
</el-pagination>
<!-- 选择责任人--> <!-- 选择责任人-->
<Role-tree <Role-tree
is-title="选择落实人" is-title="选择落实人"
@@ -330,6 +346,7 @@ export default {
return { return {
//折叠的标志,true为折叠,false为不折叠 //折叠的标志,true为折叠,false为不折叠
foldFormFlag: false, foldFormFlag: false,
currentPage: 1,
isTransfer: false, isTransfer: false,
// 调整处理人抽屉状态 // 调整处理人抽屉状态
drawerModal: false, drawerModal: false,
@@ -360,6 +377,7 @@ export default {
tabValue: "listOfCountries", tabValue: "listOfCountries",
selectedList: [], //选择清单的选择框 selectedList: [], //选择清单的选择框
selectList: [], //选择标准的选择框 selectList: [], //选择标准的选择框
selectStandList: [], //点开批量弹窗选择数据丢失
lsIndex: "", lsIndex: "",
lsType: "", lsType: "",
bringData: [], bringData: [],
@@ -498,6 +516,10 @@ export default {
}); });
window.open(routeUrl.href, "_blank"); window.open(routeUrl.href, "_blank");
}, },
// 分页
handleCurrentChange(currentPage) {
this.currentPage = currentPage;
},
getData() { getData() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
inboundLiaisonDetail({ inboundLiaisonDetail({
@@ -555,6 +577,7 @@ export default {
xcxssrq: item.pepdtos[i].XCXSSRQ, xcxssrq: item.pepdtos[i].XCXSSRQ,
zccssrq: item.pepdtos[i].ZCCSSRQ zccssrq: item.pepdtos[i].ZCCSSRQ
}); });
this.total = this.listForm.breakdownList.length
} }
} }
} else { } else {
@@ -579,7 +602,7 @@ export default {
this.listForm.breakdownList[this.lsIndex].implementer = nameList; this.listForm.breakdownList[this.lsIndex].implementer = nameList;
} else if (this.type === 2) { } else if (this.type === 2) {
this.listForm.breakdownList.forEach(item => { this.listForm.breakdownList.forEach(item => {
this.selectList.forEach(items => { this.selectStandList.forEach(items => {
if (item === items) { if (item === items) {
item.implementerId = idList; item.implementerId = idList;
item.implementer = nameList; item.implementer = nameList;
@@ -594,6 +617,7 @@ export default {
this.modalshowflag = false; this.modalshowflag = false;
}, },
choiceZRRS(row, type, index) { choiceZRRS(row, type, index) {
this.selectStandList = this.selectList
this.type = type; this.type = type;
if (type === 1) { if (type === 1) {
this.drawerTitle = "选择责任人"; this.drawerTitle = "选择责任人";
@@ -653,14 +677,13 @@ export default {
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
let standList = []
this.listForm.breakdownList.forEach(item => { this.listForm.breakdownList.forEach(item => {
if (item.implementer === null || item.implementer === "" || item.implementer === undefined) { if (item.implementer) {
this.sarFlag = false; standList.push(item)
} else {
this.sarFlag = true;
} }
}); });
if (this.sarFlag === true) { this.listForm.breakdownList = standList
this.listForm.prcCreateUser = this.$store.getters.userInfo.userId; this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId; this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId;
this.listForm.prcCreateUserName = this.$store.getters.userInfo.account; this.listForm.prcCreateUserName = this.$store.getters.userInfo.account;
@@ -684,9 +707,6 @@ export default {
this.isSubmit = false; this.isSubmit = false;
}, e => { }, e => {
}); });
} else {
this.$message.warning("请选择落实人");
}
}, },
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());
@@ -699,6 +719,7 @@ export default {
}, },
//标准表格选择框改变 //标准表格选择框改变
selectStandChange(data) { selectStandChange(data) {
console.log(data);
this.selectList = data; this.selectList = data;
}, },
selectThree() { selectThree() {
@@ -598,47 +598,48 @@ export default {
}) })
if(!fileFlag){ if(!fileFlag){
this.$message.warning('请选择分解单来源') this.$message.warning('请选择分解单来源')
}else{
if (this.listForm.dataList.length < 1) {
this.$message.warning("请选择带标准的项目");
} else {
this.listForm.commentText = this.commentText;
var json = Object.assign(this.listForm, this.roleForm);
json.prcCreateUser = this.$store.getters.userInfo.userId;
json.prcCreateUserName = this.$store.getters.userInfo.userName;
json.standId = this.listForm.standId;
this.$refs["listForm"].validate((valid) => {
if (valid) {
this.$refs["roleForm"].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.$http.get("lawss/activiti/startProcess", { type: "6" }, {
_this: this
}, res => {
if (res.ok) {
this.$http.post("lawss/activiti/completeTask", {
taskIds: res.data,
userId: this.$store.getters.userInfo.userId,
json: JSON.stringify(json)
}, {
_this: this
}, res => {
if (res.success) {
this.$message.success(res.message);
this.$router.push("/processCenter");
}
this.isSubmit = false;
});
}
});
} else {
return this.$message.warning("请完善人员信息");
}
});
} else {
return this.$message.warning("请完善基础信息");
}
});
} }
if (this.listForm.dataList.length < 1) {
this.$message.warning("请选择带标准的项目");
} else {
this.listForm.commentText = this.commentText;
var json = Object.assign(this.listForm, this.roleForm);
json.prcCreateUser = this.$store.getters.userInfo.userId;
json.prcCreateUserName = this.$store.getters.userInfo.userName;
json.standId = this.listForm.standId;
this.$refs["listForm"].validate((valid) => {
if (valid) {
this.$refs["roleForm"].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.$http.get("lawss/activiti/startProcess", { type: "6" }, {
_this: this
}, res => {
if (res.ok) {
this.$http.post("lawss/activiti/completeTask", {
taskIds: res.data,
userId: this.$store.getters.userInfo.userId,
json: JSON.stringify(json)
}, {
_this: this
}, res => {
if (res.success) {
this.$message.success(res.message);
this.$router.push("/processCenter");
}
this.isSubmit = false;
});
}
});
} else {
return this.$message.warning("请完善人员信息");
}
});
} else {
return this.$message.warning("请完善基础信息");
}
});
} }
}, },
choiceZRR(type, title, id) { choiceZRR(type, title, id) {
@@ -615,47 +615,48 @@ export default {
}) })
if(!fileFlag){ if(!fileFlag){
this.$message.warning('请选择分解单来源') this.$message.warning('请选择分解单来源')
}else{
if (this.listForm.dataList.length < 1) {
this.$message.warning("请选择带标准的项目");
} else {
this.listForm.commentText = this.commentText;
var json = Object.assign(this.listForm, this.roleForm);
json.prcCreateUser = this.$store.getters.userInfo.userId;
json.prcCreateUserName = this.$store.getters.userInfo.userName;
json.standId = this.listForm.standId;
this.$refs["listForm"].validate((valid) => {
if (valid) {
this.$refs["roleForm"].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.$http.get("lawss/activiti/startProcess", { type: "6" }, {
_this: this
}, res => {
if (res.ok) {
this.$http.post("lawss/activiti/completeTask", {
taskIds: res.data,
userId: this.$store.getters.userInfo.userId,
json: JSON.stringify(json)
}, {
_this: this
}, res => {
if (res.success) {
this.$message.success(res.message);
this.$router.push("/processCenter");
}
this.isSubmit = false;
});
}
});
} else {
return this.$message.warning("请完善人员信息");
}
});
} else {
return this.$message.warning("请完善基础信息");
}
});
} }
if (this.listForm.dataList.length < 1) {
this.$message.warning("请选择带标准的项目");
} else {
this.listForm.commentText = this.commentText;
var json = Object.assign(this.listForm, this.roleForm);
json.prcCreateUser = this.$store.getters.userInfo.userId;
json.prcCreateUserName = this.$store.getters.userInfo.userName;
json.standId = this.listForm.standId;
this.$refs["listForm"].validate((valid) => {
if (valid) {
this.$refs["roleForm"].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.$http.get("lawss/activiti/startProcess", { type: "6" }, {
_this: this
}, res => {
if (res.ok) {
this.$http.post("lawss/activiti/completeTask", {
taskIds: res.data,
userId: this.$store.getters.userInfo.userId,
json: JSON.stringify(json)
}, {
_this: this
}, res => {
if (res.success) {
this.$message.success(res.message);
this.$router.push("/processCenter");
}
this.isSubmit = false;
});
}
});
} else {
return this.$message.warning("请完善人员信息");
}
});
} else {
return this.$message.warning("请完善基础信息");
}
});
} }
}, },
// 点击查看 // 点击查看
@@ -121,10 +121,6 @@
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
</el-table-column> </el-table-column>
<!-- <el-table-column-->
<!-- prop="productType"-->
<!-- align="center"-->
<!-- label="在研产品">-->
<el-table-column <el-table-column
prop="researchCompliance" prop="researchCompliance"
align="center" align="center"
@@ -224,115 +220,6 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- align="center"-->
<!-- label="在产产品">-->
<!-- <el-table-column-->
<!-- prop="productionCompliance"-->
<!-- align="center"-->
<!-- width="160"-->
<!-- label="合规(具体情况)">-->
<!-- <template slot-scope="scope">-->
<!-- <el-input-->
<!-- v-if="scope.row.zcNoCompliance && scope.row.zcNoCompliance.length>0-->
<!-- || scope.row.zcCountermeasures && scope.row.zcCountermeasures>0-->
<!-- || scope.row.zcCompletionTime && scope.row.zcCompletionTime !== null"-->
<!-- disabled-->
<!-- v-model="scope.row.zcComplianceReasons"-->
<!-- placeholder="请输入合规原因"-->
<!-- >-->
<!-- </el-input>-->
<!-- <el-input-->
<!-- v-else-->
<!-- v-model="scope.row.zcComplianceReasons"-->
<!-- placeholder="请输入合规原因"-->
<!-- >-->
<!-- </el-input>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- align="center"-->
<!-- width="160"-->
<!-- label="不合规">-->
<!-- <el-table-column-->
<!-- prop="productionNonCompliance"-->
<!-- align="center"-->
<!-- width="170"-->
<!-- label="不合规项目">-->
<!-- <template slot-scope="scope">-->
<!-- <el-input-->
<!-- v-if="scope.row.zcComplianceReasons && scope.row.zcComplianceReasons.length>0"-->
<!-- disabled-->
<!-- v-model="scope.row.zcNoCompliance"-->
<!-- placeholder="请输入不合规项目"-->
<!-- >-->
<!-- </el-input>-->
<!-- <el-input-->
<!-- v-else-->
<!-- v-model="scope.row.zcNoCompliance"-->
<!-- placeholder="请输入不合规项目"-->
<!-- >-->
<!-- </el-input>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="productionCountermeasures"-->
<!-- align="center"-->
<!-- width="160"-->
<!-- label="应对措施">-->
<!-- <template slot-scope="scope">-->
<!-- <el-input-->
<!-- v-if="scope.row.zcComplianceReasons && scope.row.zcComplianceReasons.length>0"-->
<!-- disabled-->
<!-- v-model="scope.row.zcCountermeasures"-->
<!-- placeholder="请输入应对措施"-->
<!-- >-->
<!-- </el-input>-->
<!-- <el-input-->
<!-- v-else-->
<!-- v-model="scope.row.zcCountermeasures"-->
<!-- placeholder="请输入应对措施"-->
<!-- >-->
<!-- </el-input>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="productionCompletionTime"-->
<!-- align="center"-->
<!-- width="140"-->
<!-- label="完成时间">-->
<!-- <template slot-scope="scope">-->
<!-- <el-date-picker-->
<!-- v-if="scope.row.zcComplianceReasons && scope.row.zcComplianceReasons.length>0"-->
<!-- disabled-->
<!-- v-model="scope.row.zcCompletionTime"-->
<!-- type="date"-->
<!-- placeholder="请选择日期">-->
<!-- </el-date-picker>-->
<!-- <el-date-picker-->
<!-- v-else-->
<!-- class="datePickLen"-->
<!-- clearable-->
<!-- v-model="scope.row.zcCompletionTime"-->
<!-- type="date"-->
<!-- placeholder="请选择日期">-->
<!-- </el-date-picker>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table-column>-->
<!-- </el-table-column>-->
<!-- 以后全选可能用-->
<!-- <el-table-column-->
<!-- prop="productionCompletionTime"-->
<!-- align="center"-->
<!-- fixed="right"-->
<!-- width="160"-->
<!-- label="操作">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button style="width: 98%" size="small" type="primary" @click="">{{ "批量编辑" }}</el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table> </el-table>
<el-pagination <el-pagination
layout="total,sizes, prev, pager, next" layout="total,sizes, prev, pager, next"
@@ -581,7 +581,7 @@ export default {
} }
break; break;
case '3': case '3':
if (row.taskInfo === '责任对接人选择责任人') { if (row.taskInfo === '责任部门对接人选择责任人') {
this.$router.push({ this.$router.push({
name: 'bzzqyjStep2', name: 'bzzqyjStep2',
query: { query: {
@@ -592,7 +592,7 @@ export default {
prcType: row.prcType prcType: row.prcType
} }
}) })
} else if (row.taskInfo === '责任人填写征求意见'){ } else if (row.taskInfo === '责任人反馈'){
this.$router.push({ this.$router.push({
name: 'bzzqyjStep3', name: 'bzzqyjStep3',
query: { query: {
@@ -603,7 +603,7 @@ export default {
prcType: row.prcType prcType: row.prcType
} }
}) })
} else if (row.taskInfo === '责任对接人审批') { } else if (row.taskInfo === '责任部门对接人汇总并选择审批人') {
this.$router.push({ this.$router.push({
name: 'bzzqyjStep4', name: 'bzzqyjStep4',
query: { query: {
@@ -357,50 +357,45 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
sortable="custom"
width="120" width="120"
label="发布日期"> label="发布日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ formatIssueDate(scope.row.issueTime) }}</span> <span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.issueTime }}</span>
<span v-else>{{ formatIssueDate(scope.row.issueTime) }}</span> <span v-else>{{ scope.row.issueTime }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="ssrq" prop="ssrq"
sortable="custom"
width="120" width="120"
label="实施日期"> label="实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- {{ formatIssueDate(scope.row.putTime) }}--> <!-- {{ formatIssueDate(scope.row.putTime) }}-->
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }}</span> <span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.ssrq }}</span>
<span v-else>{{ scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' }}</span> <span v-else>{{ scope.row.ssrq }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="xcxssrq" prop="xcxssrq"
sortable="custom"
width="150" width="150"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-' }}</span> <span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.xcxssrq }}</span>
<span v-else>{{ scope.row.xcxssrq ? scope.row.xcxssrq.substring(0, 10) : '-' }}</span> <span v-else>{{ scope.row.xcxssrq }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zccssrq" prop="zccssrq"
sortable="custom"
width="150" width="150"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-' }}</span> <span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.zccssrq }}</span>
<span v-else>{{ scope.row.zccssrq ? scope.row.zccssrq.substring(0, 10) : '-' }}</span> <span v-else>{{ scope.row.zccssrq }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="textStatus" prop="textStatus"
sortable="custom"
width="110" width="110"
label="文本状态"> label="文本状态">
<!-- <template slot="header" slot-scope="scope">--> <!-- <template slot="header" slot-scope="scope">-->
@@ -455,77 +450,90 @@
}}</a> }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
show-overflow-tooltip
prop="standEnName"
label="英文名称"
min-width="300"
>
<template slot-scope="scope">
<a v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{
scope.row.standEnName
}}</a>
<a v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF" @click="handlePreview(scope.row)" class="table-jump">{{
scope.row.standEnName
}}</a>
<a v-else style="color: #333333" @click="handlePreview(scope.row)" class="table-jump">{{
scope.row.standEnName
}}</a>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
sortable="custom"
width="120" width="120"
label="发布日期"> label="发布日期">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C"> <div v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">
{{ formatIssueDate(scope.row.issueTime) }} {{ scope.row.issueTime }}
</div> </div>
<div v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF"> <div v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">
{{ formatIssueDate(scope.row.issueTime) }} {{ scope.row.issueTime }}
</div> </div>
<div v-else style="color: #333333"> <div v-else style="color: #333333">
{{ formatIssueDate(scope.row.issueTime) }} {{ scope.row.issueTime }}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="ssrq" prop="ssrq"
sortable="custom"
width="120" width="120"
label="实施日期"> label="实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- {{ formatIssueDate(scope.row.putTime) }}--> <!-- {{ formatIssueDate(scope.row.putTime) }}-->
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ <span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' scope.row.ssrq
}}</span> }}</span>
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{ <span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' scope.row.ssrq
}}</span> }}</span>
<span v-else style="color: #333333">{{ scope.row.ssrq ? scope.row.ssrq.substring(0, 10) : '-' }}</span> <span v-else style="color: #333333">{{ scope.row.ssrq}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="xcxssrq" prop="xcxssrq"
sortable="custom"
width="150" width="150"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ <span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
scope.row.xcxssrq ? scope.row.xcxssrq.substring(0, 10) : '-' scope.row.xcxssrq
}}</span> }}</span>
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{ <span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
scope.row.xcxssrq ? scope.row.xcxssrq.substring(0, 10) : '-' scope.row.xcxssrq
}}</span> }}</span>
<span v-else style="color: #333333">{{ <span v-else style="color: #333333">{{
scope.row.xcxssrq ? scope.row.xcxssrq.substring(0, 10) : '-' scope.row.xcxssrq
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zccssrq" prop="zccssrq"
sortable="custom"
width="150" width="150"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ <span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
scope.row.zccssrq ? scope.row.zccssrq.substring(0, 10) : '-' scope.row.zccssrq
}}</span> }}</span>
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{ <span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
scope.row.zccssrq ? scope.row.zccssrq.substring(0, 10) : '-' scope.row.zccssrq
}}</span> }}</span>
<span v-else style="color: #333333">{{ <span v-else style="color: #333333">{{
scope.row.zccssrq ? scope.row.zccssrq.substring(0, 10) : '-' scope.row.zccssrq
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="textStatus" prop="textStatus"
sortable="custom"
width="110" width="110"
label="文本状态"> label="文本状态">
<!-- <template slot="header" slot-scope="scope">--> <!-- <template slot="header" slot-scope="scope">-->
@@ -584,30 +592,27 @@
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
label="发文日期" label="发文日期"
sortable
width="120" width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.issueTime }}</span>
<span v-if="scope.row.standStatusShow === '参考' " style="color: #E6A23C">{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow === '参考' " style="color: #E6A23C">{{scope.row.issueTime }}</span>
<span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">{{scope.row.issueTime }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="XCXSSRQLAWS" prop="XCXSSRQLAWS"
label="新车实施日期" label="新车实施日期"
sortable
width="150" width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.putTime }}</span>
<span v-if="scope.row.standStatusShow === '参考'" style="color: #E6A23C">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow === '参考'" style="color: #E6A23C">{{scope.row.putTime }}</span>
<span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">{{scope.row.XCXSSRQLAWS ? scope.row.XCXSSRQLAWS.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">{{scope.row.XCXSSRQLAWS }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
sortable
prop="standStatusShow" prop="standStatusShow"
label="文本状态" label="文本状态"
width="110" width="110"
@@ -666,30 +671,27 @@
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
label="发布日期" label="发布日期"
sortable
width="120" width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.issueTime }}</span>
<span v-if="scope.row.standStatusShow === '参考' " style="color: #E6A23C">{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow === '参考' " style="color: #E6A23C">{{scope.row.issueTime }}</span>
<span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">{{scope.row.issueTime }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="putTime" prop="putTime"
label="实施日期" label="实施日期"
sortable
width="120" width="120"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow === '作废'" style="color: #F56C6C">{{scope.row.putTime }}</span>
<span v-if="scope.row.standStatusShow === '参考'" style="color: #E6A23C">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow === '参考'" style="color: #E6A23C">{{scope.row.putTime }}</span>
<span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span> <span v-if="scope.row.standStatusShow !== '作废' && scope.row.standStatusShow !== '参考'">{{scope.row.putTime }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
sortable
prop="standStatusShow" prop="standStatusShow"
label="文本状态" label="文本状态"
width="110" width="110"
@@ -712,7 +714,6 @@
</el-table> </el-table>
<!--分页--> <!--分页-->
<pagination <pagination
v-show="this.lawInfoTableLoading === false"
style="position: relative;" style="position: relative;"
:page="handleSelectForm.page" :page="handleSelectForm.page"
:total="handleSelectForm.total" :total="handleSelectForm.total"
@@ -2809,7 +2809,7 @@ export default {
this.OCRData = res.data this.OCRData = res.data
} else { } else {
this.$message.warning('当前标准没有' + text + '文件') this.$message.warning('当前标准没有' + text + '文件')
this.this.OCRData = [] this.OCRData = []
} }
} }
}) })
@@ -226,6 +226,24 @@
}}</a> }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
show-overflow-tooltip
prop="standEnName"
label="英文名称"
min-width="300"
>
<template slot-scope="scope">
<a v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{
scope.row.standEnName
}}</a>
<a v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF" @click="handlePreview(scope.row)" class="table-jump">{{
scope.row.standEnName
}}</a>
<a v-else style="color: #333333" @click="handlePreview(scope.row)" class="table-jump">{{
scope.row.standEnName
}}</a>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
sortable="custom" sortable="custom"
@@ -250,7 +250,7 @@
<div class="seeItem">{{ historySeeForm.responsibleUnit }}</div> <div class="seeItem">{{ historySeeForm.responsibleUnit }}</div>
</el-form-item> </el-form-item>
<el-form-item class="add-form-item" label="责任工程师:"> <el-form-item class="add-form-item" label="责任工程师:">
<div class="seeItem">{{ historySeeForm.dutyEngineer }}</div> <div class="seeItem">{{ historySeeForm.dutyEngineerName }}</div>
</el-form-item> </el-form-item>
<el-form-item class="add-form-item" label="认证工程师:"> <el-form-item class="add-form-item" label="认证工程师:">
<div class="seeItem">{{ historySeeForm.authEngineer }}</div> <div class="seeItem">{{ historySeeForm.authEngineer }}</div>
@@ -418,8 +418,9 @@
<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-input <el-input
readonly
v-model="addForm.standSerialNumber" v-model="addForm.standSerialNumber"
placeholder="请输入标准名称" placeholder="请输入标准号"
/> />
<el-button <el-button
type="primary" type="primary"
@@ -432,7 +433,7 @@
<el-form-item prop="standName" label="标准名称" style="width: 100%; margin-right:10px" <el-form-item prop="standName" label="标准名称" style="width: 100%; margin-right:10px"
class="add-form-item"> class="add-form-item">
<el-input <el-input
:disabled="true" readonly
v-model="addForm.standName" v-model="addForm.standName"
placeholder="请输入标准名称" placeholder="请输入标准名称"
/> />
@@ -487,14 +488,14 @@
placeholder="请输入项目编号" placeholder="请输入项目编号"
/> />
</el-form-item> </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-->
v-model="addForm.responsibleUnit" <!-- v-model="addForm.responsibleUnit"-->
placeholder="请输入责任部门" <!-- placeholder="请输入责任部门"-->
@click.native="choiceZRBM" <!-- @click.native="choiceZRBM"-->
/> <!-- />-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item prop="reason" label="不合规项目" style="width: 100%; margin-right:10px" <el-form-item prop="reason" label="不合规项目" style="width: 100%; margin-right:10px"
class="add-form-item"> class="add-form-item">
<el-input <el-input
@@ -502,10 +503,10 @@
placeholder="请输入不合规项目" placeholder="请输入不合规项目"
:maxlength="500" /> :maxlength="500" />
</el-form-item> </el-form-item>
<el-form-item prop="dutyEngineer" label="责任工程师" style="width: 100%; margin-right:10px" <el-form-item prop="dutyEngineerName" label="责任工程师" style="width: 100%; margin-right:10px"
class="add-form-item"> class="add-form-item">
<el-input <el-input
v-model="addForm.dutyEngineer" v-model="addForm.dutyEngineerName"
placeholder="请输入责任工程师" placeholder="请输入责任工程师"
@click.native="choiceZRR" @click.native="choiceZRR"
/> />
@@ -775,22 +776,22 @@ export default {
}, //表单数据 }, //表单数据
formRules: { formRules: {
standSerialNumber: [ standSerialNumber: [
{ required: true, message: "请输入标准号", trigger: "blur" } { required: true, message: "请输入标准号", trigger: "change" }
], ],
standName: [ standName: [
{ required: true, message: "请输入标准名称", trigger: "blur" } { required: true, message: "请输入标准名称", trigger: "change" }
],
itemsNum: [
{ required: true, message: "请输入条款号", trigger: "change" }
],
itemsName: [
{ required: true, message: "请输入条款名称", trigger: "change" }
], ],
// itemsNum: [
// { required: true, message: "请输入条款号", trigger: "blur" }
// ],
// itemsName: [
// { required: true, message: "请输入条款名称", trigger: "blur" }
// ],
productType: [ productType: [
{ required: true, message: "请输入产品类型", trigger: "blur" } { required: true, message: "请输入产品类型", trigger: "change" }
], ],
productLine: [ productLine: [
{ required: true, message: "请输入产品线", trigger: "blur" } { required: true, message: "请输入产品线", trigger: "change" }
], ],
productName: [ productName: [
{ required: true, message: "请输入项目名称", trigger: "change" } { required: true, message: "请输入项目名称", trigger: "change" }
@@ -799,16 +800,16 @@ export default {
{ required: true, message: "请输入项目编号", trigger: "change" } { required: true, message: "请输入项目编号", trigger: "change" }
], ],
reason: [ reason: [
{ required: true, message: "请输入不合规项目", trigger: "blur" } { required: true, message: "请输入不合规项目", trigger: "change" }
],
responsibleUnit: [
{ required: true, message: "请输入责任部门", trigger: "blur" }
], ],
// responsibleUnit: [
// { required: true, message: "请输入责任部门", trigger: "change" }
// ],
dutyEngineerName: [ dutyEngineerName: [
{ required: true, message: "请输入责任工程师", trigger: "blur" } { required: true, message: "请输入责任工程师", trigger: "change" }
], ],
planCloseTime: [ planCloseTime: [
{ required: true, message: "请选择计划关闭时间", trigger: "blur" } { required: true, message: "请选择计划关闭时间", trigger: "change" }
] ]
}, },
drawerTable: false, //表单模态窗 drawerTable: false, //表单模态窗
@@ -907,15 +908,18 @@ export default {
}, },
//确认添加标准 //确认添加标准
okStand(){ okStand(){
if(this.standList > 1){ if(this.standList.length > 1){
this.$message.warning('您只能选择一条标准进行添加') this.$message.warning('您只能选择一条标准进行添加')
}else if(this.standList < 1){ }else if(this.standList.length < 1){
this.$message.warning('请至少选择一条数据进行添加') this.$message.warning('请至少选择一条数据进行添加')
}else{ }else{
this.addForm.standId = this.standList[0].id this.addForm.standId = this.standList[0].id
this.addForm.standName = this.standList[0].standName this.addForm.standName = this.standList[0].standName
this.addForm.standSerialNumber = this.standList[0].standSort + '-' + this.standList[0].standNumber + '-' + this.standList[0].standYear this.addForm.standSerialNumber = this.standList[0].standSort + '-' + this.standList[0].standNumber + '-' + this.standList[0].standYear
this.dialogTableVisible = false this.dialogTableVisible = false
if(this.addForm.standName){
this.$refs.addForm.validateField('standName');
}
} }
}, },
//添加标准select的改变 //添加标准select的改变
@@ -1094,7 +1098,7 @@ export default {
const productName = this.addForm.productName; const productName = this.addForm.productName;
const productId = this.addForm.productId; const productId = this.addForm.productId;
const reason = this.addForm.reason; const reason = this.addForm.reason;
const responsibleUnit = this.addForm.responsibleUnit; // const responsibleUnit = this.addForm.responsibleUnit;
const dutyEngineer = this.addForm.dutyEngineer; const dutyEngineer = this.addForm.dutyEngineer;
const authEngineer = this.addForm.authEngineer; const authEngineer = this.addForm.authEngineer;
const qaEngineer = this.addForm.qaEngineer; const qaEngineer = this.addForm.qaEngineer;
@@ -1107,7 +1111,7 @@ export default {
closeState, standId, standSerialNumber, closeState, standId, standSerialNumber,
standName, itemsNum, itemsName, productType, standName, itemsNum, itemsName, productType,
productLine, productName, productId,reason, productLine, productName, productId,reason,
responsibleUnit, dutyEngineer, dutyEngineer,
authEngineer, qaEngineer, planCloseTime).then(res => { authEngineer, qaEngineer, planCloseTime).then(res => {
if (res.ok) { if (res.ok) {
this.submiting = false this.submiting = false
@@ -1128,7 +1132,7 @@ export default {
editUn( editUn(
closeState, standId, standSerialNumber, closeState, standId, standSerialNumber,
standName, itemsNum, itemsName, productType, standName, itemsNum, itemsName, productType,
productLine, productName, reason, responsibleUnit, productLine, productName, reason,
dutyEngineer, authEngineer, qaEngineer, dutyEngineer, authEngineer, qaEngineer,
planCloseTime, id).then(res => { planCloseTime, id).then(res => {
if (res.ok) { if (res.ok) {
@@ -1197,8 +1201,8 @@ export default {
this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPageByWk1", { this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPageByWk1", {
standType: this.standardSearch.standType, standType: this.standardSearch.standType,
standNumber: this.standardSearch.standNumber, standNumber: this.standardSearch.standNumber,
page: this.pageNo, page: this.page,
pageSize: this.pageSizeNo pageSize: this.pageSize
}, { }, {
_this: this _this: this
}, res => { }, res => {
@@ -1258,13 +1262,24 @@ export default {
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
name: "OtherStandardDetails", name: "OtherStandardDetails",
params: { params: {
id: item.standId, id: item.id,
pageType: "FOREIGN_STAND" pageType: "INLAND_STAND"
// pageType: item.standType + '_STAND'
} }
}); });
window.open(routeUrl.href, "_blank"); window.open(routeUrl.href, "_blank");
}, },
// 点击查看
// handlePreview(item) {
// let routeUrl = this.$router.resolve({
// name: "OtherStandardDetails",
// params: {
// id: item.standId,
// pageType: "FOREIGN_STAND"
// // pageType: item.standType + '_STAND'
// }
// });
// window.open(routeUrl.href, "_blank");
// },
detailsStandard(item) { detailsStandard(item) {
this.$http.post("lawss/sarTestItem/validateStandNumber", { this.$http.post("lawss/sarTestItem/validateStandNumber", {
standNumber: item.standNum standNumber: item.standNum
@@ -1341,13 +1356,21 @@ export default {
this.roleShowflag = true this.roleShowflag = true
}, },
drawerCheck(data) { drawerCheck(data) {
this.addForm.dutyEngineer = data[0].name // this.addForm.dutyEngineer = data[0].id
// this.addForm.dutyEngineerName = data[0].name
this.$set(this.addForm, 'dutyEngineer', data[0].id)
this.$set(this.addForm, 'dutyEngineerName', data[0].name)
if(this.addForm.dutyEngineerName){
this.$refs.addForm.validateField('dutyEngineerName');
}
this.roleShowflag = false this.roleShowflag = false
}, },
/** 选择认证工程师和质量工程师 */ /** 选择认证工程师和质量工程师 */
choiceMore(type, title, id) { choiceMore(type, title, id) {
this.nodeListMore = [] this.nodeListMore = []
this.nodeListMore.push(id) if(id){
this.nodeListMore.push(id)
}
this.type = type this.type = type
this.titleMore = title this.titleMore = title
this.roleShowMore = true this.roleShowMore = true
@@ -1365,6 +1388,7 @@ export default {
}) })
if (this.type === 'authEngineer') { if (this.type === 'authEngineer') {
this.addForm.authEngineer = nameList this.addForm.authEngineer = nameList
console.log(this.addForm.authEngineer);
} else { } else {
this.addForm.qaEngineer = nameList this.addForm.qaEngineer = nameList
} }