22475606 by renchao@pashanhoo.com

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

2 parents a1697266 ed170e10
......@@ -174,7 +174,7 @@
this.$message.error('证件号不能重复');
}
} else {
if (!arr.includes(value.zjh)) {
if (!arr.includes(value.zjh)||this.tableData[this.dataIndex].zjh==value.zjh) {
this.tableDataList[this.dataIndex] = _.cloneDeep(value);
this.$emit('upDateQlrxxList', this.tableDataList)
} else {
......
......@@ -178,7 +178,7 @@
</el-col>
<el-col :span="5" v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'">
<el-form-item label="持证人:">
<el-select v-model="ruleForm.czr" placeholder="持证人" :disabled="!viewEdit">
<el-select v-model="czr" placeholder="持证人" :disabled="!viewEdit">
<el-option
v-for="item in czrOptions"
:key="item.zjh"
......@@ -255,6 +255,11 @@
...res.result,
...res.result.qlxxdatas,
};
this.ruleForm.qlrList.forEach((item) => {
if(item.sfczr==1){
this.czr=item.sqrmc
}
})
//初始化发证方式,1:小证,2:大正
this.ruleForm.slsq.fzfs == null
? (this.ruleForm.slsq.fzfs = "1")
......@@ -272,6 +277,7 @@
disabled: true,
tdytOption: [],
czrOptions: [],
czr:"",
ruleForm: {
flow: {
ywh: "",
......@@ -387,7 +393,7 @@
item.sfczr = "1";
});
} else {
if (!that.ruleForm.czr) {
if (!that.czr) {
that.$message({
showClose: true,
message: "请选择持证人",
......@@ -396,7 +402,7 @@
return false;
}
this.ruleForm.qlrList.forEach((item, index) => {
if (item.zjh == this.ruleForm.czr) {
if (item.zjh == this.czr) {
item.sfczr = "1";
} else {
item.sfczr = "0";
......