a0952fa6 by tianhaohao@pashanhoo.com

修改单元材料不能显示的问题

1 parent 8723367a
......@@ -149,7 +149,8 @@
formdata.append("bsmSldy", this.$parent.bsmRepair);
formdata.append("clfl", 3);
} else {
formdata.append("bsmSldy", this.unitData[0]?.bsmSldy);
//formdata.append("bsmSldy", this.unitData[0]?.bsmSldy);
formdata.append("bsmSldy", this.$parent.currentSelectProps.bsmSldy);
formdata.append("clfl", 2);
}
......@@ -230,7 +231,7 @@
* @param {*} data
* @author: renchao
*/
addSave (data) {
addSave (data) {
let obj = {
bsmSlsq: this.$parent.bsmSlsq,
isrequired: "1",
......@@ -240,7 +241,12 @@
ys: 0,
sjlx: data.cllx,
sfxjcl: "1", // 是否必选
sfggcl: data.sfggcl,
};
//是否公共材料
if(data.sfggcl=="0"){
obj["bsmSldy"]=this.$parent.currentSelectProps.bsmSldy;
}
if (this.$route.query.sqywbm == "DJBBL") {
obj.bsmSldy = this.$parent.bsmRepair
}
......
......@@ -97,6 +97,7 @@
this.ruleForm = {
cllx: "",
clmc: "",
sfggcl:"0"
}
this.$emit("input", false);
} else {
......