标准预警
This commit is contained in:
@@ -318,10 +318,6 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!--<el-form-item label="发布日期" prop="issueTime" label-width="150px" class="add-form-item">-->
|
||||
<!--<el-datePicker v-model="sarStandardsInfoEO.issueTime"-->
|
||||
<!-- :editable="false"-->
|
||||
<!-- placeholder="请选择发布日期"></el-datePicker>-->
|
||||
<custom-date-pick-with-text2
|
||||
:config="{
|
||||
attrName: '发布日期',
|
||||
@@ -948,6 +944,7 @@ import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
|
||||
import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
|
||||
import Bus from '@/common/eventHub'
|
||||
import CustomDatePickWithText2 from '@/components/CustomFormComponents/DatePickerWithText2'
|
||||
import { interfaceUrl } from '@/sysConfig'
|
||||
|
||||
export default {
|
||||
name: 'domesticStandardsAndRegulations',
|
||||
@@ -2094,14 +2091,18 @@ export default {
|
||||
exportTestItem () {
|
||||
if (this.saveExportType === 'apart') {
|
||||
if (this.selectedList != null && this.selectedList !== '') {
|
||||
const exportURL = '/api/lawss/sarStandardsInfo/exportStandardsInfoExcel?exportType=' + this.saveExportType + '&exportContent=' + this.selectedList.join(',') + '&exportName=' + this.exportName + '&standType=' + this.standType
|
||||
const exportURL = interfaceUrl + 'sarStandardsInfo/sar-standards-info/exportStandardsInfoExcel?' +
|
||||
'exportType' + this.saveExportType + '&exportContent=' + this.selectedList.join(',') + '&exportName=' + this.exportName + '&standType=' + this.standType
|
||||
window.open(exportURL)
|
||||
this.$message.success('导出信息成功')
|
||||
}
|
||||
} else if (this.saveExportType === 'all') {
|
||||
console.log('批量导出')
|
||||
let exportEOStr = JSON.stringify(this.SarExportSearchEo)
|
||||
console.log(exportEOStr)
|
||||
exportEOStr = exportEOStr.replace(/""/g, null)
|
||||
window.open('/api/lawss/sarStandardsInfo/exportStandardsInfoExcel?exportType=' + this.saveExportType + '&exportContent=' + exportEOStr + '&exportName=' + this.exportName + '&standType=' + this.standType)
|
||||
window.open(interfaceUrl + 'sarStandardsInfo/sar-standards-info/exportStandardsInfoExcel?' +
|
||||
'exportType' + this.saveExportType + '&exportContent=' + exportEOStr + '&exportName=' + this.exportName + '&standType=' + this.standType)
|
||||
this.$message.success('导出信息成功')
|
||||
}
|
||||
this.exportModelFlag = false
|
||||
@@ -2270,7 +2271,7 @@ export default {
|
||||
roundButton: false,
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$http.post('lawss/sarStandardsInfo/deleteSarStandards', {ids: this.selectedList.join(',')}, {
|
||||
this.$http.post('sarStandardsInfo/sar-standards-info/deleteSarStandards', {ids: this.selectedList.join(',')}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
@@ -2289,7 +2290,7 @@ export default {
|
||||
},
|
||||
// 模板下载
|
||||
uploadImportModal (flag) {
|
||||
window.open('/api/lawss/sarStandardsInfo/exportTemplate?standType=INLAND')
|
||||
window.open('/api/sarStandardsInfo/sar-standards-info/exportTemplate')
|
||||
// if (flag === 1) {
|
||||
// } else {
|
||||
// window.open('/api/lawss/sarStandardsInfo/exportTemplate?fileName=标准条目导入模板.xlsx')
|
||||
@@ -2336,7 +2337,7 @@ export default {
|
||||
validateStandNumber (standinfo) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let obj = JSON.parse(JSON.stringify(standinfo))
|
||||
this.$http.post('sarStandardsInfo/sar-standards-info/updateSarStandardsInfo', obj, {
|
||||
this.$http.post('sarStandardsInfo/sar-standards-info/validateStandNumber', obj, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
@@ -2366,9 +2367,6 @@ export default {
|
||||
if (flag) {
|
||||
// 时间格式修改
|
||||
let nowstandinfo = JSON.parse(JSON.stringify(this.sarStandardsInfoEO))
|
||||
// if (nowstandinfo.issueTime != null && nowstandinfo.issueTime !== '') {
|
||||
// nowstandinfo.issueTime = this.$moment(this.sarStandardsInfoEO.issueTime).format('YYYY-MM-DD')
|
||||
// }
|
||||
if (nowstandinfo.putTime != null && nowstandinfo.putTime !== '') {
|
||||
nowstandinfo.putTime = this.$dateFormat(this.sarStandardsInfoEO.putTime, 'yyyy-MM-dd hh:mm:ss')
|
||||
}
|
||||
@@ -2398,13 +2396,6 @@ export default {
|
||||
sarStandAttrObj[item.attrField] = nowstandinfo[item.attrField]
|
||||
})
|
||||
nowstandinfo['sarStandAttrEOStr'] = JSON.stringify(sarStandAttrObj).replace(/"/g, "'")
|
||||
// 判断三个实施日期不能全部未N/A和TBD
|
||||
// if ((nowstandinfo.EOPSSRQ === 'N/A' || nowstandinfo.EOPSSRQ === 'TBD' || nowstandinfo.EOPSSRQ === '已实施') &&
|
||||
// (nowstandinfo.XCXSSRQ === 'N/A' || nowstandinfo.XCXSSRQ === 'TBD' || nowstandinfo.XCXSSRQ === '已实施') &&
|
||||
// (nowstandinfo.ZCCSSRQ === 'N/A' || nowstandinfo.ZCCSSRQ === 'TBD' || nowstandinfo.ZCCSSRQ === '已实施')) {
|
||||
// this.isSubmit = false
|
||||
// return this.$message.warning('实施日期必须有一项为日期格式')
|
||||
// }
|
||||
this.$http.postData(this.addOrUPdateFlag === 1 ? 'lawss/sarStandardsInfo/addarStandardsInfo' : 'lawss/sarStandardsInfo/updateSarStandardsInfo', nowstandinfo, {
|
||||
_this: this
|
||||
}, res => {
|
||||
@@ -2479,7 +2470,6 @@ export default {
|
||||
formData.standType = 'INLAND'
|
||||
this.SarExportSearchEo = formData
|
||||
this.loading = true
|
||||
console.log(2496)
|
||||
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', formData, {
|
||||
_this: this, loading: 'loading'
|
||||
}, res => {
|
||||
|
||||
Reference in New Issue
Block a user