22475606 by renchao@pashanhoo.com

Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev

2 parents a1697266 ed170e10
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
164 * @param {*} value 164 * @param {*} value
165 * @author: renchao 165 * @author: renchao
166 */ 166 */
167 handleupdateDetail (value) { 167 handleupdateDetail (value) {
168 let arr = this.tableData.map(item => item.zjh) 168 let arr = this.tableData.map(item => item.zjh)
169 if (this.isaddupdate) { 169 if (this.isaddupdate) {
170 if (!arr.includes(value.zjh)) { 170 if (!arr.includes(value.zjh)) {
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
174 this.$message.error('证件号不能重复'); 174 this.$message.error('证件号不能重复');
175 } 175 }
176 } else { 176 } else {
177 if (!arr.includes(value.zjh)) { 177 if (!arr.includes(value.zjh)||this.tableData[this.dataIndex].zjh==value.zjh) {
178 this.tableDataList[this.dataIndex] = _.cloneDeep(value); 178 this.tableDataList[this.dataIndex] = _.cloneDeep(value);
179 this.$emit('upDateQlrxxList', this.tableDataList) 179 this.$emit('upDateQlrxxList', this.tableDataList)
180 } else { 180 } else {
......
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
178 </el-col> 178 </el-col>
179 <el-col :span="5" v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'"> 179 <el-col :span="5" v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'">
180 <el-form-item label="持证人:"> 180 <el-form-item label="持证人:">
181 <el-select v-model="ruleForm.czr" placeholder="持证人" :disabled="!viewEdit"> 181 <el-select v-model="czr" placeholder="持证人" :disabled="!viewEdit">
182 <el-option 182 <el-option
183 v-for="item in czrOptions" 183 v-for="item in czrOptions"
184 :key="item.zjh" 184 :key="item.zjh"
...@@ -255,6 +255,11 @@ ...@@ -255,6 +255,11 @@
255 ...res.result, 255 ...res.result,
256 ...res.result.qlxxdatas, 256 ...res.result.qlxxdatas,
257 }; 257 };
258 this.ruleForm.qlrList.forEach((item) => {
259 if(item.sfczr==1){
260 this.czr=item.sqrmc
261 }
262 })
258 //初始化发证方式,1:小证,2:大正 263 //初始化发证方式,1:小证,2:大正
259 this.ruleForm.slsq.fzfs == null 264 this.ruleForm.slsq.fzfs == null
260 ? (this.ruleForm.slsq.fzfs = "1") 265 ? (this.ruleForm.slsq.fzfs = "1")
...@@ -272,6 +277,7 @@ ...@@ -272,6 +277,7 @@
272 disabled: true, 277 disabled: true,
273 tdytOption: [], 278 tdytOption: [],
274 czrOptions: [], 279 czrOptions: [],
280 czr:"",
275 ruleForm: { 281 ruleForm: {
276 flow: { 282 flow: {
277 ywh: "", 283 ywh: "",
...@@ -387,7 +393,7 @@ ...@@ -387,7 +393,7 @@
387 item.sfczr = "1"; 393 item.sfczr = "1";
388 }); 394 });
389 } else { 395 } else {
390 if (!that.ruleForm.czr) { 396 if (!that.czr) {
391 that.$message({ 397 that.$message({
392 showClose: true, 398 showClose: true,
393 message: "请选择持证人", 399 message: "请选择持证人",
...@@ -396,7 +402,7 @@ ...@@ -396,7 +402,7 @@
396 return false; 402 return false;
397 } 403 }
398 this.ruleForm.qlrList.forEach((item, index) => { 404 this.ruleForm.qlrList.forEach((item, index) => {
399 if (item.zjh == this.ruleForm.czr) { 405 if (item.zjh == this.czr) {
400 item.sfczr = "1"; 406 item.sfczr = "1";
401 } else { 407 } else {
402 item.sfczr = "0"; 408 item.sfczr = "0";
......