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

This commit is contained in:
super_liu
2022-03-22 16:27:57 +08:00
7 changed files with 62 additions and 36 deletions
@@ -48,6 +48,7 @@
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%;" style="width: 100%;"
height="100%" height="100%"
@selection-change="handleSelectionChange"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
row-key="id" row-key="id"
@@ -115,6 +116,7 @@ export default {
return { return {
tableDataLoading: false, tableDataLoading: false,
total: 0, total: 0,
handleList: [],
selectRoleId: '', selectRoleId: '',
searchForm: { searchForm: {
standardKey: '', standardKey: '',
@@ -170,6 +172,10 @@ export default {
// this.resetSearchForm() // this.resetSearchForm()
this.queryTablePage() this.queryTablePage()
}, },
handleSelectionChange(data){
this.handleList = data
this.$emit('func',this.handleList)
},
pageChange (page) { pageChange (page) {
this.pageNo = page this.pageNo = page
@@ -183,7 +189,6 @@ export default {
resetPageNo() { resetPageNo() {
this.pageNo = 1 this.pageNo = 1
}, },
// 查询、加载表格 // 查询、加载表格
queryTablePage () { queryTablePage () {
const formData = { const formData = {
@@ -1734,6 +1734,7 @@
> >
<div class="demo-drawer-content"> <div class="demo-drawer-content">
<related-terms-select <related-terms-select
@func="handleChangeList"
ref="relatedTermsSelect" ref="relatedTermsSelect"
:fileType="fileType" :fileType="fileType"
:stand-id="standId" :stand-id="standId"
@@ -1787,6 +1788,7 @@ export default {
}, },
data() { data() {
return { return {
handleList: [],
CycxOptions: [], CycxOptions: [],
activeNames: ['基础信息', '过程稿件', '实施日期'], activeNames: ['基础信息', '过程稿件', '实施日期'],
activeState: true, activeState: true,
@@ -2112,6 +2114,9 @@ export default {
props: {}, props: {},
watch: {}, watch: {},
methods: { methods: {
handleChangeList(data){
this.handleList = data
},
child1Func(child1) { child1Func(child1) {
const list = [] const list = []
if (child1 && child1.length > 1) { if (child1 && child1.length > 1) {
@@ -3647,9 +3652,10 @@ export default {
this.$refs['relatedTermsSelect'].handleCancel() this.$refs['relatedTermsSelect'].handleCancel()
}, },
//关联成功的提示
handleRelatedTermsDrawerSubmit() { handleRelatedTermsDrawerSubmit() {
this.btnLoading = true this.btnLoading = true
if(this.handleList.length){
this.$refs['relatedTermsSelect'].handleSubmit(() => { this.$refs['relatedTermsSelect'].handleSubmit(() => {
this.selectSarStandItems() this.selectSarStandItems()
this.btnLoading = false this.btnLoading = false
@@ -3658,6 +3664,10 @@ export default {
type: 'success' type: 'success'
}); });
}) })
}else{
this.$message.warning('请至少勾选一条条款进行关联')
this.btnLoading = false
}
}, },
closeRelatedTermsDrawer() { closeRelatedTermsDrawer() {
this.$refs['relatedTermsDrawer'].closeDrawer() this.$refs['relatedTermsDrawer'].closeDrawer()
@@ -101,17 +101,17 @@ export default {
value: "22" value: "22"
}, },
{ {
label: "企标复审流程", label: "企标废止流程",
value: "23"
},
{
label: '企标废止流程',
value: "24" value: "24"
}, },
{ {
label: '企标制修订计划管控', label: "企标制修订计划管控",
value: "25" value: "25"
}, },
{
label: "企标制修订立项",
value: "26"
}
], ],
formDisableFlag: false, formDisableFlag: false,
pickerOptions: { pickerOptions: {
@@ -638,6 +638,14 @@ export default {
} else if(this.dataList.length > 5) { } else if(this.dataList.length > 5) {
this.$message.warning('您最多只能选择五条数据') this.$message.warning('您最多只能选择五条数据')
}else{ }else{
let subFlag = true
this.dataList.forEach(item => {
if(!item.unameId){
subFlag = false
return
}
})
if(subFlag){
this.listForm.dataList = this.dataList; this.listForm.dataList = this.dataList;
this.listForm.breakdownList = this.breakdownList this.listForm.breakdownList = this.breakdownList
this.listForm.commentText = this.commentText; this.listForm.commentText = this.commentText;
@@ -657,6 +665,9 @@ export default {
this.isSubmit = false; this.isSubmit = false;
}, e => { }, e => {
}); });
}else{
this.$message.warning('请选择项目经理')
}
} }
}, },
@@ -187,7 +187,7 @@ export default {
size: this.$store.getters.userInfo.configContent, size: this.$store.getters.userInfo.configContent,
userId: this.$store.getters.userInfo.userId, userId: this.$store.getters.userInfo.userId,
prcName: this.searchForm.prcName, prcName: this.searchForm.prcName,
prcType: parseInt(this.searchForm.prcType) || '', prcType: parseInt(this.searchForm.prcType) || this.searchForm.prcType || '',
prcNum: this.searchForm.prcNum prcNum: this.searchForm.prcNum
}, { }, {
loading: 'loading', loading: 'loading',
@@ -216,7 +216,7 @@ export default {
size: this.$store.getters.userInfo.configContent, size: this.$store.getters.userInfo.configContent,
userId: this.$store.getters.userInfo.userId, userId: this.$store.getters.userInfo.userId,
prcName: this.searchForm.prcName, prcName: this.searchForm.prcName,
prcType: parseInt(this.searchForm.prcType) || '', prcType: parseInt(this.searchForm.prcType) || this.searchForm.prcType ||'',
prcNum: this.searchForm.prcNum prcNum: this.searchForm.prcNum
}, },
{ {
@@ -254,7 +254,7 @@ export default {
size: parseInt(this.$store.getters.userInfo.configContent), size: parseInt(this.$store.getters.userInfo.configContent),
userId: this.$store.getters.userInfo.usid || this.$store.getters.userInfo.userId, userId: this.$store.getters.userInfo.usid || this.$store.getters.userInfo.userId,
prcName: this.searchForm.prcName, prcName: this.searchForm.prcName,
prcType: parseInt(this.searchForm.prcType) || '', prcType: parseInt(this.searchForm.prcType) || this.searchForm.prcType ||'',
prcNum: this.searchForm.prcNum prcNum: this.searchForm.prcNum
}, },
{ {