合并分支 'fix_foton_20230103' 到 'FOTON'
Fix foton 20230103 查看合并请求 laws-foton-slrs/foton-laws-system-front!18
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1632,9 +1632,9 @@ export default {
|
||||
issueTime: [
|
||||
{ required: false, message: '请选择企标发布日期', trigger: 'change' }
|
||||
],
|
||||
// putTime: [
|
||||
// { required: true, message: '请选择企标实施日期', trigger: 'change' }
|
||||
// ],
|
||||
putTime: [
|
||||
{ required: true, message: '请选择企标实施日期', trigger: 'change' }
|
||||
],
|
||||
FBGBUSSName: [
|
||||
{ required: false, message: '请上传发布稿',validator: validateFBGBUSS, trigger: 'blur' }
|
||||
],
|
||||
|
||||
@@ -1052,11 +1052,13 @@ export default {
|
||||
choiceShow(){
|
||||
this.showType = 'one'
|
||||
this.getStandDataBtn()
|
||||
this.clearSearch()
|
||||
this.ListModel = true;
|
||||
},
|
||||
choiceShow2(){
|
||||
this.showType = 'two'
|
||||
this.getStandDataBtn()
|
||||
this.clearSearch()
|
||||
this.ListModel = true;
|
||||
},
|
||||
// 取消带入
|
||||
@@ -1112,7 +1114,8 @@ export default {
|
||||
// this.standinfoList.push(item)
|
||||
// }
|
||||
// })
|
||||
this.total = this.standinfoList.length
|
||||
// this.total = this.standinfoList.length
|
||||
this.total = res.data.count
|
||||
this.replaceLoading = false
|
||||
this.$nextTick(()=>{
|
||||
this.$refs.selection.doLayout();
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
</div>
|
||||
<div class="content" v-show="active === '1'">
|
||||
<div style="flex: auto; overflow: auto">
|
||||
<process-title v-if="showFlag">
|
||||
<!-- <process-title v-if="showFlag">-->
|
||||
<process-title>
|
||||
<template slot="title">基础信息</template>
|
||||
</process-title>
|
||||
<el-form
|
||||
v-if="showFlag"
|
||||
class="label-input-form prc-content-border"
|
||||
label-width="150px"
|
||||
>
|
||||
@@ -36,7 +36,8 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<component ref="childForm" :message="qbfsForm" :is="comName"></component>
|
||||
<component ref="childForm" v-if="isWrite" :message="qbfsForm" :is="comName"></component>
|
||||
<component ref="childForm" v-else :message="JSON.parse(JSON.stringify(qbfsForm))" :is="comName"></component>
|
||||
</div>
|
||||
<div>
|
||||
<el-collapse accordion>
|
||||
@@ -274,6 +275,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isWrite:!this.$route.query.taskIds,
|
||||
disabledXX:!!this.$route.query.disabledXX,
|
||||
submitFlag: '',
|
||||
toggleType: '5',
|
||||
@@ -281,7 +283,9 @@ export default {
|
||||
active: "1",
|
||||
commentText: "",
|
||||
comName: "establish",
|
||||
isTrue:true,
|
||||
qbfsForm: {},
|
||||
componentKey:1,
|
||||
formLoading: false,
|
||||
approvalFlag: false,
|
||||
showFlag: true,
|
||||
@@ -384,6 +388,23 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
deepClone(orig) {
|
||||
var copy = Object.create(Object.getPrototypeOf(orig))
|
||||
this.copyOwnPropertiesFrom(copy,orig);
|
||||
return copy;
|
||||
},
|
||||
copyOwnPropertiesFrom(target, source) {
|
||||
Object.getOwnPropertyNames(source)
|
||||
.forEach(ele =>{
|
||||
// 获取到每个属性的所有描述,然后重新定义对象的属性并返回此对象。
|
||||
var desc = Object.getOwnPropertyDescriptor(source,ele);
|
||||
Object.defineProperty(target,ele,desc)
|
||||
});
|
||||
return target;
|
||||
},
|
||||
getType(target){
|
||||
return Object.prototype.toString.call(target).toLowerCase().slice(8,-1)
|
||||
},
|
||||
/**
|
||||
* @description: 动态表单读取
|
||||
*/
|
||||
@@ -408,25 +429,30 @@ export default {
|
||||
this.comName = "establish"
|
||||
break
|
||||
}
|
||||
this.qbfsForm = item.qbfsForm || item;
|
||||
if (this.qbfsForm.bussSort) {
|
||||
if(this.qbfsForm.bussSort instanceof Array){
|
||||
this.qbfsForm.bussSort = this.qbfsForm.bussSort[0]
|
||||
}else {
|
||||
let val = this.qbfsForm.bussSort.replace('//',"").replace('["',"").replace('"]',"").toString()
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
if (val instanceof Array) {
|
||||
this.qbfsForm.bussSort = this.form.bussSort.join(",")[0];
|
||||
} else {
|
||||
this.qbfsForm.bussSort = val
|
||||
}
|
||||
} else if (val === '') {
|
||||
this.qbfsForm.bussSort = ""
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.qbfsForm.bussSort = ""
|
||||
}
|
||||
this.qbfsForm = item.qbfsForm || item
|
||||
// this.isTrue = false
|
||||
// this.$nextTick(()=>{
|
||||
// this.isTrue = true
|
||||
// })
|
||||
// if (this.qbfsForm.bussSort){
|
||||
// if(this.qbfsForm.bussSort instanceof Array){
|
||||
// // if(this.getType(this.qbfsForm.bussSort) === 'array'){
|
||||
// this.qbfsForm.bussSort = this.qbfsForm.bussSort[0]
|
||||
// }else {
|
||||
// let val = this.qbfsForm.bussSort.replace('//',"").replace('["',"").replace('"]',"").toString()
|
||||
// if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
// if (val instanceof Array) {
|
||||
// this.qbfsForm.bussSort = this.form.bussSort.join(",")[0];
|
||||
// } else {
|
||||
// this.qbfsForm.bussSort = val
|
||||
// }
|
||||
// } else if (val === '') {
|
||||
// this.qbfsForm.bussSort = ""
|
||||
// }
|
||||
// }
|
||||
// } else {
|
||||
// this.qbfsForm.bussSort = ""
|
||||
// }
|
||||
this.formLoading = false;
|
||||
// this.commentText = item.commentText
|
||||
this.roleForm.dockUser = item.dockUser || item.roleForm.dockUser;
|
||||
@@ -443,6 +469,7 @@ export default {
|
||||
},
|
||||
handleTabs(name) {
|
||||
this.active = name;
|
||||
this.isWrite = true
|
||||
},
|
||||
toggleComName(name) {
|
||||
this.qbfsForm = {}
|
||||
|
||||
@@ -731,6 +731,7 @@
|
||||
<!-- disabled-->
|
||||
<!-- ></custom-input>-->
|
||||
<!-- </template>-->
|
||||
<!-- 去掉模块结构单元 -->
|
||||
<template v-else-if="['DYBXH','DYMC','DYBXHCAR','DYMCCAR'].indexOf(field.attrField)===-1">
|
||||
<custom-input
|
||||
:config="field"
|
||||
@@ -764,7 +765,7 @@
|
||||
:disabled="formdisableflag"
|
||||
:show-modify-name="true"
|
||||
@fileSuccess="fileSuccess"
|
||||
:limit="['FBGBJBD','FBGYWBD','XDB','KWJ','ZBJBD'].some(item => item===field.attrField) ? 20 : 8"
|
||||
:limit="['FBGBJBD','FBGYWBD','XDB','KWJ','ZBJBD'].some(item => item===field.attrField) ? 40 : 8"
|
||||
></custom-file>
|
||||
</template>
|
||||
<template v-else-if="field.attrType === 'TEXTAREA'">
|
||||
|
||||
+1
-1
@@ -855,7 +855,7 @@
|
||||
v-model="sarBussionessStandEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
:show-modify-name="true"
|
||||
:limit="['FBGBJBD','FBGYWBD','XDB','KWJ','ZBJBD'].some(item => item===field.attrField) ? 20 : 8"
|
||||
:limit="['FBGBJBD','FBGYWBD','XDB','KWJ','ZBJBD'].some(item => item===field.attrField) ? 40 : 8"
|
||||
></custom-file>
|
||||
</template>
|
||||
<template v-else-if="field.attrType === 'TEXTAREA'">
|
||||
|
||||
@@ -951,7 +951,7 @@
|
||||
:disabled="formdisableflag"
|
||||
:show-modify-name="true"
|
||||
@fileSuccess="fileSuccess"
|
||||
:limit="20"
|
||||
:limit="40"
|
||||
></custom-file>
|
||||
</template>
|
||||
<template v-else-if="field.attrType === 'FILE' && field.attrField === 'FBGYWBD'">
|
||||
@@ -961,7 +961,7 @@
|
||||
:disabled="formdisableflag"
|
||||
:show-modify-name="true"
|
||||
@fileSuccess="fileSuccess"
|
||||
:limit="20"
|
||||
:limit="40"
|
||||
></custom-file>
|
||||
</template>
|
||||
</template>
|
||||
@@ -1175,7 +1175,8 @@
|
||||
<!-- ></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </template>-->
|
||||
<template v-else>
|
||||
<!-- 去掉模块结构单元 -->
|
||||
<template v-else-if="['DYBXH','DYMC','DYBXHCAR','DYMCCAR'].includes(field.attrField)">
|
||||
<custom-input
|
||||
:config="field"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
@@ -1209,7 +1210,7 @@
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
@fileSuccess="fileSuccess"
|
||||
:limit="['XDB','KWJ','ZBJBD'].some(item => item===field.attrField) ? 20 : 8"
|
||||
:limit="['XDB','KWJ','ZBJBD'].some(item => item===field.attrField) ? 40 : 8"
|
||||
></custom-file>
|
||||
</template>
|
||||
<template v-else-if="field.attrType === 'TEXTAREA'">
|
||||
|
||||
Reference in New Issue
Block a user