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

This commit is contained in:
zhutianqi
2021-07-26 17:13:06 +08:00
23 changed files with 763 additions and 316 deletions
+5 -4
View File
@@ -24,8 +24,9 @@ export default {
* */ * */
validateStandardItem (rule, value, callback) { validateStandardItem (rule, value, callback) {
// return callback() // return callback()
let testval = /^[A-Za-z0-9/ ,.-\\-()()]+$/ let testval = /^[A-Za-z0-9/]+$/
if (value && !value.match(testval)) { let testval1 = /[.-]+/
if (value && !value.match(testval) && !value.match(testval1)) {
return callback(new Error('只能为(字母、数字、.、-)')) return callback(new Error('只能为(字母、数字、.、-)'))
} else { } else {
callback() callback()
@@ -457,9 +458,9 @@ export default {
callback() callback()
} }
}, },
// 验证输入数字和英文 // 验证输入数字
testNumberCode (rule, value, callback) { testNumberCode (rule, value, callback) {
let reg = /[0-9\-]/ let reg = /^[0-9]*$/
if (value !== '' && !value.match(reg)) { if (value !== '' && !value.match(reg)) {
return callback(new Error('只能输入数字')) return callback(new Error('只能输入数字'))
} else { } else {
@@ -59,7 +59,7 @@
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
round round
@click="getReplaceLawsNumRowFirst"> @click="getReplaceLawsNumRowFirst(true)">
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item class="search-item btn-box"> <el-form-item class="search-item btn-box">
@@ -217,7 +217,10 @@ export default {
this.getReplaceLawsNumRow() this.getReplaceLawsNumRow()
}, },
// 代替政策号 请求数据 // 代替政策号 请求数据
getReplaceLawsNumRowFirst () { getReplaceLawsNumRowFirst (val) {
if (val) {
this.replaceLawsNumForm.page = '1'
}
if (this.sarBussionessLawsEO.replaceLawsNum !== null && this.sarBussionessLawsEO.replaceLawsNum !== '') { if (this.sarBussionessLawsEO.replaceLawsNum !== null && this.sarBussionessLawsEO.replaceLawsNum !== '') {
this.replaceLawsNumForm.quoteIdList = this.quoteIdList1.toString() === '' ? '' : this.quoteIdList1 this.replaceLawsNumForm.quoteIdList = this.quoteIdList1.toString() === '' ? '' : this.quoteIdList1
} else { } else {
@@ -53,7 +53,7 @@
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
round round
@click="getReplaceLawsNumRow"> @click="getReplaceLawsNumRow(true)">
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item class="search-item btn-box"> <el-form-item class="search-item btn-box">
@@ -126,7 +126,7 @@
@pageChange="pageChangeReplace" @pageChange="pageChangeReplace"
@pageSizeChange="pageSizeChangeReplace"></pagination> @pageSizeChange="pageSizeChangeReplace"></pagination>
<div slot="footer" class="demo-drawer-footer"> <div slot="footer" class="demo-drawer-footer">
<el-button class="common-button-default" icon="el-icon-close" @click="replaceLawsNumModel = false">取消</el-button> <el-button class="common-button-default" round icon="el-icon-close" @click="replaceLawsNumModel = false">取消</el-button>
<el-button type="primary" round class="common-button-primary" icon="el-icon-check" @click="replaceLawsNumModelBt">提交</el-button> <el-button type="primary" round class="common-button-primary" icon="el-icon-check" @click="replaceLawsNumModelBt">提交</el-button>
</div> </div>
</el-dialog> </el-dialog>
@@ -227,7 +227,10 @@ export default {
this.getReplaceLawsNumRow() this.getReplaceLawsNumRow()
}, },
// 代替政策号 请求数据 // 代替政策号 请求数据
getReplaceLawsNumRow () { getReplaceLawsNumRow (val) {
if (val) {
this.replaceLawsNumForm.page = '1'
}
if (this.sarBussionessLawsEO.replaceLawsNum !== null && this.sarBussionessLawsEO.replaceLawsNum !== '') { if (this.sarBussionessLawsEO.replaceLawsNum !== null && this.sarBussionessLawsEO.replaceLawsNum !== '') {
this.replaceLawsNumForm.quoteIdList = this.quoteIdList1.toString() === '' ? '' : this.quoteIdList1 this.replaceLawsNumForm.quoteIdList = this.quoteIdList1.toString() === '' ? '' : this.quoteIdList1
} else { } else {
@@ -38,13 +38,13 @@
<template v-if="item.label === '基础信息'" > <template v-if="item.label === '基础信息'" >
<div class="details-content-modular basic-information" style="border-top:none"> <div class="details-content-modular basic-information" style="border-top:none">
<div class="basic-information-content"> <div class="basic-information-content">
<p><label style=" margin-right: 150px;">标准类别</label><span>{{ sarStandardsInfoEO.standSort || '-' }}</span></p> <!-- <p><label style=" margin-right: 150px;">标准类别</label><span>{{ sarStandardsInfoEO.standSort || '-' }}</span></p>-->
<p style="color: #C42626;"> <p style="color: #C42626;">
<label style=" margin-right: 150px;">标准</label> <label style=" margin-right: 150px;">标准号</label>
<span v-if="sarStandardsInfoEO.standYear">{{ sarStandardsInfoEO.standSortShow + ' ' + sarStandardsInfoEO.standNumber + '-' + sarStandardsInfoEO.standYear }}</span> <span v-if="sarStandardsInfoEO.standYear">{{ sarStandardsInfoEO.standSortShow + ' ' + sarStandardsInfoEO.standNumber + '-' + sarStandardsInfoEO.standYear }}</span>
<span v-else>{{ sarStandardsInfoEO.standSort + ' ' + sarStandardsInfoEO.standNumber }}</span> <span v-else>{{ sarStandardsInfoEO.standSort + ' ' + sarStandardsInfoEO.standNumber }}</span>
</p> </p>
<p><label style=" margin-right: 150px;">标准年份</label><span>{{ sarStandardsInfoEO.standYear || '-' }}</span></p> <!-- <p><label style=" margin-right: 150px;">标准年份</label><span>{{ sarStandardsInfoEO.standYear || '-' }}</span></p>-->
<p><label style=" margin-right: 150px;">中文名称</label><span>{{ sarStandardsInfoEO.standName || '-' }}</span></p> <p><label style=" margin-right: 150px;">中文名称</label><span>{{ sarStandardsInfoEO.standName || '-' }}</span></p>
<p><label style=" margin-right: 150px;">英文名称</label><span>{{ sarStandardsInfoEO.standEnName || '-' }}</span></p> <p><label style=" margin-right: 150px;">英文名称</label><span>{{ sarStandardsInfoEO.standEnName || '-' }}</span></p>
<p><label style=" margin-right: 150px;">标准性质</label><span>{{ standMap[sarStandardsInfoEO.standNature] || '-' }}</span></p> <p><label style=" margin-right: 150px;">标准性质</label><span>{{ standMap[sarStandardsInfoEO.standNature] || '-' }}</span></p>
@@ -1256,7 +1256,7 @@ export default {
this.listForm.standId = bringData[0].id; this.listForm.standId = bringData[0].id;
this.listForm.listName = bringData[0].detailedListName; this.listForm.listName = bringData[0].detailedListName;
this.listForm.descriptionList = bringData[0].remark; this.listForm.descriptionList = bringData[0].remark;
this.listForm.fileId = bringData[0].fileId; this.listForm.fileId = bringData[0].fileIds;
this.ListModel = false; this.ListModel = false;
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById",
{ id: bringData[0].id, page: this.page, Size:this.pageSize}, { { id: bringData[0].id, page: this.page, Size:this.pageSize}, {
@@ -158,14 +158,6 @@
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="新车型实施日期(标准文本)" prop="xcxssrq" class="add-form-item form-item-disabled">
<el-date-picker
v-model="form.xcxssrq"
type="date"
placeholder="请选择新车型实施日期(标准文本"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item label="在产车实施日期(标准文本)" prop="zccssrq" class="add-form-item form-item-disabled"> <el-form-item label="在产车实施日期(标准文本)" prop="zccssrq" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
v-model="form.zccssrq" v-model="form.zccssrq"
@@ -176,30 +168,38 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="实施日期(国际)" prop="ssrqgj" class="add-form-item form-item-disabled"> <el-form-item label="新车型实施日期(标准文本)" prop="xcxssrq" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
v-model="form.ssrqgj" v-model="form.xcxssrq"
type="date" type="date"
placeholder="请选择实施日期(国际)" placeholder="请选择新车型实施日期(标准文本"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item label="新车型实施日期(国际)" prop="xcxssrqgj" class="add-form-item form-item-disabled">
<el-date-picker
v-model="form.xcxssrqgj"
type="date"
placeholder="请选择新车型实施日期(国家)"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item label="在产车实施日期(国际)" prop="zccssrqgj" class="add-form-item form-item-disabled">
<el-date-picker
v-model="form.zccssrqgj"
type="date"
placeholder="请选择在产车实施日期(国家)"
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- <el-form-item label="实施日期(国际)" prop="ssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- v-model="form.ssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择实施日期(国际)"-->
<!-- value-format="yyyy-MM-dd">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="新车型实施日期(国际)" prop="xcxssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- v-model="form.xcxssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择新车型实施日期(国家)"-->
<!-- value-format="yyyy-MM-dd">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="在产车实施日期(国际)" prop="zccssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- v-model="form.zccssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择在产车实施日期(国家)"-->
<!-- value-format="yyyy-MM-dd">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -835,7 +835,7 @@
:action="fileUrl" :action="fileUrl"
ref="importfile" ref="importfile"
name="file" name="file"
accept=".ZIP, .zip, .doc, .DOC, .docx, .DOCX, .xls, .xlsx" accept=".pdf, .PDF, .ppt, .PPT, .pptx,.PPTX, .doc, .DOC, .docx, .DOCX, .xls, .xlsx"
:before-upload="beginImportFile" :before-upload="beginImportFile"
:on-success="importFileSuccess" :on-success="importFileSuccess"
:show-file-list="false" :show-file-list="false"
@@ -1076,9 +1076,12 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standStateShow" prop="textStatus"
label="标准状态" label="文本状态"
align="center"> align="center">
<template slot-scope="scope">
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="80"> <el-table-column label="操作" align="center" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -1142,6 +1145,7 @@
}, },
data () { data () {
return { return {
textStatusMap: {}, // 文本状态id与name对应
standardDrawer: false, standardDrawer: false,
loadSarStandard: false, loadSarStandard: false,
verifySarStandard: false, verifySarStandard: false,
@@ -1440,6 +1444,13 @@
}, },
}, },
methods: { methods: {
// 将文本状态的id与name对应
setMap(data){
data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label)
})
console.log(this.textStatusMap, '文本状态的值')
},
clearFormData(data){ clearFormData(data){
this.form = { this.form = {
// 基础信息 // 基础信息
@@ -1888,11 +1899,11 @@
var fileSuffix = filename.substring(index1, index2) var fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名 // const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式 // 判断上传文件格式
if (fileSuffix === '.ZIP' || fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') { if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
return true return true
} else { } else {
this.spinShow = false this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传ZIP/DOC/DOCX或XLS文件') this.$message.error('文件' + file.name + '格式不正确,请上传PDF/PPT/PPTX/DOC/DOCX或XLS文件')
return false return false
} }
// 判断文件上传大小 // 判断文件上传大小
@@ -2129,6 +2140,7 @@
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师 this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
this.qcdwOption = res.data.QCDW // 体系类别 this.qcdwOption = res.data.QCDW // 体系类别
this.setMap(this.standStateOptions)
}) })
this.busVsFunc() this.busVsFunc()
this.modelFunc() this.modelFunc()
@@ -147,15 +147,6 @@
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="新车型实施日期(标准文本)" prop="xcxssrq" class="add-form-item form-item-disabled">
<el-date-picker
disabled
v-model="form.xcxssrq"
type="date"
placeholder="请选择新车型实施日期(标准文本"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item label="在产车实施日期(标准文本)" prop="zccssrq" class="add-form-item form-item-disabled"> <el-form-item label="在产车实施日期(标准文本)" prop="zccssrq" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled disabled
@@ -167,33 +158,42 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="实施日期(国际)" prop="ssrqgj" class="add-form-item form-item-disabled"> <el-form-item label="新车型实施日期(标准文本)" prop="xcxssrq" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled disabled
v-model="form.ssrqgj" v-model="form.xcxssrq"
type="date" type="date"
placeholder="请选择实施日期(国际)" placeholder="请选择新车型实施日期(标准文本"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item label="新车型实施日期(国际)" prop="xcxssrqgj" class="add-form-item form-item-disabled">
<el-date-picker
disabled
v-model="form.xcxssrqgj"
type="date"
placeholder="请选择新车型实施日期(国家)"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item label="在产车实施日期(国际)" prop="zccssrqgj" class="add-form-item form-item-disabled">
<el-date-picker
disabled
v-model="form.zccssrqgj"
type="date"
placeholder="请选择在产车实施日期(国家)"
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- <el-form-item label="实施日期(国际)" prop="ssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.ssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择实施日期(国际)"-->
<!-- value-format="yyyy-MM-dd">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="新车型实施日期(国际)" prop="xcxssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.xcxssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择新车型实施日期(国家)"-->
<!-- value-format="yyyy-MM-dd">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="在产车实施日期(国际)" prop="zccssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.zccssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择在产车实施日期(国家)"-->
<!-- value-format="yyyy-MM-dd">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -928,7 +928,27 @@
this.active = name this.active = name
}, },
handleSave() { handleSave() {
this.$message.success('保存成功') this.saveLoading = true
let _formData = new FormData()
// _formData.append('id', this.bpnId)
_formData.append('createUser', this.$store.getters.userInfo.userId)
_formData.append('createUserName', this.$store.getters.userInfo.uName)
_formData.append('prcType', this.$route.query.type)
_formData.append('json', JSON.stringify({
prcForm: this.prcForm,
sarAccessInfoList: this.sarAccessInfoList,
sarAccessInfoListADMIN: this.sarAccessInfoListADMIN,
bzqdForm: this.bzqdForm,
listInfo: this.listInfo,
id: this.id
}))
saveTaskFirst(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
// this.bpnId = res.result
}).catch(e => {
this.saveLoading = false
})
}, },
handleSubmit() { handleSubmit() {
this.isSubmit = true this.isSubmit = true
@@ -145,14 +145,6 @@
placeholder="请选择标准实施日期(标准文本)"> placeholder="请选择标准实施日期(标准文本)">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="新车型实施日期(标准文本)" prop="xcxssrq" class="add-form-item form-item-disabled">
<el-date-picker
disabled
v-model="form.xcxssrq"
type="date"
placeholder="请选择新车型实施日期(标准文本">
</el-date-picker>
</el-form-item>
<el-form-item label="在产车实施日期(标准文本)" prop="zccssrq" class="add-form-item form-item-disabled"> <el-form-item label="在产车实施日期(标准文本)" prop="zccssrq" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled disabled
@@ -163,30 +155,38 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="实施日期(国际)" prop="ssrqgj" class="add-form-item form-item-disabled"> <el-form-item label="新车型实施日期(标准文本)" prop="xcxssrq" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
disabled disabled
v-model="form.ssrqgj" v-model="form.xcxssrq"
type="date" type="date"
placeholder="请选择实施日期(国际)"> placeholder="请选择新车型实施日期(标准文本">
</el-date-picker>
</el-form-item>
<el-form-item label="新车型实施日期(国际)" prop="xcxssrqgj" class="add-form-item form-item-disabled">
<el-date-picker
disabled
v-model="form.xcxssrqgj"
type="date"
placeholder="请选择新车型实施日期(国家)">
</el-date-picker>
</el-form-item>
<el-form-item label="在产车实施日期(国际)" prop="zccssrqgj" class="add-form-item form-item-disabled">
<el-date-picker
disabled
v-model="form.zccssrqgj"
type="date"
placeholder="请选择在产车实施日期(国家)">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- <el-form-item label="实施日期(国际)" prop="ssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.ssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择实施日期(国际)">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="新车型实施日期(国际)" prop="xcxssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.xcxssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择新车型实施日期(国家)">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="在产车实施日期(国际)" prop="zccssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- disabled-->
<!-- v-model="form.zccssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择在产车实施日期(国家)">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -921,7 +921,27 @@ export default {
this.active = name this.active = name
}, },
handleSave() { handleSave() {
this.$message.success('保存成功') this.saveLoading = true
let _formData = new FormData()
// _formData.append('id', this.bpnId)
_formData.append('createUser', this.$store.getters.userInfo.userId)
_formData.append('createUserName', this.$store.getters.userInfo.uName)
_formData.append('prcType', this.$route.query.type)
_formData.append('json', JSON.stringify({
prcForm: this.prcForm,
sarAccessInfoList: this.sarAccessInfoList,
sarAccessInfoListADMIN: this.sarAccessInfoListADMIN,
bzqdForm: this.bzqdForm,
listInfo: this.listInfo,
id: this.id
}))
saveTaskFirst(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
// this.bpnId = res.result
}).catch(e => {
this.saveLoading = false
})
}, },
handleSubmit() { handleSubmit() {
this.isSubmit = false this.isSubmit = false
@@ -149,13 +149,6 @@
placeholder="请选择标准实施日期(标准文本)"> placeholder="请选择标准实施日期(标准文本)">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="新车型实施日期(标准文本)" prop="xcxssrq" class="add-form-item form-item-disabled">
<el-date-picker
v-model="form.xcxssrq"
type="date"
placeholder="请选择新车型实施日期(标准文本">
</el-date-picker>
</el-form-item>
<el-form-item label="在产车实施日期(标准文本)" prop="zccssrq" class="add-form-item form-item-disabled"> <el-form-item label="在产车实施日期(标准文本)" prop="zccssrq" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
v-model="form.zccssrq" v-model="form.zccssrq"
@@ -165,27 +158,34 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="实施日期(国际)" prop="ssrqgj" class="add-form-item form-item-disabled"> <el-form-item label="新车型实施日期(标准文本)" prop="xcxssrq" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
v-model="form.ssrqgj" v-model="form.xcxssrq"
type="date" type="date"
placeholder="请选择实施日期(国际)"> placeholder="请选择新车型实施日期(标准文本">
</el-date-picker>
</el-form-item>
<el-form-item label="新车型实施日期(国际)" prop="xcxssrqgj" class="add-form-item form-item-disabled">
<el-date-picker
v-model="form.xcxssrqgj"
type="date"
placeholder="请选择新车型实施日期(国家)">
</el-date-picker>
</el-form-item>
<el-form-item label="在产车实施日期(国际)" prop="zccssrqgj" class="add-form-item form-item-disabled">
<el-date-picker
v-model="form.zccssrqgj"
type="date"
placeholder="请选择在产车实施日期(国家)">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- <el-form-item label="实施日期(国际)" prop="ssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- v-model="form.ssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择实施日期(国际)">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="新车型实施日期(国际)" prop="xcxssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- v-model="form.xcxssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择新车型实施日期(国家)">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="在产车实施日期(国际)" prop="zccssrqgj" class="add-form-item form-item-disabled">-->
<!-- <el-date-picker-->
<!-- v-model="form.zccssrqgj"-->
<!-- type="date"-->
<!-- placeholder="请选择在产车实施日期(国家)">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -896,7 +896,7 @@
:action="fileUrl" :action="fileUrl"
ref="importfile" ref="importfile"
name="file" name="file"
accept=".ZIP, .zip, .doc, .DOC, .docx, .DOCX, .xls, .xlsx" accept=".pdf, .PDF, .ppt, .PPT, .pptx,.PPTX, .doc, .DOC, .docx, .DOCX, .xls, .xlsx"
:before-upload="beginImportFile" :before-upload="beginImportFile"
:on-success="importFileSuccess" :on-success="importFileSuccess"
:show-file-list="false" :show-file-list="false"
@@ -1463,11 +1463,11 @@ export default {
var fileSuffix = filename.substring(index1, index2) var fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名 // const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式 // 判断上传文件格式
if (fileSuffix === '.ZIP' || fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') { if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
return true return true
} else { } else {
this.spinShow = false this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传ZIP/DOC/DOCX或XLS文件') this.$message.error('文件' + file.name + '格式不正确,请上传PDF/PPT/PPTX/DOC/DOCX或XLS文件')
return false return false
} }
// 判断文件上传大小 // 判断文件上传大小
@@ -86,12 +86,6 @@
prop="countryArea" prop="countryArea"
label="国家/地区" label="国家/地区"
align="center"> align="center">
<template slot-scope="scope">
<span v-if="scope.row.countryArea !== null && scope.row.countryArea.indexOf(',') > 0">
<span>{{ scope.row.countryArea }}</span>
</span>
<span v-else>{{ countryAreaMap[scope.row.countryArea] }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="detailedListName" prop="detailedListName"
@@ -289,10 +283,8 @@ export default {
this.searchSarAccess(); this.searchSarAccess();
}, },
clearSearch() { clearSearch() {
this.sarSarAccessEOSearch = { this.sarSarAccessEOSearch.countryArea = ''
countryArea: "", this.sarSarAccessEOSearch.detailedListName = ''
detailedListName: ""
};
this.searchSarAccess(); this.searchSarAccess();
}, },
// 新增相关 // 新增相关
@@ -165,12 +165,11 @@ export default {
total: 0, total: 0,
page: 1, page: 1,
rows: 10, rows: 10,
pageSize: this.$store.getters.userInfo.configContent,
// 查询相关参数 // 查询相关参数
sarSarAccessEOSearch: { sarSarAccessEOSearch: {
detailedList: "", detailedList: "",
detailedListName: "", detailedListName: "",
page: 1,
pageSize: this.$store.getters.userInfo.configContent
}, },
sarAccessListDatas: [], sarAccessListDatas: [],
sarAccessListTotal: 0, sarAccessListTotal: 0,
@@ -267,9 +266,9 @@ export default {
//分页查询 //分页查询
searchSarAccess() { searchSarAccess() {
this.$http.get("sarLawsDetailedList/sar-laws-detailed-list/getAllStand", { this.$http.get("sarLawsDetailedList/sar-laws-detailed-list/getAllStand", {
...this.sarSarAccessEOSearch,
page: 1, page: 1,
pageSize: 10, pageSize: this.pageSize,
...this.sarSarAccessEOSearch,
sortKey: 3 sortKey: 3
}, { }, {
_this: this _this: this
@@ -289,10 +288,8 @@ export default {
this.searchSarAccess(); this.searchSarAccess();
}, },
clearSearch() { clearSearch() {
this.sarSarAccessEOSearch = { this.sarSarAccessEOSearch.detailedList = ''
detailedList: "", this.sarSarAccessEOSearch.detailedListName = ''
detailedListName: ""
};
this.searchSarAccess(); this.searchSarAccess();
}, },
// 新增相关 // 新增相关
@@ -165,13 +165,12 @@ export default {
searching: false, searching: false,
total: 0, total: 0,
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent,
rows: 10, rows: 10,
// 查询相关参数 // 查询相关参数
sarSarAccessEOSearch: { sarSarAccessEOSearch: {
projectName: "", projectName: "",
detailedListName: "", detailedListName: "",
page: 1,
pageSize: this.$store.getters.userInfo.configContent
}, },
sarAccessListDatas: [], sarAccessListDatas: [],
sarAccessListTotal: 0, sarAccessListTotal: 0,
@@ -268,9 +267,9 @@ export default {
//分页查询 //分页查询
searchSarAccess() { searchSarAccess() {
this.$http.get("sarLawsDetailedList/sar-laws-detailed-list/getAllStand", { this.$http.get("sarLawsDetailedList/sar-laws-detailed-list/getAllStand", {
page: this.page,
pageSize: this.pageSize,
...this.sarSarAccessEOSearch, ...this.sarSarAccessEOSearch,
page: 1,
pageSize: 10,
sortKey: 2 sortKey: 2
}, { }, {
_this: this _this: this
@@ -291,10 +290,8 @@ export default {
}, },
//清空 //清空
clearSearch() { clearSearch() {
this.sarSarAccessEOSearch = { this.sarSarAccessEOSearch.projectName = ''
projectName: "", this.sarSarAccessEOSearch.detailedListName = ''
detailedListName: "",
};
this.searchSarAccess() this.searchSarAccess()
}, },
@@ -238,12 +238,12 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="code" prop="code"
show-overflow-tooltip
fixed="left" fixed="left"
width="180px" width="180px"
label="标准号"> label="标准号">
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a> <a @click="handlePreview(scope.row)" class="table-jump">{{scope.row.standSortShow}} {{ scope.row.standNumber }}-{{scope.row.standYear}}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -370,12 +370,13 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="code"
show-overflow-tooltip
width="180px" width="180px"
fixed="left" fixed="left"
label="标准号"> label="标准号">
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a> <a @click="handlePreview(scope.row)">{{scope.row.standSortShow}} {{ scope.row.standNumber }}-{{scope.row.standYear}}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -675,6 +676,7 @@ export default {
editRowData: { editRowData: {
id: '', id: '',
standName: '', standName: '',
standSortShow:'',
standEnName: '', standEnName: '',
typeApplicable: '', typeApplicable: '',
nylx: '', nylx: '',
@@ -714,7 +716,7 @@ export default {
], ],
detailedListName: [ detailedListName: [
{required: true, message: '清单名称不能为空', trigger: 'blur'}, {required: true, message: '清单名称不能为空', trigger: 'blur'},
{type: 'string', max: 100, message: '单名称不能超过100个字符', trigger: 'blur'} {type: 'string', max: 100, message: '单名称不能超过100个字符', trigger: 'blur'}
] ]
}, },
disabledFlag: false, disabledFlag: false,
@@ -739,7 +741,7 @@ export default {
dataSourceOptions: [ dataSourceOptions: [
{value: 'INLAND_STAND', label: '国内标准法规'}, {value: 'INLAND_STAND', label: '国内标准法规'},
{value: 'FOREIGN_STAND', label: '海外标准法规'}, {value: 'FOREIGN_STAND', label: '海外标准法规'},
{value: 'FOREIGN_LAWS', label: '国内外政策'}, //{value: 'FOREIGN_LAWS', label: '国内外政策'},
// {value: 'BUSINESS', label: '企业标准 '}, // {value: 'BUSINESS', label: '企业标准 '},
{value: 'TEMP', label: '标准法规清单 '} {value: 'TEMP', label: '标准法规清单 '}
], ],
@@ -876,6 +878,7 @@ export default {
// country: 'CN', // 适用区域 // country: 'CN', // 适用区域
standSort: '', // 标准类别 standSort: '', // 标准类别
standNumber: '', // 标准编号 standNumber: '', // 标准编号
standSortShow:'',
standYear: '', // 标准年份 standYear: '', // 标准年份
standName: '', // 中文名称 standName: '', // 中文名称
standEnName: '', // 英文名称 standEnName: '', // 英文名称
@@ -896,6 +899,7 @@ export default {
// country: 'CN', // 适用区域 // country: 'CN', // 适用区域
standSort: '', // 标准类别 standSort: '', // 标准类别
standNumber: '', // 标准编号 standNumber: '', // 标准编号
standSortShow:'',
standYear: '', // 标准年份 standYear: '', // 标准年份
standName: '', // 中文名称 standName: '', // 中文名称
standEnName: '', // 英文名称 standEnName: '', // 英文名称
@@ -1321,7 +1325,7 @@ export default {
editTghisRow(row) { editTghisRow(row) {
this.rowList = row this.rowList = row
this.editRowData = this.rowList this.editRowData = this.rowList
this.editRowData.standNumber = this.rowList.standSortShow + this.rowList.standNumber this.editRowData.standNumber = this.rowList.standSortShow + this.rowList.standNumber + '-' + this.rowList.standYear
this.drawerEdit = true this.drawerEdit = true
}, },
// 抽屉取消按钮 // 抽屉取消按钮
@@ -1357,15 +1361,17 @@ export default {
roundButton: true, roundButton: true,
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
// i 全部对象数组的下标 let exits = []
// s 选中对象数组的下标 this.sarAccessInfoListArry.map(item => {
for (var s in this.sarAccessInfoListArry) { let index
for (var i in this.sarAccessInfoList) { index = this.sarAccessInfoList.findIndex(items => {
if (this.sarAccessInfoListArry[s].uuid === this.sarAccessInfoList[i].uuid) { return items.id = item
this.sarAccessInfoList.splice(i, 1) })
} if (index > -1) {
this.sarAccessInfoList.splice(index, 1)
} }
} exits.push(item)
})
this.sarAccessInfoListArry = [] this.sarAccessInfoListArry = []
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection()
}).catch(() => {}) }).catch(() => {})
@@ -1376,9 +1382,9 @@ export default {
// 清单条目 table select事件 // 清单条目 table select事件
sarAccessInfoSelect (selectData) { sarAccessInfoSelect (selectData) {
this.sarAccessInfoListArry = selectData this.sarAccessInfoListArry = selectData
let sarAccessInfoListArryId = [] /* let sarAccessInfoListArryId = []
for(let i=0; i<this.selectData.length; i++){ for(let i=0; i<this.selectData.length; i++){
} }*/
}, },
// 点击取消按钮 返回事件 // 点击取消按钮 返回事件
backCancal () { backCancal () {
@@ -1449,7 +1455,7 @@ export default {
loading: 'loadData' loading: 'loadData'
}, res => { }, res => {
if (res.ok) { if (res.ok) {
this.$message.success('编辑成功') //this.$message.success('编辑成功')
this.isNext = true this.isNext = true
this.$router.push({ this.$router.push({
name: 'AccessStandardsAndRegulations' name: 'AccessStandardsAndRegulations'
@@ -1467,6 +1473,25 @@ export default {
selectLawsStands () { selectLawsStands () {
StandardsInfoPage(this.sarAccessInfoSearch).then(res =>{ StandardsInfoPage(this.sarAccessInfoSearch).then(res =>{
this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList = res.data.list
this.sarAccessInfoSearchList.forEach(item => {
if (item.standYear === null) {
item.standNumber = item.standSortShow + ' ' + item.standNumber
} else {
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
}
})
this.sarAccessInfoSearchList.forEach(item => {
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
})
this.drawerTotal = res.data.list.length this.drawerTotal = res.data.list.length
}, e => { }, e => {
}) })
@@ -1580,7 +1605,7 @@ export default {
for (var accessInfo in exportList) { for (var accessInfo in exportList) {
accIdAndrestype.push(exportList[accessInfo].id) accIdAndrestype.push(exportList[accessInfo].id)
} }
const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?'+ '&exportType=apart'+ '&ids=' + accIdAndrestype.join(',')+ '&exportName=' + this.exportName const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?'+ '&exportType=apart'+ '&id=' + accIdAndrestype.join(',')+ '&exportName=' + this.exportName
window.open(exportURL) window.open(exportURL)
this.$message.success('导出信息成功') this.$message.success('导出信息成功')
} }
@@ -1886,12 +1911,12 @@ export default {
}) })
}, },
// 点击查看 // 点击查看
handlePreview (item) { handlePreview (data) {
let routerName = item.sarType === 'FOREIGN_LAWS' ? 'OtherLawsDetails' : 'OtherStandardDetails' let routerName = data.sarType === 'FOREIGN_LAWS' ? 'OtherLawsDetails' : 'OtherStandardDetails'
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
name: routerName, name: routerName,
params: { params: {
id: item.resId, id: data.id,
pageType: this.sarAccessInfoSearch.dataSource pageType: this.sarAccessInfoSearch.dataSource
} }
}) })
@@ -1994,6 +2019,13 @@ export default {
_this: this _this: this
}, res => { }, res => {
this.sarAccessInfoList = res.data this.sarAccessInfoList = res.data
this.sarAccessInfoList.forEach(item => {
if (item.standYear === null) {
item.standNumber = item.standSortShow + ' ' + item.standNumber
} else {
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
}
})
}, e => { }, e => {
}) })
}, },
@@ -57,7 +57,21 @@
clearable></el-input> clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="责任部门" class="search-item" prop="responseUnit"> <el-form-item label="责任部门" class="search-item" prop="responseUnit">
<el-input v-model="standardForm.responseUnit" v-show="false"></el-input> <el-select
class="showBox"
v-model="standardForm.zrbm"
placeholder="请选择"
filterable
size="small"
>
<el-option
v-for="item in zrbmOptions"
:value="item.value"
:key="item.value"
:label="item.label"
/>
</el-select>
<!-- <el-input v-model="standardForm.responseUnit" v-show="false"></el-input>
<el-popover placement="bottom" popper-class="user-dept-popper" trigger="click"> <el-popover placement="bottom" popper-class="user-dept-popper" trigger="click">
<el-input <el-input
v-model="standardForm.responseUnit" v-model="standardForm.responseUnit"
@@ -76,7 +90,7 @@
class="ztree" style="height: 300px;overflow: auto"> class="ztree" style="height: 300px;overflow: auto">
</laws-tree> </laws-tree>
</div> </div>
</el-popover> </el-popover>-->
</el-form-item> </el-form-item>
<el-form-item label="" class="search-item btn-box"> <el-form-item label="" class="search-item btn-box">
<el-button v-btn-permission="'670dd74a8469a6232a0762c69b575775'" class="common-button-primary" type="primary" size="small" @click="selectProductBtn">查询 <el-button v-btn-permission="'670dd74a8469a6232a0762c69b575775'" class="common-button-primary" type="primary" size="small" @click="selectProductBtn">查询
@@ -103,10 +117,10 @@
</el-button> </el-button>
</el-form> </el-form>
<div v-if="!showSelectBox"> <div v-if="!showSelectBox">
<el-form :model="standardForm" class="label-input-form" label-width="108px" inline> <el-form :model="standardFormList" class="label-input-form" label-width="108px" inline>
<el-form-item label="文名称" class="search-item"> <el-form-item label="文名称" class="search-item">
<el-input <el-input
v-model="standardForm.standEnName" v-model="standardFormList.standName"
placeholder="请输入" placeholder="请输入"
:maxlength="100" :maxlength="100"
size="small" size="small"
@@ -115,7 +129,7 @@
<el-form-item label="适用车型" class="labelBox" label-width="61px"> <el-form-item label="适用车型" class="labelBox" label-width="61px">
<el-select <el-select
class="showBox" class="showBox"
v-model="standardForm.typeApplicable" v-model="standardFormList.typeApplicable"
placeholder="请选择" placeholder="请选择"
filterable filterable
size="small" size="small"
@@ -131,13 +145,29 @@
<el-form-item label="能源类型" > <el-form-item label="能源类型" >
<el-select <el-select
class="showBox" class="showBox"
v-model="standardForm.nylx" v-model="standardFormList.nylx"
placeholder="请选择" placeholder="请选择"
filterable filterable
size="small" size="small"
> >
<el-option <el-option
v-for="item in energyKindOptions" v-for="item in categoryOptions"
:value="item.value"
:key="item.value"
:label="item.label"
/>
</el-select>
</el-form-item>
<el-form-item label="责任部门" >
<el-select
class="showBox"
v-model="standardFormList.zrbm"
placeholder="请选择"
filterable
size="small"
>
<el-option
v-for="item in zrbmOptions"
:value="item.value" :value="item.value"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
@@ -147,7 +177,7 @@
<el-form-item label="适用产品线" > <el-form-item label="适用产品线" >
<el-select <el-select
class="showBox" class="showBox"
v-model="standardForm.sycpx" v-model="standardFormList.sycpx"
placeholder="请选择" placeholder="请选择"
filterable filterable
size="small" size="small"
@@ -182,14 +212,13 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standNumber" prop="code"
fixed="left" fixed="left"
width="180px" width="180px"
align="center" align="center"
label="标准号"> label="标准号">
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.resId" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standNumber }}</a> <a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standNumber }}</a>
<span v-else>{{ scope.row.standNumber }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -197,12 +226,18 @@
label="中文名称" label="中文名称"
width="180px" width="180px"
> >
<template slot-scope="scope">
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standEnName" prop="standEnName"
align="center" align="center"
width="180px" width="180px"
label="英文名称"> label="英文名称">
<template slot-scope="scope">
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standEnName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="typeApplicable" prop="typeApplicable"
@@ -379,7 +414,7 @@ export default {
// 适用车型 // 适用车型
applyArcticOptions: [], applyArcticOptions: [],
// 能源类型 // 能源类型
energyKindOptions: [], categoryOptions: [],
// 责任部门 // 责任部门
zrbmOptions: [], zrbmOptions: [],
// 适用产品线 // 适用产品线
@@ -398,6 +433,13 @@ export default {
page: 1, page: 1,
Size: this.$store.getters.userInfo.configContent Size: this.$store.getters.userInfo.configContent
}, },
standardFormList: {
standNumber: '',
standName: '',
responseUnit: '',
page: 1,
Size: this.$store.getters.userInfo.configContent
},
page: 1, page: 1,
// pageSize: this.$store.getters.userInfo.configContent, // pageSize: this.$store.getters.userInfo.configContent,
total: 0, total: 0,
@@ -463,6 +505,7 @@ export default {
// 根据准入id查询标准法规详情 // 根据准入id查询标准法规详情
selectInfobyAccid() { selectInfobyAccid() {
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", { this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
...this.standardFormList,
...this.standardForm, ...this.standardForm,
id: this.pageId, id: this.pageId,
}, { }, {
@@ -477,8 +520,24 @@ export default {
back() { back() {
this.$router.push({ this.$router.push({
name: "AccessStandardsAndRegulations" name: 'AccessStandardsAndRegulations',
}); })
/* if (this.sarAccessEO.sortKey === '1') {
this.$router.push({
name: 'AccessStandardsAndRegulations',
menuName: '国家/地区清单'
})
} else if(this.sarAccessEO.sortKey === '2') {
this.$router.push({
name: 'AccessStandardsAndRegulations',
menuName: '项目类清单'
})
} else {
this.$router.push({
name: 'AccessStandardsAndRegulations',
menuName: '其他清单'
})
}*/
// this.$router.push(this.$store.state.detailMap) // this.$router.push(this.$store.state.detailMap)
// this.$store.commit('setDetailMap', '') // this.$store.commit('setDetailMap', '')
}, },
@@ -490,11 +549,9 @@ export default {
}, },
// 重置搜索 // 重置搜索
resetSelect() { resetSelect() {
this.standardForm = { this.standardForm.standName = ''
standName: "", this.standardForm.responseUnit = ''
responseUnit: "" this.selectInfobyAccid()
};
this.selectInfobyAccid();
}, },
exportStandard() { exportStandard() {
if (this.selectedList.length > 0) { if (this.selectedList.length > 0) {
@@ -604,12 +661,13 @@ export default {
window.location.href = "/api/att/attFile/downloadFile?fileId=" + attId window.location.href = "/api/att/attFile/downloadFile?fileId=" + attId
}, },
// 点击查看 // 点击查看
handlePreview(item) { handlePreview(data) {
debugger
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
name: "OtherStandardDetails", name: "OtherStandardDetails",
params: { params: {
id: item.resId, id: data.id,
pageType: item.sarType pageType: data.sarType
} }
}); });
window.open(routeUrl.href, "_blank"); window.open(routeUrl.href, "_blank");
@@ -211,13 +211,13 @@
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="code" prop="standNumber"
show-overflow-tooltip
fixed="left" fixed="left"
width="180px" width="180px"
label="标准号"> label="标准号">
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a> <a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standNumber }}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -338,12 +338,13 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standNumber"
show-overflow-tooltip
width="180px" width="180px"
fixed="left" fixed="left"
label="标准号"> label="标准号">
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a> <a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standNumber }}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -576,11 +577,11 @@ export default {
{required: true, message: '国内/海外不能为空', trigger: 'change'} {required: true, message: '国内/海外不能为空', trigger: 'change'}
], ],
detailedList: [ detailedList: [
{required: true, message: '清单类别不能为空', trigger: 'change'} {required: true, message: '清单类别不能为空', trigger: 'blur'}
], ],
detailedListName: [ detailedListName: [
{required: true, message: '清单名称不能为空', trigger: 'blur'}, {required: true, message: '清单名称不能为空', trigger: 'blur'},
{type: 'string', max: 100, message: '单名称不能超过100个字符', trigger: 'blur'} {type: 'string', max: 100, message: '单名称不能超过100个字符', trigger: 'blur'}
] ]
}, },
disabledFlag: false, disabledFlag: false,
@@ -943,6 +944,7 @@ export default {
}, },
// 点击清空查询条件 按钮事件 // 点击清空查询条件 按钮事件
clearSearchLaws () { clearSearchLaws () {
this.sarAccessInfoSearch.standName = ''
this.sarAccessInfoSearch.advanceSearchVOStr = '' this.sarAccessInfoSearch.advanceSearchVOStr = ''
this.sarAccessInfoSearch.applyArctic = '' // 能源种类 this.sarAccessInfoSearch.applyArctic = '' // 能源种类
this.sarAccessInfoSearch.keywords = '' // 关键字 this.sarAccessInfoSearch.keywords = '' // 关键字
@@ -1187,15 +1189,17 @@ export default {
roundButton: true, roundButton: true,
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
// i 全部对象数组的下标 let exits = []
// s 选中对象数组的下标 this.sarAccessInfoListArry.map(item => {
for (var s in this.sarAccessInfoListArry) { let index
for (var i in this.sarAccessInfoList) { index = this.sarAccessInfoList.findIndex(items => {
if (this.sarAccessInfoListArry[s].uuid === this.sarAccessInfoList[i].uuid) { return items.id = item
this.sarAccessInfoList.splice(i, 1) })
} if (index > -1) {
this.sarAccessInfoList.splice(index, 1)
} }
} exits.push(item)
})
this.sarAccessInfoListArry = [] this.sarAccessInfoListArry = []
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection()
}).catch(() => {}) }).catch(() => {})
@@ -1278,6 +1282,25 @@ export default {
_this: this _this: this
}, res =>{ }, res =>{
this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList = res.data.list
this.sarAccessInfoSearchList.forEach(item => {
if (item.standYear === null) {
item.standNumber = item.standSortShow + ' ' + item.standNumber
} else {
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
}
})
this.sarAccessInfoSearchList.forEach(item => {
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
})
this.drawerTotal = res.data.list.length this.drawerTotal = res.data.list.length
}, e => { }, e => {
@@ -1392,7 +1415,7 @@ export default {
for (var accessInfo in exportList) { for (var accessInfo in exportList) {
accIdAndrestype.push(exportList[accessInfo].id) accIdAndrestype.push(exportList[accessInfo].id)
} }
const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?'+ '&exportType=apart'+ '&ids=' + accIdAndrestype.join(',')+ '&exportName=' + this.exportName const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?'+ '&exportType=apart'+ '&id=' + accIdAndrestype.join(',')+ '&exportName=' + this.exportName
window.open(exportURL) window.open(exportURL)
// window.location.href = '/api/lawss/sarSarAccessInfo/exportSarSarAccessInfo?idAndSartypeList=' + accIdAndrestype.join(',') + '&exportType=apart' + '&exportName=' + exportNames // window.location.href = '/api/lawss/sarSarAccessInfo/exportSarSarAccessInfo?idAndSartypeList=' + accIdAndrestype.join(',') + '&exportType=apart' + '&exportName=' + exportNames
this.$message.success('导出信息成功') this.$message.success('导出信息成功')
@@ -1808,6 +1831,13 @@ export default {
_this: this _this: this
}, res => { }, res => {
this.sarAccessInfoList = res.data this.sarAccessInfoList = res.data
this.sarAccessInfoList.forEach(item => {
if (item.standYear === null) {
item.standNumber = item.standSortShow + ' ' + item.standNumber
} else {
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
}
})
}, e => { }, e => {
}) })
@@ -215,13 +215,13 @@
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="code" prop="standNumber"
show-overflow-tooltip
fixed="left" fixed="left"
width="180px" width="180px"
label="标准号"> label="标准号">
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a> <a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standNumber }}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -342,12 +342,13 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standNumber"
show-overflow-tooltip
width="180px" width="180px"
fixed="left" fixed="left"
label="标准号"> label="标准号">
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a> <a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standNumber }}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }} {{ scope.row.standNumber }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -571,11 +572,11 @@ export default {
], ],
projectName: [ projectName: [
{required: true, message: '项目名称不能为空', trigger: 'blur'}, {required: true, message: '项目名称不能为空', trigger: 'blur'},
{type: 'string', max: 100, message: '表单名称不能超过100个字符', trigger: 'blur'} {type: 'string', max: 100, message: '项目名称不能超过100个字符', trigger: 'blur'}
], ],
detailedListName: [ detailedListName: [
{required: true, message: '清单名称不能为空', trigger: 'blur'}, {required: true, message: '清单名称不能为空', trigger: 'blur'},
{type: 'string', max: 100, message: '单名称不能超过100个字符', trigger: 'blur'} {type: 'string', max: 100, message: '单名称不能超过100个字符', trigger: 'blur'}
] ]
}, },
disabledFlag: false, disabledFlag: false,
@@ -941,6 +942,7 @@ export default {
}, },
// 点击清空查询条件 按钮事件 // 点击清空查询条件 按钮事件
clearSearchLaws () { clearSearchLaws () {
this.sarAccessInfoSearch.standName = ''
this.sarAccessInfoSearch.advanceSearchVOStr = '' this.sarAccessInfoSearch.advanceSearchVOStr = ''
this.sarAccessInfoSearch.applyArctic = '' // 能源种类 this.sarAccessInfoSearch.applyArctic = '' // 能源种类
this.sarAccessInfoSearch.keywords = '' // 关键字 this.sarAccessInfoSearch.keywords = '' // 关键字
@@ -1185,15 +1187,17 @@ export default {
roundButton: true, roundButton: true,
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
// i 全部对象数组的下标 let exits = []
// s 选中对象数组的下标 this.sarAccessInfoListArry.map(item => {
for (var s in this.sarAccessInfoListArry) { let index
for (var i in this.sarAccessInfoList) { index = this.sarAccessInfoList.findIndex(items => {
if (this.sarAccessInfoListArry[s].uuid === this.sarAccessInfoList[i].uuid) { return items.id = item
this.sarAccessInfoList.splice(i, 1) })
} if (index > -1) {
this.sarAccessInfoList.splice(index, 1)
} }
} exits.push(item)
})
this.sarAccessInfoListArry = [] this.sarAccessInfoListArry = []
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection()
}).catch(() => {}) }).catch(() => {})
@@ -1276,6 +1280,13 @@ export default {
_this: this _this: this
}, res =>{ }, res =>{
this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList = res.data.list
this.sarAccessInfoSearchList.forEach(item => {
if (item.standYear === null) {
item.standNumber = item.standSortShow + ' ' + item.standNumber
} else {
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
}
})
this.drawerTotal = res.data.list.length this.drawerTotal = res.data.list.length
}, e => { }, e => {
@@ -1390,7 +1401,7 @@ export default {
for (var accessInfo in exportList) { for (var accessInfo in exportList) {
accIdAndrestype.push(exportList[accessInfo].id) accIdAndrestype.push(exportList[accessInfo].id)
} }
const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?'+ '&exportType=apart'+ '&ids=' + accIdAndrestype.join(',')+ '&exportName=' + this.exportName const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?'+ '&exportType=apart'+ '&id=' + accIdAndrestype.join(',')+ '&exportName=' + this.exportName
window.open(exportURL) window.open(exportURL)
// window.location.href = '/api/lawss/sarSarAccessInfo/exportSarSarAccessInfo?idAndSartypeList=' + accIdAndrestype.join(',') + '&exportType=apart' + '&exportName=' + exportNames // window.location.href = '/api/lawss/sarSarAccessInfo/exportSarSarAccessInfo?idAndSartypeList=' + accIdAndrestype.join(',') + '&exportType=apart' + '&exportName=' + exportNames
this.$message.success('导出信息成功') this.$message.success('导出信息成功')
@@ -1808,6 +1819,25 @@ export default {
_this: this _this: this
}, res => { }, res => {
this.sarAccessInfoList = res.data this.sarAccessInfoList = res.data
this.sarAccessInfoList.forEach(item => {
if (item.standYear === null) {
item.standNumber = item.standSortShow + ' ' + item.standNumber
} else {
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
}
})
this.sarAccessInfoSearchList.forEach(item => {
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ)
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ)
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
})
}, e => { }, e => {
}) })
@@ -524,6 +524,7 @@
</template> </template>
<template v-else-if="field.attrType === 'DATE_PICKER'"> <template v-else-if="field.attrType === 'DATE_PICKER'">
<custom-date-pick <custom-date-pick
v-if="field.attrField !== 'ZCCSSRQGJ' && field.attrField !== 'XCXSSRQGJ' && field.attrField !== 'SSRQGJ' "
:key="field.attrField" :key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
@@ -1024,47 +1025,257 @@
<el-button size="mini" type="primary" class="common-button-default" icon="el-icon-check" @click="importFailed = false">确认</el-button> <el-button size="mini" type="primary" class="common-button-default" icon="el-icon-check" @click="importFailed = false">确认</el-button>
</div> </div>
</el-dialog> </el-dialog>
<table-tools-bar v-model="isAdvancedSearch" @search="getDomesticStandardTableBtn(sarStandardsSearch)" <!-- <table-tools-bar v-model="isAdvancedSearch" @search="getDomesticStandardTableBtn(sarStandardsSearch)"-->
@reset="clearAllSearch('sarStandardsSearch')" > <!-- @reset="clearAllSearch('sarStandardsSearch')" >-->
<div slot="content"> <!-- <div slot="content">-->
<!-- <el-form :model="sarStandardsSearch" :inline="true" class="label-input-form table-lattice" style="display: flex;flex-wrap: wrap">-->
<!--&lt;!&ndash; 标准号&ndash;&gt;-->
<!-- <el-form-item :label="$t('m.standardNo')" class="serch-form-item">-->
<!-- <el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable :maxlength="100"-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 标准名称&ndash;&gt;-->
<!-- <el-form-item :label="$t('m.standName')" class="serch-form-item">-->
<!-- <el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable :maxlength="500"-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 标准英文名称&ndash;&gt;-->
<!-- <el-form-item :label="$t('m.standardEnglishName')" class="serch-form-item">-->
<!-- <el-input v-model="sarStandardsSearch.standEnName" :placeholder="$t('m.searchAccordingToStandardEnglishName')" clearable :maxlength="500"-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 标准类别&ndash;&gt;-->
<!-- <el-form-item :label="$t('m.standardCategory')" class="serch-form-item">-->
<!-- <search-select-->
<!-- v-model="sarStandardsSearch.standSort"-->
<!-- :placeholder="$t('m.standardCategoryTips')"-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"-->
<!-- :options="standSortOptions"-->
<!-- clearable/>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 文本状态&ndash;&gt;-->
<!-- <el-form-item :label="$t('m.standStateShow')" class="serch-form-item">-->
<!-- <el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')" clearable-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">-->
<!-- <el-option v-for="opt in standStateOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 代替标准号&ndash;&gt;-->
<!-- <el-form-item :label="$t('m.substituteStandardNumber')" class="serch-form-item">-->
<!-- <el-input v-model="sarStandardsSearch.dtbjh" :placeholder="$t('m.lookUpByAlternativeCriteria')" clearable :maxlength="100"-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 标准年份&ndash;&gt;-->
<!-- <el-form-item :label="$t('m.standardYear')" class="serch-form-item">-->
<!-- <el-date-picker-->
<!-- v-model="sarStandardsSearch.standYear"-->
<!-- type="date"-->
<!-- placeholder="根据标准年份查找">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!-- &lt;!&ndash; 标准发布日期&ndash;&gt;-->
<!-- <el-form-item label="标准发布日期" class="serch-form-item">-->
<!-- <el-date-picker-->
<!-- v-model="sarStandardsSearch.issueTime"-->
<!-- type="date"-->
<!-- placeholder="根据标准发布日期查找">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 标准性质&ndash;&gt;-->
<!-- <el-form-item :label="$t('m.standNatureShow')" class="serch-form-item">-->
<!-- <el-select v-model="sarStandardsSearch.standNature" placeholder="请选择标准性质" clearable-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">-->
<!-- <el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 是否纳入标准清单&ndash;&gt;-->
<!-- <el-form-item title="是否纳入标准清单" label="是否纳入标准清单">-->
<!-- <el-select v-model="sarStandardsSearch.isRelateAccess" class="advanced-one" placeholder="根据是否纳入标准清单查找">-->
<!-- <el-option value="yes" label=""></el-option>-->
<!-- <el-option value="no" label=""></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 实施日期&ndash;&gt;-->
<!-- <el-form-item label="实施日期">-->
<!-- <el-date-picker-->
<!-- v-model="sarStandardsSearch.putTime"-->
<!-- type="date"-->
<!-- placeholder="根据实施日期查找">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 新车型实施日期&ndash;&gt;-->
<!-- <el-form-item title="新车型实施日期" label="新车型实施日期">-->
<!-- <el-date-picker-->
<!-- v-model="sarStandardsSearch.XCXTime"-->
<!-- type="date"-->
<!-- placeholder="根据新车型实施日期查找">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 在产车实施日期&ndash;&gt;-->
<!-- <el-form-item title="在产车实施日期" label="在产车实施日期">-->
<!-- <el-date-picker-->
<!-- v-model="sarStandardsSearch.ZCCTime"-->
<!-- type="date"-->
<!-- placeholder="根据在产车实施日期查找">-->
<!-- </el-date-picker>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 归口管理部门&ndash;&gt;-->
<!-- <el-form-item label="归口管理部门">-->
<!-- <el-input v-model="sarStandardsSearch.nameShow" clearable placeholder="根据归口管理部门查找"-->
<!-- @keyup.enter.native="btnSearch"></el-input>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 起草单位&ndash;&gt;-->
<!-- <el-form-item label="起草单位">-->
<!-- <el-select v-model="sarStandardsSearch.qcdw" placeholder="根据起草单位查找" clearable-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">-->
<!-- <el-option v-for="opt in qcdwOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 我司参与深度&ndash;&gt;-->
<!-- <el-form-item label="我司参与深度">-->
<!-- <el-select v-model="sarStandardsSearch.nameShow" placeholder="请选择我司参与深度" clearable-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">-->
<!-- <el-option v-for="opt in cysdOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 能源类型&ndash;&gt;-->
<!-- <el-form-item label="能源类型">-->
<!-- <el-select v-model="sarStandardsSearch.energyKind" placeholder="请选择能源类型" clearable-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">-->
<!-- <el-option v-for="opt in nylxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 适用车型&ndash;&gt;-->
<!-- <el-form-item :label="$t('m.applicableModels')" class="serch-form-item">-->
<!-- <el-select v-model="sarStandardsSearch.applyArctic" :placeholder="$t('m.searchAccordingToThApplicableModel')" clearable-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">-->
<!-- <el-option v-for="opt in applyArcticOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 适用产品线(新增字段)&ndash;&gt;-->
<!-- <el-form-item :label="$t('m.applicableProductLine')" class="serch-form-item">-->
<!-- <el-select v-model="sarStandardsSearch.sycpx" :placeholder="$t('m.searchByApplicableProductLine')" clearable-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">-->
<!-- <el-option v-for="opt in sycpxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 适用认证&ndash;&gt;-->
<!-- <el-form-item label="适用认证">-->
<!-- <el-select v-model="sarStandardsSearch.syzr" placeholder="根据适用认证查找" clearable-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">-->
<!-- <el-option v-for="opt in syzrOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 责任部门&ndash;&gt;-->
<!-- <el-form-item label="责任部门">-->
<!-- <el-select v-model="sarStandardsSearch.zrbm" placeholder="根据责任部门查找" clearable-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">-->
<!-- <el-option v-for="opt in zrbmOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 责任工程师&ndash;&gt;-->
<!-- <el-form-item label="责任工程师">-->
<!-- <el-select v-model="sarStandardsSearch.dutyEngineer" placeholder="根据责任工程师查找" clearable-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">-->
<!-- <el-option v-for="opt in zrgcsOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 关联模块-VPPS编码&ndash;&gt;-->
<!-- <el-form-item title="关联模块-VPPS编码" label="关联模块-VPPS编码" prop="standNumber">-->
<!-- <el-input v-model="sarStandardsSearch.svpps" clearable-->
<!-- placeholder="根据关联模块-VPPS编码查找"-->
<!-- @keyup.enter.native="btnSearch"></el-input>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 代替标准号&ndash;&gt;-->
<!-- <el-form-item label="代替标准号">-->
<!-- <el-input v-model="sarStandardsSearch.replaceStandNum" clearable placeholder="根据代替标准号查找"-->
<!-- @keyup.enter.native="btnSearch"></el-input>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 关联模块-中文名称&ndash;&gt;-->
<!-- <el-form-item title="关联模块-中文名称" label="关联模块-中文名称" prop="standNumber">-->
<!-- <el-input v-model="sarStandardsSearch.standNumber" clearable-->
<!-- placeholder="根据关联模块-中文名称"-->
<!-- @keyup.enter.native="btnSearch"></el-input>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 采标编号&ndash;&gt;-->
<!-- <el-form-item label="采标编号" prop="nameShow">-->
<!-- <el-input v-model="sarStandardsSearch.nameShow" clearable placeholder="根据采标编号查找"-->
<!-- @keyup.enter.native="btnSearch"></el-input>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 采标程度&ndash;&gt;-->
<!-- <el-form-item label="采标程度" prop="standNumber">-->
<!-- <el-input v-model="sarStandardsSearch.standNumber" clearable-->
<!-- placeholder="根据采标程度查找"-->
<!-- @keyup.enter.native="btnSearch"></el-input>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 引用标准&ndash;&gt;-->
<!-- <el-form-item label="引用标准">-->
<!-- <el-input v-model="sarStandardsSearch.citeStand" clearable placeholder="根据引用标准查找"-->
<!-- @keyup.enter.native="btnSearch"></el-input>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 被引用标准&ndash;&gt;-->
<!-- <el-form-item label="被引用标准">-->
<!-- <el-input v-model="sarStandardsSearch.citedStand" clearable-->
<!-- placeholder="根据被引用标准查找"-->
<!-- @keyup.enter.native="btnSearch"></el-input>-->
<!-- </el-form-item>-->
<!--&lt;!&ndash; 关联模块(新增字段)&ndash;&gt;-->
<!-- <el-form-item :label="$t('m.associatedModule')" class="serch-form-item">-->
<!-- <el-select v-model="sarStandardsSearch.cycvppsbm" :placeholder="$t('m.SearchByAssociatedModule')" clearable-->
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">-->
<!-- <el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<!-- </div>-->
<!-- </table-tools-bar>-->
<!-- 高级筛选-->
<el-drawer
title="高级搜索"
size="700px"
:wrapperClosable="false"
:visible.sync="isAdvancedSearch">
<div class="demo-drawer-content">
<el-form :model="sarStandardsSearch" :inline="true" class="label-input-form table-lattice" style="display: flex;flex-wrap: wrap"> <el-form :model="sarStandardsSearch" :inline="true" class="label-input-form table-lattice" style="display: flex;flex-wrap: wrap">
<!-- 标准号--> <!-- 标准号-->
<el-form-item :label="$t('m.standardNo')" class="serch-form-item"> <el-form-item :label="$t('m.standardNo')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable :maxlength="100" <el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable :maxlength="100"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item> </el-form-item>
<!-- 标准名称--> <!-- 标准名称-->
<el-form-item :label="$t('m.standName')" class="serch-form-item"> <el-form-item :label="$t('m.standName')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable :maxlength="500" <el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable :maxlength="500"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item> </el-form-item>
<!-- 标准英文名称--> <!-- 标准英文名称-->
<el-form-item :label="$t('m.standardEnglishName')" class="serch-form-item"> <el-form-item :label="$t('m.standardEnglishName')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.standEnName" :placeholder="$t('m.searchAccordingToStandardEnglishName')" clearable :maxlength="500" <el-input v-model="sarStandardsSearch.standEnName" :placeholder="$t('m.searchAccordingToStandardEnglishName')" clearable :maxlength="500"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item> </el-form-item>
<!-- 标准类别--> <!-- 标准类别-->
<el-form-item :label="$t('m.standardCategory')" class="serch-form-item"> <el-form-item :label="$t('m.standardCategory')" class="serch-form-item">
<search-select <search-select
v-model="sarStandardsSearch.standSort" v-model="sarStandardsSearch.standSort"
:placeholder="$t('m.standardCategoryTips')" :placeholder="$t('m.standardCategoryTips')"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)" @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"
:options="standSortOptions" :options="standSortOptions"
clearable/> clearable/>
</el-form-item> </el-form-item>
<!-- 文本状态--> <!-- 文本状态-->
<el-form-item :label="$t('m.standStateShow')" class="serch-form-item"> <el-form-item :label="$t('m.standStateShow')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')" clearable <el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in standStateOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option> <el-option v-for="opt in standStateOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 代替标准号--> <!-- 代替标准号-->
<el-form-item :label="$t('m.substituteStandardNumber')" class="serch-form-item"> <el-form-item :label="$t('m.substituteStandardNumber')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.dtbjh" :placeholder="$t('m.lookUpByAlternativeCriteria')" clearable :maxlength="100" <el-input v-model="sarStandardsSearch.dtbjh" :placeholder="$t('m.lookUpByAlternativeCriteria')" clearable :maxlength="100"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item> </el-form-item>
<!-- 标准年份--> <!-- 标准年份-->
<el-form-item :label="$t('m.standardYear')" class="serch-form-item"> <el-form-item :label="$t('m.standardYear')" class="serch-form-item">
<el-date-picker <el-date-picker
v-model="sarStandardsSearch.standYear" v-model="sarStandardsSearch.standYear"
@@ -1080,21 +1291,21 @@
placeholder="根据标准发布日期查找"> placeholder="根据标准发布日期查找">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- 标准性质--> <!-- 标准性质-->
<el-form-item :label="$t('m.standNatureShow')" class="serch-form-item"> <el-form-item :label="$t('m.standNatureShow')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.standNature" placeholder="请选择标准性质" clearable <el-select v-model="sarStandardsSearch.standNature" placeholder="请选择标准性质" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option> <el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 是否纳入标准清单--> <!-- 是否纳入标准清单-->
<el-form-item title="是否纳入标准清单" label="是否纳入标准清单"> <el-form-item title="是否纳入标准清单" label="是否纳入标准清单">
<el-select v-model="sarStandardsSearch.isRelateAccess" class="advanced-one" placeholder="根据是否纳入标准清单查找"> <el-select v-model="sarStandardsSearch.isRelateAccess" class="advanced-one" placeholder="根据是否纳入标准清单查找">
<el-option value="yes" label=""></el-option> <el-option value="yes" label=""></el-option>
<el-option value="no" label=""></el-option> <el-option value="no" label=""></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 实施日期--> <!-- 实施日期-->
<el-form-item label="实施日期"> <el-form-item label="实施日期">
<el-date-picker <el-date-picker
v-model="sarStandardsSearch.putTime" v-model="sarStandardsSearch.putTime"
@@ -1102,7 +1313,7 @@
placeholder="根据实施日期查找"> placeholder="根据实施日期查找">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- 新车型实施日期--> <!-- 新车型实施日期-->
<el-form-item title="新车型实施日期" label="新车型实施日期"> <el-form-item title="新车型实施日期" label="新车型实施日期">
<el-date-picker <el-date-picker
v-model="sarStandardsSearch.XCXTime" v-model="sarStandardsSearch.XCXTime"
@@ -1110,7 +1321,7 @@
placeholder="根据新车型实施日期查找"> placeholder="根据新车型实施日期查找">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- 在产车实施日期--> <!-- 在产车实施日期-->
<el-form-item title="在产车实施日期" label="在产车实施日期"> <el-form-item title="在产车实施日期" label="在产车实施日期">
<el-date-picker <el-date-picker
v-model="sarStandardsSearch.ZCCTime" v-model="sarStandardsSearch.ZCCTime"
@@ -1118,19 +1329,19 @@
placeholder="根据在产车实施日期查找"> placeholder="根据在产车实施日期查找">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- 归口管理部门--> <!-- 归口管理部门-->
<el-form-item label="归口管理部门"> <el-form-item label="归口管理部门">
<el-input v-model="sarStandardsSearch.nameShow" clearable placeholder="根据归口管理部门查找" <el-input v-model="sarStandardsSearch.nameShow" clearable placeholder="根据归口管理部门查找"
@keyup.enter.native="btnSearch"></el-input> @keyup.enter.native="btnSearch"></el-input>
</el-form-item> </el-form-item>
<!-- 起草单位--> <!-- 起草单位-->
<el-form-item label="起草单位"> <el-form-item label="起草单位">
<el-select v-model="sarStandardsSearch.qcdw" placeholder="根据起草单位查找" clearable <el-select v-model="sarStandardsSearch.qcdw" placeholder="根据起草单位查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in qcdwOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option> <el-option v-for="opt in qcdwOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 我司参与深度--> <!-- 我司参与深度-->
<el-form-item label="我司参与深度"> <el-form-item label="我司参与深度">
<el-select v-model="sarStandardsSearch.nameShow" placeholder="请选择我司参与深度" clearable <el-select v-model="sarStandardsSearch.nameShow" placeholder="请选择我司参与深度" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
@@ -1138,88 +1349,88 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 能源类型--> <!-- 能源类型-->
<el-form-item label="能源类型"> <el-form-item label="能源类型">
<el-select v-model="sarStandardsSearch.energyKind" placeholder="请选择能源类型" clearable <el-select v-model="sarStandardsSearch.energyKind" placeholder="请选择能源类型" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in nylxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option> <el-option v-for="opt in nylxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 适用车型--> <!-- 适用车型-->
<el-form-item :label="$t('m.applicableModels')" class="serch-form-item"> <el-form-item :label="$t('m.applicableModels')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.applyArctic" :placeholder="$t('m.searchAccordingToThApplicableModel')" clearable <el-select v-model="sarStandardsSearch.applyArctic" :placeholder="$t('m.searchAccordingToThApplicableModel')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in applyArcticOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option> <el-option v-for="opt in applyArcticOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 适用产品线(新增字段)--> <!-- 适用产品线(新增字段)-->
<el-form-item :label="$t('m.applicableProductLine')" class="serch-form-item"> <el-form-item :label="$t('m.applicableProductLine')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.sycpx" :placeholder="$t('m.searchByApplicableProductLine')" clearable <el-select v-model="sarStandardsSearch.sycpx" :placeholder="$t('m.searchByApplicableProductLine')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in sycpxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option> <el-option v-for="opt in sycpxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 适用认证--> <!-- 适用认证-->
<el-form-item label="适用认证"> <el-form-item label="适用认证">
<el-select v-model="sarStandardsSearch.syzr" placeholder="根据适用认证查找" clearable <el-select v-model="sarStandardsSearch.syzr" placeholder="根据适用认证查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in syzrOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option> <el-option v-for="opt in syzrOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 责任部门--> <!-- 责任部门-->
<el-form-item label="责任部门"> <el-form-item label="责任部门">
<el-select v-model="sarStandardsSearch.zrbm" placeholder="根据责任部门查找" clearable <el-select v-model="sarStandardsSearch.zrbm" placeholder="根据责任部门查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in zrbmOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option> <el-option v-for="opt in zrbmOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 责任工程师--> <!-- 责任工程师-->
<el-form-item label="责任工程师"> <el-form-item label="责任工程师">
<el-select v-model="sarStandardsSearch.dutyEngineer" placeholder="根据责任工程师查找" clearable <el-select v-model="sarStandardsSearch.dutyEngineer" placeholder="根据责任工程师查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in zrgcsOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option> <el-option v-for="opt in zrgcsOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 关联模块-VPPS编码--> <!-- 关联模块-VPPS编码-->
<el-form-item title="关联模块-VPPS编码" label="关联模块-VPPS编码" prop="standNumber"> <el-form-item title="关联模块-VPPS编码" label="关联模块-VPPS编码" prop="standNumber">
<el-input v-model="sarStandardsSearch.svpps" clearable <el-input v-model="sarStandardsSearch.svpps" clearable
placeholder="根据关联模块-VPPS编码查找" placeholder="根据关联模块-VPPS编码查找"
@keyup.enter.native="btnSearch"></el-input> @keyup.enter.native="btnSearch"></el-input>
</el-form-item> </el-form-item>
<!-- 代替标准号--> <!-- 代替标准号-->
<el-form-item label="代替标准号"> <el-form-item label="代替标准号">
<el-input v-model="sarStandardsSearch.replaceStandNum" clearable placeholder="根据代替标准号查找" <el-input v-model="sarStandardsSearch.replaceStandNum" clearable placeholder="根据代替标准号查找"
@keyup.enter.native="btnSearch"></el-input> @keyup.enter.native="btnSearch"></el-input>
</el-form-item> </el-form-item>
<!-- 关联模块-中文名称--> <!-- 关联模块-中文名称-->
<el-form-item title="关联模块-中文名称" label="关联模块-中文名称" prop="standNumber"> <el-form-item title="关联模块-中文名称" label="关联模块-中文名称" prop="standNumber">
<el-input v-model="sarStandardsSearch.standNumber" clearable <el-input v-model="sarStandardsSearch.standNumber" clearable
placeholder="根据关联模块-中文名称" placeholder="根据关联模块-中文名称"
@keyup.enter.native="btnSearch"></el-input> @keyup.enter.native="btnSearch"></el-input>
</el-form-item> </el-form-item>
<!-- 采标编号--> <!-- 采标编号-->
<el-form-item label="采标编号" prop="nameShow"> <el-form-item label="采标编号" prop="nameShow">
<el-input v-model="sarStandardsSearch.nameShow" clearable placeholder="根据采标编号查找" <el-input v-model="sarStandardsSearch.nameShow" clearable placeholder="根据采标编号查找"
@keyup.enter.native="btnSearch"></el-input> @keyup.enter.native="btnSearch"></el-input>
</el-form-item> </el-form-item>
<!-- 采标程度--> <!-- 采标程度-->
<el-form-item label="采标程度" prop="standNumber"> <el-form-item label="采标程度" prop="standNumber">
<el-input v-model="sarStandardsSearch.standNumber" clearable <el-input v-model="sarStandardsSearch.standNumber" clearable
placeholder="根据采标程度查找" placeholder="根据采标程度查找"
@keyup.enter.native="btnSearch"></el-input> @keyup.enter.native="btnSearch"></el-input>
</el-form-item> </el-form-item>
<!-- 引用标准--> <!-- 引用标准-->
<el-form-item label="引用标准"> <el-form-item label="引用标准">
<el-input v-model="sarStandardsSearch.citeStand" clearable placeholder="根据引用标准查找" <el-input v-model="sarStandardsSearch.citeStand" clearable placeholder="根据引用标准查找"
@keyup.enter.native="btnSearch"></el-input> @keyup.enter.native="btnSearch"></el-input>
</el-form-item> </el-form-item>
<!-- 被引用标准--> <!-- 被引用标准-->
<el-form-item label="被引用标准"> <el-form-item label="被引用标准">
<el-input v-model="sarStandardsSearch.citedStand" clearable <el-input v-model="sarStandardsSearch.citedStand" clearable
placeholder="根据被引用标准查找" placeholder="根据被引用标准查找"
@keyup.enter.native="btnSearch"></el-input> @keyup.enter.native="btnSearch"></el-input>
</el-form-item> </el-form-item>
<!-- 关联模块(新增字段)--> <!-- 关联模块(新增字段)-->
<el-form-item :label="$t('m.associatedModule')" class="serch-form-item"> <el-form-item :label="$t('m.associatedModule')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.cycvppsbm" :placeholder="$t('m.SearchByAssociatedModule')" clearable <el-select v-model="sarStandardsSearch.cycvppsbm" :placeholder="$t('m.SearchByAssociatedModule')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
@@ -1229,7 +1440,18 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
</table-tools-bar> <div class="demo-drawer-footer">
<el-button
class="common-button-primary"
icon="el-icon-check"
type="primary"
@click="getDomesticStandardTableBtn(sarStandardsSearch)">搜索</el-button>
<el-button
class="common-button-default"
icon="el-icon-close"
@click="clearAllSearch('sarStandardsSearch')">取消</el-button>
</div>
</el-drawer>
</div> </div>
<!-- 分享 全部选人 --> <!-- 分享 全部选人 -->
<org-table <org-table
@@ -188,7 +188,7 @@
round round
@click="clearAllSearch('sarBussionessSearch')" @click="clearAllSearch('sarBussionessSearch')"
></el-button> ></el-button>
<el-button type="primary" class="common-button-primary" round @click="selectMoreBtn"><i class="iconfont">&#xe7a5;</i>高级检索</el-button> <!-- <el-button type="primary" class="common-button-primary" round @click="selectMoreBtn"><i class="iconfont">&#xe7a5;</i>高级检索</el-button>-->
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@@ -218,7 +218,7 @@
round round
@click="exportStandard" @click="exportStandard"
title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项" title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项"
v-btn-permission="'UFIZU4O3AH'" v-btn-permission="'784d26f527a659eefe84d5e5a53deb96'"
><i class="iconfont">&#xe6e9;</i>导出</el-button> ><i class="iconfont">&#xe6e9;</i>导出</el-button>
<!-- <el-button--> <!-- <el-button-->
<!-- class="common-button-default"--> <!-- class="common-button-default"-->
@@ -227,23 +227,23 @@
<!-- @click="uploadImportModal(1)"--> <!-- @click="uploadImportModal(1)"-->
<!-- v-btn-permission="'afX1p2gh3c'"--> <!-- v-btn-permission="'afX1p2gh3c'"-->
<!-- ><i class="iconfont">&#xe825;</i>模板下载</el-button>--> <!-- ><i class="iconfont">&#xe825;</i>模板下载</el-button>-->
<!-- <el-button--> <el-button
<!-- class="common-button-default delete-button"--> class="common-button-default delete-button"
<!-- round--> round
<!-- @click="deleteStand(2)"--> @click="deleteStand(2)"
<!-- v-btn-permission="'EKTB87NTEE'"--> v-btn-permission="'374205ce36a859a158ca4db196d151b7'"
<!-- ><i class="iconfont">&#xe61b;</i>批量删除</el-button>--> ><i class="iconfont">&#xe61b;</i>批量删除</el-button>
<el-button <el-button
class="common-button-default" class="common-button-default"
round round
@click="configurationStandard" @click="configurationStandard"
v-btn-permission="'PF56TFSV7C'" v-btn-permission="'381d34443196ca840118ae577ff30d5e'"
><i class="iconfont">&#xe669;</i>配置标准</el-button> ><i class="iconfont">&#xe669;</i>配置标准</el-button>
<el-button <el-button
class="common-button-default" class="common-button-default"
round round
@click="deleteEnterStandFromKind(2)" @click="deleteEnterStandFromKind(2)"
v-btn-permission="'UQCAPM93Q0'" v-btn-permission="'2d41ebdb6150ba1af52fd753086d77dc'"
><i class="iconfont">&#xe611;</i>移除标准</el-button> ><i class="iconfont">&#xe611;</i>移除标准</el-button>
</div> </div>
<!--表格--> <!--表格-->
@@ -382,20 +382,20 @@
<el-dropdown-item <el-dropdown-item
v-if="scope.row.collectBtn" v-if="scope.row.collectBtn"
:command="[scope.row, '收藏']" :command="[scope.row, '收藏']"
v-btn-permission="'H6J6YAB9FQ'" v-btn-permission="'d9730d984627af948053df56a2db7997'"
> >
收藏 收藏
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item <el-dropdown-item
v-else v-else
:command="[scope.row, '取消收藏']" :command="[scope.row, '取消收藏']"
v-btn-permission="'H6J6YAB9FQ'" v-btn-permission="'d96e086ce3dfa75201bdf8e67cd9fe6d'"
> >
取消收藏 取消收藏
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'VL3HVS74DU'">编辑</el-dropdown-item> <el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'dd4ea796dab7a01b105ba657b1968a84'">编辑</el-dropdown-item>
<el-dropdown-item :command="[scope.row, '分享']" v-btn-permission="'ESPMBSD4ZP'">分享</el-dropdown-item> <!-- <el-dropdown-item :command="[scope.row, '分享']" v-btn-permission="'ESPMBSD4ZP'">分享</el-dropdown-item>-->
<el-dropdown-item :command="[scope.row, '授权']" v-btn-permission="'CWBPST294ZH7HSKD4452'" v-if="scope.row.attrInfoMap && scope.row.attrInfoMap.QBMJ === 'ACF675Z88W'">授权</el-dropdown-item> <!-- <el-dropdown-item :command="[scope.row, '授权']" v-btn-permission="'CWBPST294ZH7HSKD4452'" v-if="scope.row.attrInfoMap && scope.row.attrInfoMap.QBMJ === 'ACF675Z88W'">授权</el-dropdown-item>-->
<!-- <el-dropdown-item :command="[scope.row, '删除']">删除</el-dropdown-item>--> <!-- <el-dropdown-item :command="[scope.row, '删除']">删除</el-dropdown-item>-->
<!-- <el-dropdown-item :command="[scope.row, '流程']">流程</el-dropdown-item>--> <!-- <el-dropdown-item :command="[scope.row, '流程']">流程</el-dropdown-item>-->
</el-dropdown-menu> </el-dropdown-menu>
@@ -757,7 +757,8 @@
@click="saveConfigStand" @click="saveConfigStand"
:loading="isSubmit" :loading="isSubmit"
>提交</el-button> >提交</el-button>
<el-button class="common-button-default" icon="el-icon-close" @click="cancelConfigStand">取消</el-button> <el-button class="common-button-default" style="padding: 7px 12px;" icon="el-icon-close" type="primary"
round @click="cancelConfigStand">取消</el-button>
</div> </div>
</el-drawer> </el-drawer>
<!-- 树---新增二级菜单模态窗 --> <!-- 树---新增二级菜单模态窗 -->
@@ -483,6 +483,7 @@
</template> </template>
<template v-else-if="field.attrField === 'XCXSSRQ' || field.attrField === 'ZCCSSRQ'"> <template v-else-if="field.attrField === 'XCXSSRQ' || field.attrField === 'ZCCSSRQ'">
<custom-date-pick <custom-date-pick
v-if="field.attrField !== 'ZCCSSRQGJ' && field.attrField !== 'XCXSSRQGJ' && field.attrField !== 'SSRQGJ' "
:key="field.attrField" :key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
@@ -1572,9 +1573,9 @@ export default {
{type: 'string', max: 1000, message: '文本说明不能超过1000个字符', trigger: 'change'} {type: 'string', max: 1000, message: '文本说明不能超过1000个字符', trigger: 'change'}
], ],
standYear: [ standYear: [
// {required: true, message: '/', trigger: 'change'}, {required: true, message: '标准年份不能为空', trigger: 'change'},
{validator: this.verify.testItemCode, trigger: 'change'}, {validator: this.verify.testNumberCode, trigger: 'change'},
{type: 'string', max: 20, message: '标准年份/系列不能超过20个字符', trigger: 'change'} {type: 'string', max: 100, message: '标准年份不能超过100个字符', trigger: 'change'}
], ],
standName: [ standName: [
{required: true, message: '中文名称不能为空', trigger: 'change'}, {required: true, message: '中文名称不能为空', trigger: 'change'},
@@ -1582,7 +1583,7 @@ export default {
], ],
standEnName: [ standEnName: [
{required: true, message: '英文名称不能为空', trigger: 'change'}, {required: true, message: '英文名称不能为空', trigger: 'change'},
{type: 'string', max: 1000, message: '英文名称不能超过1000个字符', trigger: 'change'} {type: 'string', max: 500, message: '英文名称不能超过500个字符', trigger: 'change'}
// {validator: this.verify.valiateEnName, trigger: 'blur'} // {validator: this.verify.valiateEnName, trigger: 'blur'}
], ],
// standState: [ // standState: [
@@ -2004,7 +2005,7 @@ export default {
item.collectBtn = !item.collectBtn item.collectBtn = !item.collectBtn
item.cancelCollectBtn = !item.cancelCollectBtn item.cancelCollectBtn = !item.cancelCollectBtn
item.collectId = res.data.id item.collectId = res.data.id
this.$message.success(res.message) // this.$message.success(res.message)
} else { } else {
this.$message.warning(res.message) this.$message.warning(res.message)
} }
@@ -2073,7 +2074,7 @@ export default {
Object.keys(item.attrInfoMap || {}).forEach((key) => { Object.keys(item.attrInfoMap || {}).forEach((key) => {
item.attrInfoMap[key] = item.attrInfoMap[key] === null ? '' : item.attrInfoMap[key] item.attrInfoMap[key] = item.attrInfoMap[key] === null ? '' : item.attrInfoMap[key]
if (item.attrInfoMap[key] || item.attrInfoMap[key] === '') { if (item.attrInfoMap[key] || item.attrInfoMap[key] === '') {
this.$set(this.sarStandardsInfoEO, key, item.attrInfoMap[key]) this.$set(this.sarStandardsInfoEO, key, item.attrInfoMap[key] === '[]' ? '' : item.attrInfoMap[key])
} }
}) })
const dynamicFormField = this.sarStandardsInfoEO const dynamicFormField = this.sarStandardsInfoEO
@@ -2755,7 +2756,7 @@ export default {
const value = nowstandinfo[item.attrField] const value = nowstandinfo[item.attrField]
// //
if (item.attrType === 'DATE_PICKER' && value) { if (item.attrType === 'DATE_PICKER' && value) {
nowstandinfo[item.attrField] = this.$dateFormat(this.sarStandardsInfoEO[item.attrField], 'yyyy-MM-dd hh:mm:ss') nowstandinfo[item.attrField] = this.sarStandardsInfoEO[item.attrField]
} }
// //
if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') { if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') {
@@ -1278,13 +1278,14 @@ export default {
}, res => { }, res => {
if (this.localProTableSearch.prodectCode === 'Maintenance') { if (this.localProTableSearch.prodectCode === 'Maintenance') {
this.localProTableList = res.data.Maintenance.records this.localProTableList = res.data.Maintenance.records
this.total = res.data.Maintenance.total
} }
else if (this.localProTableSearch.prodectCode === 'notMaintenance') else if (this.localProTableSearch.prodectCode === 'notMaintenance')
{ {
this.localProTableList = res.data.notMaintenance.records this.localProTableList = res.data.notMaintenance.records
this.total = res.data.notMaintenance.total
} }
this.total = res.data.count
// this.localProTableList.map((item) => { // this.localProTableList.map((item) => {
// this.xmztOptions.map((opr) => { // this.xmztOptions.map((opr) => {
// if (item.productBrand === opr.value) { // if (item.productBrand === opr.value) {
@@ -78,47 +78,56 @@
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="SSRQ" prop="ssrq"
width="190px" width="190px"
sortable sortable
label="标准实施日期"> label="标准实施日期">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.ssrq ? $moment(scope.row.ssrq).format('YYYY-MM-DD') : '-' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="XCXSSRQGJ" prop="xcxssrqgj"
width="190px" width="190px"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span style="margin-left: 10px">{{scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format('YYYY-MM-DD') : '-' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="ZCCSSRQGJ" prop="zccssrqgj"
sortable sortable
width="190px" width="190px"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format('YYYY-MM-DD') : '-' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="ZRBM" prop="zrbm"
label="责任部门" label="责任部门"
width="180px" width="180px"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="KCCVPPSBM" prop="kccvppsbm"
width="180px" width="180px"
label="卡车VPPS编码"> label="卡车VPPS编码">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="KCCVPPSCN" prop="cycvppscn"
width="180px" width="180px"
label="卡车vpps中文名称"> label="卡车vpps中文名称">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="CYCVPPSBM" prop="cycvppsbm"
width="180px" width="180px"
label="乘车VPPS编码"> label="乘车VPPS编码">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="CYCVPPSBM" prop="cycvppscn"
width="180px" width="180px"
label="乘车vpps中文名称"> label="乘车vpps中文名称">
</el-table-column> </el-table-column>
@@ -451,10 +460,8 @@ export default {
_this: this _this: this
}, res => { }, res => {
if (res.ok) { if (res.ok) {
this.$message.success(res.message) // this.$message.success(res.message)
this.getDataList() this.getDataList()
}else {
this.$message.warning(res.message)
} }
}, e => { }, e => {
}); });
@@ -502,6 +509,17 @@ export default {
this.$message.warning("请选择一条数据进行带入"); this.$message.warning("请选择一条数据进行带入");
} }
}, },
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.id,
pageType: 'INLAND_STAND'
}
})
window.open(routeUrl.href, '_blank')
},
back () { back () {
this.$router.push(this.$store.state.detailMap) this.$router.push(this.$store.state.detailMap)
this.$store.commit('setDetailMap', '') this.$store.commit('setDetailMap', '')
@@ -567,14 +585,23 @@ export default {
ids+=',\''+this.selectList[i].standId+'\'' ids+=',\''+this.selectList[i].standId+'\''
} }
const exportURL = interfaceUrl + 'sarStandProjectLibrary/exportStandAttrInfoExcel?' + const exportURL = interfaceUrl + 'sarStandProjectLibrary/exportStandAttrInfoExcel?' +
'exportType' + this.saveExportType + '&ids=' + ids + '&exportName=' + this.exportName 'exportType' + this.saveExportType + '&ids=' + ids + '&exportName=' + this.exportName + '&id=' + this.localProEO.id
console.log(exportURL)
window.open(exportURL) window.open(exportURL)
this.$message.success('导出信息成功') this.$message.success('导出信息成功')
} }
} else if (this.saveExportType === 'all') { } else if (this.saveExportType === 'all') {
console.log(this.selectList); console.log(this.selectList);
let ids = ''
if (this.selectList.length === 0) {
ids='\''+this.dataList[0].standId+'\''
for(let i=1;i<this.dataList.length;i++){
ids+=',\''+this.dataList[i].standId+'\''
}
}
const exportURL = interfaceUrl + 'sarStandProjectLibrary/exportStandAttrInfoExcel?' + const exportURL = interfaceUrl + 'sarStandProjectLibrary/exportStandAttrInfoExcel?' +
'exportType' + this.saveExportType + '&ids=' + this.selectList.join(',') + '&exportName=' + this.exportName 'exportType' + this.saveExportType + '&ids=' + ids + '&exportName=' + this.exportName + '&id=' + this.localProEO.id
console.log(exportURL)
window.open(exportURL) window.open(exportURL)
this.$message.success('导出信息成功') this.$message.success('导出信息成功')
} }
@@ -116,7 +116,7 @@
prop="standId" prop="standId"
fixed="left" fixed="left"
width="180" width="180"
label="标准号"> label="标准号">
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <a @click="detailsStandard(scope.row)" class="table-jump">{{ scope.row.standId }}</a>--> <!-- <a @click="detailsStandard(scope.row)" class="table-jump">{{ scope.row.standId }}</a>-->
<!--&lt;!&ndash; {{ scope.row.standId }}&ndash;&gt;--> <!--&lt;!&ndash; {{ scope.row.standId }}&ndash;&gt;-->
@@ -229,7 +229,7 @@
style="width: 100%;" style="width: 100%;"
:model="historySeeForm" :model="historySeeForm"
> >
<el-form-item class="add-form-item" label="标准号:"> <el-form-item class="add-form-item" label="标准号:">
<div class="seeItem">{{historySeeForm.standId}}</div> <div class="seeItem">{{historySeeForm.standId}}</div>
</el-form-item> </el-form-item>
<el-form-item class="add-form-item" label="标准名称:"> <el-form-item class="add-form-item" label="标准名称:">
+2 -2
View File
@@ -7,8 +7,8 @@
// const devIp = '39.98.140.126' // const devIp = '39.98.140.126'
// const devInterfacePORT = '10005' // const devInterfacePORT = '10005'
// const devIp = '192.168.10.248' // const devIp = '192.168.10.248'
const devIp = '10.96.170.173' const devIp = '101.36.227.25'
const devInterfacePORT = '9999' const devInterfacePORT = '8038'
// 云端端口号 // 云端端口号
const DEV_CLOUD_RES_INTERFACE_PORT = '7777' const DEV_CLOUD_RES_INTERFACE_PORT = '7777'
const simpleFilePath = 'att/attFile/upload' const simpleFilePath = 'att/attFile/upload'