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

This commit is contained in:
zhaokaiyao@91isoft.com
2021-08-10 23:22:50 +08:00
36 changed files with 901 additions and 515 deletions
+2 -2
View File
@@ -135,11 +135,11 @@ export default {
// // // title: '本地产品/项目库', // // // title: '本地产品/项目库',
// // // path: '/localProductsOrProjectLibrary' // // // path: '/localProductsOrProjectLibrary'
// // // }, // // // },
{ /*{
title: '企业标准库', title: '企业标准库',
path: '/enterpriseStandardDatabase', path: '/enterpriseStandardDatabase',
menuId: '01ed8f752748227777b3572d56ee9ab5' menuId: '01ed8f752748227777b3572d56ee9ab5'
}, },*/
// { // {
// title: '企标制修订计划', // title: '企标制修订计划',
// path: '/enterBSysRevPlanManaLib', // path: '/enterBSysRevPlanManaLib',
@@ -135,6 +135,7 @@
</el-table> </el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-save
show-submit show-submit
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="saveLoading" :saveLoading="saveLoading"
@@ -155,7 +156,7 @@
import ProcessHeader from '../../components/ProcessHeader' import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand} from 'api/process' import {inboundLiaisonDetail,processCreateStand,saveTaskForPub} from 'api/process'
export default { export default {
name: "bzdyStep2", name: "bzdyStep2",
@@ -229,7 +230,21 @@
handleTabs(name) { handleTabs(name) {
this.active = name this.active = name
}, },
handleSave() {}, handleSave() {
this.saveLoading = true
let _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
form: this.form,
commentText: this.commentText,
}))
saveTaskForPub(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
}).catch(e => {
this.saveLoading = false
})
},
handleSubmit() { handleSubmit() {
this.$refs['qbkwForm'].validate((valid) => { this.$refs['qbkwForm'].validate((valid) => {
if (valid) { if (valid) {
@@ -261,11 +276,13 @@
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
let data = JSON.parse(res.mesg) let data = JSON.parse(res.mesg)
this.form.title = data.title this.form.title = data.title || data.form.title
this.form.date = data.date this.form.date = data.date || data.form.date
this.json = data this.json = data || data.form
this.form.model = data.model this.form.model = data.model || data.form.model
this.form.modelName = data.modelName this.form.modelName = data.modelName || data.form.modelName
this.form.responUserList = data.form.responUserList
this.form.responUserListName = data.form.responUserListName
}).catch(e => { }).catch(e => {
}) })
}) })
@@ -147,6 +147,7 @@
</el-table> </el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-save
show-submit show-submit
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="saveLoading" :saveLoading="saveLoading"
@@ -180,7 +181,7 @@
import ProcessHeader from '../../components/ProcessHeader' import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand} from 'api/process' import {inboundLiaisonDetail,processCreateStand,saveTaskForPub} from 'api/process'
export default { export default {
name: "bzdyStep3", name: "bzdyStep3",
@@ -273,7 +274,21 @@
handleTabs(name) { handleTabs(name) {
this.active = name this.active = name
}, },
handleSave() {}, handleSave() {
this.saveLoading = true
let _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
form: this.form,
commentText: this.commentText,
}))
saveTaskForPub(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
}).catch(e => {
this.saveLoading = false
})
},
handleSubmit() { handleSubmit() {
this.$refs['qbkwForm'].validate((valid) => { this.$refs['qbkwForm'].validate((valid) => {
if (valid) { if (valid) {
@@ -305,13 +320,15 @@
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
let data = JSON.parse(res.mesg) let data = JSON.parse(res.mesg)
this.form.title = data.title this.form.title = data.title || data.form.title
this.form.date = data.date this.form.date = data.date || data.form.date
this.json = data this.json = data || data.form
this.form.model = data.model this.form.model = data.model || data.form.model
this.form.modelName = data.modelName this.form.modelName = data.modelName || data.form.modelName
this.form.fileName = data.fileName || '' this.form.responUserList = data.form.responUserList
this.form.fileId = data.fileId || '' this.form.responUserListName = data.form.responUserListName
this.form.fileName = data.form.fileName || data.fileName || ''
this.form.fileId = data.form.fileId || data.fileId || ''
}).catch(e => { }).catch(e => {
}) })
}) })
@@ -252,13 +252,14 @@
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
let data = JSON.parse(res.mesg) let data = JSON.parse(res.mesg)
this.form.title = data.title console.log(data);
this.form.date = data.date this.form.title = data.title || data.form.title
this.json = data this.form.date = data.date || data.form.date
this.form.file = data.fileId this.json = data || data.form
this.form.fileName = data.fileName this.form.file = data.fileId || data.form.fileId
this.form.model = data.model this.form.fileName = data.fileName || data.form.fileName
this.form.modelName = data.modelName this.form.model = data.model || data.form.model
this.form.modelName = data.modelName || data.form.modelName
}).catch(e => { }).catch(e => {
}) })
}) })
@@ -174,6 +174,7 @@
</el-table> </el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-save
show-submit show-submit
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="saveLoading" :saveLoading="saveLoading"
@@ -297,7 +298,21 @@
handleTabs(name) { handleTabs(name) {
this.active = name this.active = name
}, },
handleSave() {}, handleSave() {
this.saveLoading = true
let _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
form: this.form,
commentText: this.commentText,
}))
saveTaskForPub(_formData).then(res => {
this.saveLoading = false
this.$message.success('保存成功')
}).catch(e => {
this.saveLoading = false
})
},
handleSubmit() { handleSubmit() {
this.$refs['qbkwForm'].validate((valid) => { this.$refs['qbkwForm'].validate((valid) => {
if (valid) { if (valid) {
@@ -327,12 +342,12 @@
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
let data = JSON.parse(res.mesg) let data = JSON.parse(res.mesg)
this.form.title = data.title this.form.title = data.title || data.form.title
this.form.date = data.date this.form.date = data.date || data.form.date
this.json = data this.json = data || data.form
this.tableData = data.responUserList this.tableData = data.responUserList || data.form.responUserList
this.form.hzfileId = data.hzfileId this.form.hzfileId = data.hzfileId || data.form.hzfileId
this.form.hzfileName = data.hzfileName this.form.hzfileName = data.hzfileName || data.form.hzfileName
}).catch(e => { }).catch(e => {
}) })
}) })
@@ -341,12 +341,12 @@
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
let data = JSON.parse(res.mesg) let data = JSON.parse(res.mesg)
this.form.title = data.title this.form.title = data.title || data.form.title
this.form.date = data.date this.form.date = data.date || data.form.date
this.json = data this.json = data || data.form
this.tableData = data.responUserList this.tableData = data.responUserList || data.form.responUserList
this.form.hzfileName = data.hzfileName this.form.hzfileId = data.hzfileId || data.form.hzfileId
this.form.hzfileId = data.hzfileId this.form.hzfileName = data.hzfileName || data.form.hzfileName
}).catch(e => { }).catch(e => {
}) })
}) })
@@ -341,12 +341,12 @@
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
let data = JSON.parse(res.mesg) let data = JSON.parse(res.mesg)
this.form.title = data.title this.form.title = data.title || data.form.title
this.form.date = data.date this.form.date = data.date || data.form.date
this.json = data this.json = data || data.form
this.tableData = data.responUserList this.tableData = data.responUserList || data.form.responUserList
this.form.hzfileName = data.hzfileName this.form.hzfileId = data.hzfileId || data.form.hzfileId
this.form.hzfileId = data.hzfileId this.form.hzfileName = data.hzfileName || data.form.hzfileName
}).catch(e => { }).catch(e => {
}) })
}) })
@@ -341,12 +341,12 @@
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
let data = JSON.parse(res.mesg) let data = JSON.parse(res.mesg)
this.form.title = data.title this.form.title = data.title || data.form.title
this.form.date = data.date this.form.date = data.date || data.form.date
this.json = data this.json = data || data.form
this.tableData = data.responUserList this.tableData = data.responUserList || data.form.responUserList
this.form.hzfileName = data.hzfileName this.form.hzfileId = data.hzfileId || data.form.hzfileId
this.form.hzfileId = data.hzfileId this.form.hzfileName = data.hzfileName || data.form.hzfileName
}).catch(e => { }).catch(e => {
}) })
}) })
@@ -341,12 +341,12 @@
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
let data = JSON.parse(res.mesg) let data = JSON.parse(res.mesg)
this.form.title = data.title this.form.title = data.title || data.form.title
this.form.date = data.date this.form.date = data.date || data.form.date
this.json = data this.json = data || data.form
this.tableData = data.responUserList this.tableData = data.responUserList || data.form.responUserList
this.form.hzfileName = data.hzfileName this.form.hzfileId = data.hzfileId || data.form.hzfileId
this.form.hzfileId = data.hzfileId this.form.hzfileName = data.hzfileName || data.form.hzfileName
}).catch(e => { }).catch(e => {
}) })
}) })
@@ -358,6 +358,15 @@
@checkedRole="saveUserInfo" @checkedRole="saveUserInfo"
:nodeList="nodeList" :nodeList="nodeList"
></Role-tree> ></Role-tree>
<el-dialog
title="查看条款内容"
:visible.sync="itermsConditionsFlag"
size="800px">
<div style="height: 500px;overflow: auto;" v-html="itermsConditionsTitle"></div>
<div slot="footer">
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="itermsConditionsClose">关闭</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
@@ -218,6 +218,15 @@
:nodeList="nodeList2" :nodeList="nodeList2"
></Role-tree> ></Role-tree>
<loading :loading="loading">加载中...</loading> <loading :loading="loading">加载中...</loading>
<el-dialog
title="查看条款内容"
:visible.sync="itermsConditionsFlag"
size="800px">
<div style="height: 500px;overflow: auto;" v-html="itermsConditionsTitle"></div>
<div slot="footer">
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="itermsConditionsClose">关闭</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
@@ -321,7 +330,6 @@
this.active = name this.active = name
}, },
handleSave() { handleSave() {
this.saveLoading = true this.saveLoading = true
let _formData = new FormData() let _formData = new FormData()
_formData.append('taskIds', this.taskIds) _formData.append('taskIds', this.taskIds)
@@ -360,6 +360,15 @@
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="cancleUserInfo">取消</el-button> <el-button class="common-button-default" size="mini" icon="el-icon-close" @click="cancleUserInfo">取消</el-button>
</div> </div>
</el-drawer> </el-drawer>
<el-dialog
title="查看条款内容"
:visible.sync="itermsConditionsFlag"
size="800px">
<div style="height: 500px;overflow: auto;" v-html="itermsConditionsTitle"></div>
<div slot="footer">
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="itermsConditionsClose">关闭</el-button>
</div>
</el-dialog>
<loading :loading="loading">加载中...</loading> <loading :loading="loading">加载中...</loading>
</div> </div>
</template> </template>
@@ -265,6 +265,15 @@
submitBTNText="同意" submitBTNText="同意"
> >
</ProcessFooter> </ProcessFooter>
<el-dialog
title="查看条款内容"
:visible.sync="itermsConditionsFlag"
size="800px">
<div style="height: 500px;overflow: auto;" v-html="itermsConditionsTitle"></div>
<div slot="footer">
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="itermsConditionsClose">关闭</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
@@ -264,6 +264,15 @@
submitBTNText="同意" submitBTNText="同意"
> >
</ProcessFooter> </ProcessFooter>
<el-dialog
title="查看条款内容"
:visible.sync="itermsConditionsFlag"
size="800px">
<div style="height: 500px;overflow: auto;" v-html="itermsConditionsTitle"></div>
<div slot="footer">
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="itermsConditionsClose">关闭</el-button>
</div>
</el-dialog>
<loading :loading="loading">加载中...</loading> <loading :loading="loading">加载中...</loading>
</div> </div>
</template> </template>
@@ -263,6 +263,15 @@
submitBTNText="同意" submitBTNText="同意"
> >
</ProcessFooter> </ProcessFooter>
<el-dialog
title="查看条款内容"
:visible.sync="itermsConditionsFlag"
size="800px">
<div style="height: 500px;overflow: auto;" v-html="itermsConditionsTitle"></div>
<div slot="footer">
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="itermsConditionsClose">关闭</el-button>
</div>
</el-dialog>
<loading :loading="loading">加载中...</loading> <loading :loading="loading">加载中...</loading>
</div> </div>
</template> </template>
@@ -678,7 +678,6 @@ export default {
taskIds: this.taskIds, taskIds: this.taskIds,
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
console.log(res.mesg)
if (res) { if (res) {
const processForm = JSON.parse(res.mesg) const processForm = JSON.parse(res.mesg)
this.getFormFieldList(processForm) this.getFormFieldList(processForm)
@@ -718,22 +717,19 @@ export default {
this.saveLoading = true; this.saveLoading = true;
let _formData = new FormData(); let _formData = new FormData();
_formData.append("id", this.bpnId || ""); _formData.append("id", this.bpnId || "");
_formData.append("createUser", this.$store.getters.userInfo.userId);
_formData.append("createUserName", this.$store.getters.userInfo.userName);
_formData.append("prcType", "4"); _formData.append("prcType", "4");
_formData.append('taskIds', this.taskIds) _formData.append('taskIds', this.taskIds)
_formData.append("json", JSON.stringify({ _formData.append("json", JSON.stringify({
form: this.listForm, form: this.listForm,
commentText: this.commentText commentText: this.commentText
})); }));
saveTaskForPub(_formData).then(res => {
// saveTaskForPub(_formData).then(res => { this.saveLoading = false;
// this.saveLoading = false; this.$message.success("保存成功");
// this.$message.success("保存成功"); this.bpnId = res.result;
// this.bpnId = res.result; }).catch(e => {
// }).catch(e => { this.saveLoading = false;
// this.saveLoading = false; });
// });
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
@@ -2346,6 +2346,7 @@
this.qcdwOption = res.data.QCDW // 体系类别 this.qcdwOption = res.data.QCDW // 体系类别
this.gkglbmOptions = res.data.GKGLBM // 归口管理部门 this.gkglbmOptions = res.data.GKGLBM // 归口管理部门
this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度 this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度
this.txlbOptions = res.data.TXLBCLASS // 体系类别
this.setMap(this.standStateOptions) this.setMap(this.standStateOptions)
}) })
this.busVsFunc() this.busVsFunc()
@@ -282,6 +282,7 @@ export default {
endTime: '', // 结束日期 endTime: '', // 结束日期
cname: '', // 名称 cname: '', // 名称
standType: '', standType: '',
standId: '',
}, },
formRules: { formRules: {
cid: [ cid: [
@@ -299,6 +300,7 @@ export default {
standSort: '', standSort: '',
standNumber: '', standNumber: '',
standType: '', standType: '',
standId: '',
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent pageSize: this.$store.getters.userInfo.configContent
}, },
@@ -456,6 +458,7 @@ export default {
this.form.cid = bringData[0].standSortShow + '-' + bringData[0].standNumber this.form.cid = bringData[0].standSortShow + '-' + bringData[0].standNumber
} }
this.form.standType = bringData[0].standType this.form.standType = bringData[0].standType
this.form.standId = bringData[0].id
this.form.cname = bringData[0].standName; this.form.cname = bringData[0].standName;
this.listModel = false; this.listModel = false;
} else if (this.selectedList.length > 1) { } else if (this.selectedList.length > 1) {
@@ -345,10 +345,21 @@ export default {
addList() { addList() {
dicTypeData().then(res => { dicTypeData().then(res => {
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
})
standUnqualified(this.queryUnqualidiedData).then(res => { standUnqualified(this.queryUnqualidiedData).then(res => {
this.unqualidiedData = res.data.records this.unqualidiedData = res.data.records
this.unqualidiedData.forEach(item => { this.unqualidiedData.forEach(item => {
// 责任部门转换
if (item.responsibleUnit !== null || item.responsibleUnit !== "") {
let k = (item.responsibleUnit || "").split(',')
for (let i in this.zrbmOptions) {
for (let m = 0; m< k.length; m++) {
if (this.zrbmOptions[i].value === k[m]) {
k[m] = this.zrbmOptions[i].label
}
item.responsibleUnit = k.join(',')
}
}
}
this.$set(item,'engineer','') this.$set(item,'engineer','')
this.$set(item,'engineerId','') this.$set(item,'engineerId','')
this.$set(item,'dutyPeopleInfo','') this.$set(item,'dutyPeopleInfo','')
@@ -361,6 +372,7 @@ export default {
}) })
this.total = res.data.total this.total = res.data.total
}) })
})
this.standModel = true; this.standModel = true;
}, },
// 批量删除按钮table,选择数据 // 批量删除按钮table,选择数据
@@ -382,15 +382,13 @@ export default {
}, },
// 移除上传的文件 // 移除上传的文件
handleBeforeRemove(file, fileList) { handleBeforeRemove(file, fileList) {
this.fileListData.fileText = fileList this.fileData = fileList
this.fileTextList = fileList this.fileTextList.forEach((item, index) => {
/* this.newDataList.forEach((item, index) => { if (item.name === file.name || item.id === file.id ) {
if (file.name === item.name || file.id === item.id) { console.log()
this.newDataList.splice(index, 1) this.fileTextList.splice(index,1)
console.log(this.dataList)
} }
})*/ })
}, },
handleONRemove() {}, handleONRemove() {},
/************ ********* *****************/ /************ ********* *****************/
@@ -360,8 +360,8 @@ export default {
this.backLoading = true this.backLoading = true
if (this.commentText) { if (this.commentText) {
var json = { var json = {
responUserInfo: { responUserList: {
info: this.dataList standardInfoList: this.dataList
}, },
actionFlag: 1, actionFlag: 1,
commentText: this.commentText commentText: this.commentText
@@ -409,6 +409,7 @@ export default {
// 查询相关参数 // 查询相关参数
searching: false, searching: false,
commentText:'', commentText:'',
fileType: 'FBGBJBD',
standardSearch: { standardSearch: {
standType: "", standType: "",
standName: "" standName: ""
@@ -847,6 +848,7 @@ export default {
this.$http.post("SarStandItems/sar-stand-items/findStand", { this.$http.post("SarStandItems/sar-stand-items/findStand", {
page: this.page, page: this.page,
size: this.pageSize, size: this.pageSize,
fileType: this.fileType,
...this.standardSearch ...this.standardSearch
}, { }, {
_this: this _this: this
@@ -396,6 +396,7 @@ export default {
drawerTitle: "", //drawer标题 drawerTitle: "", //drawer标题
// 查询相关参数 // 查询相关参数
searching: false, searching: false,
fileType: 'FBGBJBD',
standardSearch: { standardSearch: {
standType: "", standType: "",
standName: "" standName: ""
@@ -822,6 +823,7 @@ export default {
this.$http.post("SarStandItems/sar-stand-items/findStand", { this.$http.post("SarStandItems/sar-stand-items/findStand", {
page: this.page, page: this.page,
size: this.pageSize, size: this.pageSize,
fileType: this.fileType,
...this.standardSearch ...this.standardSearch
}, { }, {
_this: this _this: this
@@ -222,7 +222,7 @@
import ProcessHeader from "../../components/ProcessHeader"; import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter"; import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle"; import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, queryDetail } from "api/process"; import { inboundLiaisonDetail, saveTaskForPub } from "api/process";
export default { export default {
name: "xmpgStep3", name: "xmpgStep3",
@@ -348,7 +348,7 @@ export default {
taskIds: this.taskIds, taskIds: this.taskIds,
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
console.log(res.mesg) console.log(res.mesg);
if (res) { if (res) {
const processForm = JSON.parse(res.mesg); const processForm = JSON.parse(res.mesg);
this.getFormFieldList(processForm); this.getFormFieldList(processForm);
@@ -362,6 +362,7 @@ export default {
*/ */
getFormFieldList(item) { getFormFieldList(item) {
this.listForm = JSON.parse(JSON.stringify(item)); this.listForm = JSON.parse(JSON.stringify(item));
if(item.form === undefined){
this.listForm.prcNum = this.prcNum; this.listForm.prcNum = this.prcNum;
this.listForm.prcName = this.prcName; this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id; this.listForm["id"] = item.id;
@@ -369,6 +370,13 @@ export default {
this.listForm.breakdownList = []; this.listForm.breakdownList = [];
for (let i = 0; i < item.pepdtos.length; i++) { for (let i = 0; i < item.pepdtos.length; i++) {
for (let j = 0; j < item.pepdtos[i].breakdownList.length; j++) { for (let j = 0; j < item.pepdtos[i].breakdownList.length; j++) {
console.log(item.pepdtos[i].xCXSSRQ === null);
if(item.pepdtos[i].xCXSSRQ === null){
item.pepdtos[i].xCXSSRQ = ''
}
if(item.pepdtos[i].zCCSSRQ === null){
item.pepdtos[i].zCCSSRQ = ''
}
this.listForm.breakdownList.push({ this.listForm.breakdownList.push({
itemsName: item.pepdtos[i].breakdownList[j].itemsName, itemsName: item.pepdtos[i].breakdownList[j].itemsName,
itemNum: item.pepdtos[i].breakdownList[j].itemsNum, itemNum: item.pepdtos[i].breakdownList[j].itemsNum,
@@ -386,12 +394,16 @@ export default {
qualityEngineerName: item.pepdtos[i].qualityEngineerName, qualityEngineerName: item.pepdtos[i].qualityEngineerName,
standNumber: item.pepdtos[i].standNumber, standNumber: item.pepdtos[i].standNumber,
standName: item.pepdtos[i].standName, standName: item.pepdtos[i].standName,
xCXSSRQ: item.pepdtos[i].xCXSSRQ, xCXSSRQ : item.pepdtos[i].XCXSSRQ,
zCCSSRQ: item.pepdtos[i].zCCSSRQ zCCSSRQ : item.pepdtos[i].ZCCSSRQ,
}); });
} }
} }
console.log(this.listForm.breakdownList); } else {
this.listForm = item.form
this.listForm.breakdownList = item.form.breakdownList
}
}, },
checkedRole (data) { checkedRole (data) {
if (this.type === 1) { if (this.type === 1) {
@@ -441,6 +453,22 @@ export default {
//保存事件 //保存事件
handleSave() { handleSave() {
this.saveLoading = true;
let _formData = new FormData();
_formData.append("id", this.bpnId || "");
_formData.append("prcType", "5");
_formData.append('taskIds', this.taskIds)
_formData.append("json", JSON.stringify({
form: this.listForm,
commentText: this.commentText
}));
saveTaskForPub(_formData).then(res => {
this.saveLoading = false;
this.$message.success("保存成功");
this.bpnId = res.result;
}).catch(e => {
this.saveLoading = false;
});
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
@@ -347,7 +347,8 @@
import ProcessHeader from "../../components/ProcessHeader"; import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter"; import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle"; import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, queryDetail } from "api/process"; import Moment from 'moment';
import { inboundLiaisonDetail, saveTaskForPub } from "api/process";
export default { export default {
name: "xmpgStep4", name: "xmpgStep4",
@@ -434,12 +435,24 @@ export default {
handleTabs(name) { handleTabs(name) {
this.active = name; this.active = name;
}, },
//将时间戳转换为日期格式
getLocalTime(item) {
return new Date(parseInt(item) * 1000).toLocaleDateString().replace(/:\d{1,2}$/, " ");
},
// 时间戳(毫秒)转化为标准时间格式
getFullTime(item) {
const stamp = new Date(item);
const time = Moment(stamp).format('YYYY-MM-DD HH:mm:ss');
return item = time
},
getData() { getData() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
inboundLiaisonDetail({ inboundLiaisonDetail({
taskIds: this.taskIds, taskIds: this.taskIds,
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
console.log(res.mesg);
if (res) { if (res) {
const processForm = JSON.parse(res.mesg); const processForm = JSON.parse(res.mesg);
this.getFormFieldList(processForm); this.getFormFieldList(processForm);
@@ -454,19 +467,22 @@ export default {
getFormFieldList(item) { getFormFieldList(item) {
this.$nextTick(() => { this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item)); this.listForm = JSON.parse(JSON.stringify(item));
if (item.form === undefined) {
if (item.fenFlag === undefined) { if (item.fenFlag === undefined) {
item.step3DTOS.forEach(item => { item.step3DTOS.forEach(item => {
item.implementerId = this.$store.getters.userInfo.userId item.implementerId = this.$store.getters.userInfo.userId;
item.implementer = this.$store.getters.userInfo.userName item.implementer = this.$store.getters.userInfo.userName;
}) });
this.dataList = item.step3DTOS; this.dataList = item.step3DTOS;
} else { } else {
this.dataList = item.dataList; this.dataList = item.dataList;
this.dataList.forEach(item => { this.dataList.forEach(item => {
item.implementerId = this.$store.getters.userInfo.userId item.implementerId = this.$store.getters.userInfo.userId;
item.implementer = this.$store.getters.userInfo.userName item.implementer = this.$store.getters.userInfo.userName;
}) });
} }
// this.getLocalTime()
this.listForm.prcNum = this.prcNum; this.listForm.prcNum = this.prcNum;
this.listForm.prcName = this.prcName; this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id; this.listForm["id"] = item.id;
@@ -478,12 +494,34 @@ export default {
this.listForm.itemNum = item.step3DTOS[0].itemNum; this.listForm.itemNum = item.step3DTOS[0].itemNum;
this.listForm.responsibleUnit = item.step3DTOS[0].responsibleUnit; this.listForm.responsibleUnit = item.step3DTOS[0].responsibleUnit;
this.listForm.responsibleEngineer = item.step3DTOS[0].responsibleEngineer; this.listForm.responsibleEngineer = item.step3DTOS[0].responsibleEngineer;
} else {
this.listForm = item.form;
this.dataList = item.form.dataList;
}
}); });
}, },
//保存事件 //保存事件
handleSave() { handleSave() {
this.saveLoading = true;
let _formData = new FormData();
this.listForm.dataList = this.dataList;
_formData.append("id", this.bpnId || "");
_formData.append("prcType", "5");
_formData.append("taskIds", this.taskIds);
_formData.append("json", JSON.stringify({
form: this.listForm,
commentText: this.commentText
}));
saveTaskForPub(_formData).then(res => {
this.saveLoading = false;
this.$message.success("保存成功");
this.bpnId = res.result;
}).catch(e => {
this.saveLoading = false;
});
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
@@ -493,7 +531,7 @@ export default {
this.listForm.signFlag = ""; this.listForm.signFlag = "";
this.listForm.dataList = this.dataList; this.listForm.dataList = this.dataList;
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
this.isSubmit = true this.isSubmit = true;
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds, taskIds: this.taskIds,
userId: this.userId, userId: this.userId,
@@ -505,7 +543,7 @@ export default {
this.$message.success(res.message); this.$message.success(res.message);
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false this.isSubmit = false;
}, e => { }, e => {
}); });
@@ -68,8 +68,10 @@
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.standSort }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a> <a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSort }} {{ scope.row.standNumber }}</a> }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSort }}
{{ scope.row.standNumber }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -484,6 +486,7 @@ export default {
this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId }, { this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId }, {
_this: this _this: this
}, res => { }, res => {
console.log(res.data.records);
this.listForm.dataList = res.data.records; this.listForm.dataList = res.data.records;
this.dataList = res.data.records; this.dataList = res.data.records;
this.listForm.dataList.forEach(item => { this.listForm.dataList.forEach(item => {
@@ -517,7 +520,12 @@ export default {
{ {
_this: this _this: this
}, res => { }, res => {
if (!res.data.length) {
this.dataList = []
this.$message.warning("请选择带有分解单的标准");
} else {
this.listForm.breakdownList = res.data; this.listForm.breakdownList = res.data;
}
}); });
}, },
//标准的多选框改变 //标准的多选框改变
@@ -597,13 +605,13 @@ export default {
// 点击查看 // 点击查看
handlePreview(item) { handlePreview(item) {
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails', name: "OtherStandardDetails",
params: { params: {
id: item.standId, id: item.standId,
pageType: 'INLAND_STAND' pageType: "INLAND_STAND"
} }
}) });
window.open(routeUrl.href, '_blank') window.open(routeUrl.href, "_blank");
}, },
choiceZRR(type, title, id) { choiceZRR(type, title, id) {
this.nodeList = []; this.nodeList = [];
@@ -219,7 +219,7 @@
import ProcessHeader from "../../components/ProcessHeader"; import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter"; import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle"; import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, queryDetail } from "api/process"; import { inboundLiaisonDetail, saveTaskForPub } from "api/process";
export default { export default {
name: "xmpg2Step3", name: "xmpg2Step3",
@@ -339,6 +339,7 @@ export default {
getFormFieldList(item) { getFormFieldList(item) {
this.$nextTick(() => { this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item)); this.listForm = JSON.parse(JSON.stringify(item));
if (item.form === undefined) {
this.listForm.prcNum = this.prcNum; this.listForm.prcNum = this.prcNum;
this.listForm.prcName = this.prcName; this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id; this.listForm["id"] = item.id;
@@ -346,11 +347,31 @@ export default {
this.dataList = item.dataList; this.dataList = item.dataList;
this.dataList.distributePerson = item.dataList[0].distributePerson; this.dataList.distributePerson = item.dataList[0].distributePerson;
this.listForm.breakdownList = item.breakdownList; this.listForm.breakdownList = item.breakdownList;
} else {
this.listForm = item.form
this.dataList = item.form.dataList
}
}); });
}, },
//保存事件 //保存事件
handleSave() { handleSave() {
this.saveLoading = true;
let _formData = new FormData();
_formData.append("id", this.bpnId || "");
_formData.append("prcType", "6");
_formData.append("taskIds", this.taskIds);
_formData.append("json", JSON.stringify({
form: this.listForm,
commentText: this.commentText
}));
saveTaskForPub(_formData).then(res => {
this.saveLoading = false;
this.$message.success("保存成功");
this.bpnId = res.result;
}).catch(e => {
this.saveLoading = false;
});
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
@@ -225,7 +225,7 @@
import ProcessHeader from "../../components/ProcessHeader"; import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter"; import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle"; import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, queryDetail } from "api/process"; import { inboundLiaisonDetail, saveTaskForPub } from "api/process";
export default { export default {
name: "xmpg2Step4", name: "xmpg2Step4",
@@ -333,6 +333,7 @@ export default {
taskIds: this.taskIds, taskIds: this.taskIds,
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
console.log(res.mesg);
if (res) { if (res) {
const processForm = JSON.parse(res.mesg); const processForm = JSON.parse(res.mesg);
this.getFormFieldList(processForm); this.getFormFieldList(processForm);
@@ -345,18 +346,38 @@ export default {
getFormFieldList(item) { getFormFieldList(item) {
this.$nextTick(() => { this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item)); this.listForm = JSON.parse(JSON.stringify(item));
if(item.form === undefined){
this.listForm.prcNum = this.prcNum; this.listForm.prcNum = this.prcNum;
this.listForm.prcName = this.prcName; this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id; this.listForm["id"] = item.id;
this.listForm.dataList = item.dataList; this.listForm.dataList = item.dataList;
this.dataList = item.dataList; this.dataList = item.dataList;
// this.dataList.distributePerson = item.dataList[0].distributePerson;
this.listForm.breakdownList = item.breakdownList; this.listForm.breakdownList = item.breakdownList;
} else {
this.listForm = item.form
this.dataList = item.form.dataList
}
}); });
}, },
//保存事件 //保存事件
handleSave() { handleSave() {
this.saveLoading = true;
let _formData = new FormData();
_formData.append("id", this.bpnId || "");
_formData.append("prcType", "6");
_formData.append("taskIds", this.taskIds);
_formData.append("json", JSON.stringify({
form: this.listForm,
commentText: this.commentText
}));
saveTaskForPub(_formData).then(res => {
this.saveLoading = false;
this.$message.success("保存成功");
this.bpnId = res.result;
}).catch(e => {
this.saveLoading = false;
});
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
@@ -208,7 +208,7 @@
import ProcessHeader from "../../components/ProcessHeader"; import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter"; import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle"; import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, queryDetail } from "api/process"; import { inboundLiaisonDetail, saveTaskForPub } from "api/process";
export default { export default {
name: "xmpg2Step5", name: "xmpg2Step5",
@@ -328,6 +328,7 @@ export default {
getFormFieldList(item) { getFormFieldList(item) {
this.$nextTick(() => { this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item)); this.listForm = JSON.parse(JSON.stringify(item));
if(item.form === undefined){
this.listForm.prcNum = this.prcNum; this.listForm.prcNum = this.prcNum;
this.listForm.prcName = this.prcName; this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id; this.listForm["id"] = item.id;
@@ -360,11 +361,31 @@ export default {
} }
}); });
this.listForm.children = children; this.listForm.children = children;
} else {
this.listForm = item.form
this.dataList = item.form.dataList
}
}); });
}, },
//保存事件 //保存事件
handleSave() { handleSave() {
this.saveLoading = true;
let _formData = new FormData();
_formData.append("id", this.bpnId || "");
_formData.append("prcType", "6");
_formData.append("taskIds", this.taskIds);
_formData.append("json", JSON.stringify({
form: this.listForm,
commentText: this.commentText
}));
saveTaskForPub(_formData).then(res => {
this.saveLoading = false;
this.$message.success("保存成功");
this.bpnId = res.result;
}).catch(e => {
this.saveLoading = false;
});
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
@@ -338,7 +338,7 @@
import ProcessHeader from "../../components/ProcessHeader"; import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter"; import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle"; import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, queryDetail } from "api/process"; import { inboundLiaisonDetail, saveTaskForPub } from "api/process";
export default { export default {
name: "xmpg2Step6", name: "xmpg2Step6",
@@ -470,16 +470,37 @@ export default {
getFormFieldList(item) { getFormFieldList(item) {
this.$nextTick(() => { this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item)); this.listForm = JSON.parse(JSON.stringify(item));
if(item.form === undefined){
this.listForm.prcNum = this.prcNum; this.listForm.prcNum = this.prcNum;
this.listForm.prcName = this.prcName; this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id; this.listForm["id"] = item.id;
// this.listForm.dataList = item.dataList; // this.listForm.dataList = item.dataList;
this.dataList = this.listForm.dataList; this.dataList = this.listForm.dataList;
} else {
this.listForm = item.form
this.dataList = item.form.dataList
}
}); });
}, },
//保存事件 //保存事件
handleSave() { handleSave() {
this.saveLoading = true;
let _formData = new FormData();
_formData.append("id", this.bpnId || "");
_formData.append("prcType", "6");
_formData.append("taskIds", this.taskIds);
_formData.append("json", JSON.stringify({
form: this.listForm,
commentText: this.commentText
}));
saveTaskForPub(_formData).then(res => {
this.saveLoading = false;
this.$message.success("保存成功");
this.bpnId = res.result;
}).catch(e => {
this.saveLoading = false;
});
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
@@ -641,7 +641,7 @@
</el-form-item> </el-form-item>
<el-form-item title="“计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。" <el-form-item title="“计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。"
prop="standState" label-width="150px" class="add-form-item"> prop="standState" label-width="150px" class="add-form-item">
<template slot="label">文本状态<i class="el-icon-warning-outline"></i></template> <template slot="label">文本状态</template>
<el-select v-model="sarStandardsInfoEO.textStatus" <el-select v-model="sarStandardsInfoEO.textStatus"
placeholder="请选择文本状态" placeholder="请选择文本状态"
clearable> clearable>
@@ -15,10 +15,14 @@
clearable></el-input> clearable></el-input>
</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 class="common-button-primary" type="primary" size="mini" @click="searchStandAndLaws" v-btn-permission="'314ad07cd81834dfdd3c58476cdcde68'">查询</el-button> <el-button class="common-button-primary" type="primary" size="mini" @click="searchStandAndLaws"
v-btn-permission="'314ad07cd81834dfdd3c58476cdcde68'">查询
</el-button>
</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 class="common-button-default" @click="resetSelect" size="mini" v-btn-permission="'eb402ab8306d437c7d33e9e4b4e4341a'">清空</el-button> <el-button class="common-button-default" @click="resetSelect" size="mini"
v-btn-permission="'eb402ab8306d437c7d33e9e4b4e4341a'">清空
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@@ -125,14 +129,16 @@
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
v-btn-permission="'f0ea68cb2c01cd0063ea639ee9bd4cec'" v-btn-permission="'f0ea68cb2c01cd0063ea639ee9bd4cec'"
@click="querySarProStateZero">查询</el-button> @click="querySarProStateZero">查询
</el-button>
</el-form-item> </el-form-item>
<el-form-item class="search-item btn-box"> <el-form-item class="search-item btn-box">
<el-button <el-button
class="common-button-default" class="common-button-default"
size="mini" size="mini"
v-btn-permission="'aa4d6d0cc28d016f8241159c9e7d4c80'" v-btn-permission="'aa4d6d0cc28d016f8241159c9e7d4c80'"
@click="clearSearchProState">清空</el-button> @click="clearSearchProState">清空
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@@ -204,6 +210,9 @@
align="center" align="center"
prop="researchImplementationTime" prop="researchImplementationTime"
label="实施时间"> label="实施时间">
<template slot-scope="scope">
<span>{{ scope.row.researchImplementationTime ? $moment(scope.row.researchImplementationTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="150px" width="150px"
@@ -232,6 +241,9 @@
align="center" align="center"
prop="researchCompletionTime" prop="researchCompletionTime"
label="完成时间"> label="完成时间">
<template slot-scope="scope">
<span>{{ scope.row.researchCompletionTime ? $moment(scope.row.researchCompletionTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
@@ -244,6 +256,9 @@
align="center" align="center"
prop="productionImplementationTime" prop="productionImplementationTime"
label="实施时间"> label="实施时间">
<template slot-scope="scope">
<span>{{ scope.row.productionImplementationTime ? $moment(scope.row.productionImplementationTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="150px" width="150px"
@@ -266,6 +281,9 @@
align="center" align="center"
prop="productionCompletionTime" prop="productionCompletionTime"
label="完成时间"> label="完成时间">
<template slot-scope="scope">
<span>{{ scope.row.productionCompletionTime ? $moment(scope.row.productionCompletionTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
@@ -283,12 +301,12 @@
<script> <script>
export default { export default {
name: 'standInvolveProjectDetail', name: "standInvolveProjectDetail",
data() { data() {
return { return {
sarProject: { sarProject: {
standName: '', // 标准政策名称 standName: "", // 标准政策名称
standNumber: '', // 标准/政策号 standNumber: "", // 标准/政策号
standApplicationType: 1 standApplicationType: 1
}, // 条件查询 }, // 条件查询
showSarProStateModal: false, // 查看drawer开关 showSarProStateModal: false, // 查看drawer开关
@@ -302,125 +320,126 @@ export default {
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: this.$store.getters.userInfo.configContent,
sarProStateEO: { sarProStateEO: {
productName: '', productName: "",
standId: '' standId: ""
}, },
sarProStateTotal: 0, sarProStateTotal: 0,
sarProStateTotalPage: 1, sarProStateTotalPage: 1,
sarProStatePageSize: this.$store.getters.userInfo.configContent, sarProStatePageSize: this.$store.getters.userInfo.configContent,
sarProStateListDatas: [], // 符合性项目列表数据 sarProStateListDatas: [], // 符合性项目列表数据
sarProStateTableHeight: null, // 符合性项目列表高度 sarProStateTableHeight: null, // 符合性项目列表高度
standId: '' // 符合性项目Id standId: "" // 符合性项目Id
} };
}, },
methods: { methods: {
searchStandAndLaws() { searchStandAndLaws() {
this.page = 1 this.page = 1;
this.queryStandAndLaws() this.queryStandAndLaws();
}, // 查询 }, // 查询
pageChange(page) { pageChange(page) {
this.page = page this.page = page;
this.queryStandAndLaws() this.queryStandAndLaws();
}, },
pageSizeChange(pageSize) { pageSizeChange(pageSize) {
this.pageSize = pageSize this.pageSize = pageSize;
this.$store.getters.userInfo.configContent = pageSize this.$store.getters.userInfo.configContent = pageSize;
this.queryStandAndLaws() this.queryStandAndLaws();
}, },
//点击查看详情 //点击查看详情
handlePreview(item) { handlePreview(item) {
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails', name: "OtherStandardDetails",
params: { params: {
id: item.standId, id: item.standId,
pageType: 'INLAND_STAND' pageType: "INLAND_STAND"
} }
}) });
window.open(routeUrl.href, '_blank') window.open(routeUrl.href, "_blank");
}, },
queryStandAndLaws() { queryStandAndLaws() {
this.sarProject.current = this.page this.sarProject.current = this.page;
this.sarProject.size = this.pageSize this.sarProject.size = this.pageSize;
this.$http.get('sarStandardComplianceAssessResult/standard', this.sarProject, { this.$http.get("sarStandardComplianceAssessResult/standard", this.sarProject, {
_this: this, _this: this,
loading: 'loading', loading: "loading"
}, res => { }, res => {
this.sarProjectListDatas = res.data.records this.sarProjectListDatas = res.data.records;
this.total = res.data.total this.total = res.data.total;
}, e=> {}) }, e => {
});
}, // 分页查询 }, // 分页查询
resetSelect() { resetSelect() {
this.sarProject.country = '' this.sarProject.country = "";
this.sarProject.standCode='' this.sarProject.standCode = "";
this.sarProject.standName = '' this.sarProject.standName = "";
this.sarProject.standNumber='' this.sarProject.standNumber = "";
this.queryStandAndLaws() this.queryStandAndLaws();
}, // 外层清空条件查询 }, // 外层清空条件查询
handleProjectCompliance(row) { handleProjectCompliance(row) {
this.standId = row.standId this.standId = row.standId;
this.querySarProStateZero() this.querySarProStateZero();
}, // 查看项目符合性 }, // 查看项目符合性
querySarProStateZero() { querySarProStateZero() {
this.sarProStateTotalPage = 1 this.sarProStateTotalPage = 1;
var form = this.sarProStateEO var form = this.sarProStateEO;
// form.standId = this.standId // form.standId = this.standId
form.current = this.sarProStateTotalPage form.current = this.sarProStateTotalPage;
form.size = this.sarProStatePageSize form.size = this.sarProStatePageSize;
this.$http.get('sarStandardComplianceAssessResult/product', form, { this.$http.get("sarStandardComplianceAssessResult/product", form, {
_this: this, _this: this
loading: 'loading'
}, res => { }, res => {
if (res.ok) { if (res.ok) {
res.data.records.forEach((item)=>{ // res.data.records.forEach((item)=>{
for(let key in item){ // for(let key in item){
if(item[key] == null){ // if(item[key] == null){
item[key]='无' // item[key]='无'
// }
// }
// })
this.sarProStateListDatas = res.data.records;
this.sarProStateTotal = res.data.total;
} }
} });
}) this.showSarProStateModal = true;
this.sarProStateListDatas = res.data.records
this.sarProStateTotal = res.data.total
}
})
this.showSarProStateModal = true
}, // 查询项目数据 }, // 查询项目数据
clearSearchProState() { clearSearchProState() {
this.sarProStateEO.productName = '' this.sarProStateEO.productName = "";
this.sarProStateEO.standId = '' this.sarProStateEO.standId = "";
this.sarProStateTotalPage = 1 this.sarProStateTotalPage = 1;
this.querySarProStateZero() this.querySarProStateZero();
}, // 清空条件查询 }, // 清空条件查询
clearSearchPro() { clearSearchPro() {
this.sarProStateEO.productName = '' this.sarProStateEO.productName = "";
this.sarProStateEO.standId = '' this.sarProStateEO.standId = "";
this.showSarProStateModal = false this.showSarProStateModal = false;
this.standId = '' this.standId = "";
}, // 关闭查看事件 }, // 关闭查看事件
pageProStateChange(page) { pageProStateChange(page) {
this.sarProStateTotalPage = page this.sarProStateTotalPage = page;
this.querySarProStateZero() this.querySarProStateZero();
}, },
pageProStateSizeChange(pageSize) { pageProStateSizeChange(pageSize) {
this.sarProStatePageSize = pageSize this.sarProStatePageSize = pageSize;
this.$store.getters.userInfo.configContent = pageSize this.$store.getters.userInfo.configContent = pageSize;
this.querySarProStateZero() this.querySarProStateZero();
}, }
}, },
mounted() { mounted() {
this.queryStandAndLaws() this.queryStandAndLaws();
this.tableHeight = $('.regulatory-repository').height() - 159 this.tableHeight = $(".regulatory-repository").height() - 159;
this.sarProStateTableHeight=$('.regulatory-repository').height() -120 this.sarProStateTableHeight = $(".regulatory-repository").height() - 120;
window.onresize = () => { window.onresize = () => {
this.tableHeight = $('.regulatory-repository').height() - 159 this.tableHeight = $(".regulatory-repository").height() - 159;
this.sarProStateTableHeight=$('.regulatory-repository').height() - 120 this.sarProStateTableHeight = $(".regulatory-repository").height() - 120;
} };
}
} }
};
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.stand-involve-project-detail { .stand-involve-project-detail {
height: 100%; height: 100%;
.laws-details-header { .laws-details-header {
background: #fff; background: #fff;
// height: 30px; // height: 30px;
@@ -431,6 +450,7 @@ export default {
display: inline-block; display: inline-block;
margin-right: 10px; margin-right: 10px;
} }
.title { .title {
display: inline-block; display: inline-block;
font-weight: bold; font-weight: bold;
@@ -440,6 +460,7 @@ export default {
text-align: center; text-align: center;
} }
} }
.contaiiner { .contaiiner {
background: #fff; background: #fff;
padding: 5px 10px; padding: 5px 10px;
@@ -458,8 +458,22 @@ export default {
_this: this _this: this
}, res => { }, res => {
this.myLoading.loadData = false this.myLoading.loadData = false
this.nonList = res.data.records
this.total = res.data.total this.total = res.data.total
this.nonList = res.data.records
this.nonList.forEach(item => {
// 责任部门转换
if (item.responsibleUnit !== null || item.responsibleUnit !== "") {
let k = (item.responsibleUnit || "").split(",");
for (let i in this.zrbmOptions) {
for (let m = 0; m < k.length; m++) {
if (this.zrbmOptions[i].value === k[m]) {
k[m] = this.zrbmOptions[i].label;
}
item.responsibleUnit = k.join(",");
}
}
}
});
}, e => { }, e => {
this.myLoading.loadData = false this.myLoading.loadData = false
}) })
@@ -665,18 +679,15 @@ export default {
}, },
}, },
mounted () { mounted () {
// 从数据库中查询各下拉框数据 // 从数据库中查询各下拉框数据
this.$http.get('sys/dictype/getDicTypeListCode', '', { this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this _this: this
}, res => { }, res => {
this.allSelectOptions = res.data || {}
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 this.getTableByPage()
this.getGzzOption()
this.setMap(this.standStateOptions)
}, e => { }, e => {
}) })
this.getTableByPage()
// 加载所有的部门 // 加载所有的部门
this.getOrgTreeSource() this.getOrgTreeSource()
} }
@@ -11,19 +11,27 @@
<div v-show="heightShow" class="transition-box"> <div v-show="heightShow" class="transition-box">
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">标准号</label> <label class="transition-box-label">标准号</label>
<span class="transition-box-span" @click="handlePreview($route.query.item)">{{ $route.query.item.cid }}</span> <span class="transition-box-span table-jump"
@click="handlePreview(itemData)"
>
{{ this.$route.query.item.cid }}
</span>
</p> </p>
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">标准名称</label> <label class="transition-box-label">标准名称</label>
<span class="transition-box-span">{{ $route.query.item.cname || '-' }}</span> <span class="transition-box-span table-jump"
@click="handlePreview(itemData)"
>
{{ this.$route.query.item.cname || '-' }}
</span>
</p> </p>
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">上传时间</label> <label class="transition-box-label">上传时间</label>
<span class="transition-box-span">{{ $route.query.item.endTime || '-' }}</span> <span class="transition-box-span">{{ this.$route.query.item.startTime || '-' }}</span>
</p> </p>
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">征求意见周期</label> <label class="transition-box-label">征求意见周期</label>
<span class="transition-box-span" v-if="$route.query.item.startTime && $route.query.item.endTime">{{ $route.query.item.startTime + ' ~ ' + $route.query.item.endTime}}</span> <span class="transition-box-span" v-if="this.$route.query.item.startTime && this.$route.query.item.endTime">{{ this.$route.query.item.startTime + ' ~ ' + this.$route.query.item.endTime}}</span>
<span class="transition-box-span" v-else>-</span> <span class="transition-box-span" v-else>-</span>
</p> </p>
</div> </div>
@@ -120,6 +128,7 @@
name: 'consultationDetails', name: 'consultationDetails',
data () { data () {
return { return {
itemData: this.$route.query.item,
id: '', // 选中id id: '', // 选中id
type: '', // 选中状态 type: '', // 选中状态
spinShow: false, spinShow: false,
@@ -152,6 +161,17 @@
} }
}, },
methods: { methods: {
// 点击查看
handlePreview (item) {
let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.standId,
pageType: 'INLAND_STAND'
}
})
window.open(routeUrl.href, '_blank')
},
exportAll () { exportAll () {
window.open('/api/slrs/sar-public-idea-all/tuallStand?cid=' + this.$route.query.item.cid) window.open('/api/slrs/sar-public-idea-all/tuallStand?cid=' + this.$route.query.item.cid)
}, },
@@ -166,21 +186,6 @@
} }
}) })
}, },
//点击查看
handlePreview(data) {
console.log(data);
return
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
params: {
id: data.id,
pageType: data.standType
}
});
window.open(routeUrl.href, "_blank");
},
// 获取详情信息列表 // 获取详情信息列表
getList() { getList() {
this.spinShow = true this.spinShow = true
@@ -188,7 +193,6 @@
_this: this _this: this
}, res => { }, res => {
this.standinfoList = res.data.records this.standinfoList = res.data.records
console.log(this.standinfoList);
this.total = res.data.total this.total = res.data.total
this.spinShow = false this.spinShow = false
}, e => { }, e => {
@@ -272,10 +276,10 @@
cid: this.$route.query.item.cid, cid: this.$route.query.item.cid,
content: this.opinionContent.content, content: this.opinionContent.content,
partCode: this.opinionContent.partCode, partCode: this.opinionContent.partCode,
userId: this.$store.getters.userInfo.userId, userId: this.$store.getters.userInfo.userId || '',
userName: this.$store.getters.userInfo.account, userName: this.$store.getters.userInfo.userName || '',
deptName: this.$store.getters.userInfo.orgName, deptName: this.$store.getters.userInfo.orgName || '',
deptId: this.$store.getters.userInfo.orgId deptId: this.$store.getters.userInfo.orgId || ''
} }
if (this.type === 'edit') { if (this.type === 'edit') {
form.id = this.id form.id = this.id
+98 -47
View File
@@ -13,7 +13,7 @@
</h5> </h5>
</div> </div>
<div v-if="!kindtext" style="position: absolute;right: 110px;display: flex"> <div v-if="!kindtext" style="position: absolute;right: 110px;display: flex">
<el-input v-model="standForm.selectValue" :placeholder="$t('m.standSelect')" @keyup.enter.native="btnSearch" <el-input v-model.trim="standForm.selectValue" :placeholder="$t('m.standSelect')" @keyup.enter.native="btnSearch"
clearable> clearable>
</el-input> </el-input>
<el-button type="primary" @click="btnSearch" style="width: 98px;background:#3391CE <el-button type="primary" @click="btnSearch" style="width: 98px;background:#3391CE
@@ -53,7 +53,7 @@
<el-row type="flex" justify="space-around" class="code-row-bg"> <el-row type="flex" justify="space-around" class="code-row-bg">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="标准类别" prop="standSort"> <el-form-item label="标准类别" prop="standSort">
<el-select :popper-append-to-body="false" v-model="standForm.standSort" placeholder="请选择标准类别"> <el-select :popper-append-to-body="false" v-model="standForm.standSort" placeholder="请选择标准类别" clearable>
<el-option <el-option
v-for="item in standSortOptions" v-for="item in standSortOptions"
placeholder="请选择" placeholder="请选择"
@@ -75,11 +75,11 @@
<el-row type="flex" justify="space-around" class="code-row-bg"> <el-row type="flex" justify="space-around" class="code-row-bg">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="标准年份" prop="standYear"> <el-form-item label="标准年份" prop="standYear">
<el-date-picker <el-input
v-model="standForm.standYear" v-model.number="standForm.standYear"
type="date" placeholder="请输入标准标准年份"
placeholder="根据标准年份查找"> clearable
</el-date-picker> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@@ -104,7 +104,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="标准性质" prop="standNumber"> <el-form-item label="标准性质" prop="standNumber">
<el-select :popper-append-to-body="false" v-model="standForm.standNature" placeholder="请选择标准性质"> <el-select :popper-append-to-body="false" v-model="standForm.standNature" placeholder="请选择标准性质" clearable>
<el-option <el-option
v-for="item in standNatureOptions" v-for="item in standNatureOptions"
placeholder="请选择" placeholder="请选择"
@@ -119,7 +119,7 @@
<el-row type="flex" justify="space-around" class="code-row-bg"> <el-row type="flex" justify="space-around" class="code-row-bg">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="文本状态" prop="textStatus"> <el-form-item label="文本状态" prop="textStatus">
<el-select :popper-append-to-body="false" v-model="standForm.textStatus" placeholder="请选择文本状态"> <el-select :popper-append-to-body="false" v-model="standForm.textStatus" placeholder="请选择文本状态" clearable>
<el-option <el-option
v-for="item in standStateOptions" v-for="item in standStateOptions"
placeholder="请选择" placeholder="请选择"
@@ -144,7 +144,7 @@
<el-row type="flex" justify="space-around" class="code-row-bg"> <el-row type="flex" justify="space-around" class="code-row-bg">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="是否纳入标准清单" prop="bringIntoList"> <el-form-item label="是否纳入标准清单" prop="bringIntoList">
<el-select v-model="standForm.isRelateAccess" class="advanced-one" placeholder="请选择是否纳入标准清单"> <el-select v-model="standForm.isRelateAccess" class="advanced-one" placeholder="请选择是否纳入标准清单" clearable>
<el-option value="1" label="是"></el-option> <el-option value="1" label="是"></el-option>
<el-option value="2" label="否"></el-option> <el-option value="2" label="否"></el-option>
</el-select> </el-select>
@@ -186,14 +186,14 @@
<el-row type="flex" justify="space-around" class="code-row-bg"> <el-row type="flex" justify="space-around" class="code-row-bg">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="归口管理部门" prop="gkdw"> <el-form-item label="归口管理部门" prop="gkdw">
<el-select :popper-append-to-body="false" v-model="standForm.gkdw" placeholder="请选择归口管理部门"> <el-select :popper-append-to-body="false" v-model="standForm.gkdw" placeholder="请选择归口管理部门" clearable>
<el-option v-for="item in gkglbmOptions" :value="item.value" :key="item.value" :label="item.label"></el-option> <el-option v-for="item in gkglbmOptions" :value="item.value" :key="item.value" :label="item.label"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="起草单位" prop="qcdw"> <el-form-item label="起草单位" prop="qcdw">
<el-select :popper-append-to-body="false" v-model="standForm.qcdw" placeholder="请选择起草单位" multiple> <el-select :popper-append-to-body="false" v-model="standForm.qcdw" placeholder="请选择起草单位" multiple clearable>
<el-option <el-option
v-for="item in qcdwOption" v-for="item in qcdwOption"
placeholder="请选择" placeholder="请选择"
@@ -208,7 +208,7 @@
<el-row type="flex" justify="space-around" class="code-row-bg"> <el-row type="flex" justify="space-around" class="code-row-bg">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="我司参与深度" prop="cysd"> <el-form-item label="我司参与深度" prop="cysd">
<el-select :popper-append-to-body="false" v-model="standForm.cysd" placeholder="请选择我司参与深度"> <el-select :popper-append-to-body="false" v-model="standForm.cysd" placeholder="请选择我司参与深度" clearable>
<el-option <el-option
v-for="item in cysdOptions" v-for="item in cysdOptions"
placeholder="请选择" placeholder="请选择"
@@ -221,7 +221,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="适用车型" prop="cllx"> <el-form-item label="适用车型" prop="cllx">
<el-select :popper-append-to-body="false" v-model="standForm.cllx" placeholder="请选择适用车型" multiple> <el-select :popper-append-to-body="false" v-model="standForm.cllx" placeholder="请选择适用车型" multiple clearable>
<el-option <el-option
v-for="item in applyArcticOptions" v-for="item in applyArcticOptions"
placeholder="请选择" placeholder="请选择"
@@ -236,7 +236,7 @@
<el-row type="flex" justify="space-around" class="code-row-bg"> <el-row type="flex" justify="space-around" class="code-row-bg">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="能源类型" prop="nylx"> <el-form-item label="能源类型" prop="nylx">
<el-select :popper-append-to-body="false" v-model="standForm.nylx" placeholder="请选择能源类型" multiple> <el-select :popper-append-to-body="false" v-model="standForm.nylx" placeholder="请选择能源类型" multiple clearable>
<el-option <el-option
v-for="item in categoryOptions" v-for="item in categoryOptions"
placeholder="请选择" placeholder="请选择"
@@ -249,7 +249,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="适用产品线" prop="sycpx"> <el-form-item label="适用产品线" prop="sycpx">
<el-select :popper-append-to-body="false" v-model="standForm.sycpx" placeholder="请选择适用产品线" multiple> <el-select :popper-append-to-body="false" v-model="standForm.sycpx" placeholder="请选择适用产品线" multiple clearable>
<el-option <el-option
v-for="item in sycpxOptions" v-for="item in sycpxOptions"
placeholder="请选择" placeholder="请选择"
@@ -264,7 +264,7 @@
<el-row type="flex" justify="space-around" class="code-row-bg"> <el-row type="flex" justify="space-around" class="code-row-bg">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="适用认证" prop="syrz"> <el-form-item label="适用认证" prop="syrz">
<el-select :popper-append-to-body="false" v-model="standForm.syrz" placeholder="请选择适用认证" multiple> <el-select :popper-append-to-body="false" v-model="standForm.syrz" placeholder="请选择适用认证" multiple clearable>
<el-option <el-option
v-for="item in applyAuthOptions" v-for="item in applyAuthOptions"
placeholder="请选择" placeholder="请选择"
@@ -277,7 +277,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="责任部门" prop="zrbm"> <el-form-item label="责任部门" prop="zrbm">
<el-select :popper-append-to-body="false" v-model="standForm.zrbm" placeholder="请选择责任部门" multiple> <el-select :popper-append-to-body="false" v-model="standForm.zrbm" placeholder="请选择责任部门" multiple clearable>
<el-option <el-option
v-for="item in zrbmOptions" v-for="item in zrbmOptions"
placeholder="请选择" placeholder="请选择"
@@ -292,7 +292,7 @@
<el-row type="flex" justify="space-around" class="code-row-bg"> <el-row type="flex" justify="space-around" class="code-row-bg">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="责任工程师" prop="zrgcs"> <el-form-item label="责任工程师" prop="zrgcs">
<el-select :popper-append-to-body="false" v-model="standForm.zrgcs" placeholder="请选择责任工程师" multiple> <el-select :popper-append-to-body="false" v-model="standForm.zrgcs" placeholder="请选择责任工程师" multiple clearable>
<el-option <el-option
v-for="item in zrgcsOptions" v-for="item in zrgcsOptions"
placeholder="请选择" placeholder="请选择"
@@ -324,8 +324,8 @@
</el-row> </el-row>
<el-row type="flex" justify="space-around" class="code-row-bg"> <el-row type="flex" justify="space-around" class="code-row-bg">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="代替标准号" prop="nameShow"> <el-form-item label="代替标准号" prop="dtbjh">
<el-input v-model="standForm.nameShow" clearable placeholder="根据代替标准号查找" <el-input v-model="standForm.dtbjh" clearable placeholder="根据代替标准号查找"
@keyup.enter.native="btnSearch"></el-input> @keyup.enter.native="btnSearch"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@@ -380,7 +380,7 @@
<el-row type="flex" justify="space-around" class="code-row-bg"> <el-row type="flex" justify="space-around" class="code-row-bg">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="采标程度" prop="standNumber"> <el-form-item label="采标程度" prop="standNumber">
<el-select :popper-append-to-body="false" v-model="standForm.cbcd" placeholder="请选择采标程度"> <el-select :popper-append-to-body="false" v-model="standForm.cbcd" placeholder="请选择采标程度" clearable>
<el-option v-for="item in cbcdOptions" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item in cbcdOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@@ -899,8 +899,8 @@
v-if="selectIndex !== 'items'" v-if="selectIndex !== 'items'"
width="130"> width="130">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.issue_time !== null && scope.row.issue_time !== undefined"> <div v-if="scope.row.issue_time !== null && scope.row.issueTime !== undefined">
{{ $dateFormat(new Date(scope.row.issue_time), "yyyy-MM-dd") }} {{ $dateFormat(new Date(scope.row.issueTime), "yyyy-MM-dd") }}
</div> </div>
<div v-else></div> <div v-else></div>
</template> </template>
@@ -910,8 +910,8 @@
:label="$t('m.putTime')" :label="$t('m.putTime')"
width="130"> width="130">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.put_time !== null && scope.row.put_time !== undefined"> <div v-if="scope.row.SSRQ !== null && scope.row.SSRQ !== undefined && scope.row.SSRQ !== ''">
{{ $dateFormat(new Date(scope.row.put_time), "yyyy-MM-dd") }} {{ $dateFormat(new Date(scope.row.SSRQ), "yyyy-MM-dd") }}
</div> </div>
<div v-else></div> <div v-else></div>
</template> </template>
@@ -919,7 +919,7 @@
<el-table-column <el-table-column
align="center" align="center"
width="180" width="180"
:label="selectIndex === 'INLAND_STAND' ? '标准状态' : (this.selectIndex === 'INLAND_LAWS' ? '文件状态' : '企业标准状态')"> :label="selectIndex === 'INLAND_STAND' ? '文本状态' : (this.selectIndex === 'INLAND_LAWS' ? '文件状态' : '企业标准状态')">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
{{ scope.row.standstateshow }} {{ scope.row.standstateshow }}
@@ -937,8 +937,17 @@
<i class="iconfont">&#xe61e;</i> <i class="iconfont">&#xe61e;</i>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="beforeHandleCommand('l',scope.row)">查看</el-dropdown-item> <el-dropdown-item :command="beforeHandleCommand('l',scope.row)">查看</el-dropdown-item>
<el-dropdown-item :command="beforeHandleCommand('a',scope.row)">取消收藏</el-dropdown-item> <el-dropdown-item v-if="scope.row.collectBtn"
<el-dropdown-item :command="beforeHandleCommand('b',scope.row)">分享</el-dropdown-item> :command="beforeHandleCommand('d',scope.row)"
>
收藏
</el-dropdown-item>
<el-dropdown-item v-else
:command="beforeHandleCommand('a',scope.row)"
>
取消收藏
</el-dropdown-item>
<!-- <el-dropdown-item :command="beforeHandleCommand('b',scope.row)">分享</el-dropdown-item>-->
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
@@ -948,8 +957,16 @@
<i class="iconfont">&#xe61e;</i> <i class="iconfont">&#xe61e;</i>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="beforeHandleCommand('l',scope.row)">查看</el-dropdown-item> <el-dropdown-item :command="beforeHandleCommand('l',scope.row)">查看</el-dropdown-item>
<el-dropdown-item v-btn-permission="'FB3R3TVALD'" :command="beforeHandleCommand('d',scope.row)">收藏</el-dropdown-item> <el-dropdown-item v-if="scope.row.collectBtn"
<!-- <el-dropdown-item :command="beforeHandleCommand('b',scope.row)">分享</el-dropdown-item>--> :command="beforeHandleCommand('d',scope.row)"
>
收藏
</el-dropdown-item>
<el-dropdown-item v-else
:command="beforeHandleCommand('a',scope.row)"
>
取消收藏
</el-dropdown-item><!-- <el-dropdown-item :command="beforeHandleCommand('b',scope.row)">分享</el-dropdown-item>-->
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
@@ -960,9 +977,18 @@
<el-button size="mini" @click="itemsDetails(scope.row)">查看</el-button> <el-button size="mini" @click="itemsDetails(scope.row)">查看</el-button>
</div> </div>
<div v-else> <div v-else>
<el-button size="mini" type="primary" v-if="scope.row.collectId" @click="clickCollection(scope.row)">取消收藏</el-button> <el-dropdown-item v-if="scope.row.collectBtn"
:command="beforeHandleCommand('d',scope.row)"
>
收藏
</el-dropdown-item>
<el-dropdown-item v-else
:command="beforeHandleCommand('a',scope.row)"
>
取消收藏
</el-dropdown-item>
<el-button size="mini" type="primary" v-else @click="clickCollection(scope.row)">收藏</el-button> <el-button size="mini" type="primary" v-else @click="clickCollection(scope.row)">收藏</el-button>
<el-button sizi="mini" @click="clickShare(scope.row)">分享</el-button> <!-- <el-button sizi="mini" @click="clickShare(scope.row)">分享</el-button>-->
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@@ -1306,9 +1332,7 @@ export default {
const inlandList = data['INLAND_STAND'] || [] const inlandList = data['INLAND_STAND'] || []
const foreignList = data['FOREIGN_STAND'] || [] const foreignList = data['FOREIGN_STAND'] || []
const foreignFilterList = foreignList.filter ( item => item.attrField === 'GXHBQ' || item.attrField === 'ZBJBD' || item.attrField === 'KWJ' || item.attrField === 'TXLB'); const foreignFilterList = foreignList.filter ( item => item.attrField === 'GXHBQ' || item.attrField === 'ZBJBD' || item.attrField === 'KWJ' || item.attrField === 'TXLB');
console.log(foreignFilterList)
this.formFieldListStandData = this.formFieldListStandData.concat(inlandList).concat(foreignFilterList); this.formFieldListStandData = this.formFieldListStandData.concat(inlandList).concat(foreignFilterList);
console.log(this.formFieldListStandData,'-----------------------------------1')
} }
}, e => {}) }, e => {})
}, },
@@ -1720,6 +1744,13 @@ export default {
this.total = res.data.count; this.total = res.data.count;
this.resultData = res.data.list; this.resultData = res.data.list;
this.resultData.map((item) => { this.resultData.map((item) => {
if (item.collectId != null && item.collectId !== '') {
item.collectBtn = false
item.cancelCollectBtn = true
} else {
item.collectBtn = true
item.cancelCollectBtn = false
}
if (item.applyArcticShow) { if (item.applyArcticShow) {
item.applyArcticShow.toString(); item.applyArcticShow.toString();
item.applyArcticShow = item.applyArcticShow.slice(0, item.applyArcticShow.length - 1); item.applyArcticShow = item.applyArcticShow.slice(0, item.applyArcticShow.length - 1);
@@ -1936,13 +1967,13 @@ export default {
} }
let pagetype = ""; let pagetype = "";
if (item.type === "stand") { if (item.type === "stand") {
if (item.stand_type === "INLAND") { if (item.standType === "INLAND") {
pagetype = "INLAND_STAND"; pagetype = "INLAND_STAND";
} else { } else {
pagetype = "FOREIGN_STAND"; pagetype = "FOREIGN_STAND";
} }
} else if (item.type === "laws") { } else if (item.type === "laws") {
if (item.laws_type === "INLAND") { if (item.lawsType === "INLAND") {
pagetype = "INLAND_LAWS"; pagetype = "INLAND_LAWS";
} else { } else {
pagetype = "FOREIGN_LAWS"; pagetype = "FOREIGN_LAWS";
@@ -1959,6 +1990,7 @@ export default {
} }
} }
personCollect.collectType = pagetype; personCollect.collectType = pagetype;
personCollect.userId = this.$store.getters.userInfo.userId
this.$http.postData("person/personCollect", personCollect, { this.$http.postData("person/personCollect", personCollect, {
_this: this _this: this
}, res => { }, res => {
@@ -1970,21 +2002,20 @@ export default {
}, },
// 取消收藏 // 取消收藏
cancelCollectStandard(item) { cancelCollectStandard(item) {
// this.judgeBussRole(item) item.isSubmit = true
// if (this.bussRoleFlag === false) { this.$http.put('person/personCollect/updateByUserId', {
// this.$message.error('当前角色无权限操作此数据')
// } else {
// }
this.$http.put("person/personCollect/updateByUserId", {
id: item.collectId id: item.collectId
}, { }, {
_this: this _this: this
}, res => { }, res => {
item.collectBtn = !item.collectBtn; item.isSubmit = false
item.cancelCollectBtn = !item.cancelCollectBtn; item.collectBtn = !item.collectBtn
item.collectId = ""; item.cancelCollectBtn = !item.cancelCollectBtn
item.collectId = ''
this.$message.success(res.message)
}, e => { }, e => {
}); item.isSubmit = false
})
}, },
// 取消 // 取消
treeCancel() { treeCancel() {
@@ -2278,6 +2309,26 @@ export default {
} }
}, },
watch: { watch: {
"standForm.zccssrq"(newVal) {
if (newVal == null) {
this.standForm.zccssrq = "";
}
},
"standForm.xcxssrq"(newVal) {
if (newVal == null) {
this.standForm.xcxssrq = "";
}
},
"standForm.ssrq"(newVal) {
if (newVal == null) {
this.standForm.ssrq = "";
}
},
"standForm.issueTime"(newVal) {
if (newVal == null) {
this.standForm.issueTime = "";
}
},
// 资源大类监听, 改变后过滤条件 // 资源大类监听, 改变后过滤条件
selectIndex(val) { selectIndex(val) {
let type = ""; let type = "";
@@ -11,7 +11,7 @@
<el-input <el-input
placeholder="请输入查询条件" placeholder="请输入查询条件"
clearable clearable
v-model="keywords" v-model.trim="keywords"
@keyup.enter.native="searchSarByInputKeyByCondition"> @keyup.enter.native="searchSarByInputKeyByCondition">
</el-input> </el-input>
</div> </div>
@@ -156,7 +156,16 @@
<!-- </el-button>--> <!-- </el-button>-->
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="beforeHandleCommand('see',scope.row)">查看</el-dropdown-item> <el-dropdown-item :command="beforeHandleCommand('see',scope.row)">查看</el-dropdown-item>
<el-dropdown-item :command="beforeHandleCommand('a',scope.row)">取消收藏</el-dropdown-item> <el-dropdown-item v-if="scope.row.collectBtn"
:command="beforeHandleCommand('d',scope.row)"
>
收藏
</el-dropdown-item>
<el-dropdown-item v-else
:command="beforeHandleCommand('a',scope.row)"
>
取消收藏
</el-dropdown-item>
<!-- <el-dropdown-item :command="beforeHandleCommand('b',scope.row)">分享</el-dropdown-item>--> <!-- <el-dropdown-item :command="beforeHandleCommand('b',scope.row)">分享</el-dropdown-item>-->
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
@@ -170,7 +179,16 @@
<!-- </el-button>--> <!-- </el-button>-->
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="beforeHandleCommand('see',scope.row)">查看</el-dropdown-item> <el-dropdown-item :command="beforeHandleCommand('see',scope.row)">查看</el-dropdown-item>
<el-dropdown-item :command="beforeHandleCommand('d',scope.row)">收藏</el-dropdown-item> <el-dropdown-item v-if="scope.row.collectBtn"
:command="beforeHandleCommand('d',scope.row)"
>
收藏
</el-dropdown-item>
<el-dropdown-item v-else
:command="beforeHandleCommand('a',scope.row)"
>
取消收藏
</el-dropdown-item>
<!-- <el-dropdown-item :command="beforeHandleCommand('b',scope.row)">分享</el-dropdown-item>--> <!-- <el-dropdown-item :command="beforeHandleCommand('b',scope.row)">分享</el-dropdown-item>-->
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
@@ -215,7 +233,7 @@
</div> </div>
<div class="AllBoxContent" v-html="item.textContent"></div> <div class="AllBoxContent" v-html="item.textContent"></div>
<div v-if="item.indexType !== 'items' && item.indexType !== 'msgdyinfo'" class="AllTime"> <div v-if="item.indexType !== 'items' && item.indexType !== 'msgdyinfo'" class="AllTime">
<div style="margin-right: 15px;">发布日期: {{ item.issue_time !== null && item.issue_time !== '' ? dateFormat2(item.issue_time) : '--' }} </div> <div style="margin-right: 15px;">发布日期11: {{ item.issue_time !== null && item.issue_time !== '' ? dateFormat2(item.issue_time) : '--' }} </div>
<!-- <div>{{$t('m.putTime')}}: {{ item.issue_time !== null && item.issue_time !== '' ? $dateFormat(new Date(item.put_time), 'yyyy-MM-dd') : '&#45;&#45;' }} </div>--> <!-- <div>{{$t('m.putTime')}}: {{ item.issue_time !== null && item.issue_time !== '' ? $dateFormat(new Date(item.put_time), 'yyyy-MM-dd') : '&#45;&#45;' }} </div>-->
</div> </div>
</div> </div>
@@ -1003,7 +1021,6 @@
}) })
} }
this.searchOriginOptions = this.searchOptions this.searchOriginOptions = this.searchOptions
console.log(this.searchOriginOptions)
this.saveAllSortOptions = res.data.STANDCLASSIFY this.saveAllSortOptions = res.data.STANDCLASSIFY
this.saveAllFineOptions = res.data.BUSSFINECLASSSHOW this.saveAllFineOptions = res.data.BUSSFINECLASSSHOW
this.lawssStateOptions = res.data.LAWSSTATE // 文本状态数组 this.lawssStateOptions = res.data.LAWSSTATE // 文本状态数组
@@ -1241,6 +1258,15 @@
if (res.ok) { if (res.ok) {
this.total = res.data.count this.total = res.data.count
this.resultData = res.data.list this.resultData = res.data.list
this.resultData.map((item) => {
if (item.collectId != null && item.collectId !== '') {
item.collectBtn = false
item.cancelCollectBtn = true
} else {
item.collectBtn = true
item.cancelCollectBtn = false
}
});
this.selectGroupdata(res.data) this.selectGroupdata(res.data)
} else { } else {
this.total = 0 this.total = 0
@@ -1877,7 +1903,6 @@
let pagetype = '' let pagetype = ''
pagetype = item.typeShow pagetype = item.typeShow
if (item.typeShow === 'INLAND_STAND') { if (item.typeShow === 'INLAND_STAND') {
console.log('guonei权限')
routername = 'OtherStandardDetails' routername = 'OtherStandardDetails'
// if (this.$hasPermission('CFEZ3VP7EA95CTRBH3JB')) { // if (this.$hasPermission('CFEZ3VP7EA95CTRBH3JB')) {
// routername = 'OtherStandardDetails' // routername = 'OtherStandardDetails'
@@ -2051,6 +2076,7 @@
} }
} }
personCollect.collectType = pagetype personCollect.collectType = pagetype
personCollect.userId = this.$store.getters.userInfo.userId
this.$http.postData('person/personCollect', personCollect, { this.$http.postData('person/personCollect', personCollect, {
_this: this _this: this
}, res => { }, res => {
@@ -2120,7 +2146,6 @@
type: 'warning' type: 'warning'
}) })
} else { } else {
console.log(this.selectNowObjResult);
let pagetype = '' let pagetype = ''
if (this.selectNowObjResult.type === 'stand') { if (this.selectNowObjResult.type === 'stand') {
if (this.selectNowObjResult.standType === 'INLAND') { if (this.selectNowObjResult.standType === 'INLAND') {
@@ -2241,7 +2266,6 @@
if (item.type === 'stand') { if (item.type === 'stand') {
// if (this.$hasPermission('HK36LHK9444NPN8X634W')){ // if (this.$hasPermission('HK36LHK9444NPN8X634W')){
routername = 'OtherStandardDetails' routername = 'OtherStandardDetails'
console.log('guoneiQUANXIAN')
if (item.standType === 'INLAND') { if (item.standType === 'INLAND') {
pagetype = 'INLAND_STAND' pagetype = 'INLAND_STAND'
} else { } else {
@@ -2531,7 +2555,7 @@
//display: -webkit-box; //display: -webkit-box;
//-webkit-line-clamp: 3; //-webkit-line-clamp: 3;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
max-height: 60px; max-height: 78px;
} }
.AllTime { .AllTime {
margin-top: 15px; margin-top: 15px;