Commit 427aa059 authored by xinzhedeai's avatar xinzhedeai

企业信息 日期开给联动问题处理

parent 500a92bc
......@@ -686,12 +686,8 @@ var reqApis = function(){
"isTechSme":{'name': '是否科技型中小企业','type':'select'},
"techSmeDate":{'name':'最新评选日期'},
},
change: function (val){
var Dict = this.Dict;
Dict.baseInfo.techSmeDate.form = ~~(val === true);
}
}, // inputCombine_1 组合框中的父输入框
"techSmeDate": { 'type': 'date', 'name': '最新评选日期', table:0,form:0, inputCombine_2:'Y',inputCombineArr_2: {}},
"techSmeDate": { 'type': 'date', 'name': '最新评选日期', table:0, mode:7, inputCombine_2:'Y',inputCombineArr_2: {}},
"isHighTech": { 'type': 'select', 'name': '是否高新技术企业', table:0, inputCombine_1:'Y' , inputCombineArr_1: {
"isHighTech":{'name': '是否高新技术企业','type':'select'},
......
......@@ -288,41 +288,15 @@ export default {
watch: {
'form.visible':{
handler(newValue) {
console.log('编辑表单模态框显隐11!!!', this.form.item)
handler(newValue) {
/**
* 针对form处理逻辑,企业孵化装填字段好用,单独处理。(是否科技型中小也可以,不过为了布局,暂不放在这里面处理)
*/
// console.log('编辑表单模态框显隐11!!!', this.form.item)
const tempArr = [{
key: 'incubationStatus', // 企业孵化状态
subKey: 'graduationDate' // 子元素(随着主元素值改变而显隐处理)
},{
key: 'isHighGrowthInnovative', // 主元素
subKey: 'highGrowthInnovativeDate' // 子元素(随着主元素值改变而显隐处理)
},
{
key: 'isHighTech',
subKey: 'highTechDate'
},
{
key: 'isAdvancedTechService',
subKey: 'advancedTechServiceDate'
},
{
key: 'isSpecializedSpecialEnterprises',
subKey: 'specializedSpecialEnterprisesDate'
},
{
key: 'isTechSme',
subKey: 'techSmeDate'
},
{
key: 'isLittleGiant',
subKey: 'littleGiantDate'
},
{
key: 'isGazelle',
subKey: 'gazelleDate'
}
}
]
tempArr.forEach((item, index)=>{
if( this.form.item[item.key]){ // 根据下拉列表获取当前对应的父下拉框的值
......@@ -331,117 +305,135 @@ export default {
this.Dict.baseInfo[item.subKey].form = 0
}
})
setTimeout(()=>{ // 用于详情弹窗显隐处理
[{
key: 'isHighGrowthInnovative', // 主元素
subKey: 'highGrowthInnovativeDate' // 子元素(随着主元素值改变而显隐处理)
},
{
key: 'isHighTech',
subKey: 'highTechDate'
},
{
key: 'isTechSme',
subKey: 'techSmeDate'
},
{
key: 'isAdvancedTechService',
subKey: 'advancedTechServiceDate'
},
{
key: 'isSpecializedSpecialEnterprises',
subKey: 'specializedSpecialEnterprisesDate'
},
{
key: 'isLittleGiant',
subKey: 'littleGiantDate'
},
{
key: 'isGazelle',
subKey: 'gazelleDate'
}
].forEach((item, index)=>{
this.toggleDateElement(item.subKey, this.form.item[item.key]);
})
},1000)
},
immediate: true // 立即调用处理函数
},
// 'basicActv':{
// handler(newValue) {
// // 针对联动输入框显隐设置
// console.log('模态框显隐!!!', this.Dict)
// setTimeout(()=>{ // 用于详情弹窗显隐处理
// [{
// key: 'isHighGrowthInnovative', // 主元素
// subKey: 'highGrowthInnovativeDate' // 子元素(随着主元素值改变而显隐处理)
// },
// {
// key: 'isHighTech',
// subKey: 'highTechDate'
// },
// {
// key: 'isAdvancedTechService',
// subKey: 'advancedTechServiceDate'
// },
// {
// key: 'isSpecializedSpecialEnterprises',
// subKey: 'specializedSpecialEnterprisesDate'
// },
// {
// key: 'isTechSme',
// subKey: 'techSmeDate'
// },
// {
// key: 'isLittleGiant',
// subKey: 'littleGiantDate'
// },
// {
// key: 'isGazelle',
// subKey: 'gazelleDate'
// }
// 'basicActv':{
// handler(newValue) {
// // 针对联动输入框显隐设置
// console.log('模态框显隐!!!', this.Dict)
// setTimeout(()=>{ // 用于详情弹窗显隐处理
// [{
// key: 'isHighGrowthInnovative', // 主元素
// subKey: 'highGrowthInnovativeDate' // 子元素(随着主元素值改变而显隐处理)
// },
// {
// key: 'isHighTech',
// subKey: 'highTechDate'
// },
// {
// key: 'isAdvancedTechService',
// subKey: 'advancedTechServiceDate'
// },
// {
// key: 'isSpecializedSpecialEnterprises',
// subKey: 'specializedSpecialEnterprisesDate'
// },
// {
// key: 'isLittleGiant',
// subKey: 'littleGiantDate'
// },
// {
// key: 'isGazelle',
// subKey: 'gazelleDate'
// }
// ].forEach((item, index)=>{
// this.toggleDateElement(item.subKey, this.catchItem[item.key]);
// })
// // this.toggleDateElement("highGrowthInnovativeDate", this.form.item.isHighGrowthInnovative);
// },1000)
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isHighGrowthInnovative"(newVal, oldVal) {
// // this.toggleDateElement("highGrowthInnovativeDate");
// // },
// "form.item.isHighGrowthInnovative": {
// handler(newValue) {
// this.toggleDateElement("highGrowthInnovativeDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isHighTech"(newVal, oldVal) {
// // this.toggleDateElement("highTechDate");
// // },
// "form.item.isHighTech": {
// handler(newValue) {
// this.toggleDateElement("highTechDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// "form.item.isAdvancedTechService": {
// handler(newValue) {
// this.toggleDateElement("advancedTechServiceDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isAdvancedTechService"(newVal, oldVal) {
// // this.toggleDateElement("advancedTechServiceDate");
// // },
// "form.item.isSpecializedSpecialEnterprises": {
// handler(newValue) {
// this.toggleDateElement("specializedSpecialEnterprisesDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isSpecializedSpecialEnterprises"(newVal, oldVal) {
// // this.toggleDateElement("specializedSpecialEnterprisesDate");
// // },
// "form.item.isTechSme": {
// handler(newValue) {
// this.toggleDateElement("techSmeDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isTechSme"(newVal, oldVal) {
// // this.toggleDateElement("techSmeDate");
// // },
// "form.item.isLittleGiant": {
// handler(newValue) {
// this.toggleDateElement("littleGiantDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isLittleGiant"(newVal, oldVal) {
// // this.toggleDateElement("littleGiantDate");
// // },
// "form.item.isGazelle": {
// handler(newValue) {
// this.toggleDateElement("gazelleDate", newValue);
// },
// immediate: true // 立即调用处理函数
// },
// // "form.item.isGazelle"(newVal, oldVal) {
// // this.toggleDateElement("gazelleDate");
// // },
// ].forEach((item, index)=>{
// this.toggleDateElement(item.subKey, this.catchItem[item.key]);
// })
// // this.toggleDateElement("highGrowthInnovativeDate", this.form.item.isHighGrowthInnovative);
// },1000)
// },
// immediate: true // 立即调用处理函数
// },
"form.item.isHighGrowthInnovative": {
handler(newValue) {
this.toggleDateElement("highGrowthInnovativeDate", newValue);
},
immediate: true // 立即调用处理函数
},
"form.item.isHighTech": {
handler(newValue) {
this.toggleDateElement("highTechDate", newValue);
},
immediate: true, // 立即调用处理函数
deep: true,
},
"form.item.isAdvancedTechService": {
handler(newValue) {
this.toggleDateElement("advancedTechServiceDate", newValue);
},
immediate: true // 立即调用处理函数
},
"form.item.isSpecializedSpecialEnterprises": {
handler(newValue) {
this.toggleDateElement("specializedSpecialEnterprisesDate", newValue);
},
immediate: true // 立即调用处理函数
},
"form.item.isTechSme": {
handler(newValue) {
this.toggleDateElement("techSmeDate", newValue);
},
immediate: true // 立即调用处理函数
},
"form.item.isLittleGiant": {
handler(newValue) {
this.toggleDateElement("littleGiantDate", newValue);
},
immediate: true // 立即调用处理函数
},
"form.item.isGazelle": {
handler(newValue) {
this.toggleDateElement("gazelleDate", newValue);
},
immediate: true // 立即调用处理函数
},
},
methods: {
beforeUpload(file) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment