a0952fa6 by tianhaohao@pashanhoo.com

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

1 parent 8723367a
...@@ -149,7 +149,8 @@ ...@@ -149,7 +149,8 @@
149 formdata.append("bsmSldy", this.$parent.bsmRepair); 149 formdata.append("bsmSldy", this.$parent.bsmRepair);
150 formdata.append("clfl", 3); 150 formdata.append("clfl", 3);
151 } else { 151 } else {
152 formdata.append("bsmSldy", this.unitData[0]?.bsmSldy); 152 //formdata.append("bsmSldy", this.unitData[0]?.bsmSldy);
153 formdata.append("bsmSldy", this.$parent.currentSelectProps.bsmSldy);
153 formdata.append("clfl", 2); 154 formdata.append("clfl", 2);
154 } 155 }
155 156
...@@ -230,7 +231,7 @@ ...@@ -230,7 +231,7 @@
230 * @param {*} data 231 * @param {*} data
231 * @author: renchao 232 * @author: renchao
232 */ 233 */
233 addSave (data) { 234 addSave (data) {
234 let obj = { 235 let obj = {
235 bsmSlsq: this.$parent.bsmSlsq, 236 bsmSlsq: this.$parent.bsmSlsq,
236 isrequired: "1", 237 isrequired: "1",
...@@ -240,7 +241,12 @@ ...@@ -240,7 +241,12 @@
240 ys: 0, 241 ys: 0,
241 sjlx: data.cllx, 242 sjlx: data.cllx,
242 sfxjcl: "1", // 是否必选 243 sfxjcl: "1", // 是否必选
244 sfggcl: data.sfggcl,
243 }; 245 };
246 //是否公共材料
247 if(data.sfggcl=="0"){
248 obj["bsmSldy"]=this.$parent.currentSelectProps.bsmSldy;
249 }
244 if (this.$route.query.sqywbm == "DJBBL") { 250 if (this.$route.query.sqywbm == "DJBBL") {
245 obj.bsmSldy = this.$parent.bsmRepair 251 obj.bsmSldy = this.$parent.bsmRepair
246 } 252 }
......
...@@ -97,6 +97,7 @@ ...@@ -97,6 +97,7 @@
97 this.ruleForm = { 97 this.ruleForm = {
98 cllx: "", 98 cllx: "",
99 clmc: "", 99 clmc: "",
100 sfggcl:"0"
100 } 101 }
101 this.$emit("input", false); 102 this.$emit("input", false);
102 } else { 103 } else {
......