Commit 6e87c79e by 薛文刚

侦查终结

parent b4ffb8b7
......@@ -31,7 +31,8 @@
v-show="!item2.hidden"
:class="[
'demo-input-suffix zdycol'+item2.col,
item2.prop == 'checkEmpty' ? 'redColor' : ''
item2.prop == 'checkEmpty' ? 'redColor' : '',
item2.type == 'textarea' ? 'text_area' : '',
]">
<!--输入框-->
<div class="zdyInputW"
......@@ -39,7 +40,6 @@
<el-input :placeholder="item2.placeholder"
v-model="formLabelAlign[item2.id]"
:disabled='item2.isdisabled'
@focus="showJyDialog(item2.jy,item2.id)"
clearable>
</el-input>
<a v-if="item2.isAjax"
......@@ -490,6 +490,7 @@ export default {
id: "asjbh",
type: "text",
value: "",
isdisabled: true,
placeholder: "",
col: "3",
},
......@@ -509,6 +510,7 @@ export default {
id: "zczjZxsj01",
type: "datetime",
prop: "checkEmpty",
isdisabled: true,
value: "",
col: "3",
},
......@@ -560,6 +562,15 @@ export default {
codeTree: "CODE_ZADJ",
},
{
name: "发案原因补充描述:",
id: "zadjdmbcms",
type: "text",
hidden: true,
value: "",
placeholder: "",
col: "3",
},
{
name: "作案手段:",
id: "zczjZasddm",
type: "codeTree",
......@@ -568,7 +579,16 @@ export default {
prop: "checkEmpty",
col: "3",
codeOptions: [],
codeTree: "CODE_ZADJ",
codeTree: "CODE_TSSD",
},
{
name: "作案手段补充描述:",
id: "tssddmbcms",
type: "text",
hidden: true,
value: "",
placeholder: "",
col: "3",
},
{
name: "破案手段:",
......@@ -579,8 +599,8 @@ export default {
prop: "checkEmpty",
col: "3",
codeOptions: [],
codeTree: "CODE_ZADJ",
},
codeTree: "CODE_PASD",
}
]
},
{
......@@ -1335,127 +1355,6 @@ export default {
this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
},
/**
* 下拉框值改变事件(当有子集时子集的值初始化为空)
*/
selectChanged (value, item) {
var self = this;
if (!self.$route.meta.isUpdata) {
//如果条件为真
if (item.childrenAsAdd) {
//如果有这个子孩子的话,遍历每一项 将每一项的id复制给一个变量
item.childrenAsAdd.forEach(childrenItem => {
var childrenItemName = childrenItem.id;
//拿到每个list里的name遍历数组,拿到每个值
childrenItem.list[0].name.forEach(singleListName => {
//拿到所绑定的值 id值 xsglxyr:[{1."",2:"",}]
self.formLabelAlign[childrenItemName].forEach(realDataItem => {
//如果对象里有多选且类型等于code时,给一个空数组
if (
singleListName.multiple == true &&
singleListName.type == "code"
) {
self.$set(realDataItem, singleListName.id, []);
} else if (
singleListName.type == "lazyCodeTree" ||
singleListName.type == "codeTag"
) {
//如果等于二级字典时 也给一个空数组,因为他们所绑定的是数组
self.$set(realDataItem, singleListName.id, []);
} else {
//否则就是一个空字符串
self.$set(realDataItem, singleListName.id, "");
}
});
});
});
}
}
},
/**
* 子元素下拉框值改变事件
*/
selectChildrenChanged (value, item) {
var self = this;
if (item.name == "到案状态:") {
var readyRules, readyDaoAnRules, readySiWangRules = [];
readyDaoAnRules = ["fzxyr.zhrq", "fzxyr.zhddXzqhdm", "fzxyr.flwsfjssss", "fzxyr.flwsfj2", "fzxyr.flwsfj3", "fzxyr.flwsfj4"]
readySiWangRules = ["fzxyr.flwsfj7"];
var readyRulesName, readyDaoAnRulesName, readySiWangRulesName = [];
readyDaoAnRulesName = ["zhrq", "zhddXzqhdm", "flwsfjssss", "flwsfj2", "flwsfj3", "flwsfj4"]
readySiWangRulesName = ["flwsfj7"]
//到案 抓获日期,抓获地点区别,刑事居留证,逮捕证,取保候审决定书,监视居住决定书 均必填
if (value == "1") {
readyRules = readyDaoAnRules;
readySiWangRules.forEach(singleRule => {
self.rules[singleRule] = null
})
}
//在逃
else if (value == "2") {
readyRules = [];
readyDaoAnRules.forEach(singleRule => {
self.rules[singleRule] = null
});
readySiWangRules.forEach(singleRule => {
self.rules[singleRule] = null
})
}
//死亡 死亡证明 必填
else if (value == "3") {
readyRules = readySiWangRules;
readyDaoAnRules.forEach(singleRule => {
self.rules[singleRule] = null
})
}
//重新设置嫌疑人表单验证
readyRules.forEach(singleRule => {
self.rules[singleRule] = self.$rules["checkEmpty"]
})
//遍历嫌疑人可配置化列表的子集
self.propFormField[3].data[0].childrenAsAdd.forEach((childrenIdem) => {
childrenIdem.list[0].name.forEach((currentField) => {
// var readyRulesName, readyDaoAnRulesName, readySiWangRulesName = [];
// readyDaoAnRulesName = ["zhrq", "zhddXzqhdm", "flwsfjssss", "flwsfj2", "flwsfj3", "flwsfj4"]
// readySiWangRulesName = ["flwsfj7"]
//到案 抓获日期,抓获地点区别,刑事居留证,逮捕证,取保候审决定书,监视居住决定书 均必填
if (value == "1") {
if (readySiWangRulesName.indexOf(currentField.id) >= 0) {
currentField.prop = ""
};
if (readyDaoAnRulesName.indexOf(currentField.id) >= 0) {
currentField.prop = "checkEmpty"
};
}
//在逃
else if (value == "2") {
if (readySiWangRulesName.indexOf(currentField.id) >= 0) {
currentField.prop = ""
};
if (readyDaoAnRulesName.indexOf(currentField.id) >= 0) {
currentField.prop = ""
};
}
//死亡 死亡证明 必填
else if (value == "3") {
if (readySiWangRulesName.indexOf(currentField.id) >= 0) {
currentField.prop = "checkEmpty"
};
if (readyDaoAnRulesName.indexOf(currentField.id) >= 0) {
currentField.prop = ""
};
}
});
});
}
},
/**
* 展示字典树弹出框
*/
showCodeTreeDialog (value, item, realFormLableAlign, realValueKey) {
......@@ -1601,7 +1500,49 @@ export default {
})
});
}
},
watch: {
'formLabelAlign.zczjZasddm': {
handler: function (val, oldval) {
debugger
if (val == '99') {
this.propFormField[1].data[5].hidden = false
this.propFormField[1].data[5].prop = 'checkEmpty'
this.propFormField[1].data[4].prop = ''
this.rules["zczjZasddm"] = null;
this.rules["tssddmbcms"] = this.$rules["checkEmpty"];
} else {
this.propFormField[1].data[5].hidden = true
this.propFormField[1].data[4].prop = 'checkEmpty'
this.propFormField[1].data[5].prop = ''
this.rules["zczjZasddm"] = this.$rules["checkEmpty"];
this.rules["tssddmbcms"] = null;
this.$forceUpdate();
}
},
deep: true
},
'formLabelAlign.zadjdm': {
handler: function (val, oldval) {
debugger
if (val == '99') {
this.propFormField[1].data[3].hidden = false
this.propFormField[1].data[3].prop = 'checkEmpty'
this.propFormField[1].data[2].prop = ''
this.rules["zadjdm"] = null;
this.rules["zadjdmbcms"] = this.$rules["checkEmpty"];
} else {
this.propFormField[1].data[3].hidden = true
this.propFormField[1].data[2].prop = 'checkEmpty'
this.propFormField[1].data[3].prop = ''
this.rules["zadjdm"] = this.$rules["checkEmpty"];
this.rules["zadjdmbcms"] = null;
this.$forceUpdate();
}
},
deep: true
}
},
}
</script>
......@@ -1652,6 +1593,10 @@ export default {
}
</style>
<style>
.text_area .el-form-item__label {
line-height: initial !important;
}
.redColor .el-form-item__label {
color: red;
}
......
......@@ -31,7 +31,8 @@
v-show="!item2.hidden"
:class="[
'demo-input-suffix zdycol'+item2.col,
item2.prop == 'checkEmpty' ? 'redColor' : ''
item2.prop == 'checkEmpty' ? 'redColor' : '',
item2.type == 'textarea' ? 'text_area' : '',
]">
<!--输入框-->
<div class="zdyInputW"
......@@ -39,7 +40,6 @@
<el-input :placeholder="item2.placeholder"
v-model="formLabelAlign[item2.id]"
:disabled='item2.isdisabled'
@focus="showJyDialog(item2.jy,item2.id)"
clearable>
</el-input>
<a v-if="item2.isAjax"
......@@ -518,59 +518,77 @@ export default {
prop: "checkEmpty",
value: "",
col: "1"
},
}
]
},
{
title: '案件信息',
id: '2',
data: [
{
name: "作案手段:",
id: "zczjZasddm",
name: "案件类别:",
id: "ajlbdm",
type: "codeTree",
props: [],//字典弹框需要的字段
value: "",
prop: "checkEmpty",
col: "3",
codeOptions: [],
codeTree: "CODE_ZADJ",
codeTree: "CODE_AJLB",
},
{
name: "破案手段:",
id: "zczjPasddm",
name: "案件性质:",
id: "zatzJyqk",
type: "codeTree",
props: [],//字典弹框需要的字段
value: "",
prop: "checkEmpty",
col: "3",
codeOptions: [],
codeTree: "CODE_ZADJ",
codeTree: "CODE_AJXZ",
},
]
},
{
title: '案件信息',
id: '2',
data: [
{
name: "案件类别:",
id: "ajlbdm",
name: "发案原因:",
id: "zadjdm",
type: "codeTree",
props: [],//字典弹框需要的字段
value: "",
prop: "checkEmpty",
col: "3",
codeOptions: [],
codeTree: "CODE_AJLB",
codeTree: "CODE_ZADJ",
},
{
name: "案件性质:",
id: "zatzJyqk",
name: "发案原因补充描述:",
id: "zadjdmbcms",
type: "text",
hidden: true,
value: "",
placeholder: "",
col: "3",
},
{
name: "作案手段:",
id: "zczjZasddm",
type: "codeTree",
props: [],//字典弹框需要的字段
value: "",
prop: "checkEmpty",
col: "3",
codeOptions: [],
codeTree: "CODE_AJXZ",
codeTree: "CODE_ZADJ",
},
{
name: "作案动机:",
id: "zadjdm",
name: "作案手段补充描述:",
id: "tssddmbcms",
type: "text",
hidden: true,
value: "",
placeholder: "",
col: "3",
},
{
name: "破案手段:",
id: "zczjPasddm",
type: "codeTree",
props: [],//字典弹框需要的字段
value: "",
......@@ -1602,7 +1620,49 @@ export default {
})
});
}
},
watch: {
'formLabelAlign.zczjZasddm': {
handler: function (val, oldval) {
debugger
if (val == '99') {
this.propFormField[1].data[5].hidden = false
this.propFormField[1].data[5].prop = 'checkEmpty'
this.propFormField[1].data[4].prop = ''
this.rules["zczjZasddm"] = null;
this.rules["tssddmbcms"] = this.$rules["checkEmpty"];
} else {
this.propFormField[1].data[5].hidden = true
this.propFormField[1].data[4].prop = 'checkEmpty'
this.propFormField[1].data[5].prop = ''
this.rules["zczjZasddm"] = this.$rules["checkEmpty"];
this.rules["tssddmbcms"] = null;
this.$forceUpdate();
}
},
deep: true
},
'formLabelAlign.zadjdm': {
handler: function (val, oldval) {
debugger
if (val == '99') {
this.propFormField[1].data[3].hidden = false
this.propFormField[1].data[3].prop = 'checkEmpty'
this.propFormField[1].data[2].prop = ''
this.rules["zadjdm"] = null;
this.rules["zadjdmbcms"] = this.$rules["checkEmpty"];
} else {
this.propFormField[1].data[3].hidden = true
this.propFormField[1].data[2].prop = 'checkEmpty'
this.propFormField[1].data[3].prop = ''
this.rules["zadjdm"] = this.$rules["checkEmpty"];
this.rules["zadjdmbcms"] = null;
this.$forceUpdate();
}
},
deep: true
}
},
}
</script>
......@@ -1653,6 +1713,9 @@ export default {
}
</style>
<style>
.text_area .el-form-item__label {
line-height: initial !important;
}
.redColor .el-form-item__label {
color: red;
}
......
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