|
@@ -13,10 +13,10 @@
|
|
</qiuzhiXinxi>
|
|
</qiuzhiXinxi>
|
|
<zhaopianZiliao ref="zhaopianZiliao" :status='status' @editSave="editSaveZhaopianziliao"
|
|
<zhaopianZiliao ref="zhaopianZiliao" :status='status' @editSave="editSaveZhaopianziliao"
|
|
@goNext="goNextZhaopianZiliao" v-show="current ==2"></zhaopianZiliao>
|
|
@goNext="goNextZhaopianZiliao" v-show="current ==2"></zhaopianZiliao>
|
|
- <banzhengXinxi ref="banzhengXinxi" :status='status' @goBack="goBack" @addSave="addSave" @editSave="editSave"
|
|
|
|
- v-show="banzhengXinxiFlag">
|
|
|
|
|
|
+ <banzhengXinxi ref="banzhengXinxi" :status='status' @goBack="goBack" @addEdit='addEdit' @addSave="addSave"
|
|
|
|
+ @editSave="editSave" v-show="banzhengXinxiFlag">
|
|
</banzhengXinxi>
|
|
</banzhengXinxi>
|
|
- <banzhengXinxiList :list="editInfo.kaozhengList" v-show="current ==3&&!banzhengXinxiFlag"
|
|
|
|
|
|
+ <banzhengXinxiList :status='status' :list="editInfo.kaozhengList" v-show="current ==3&&!banzhengXinxiFlag"
|
|
@saveBanzheng="saveBanzheng" @editBanzheng="editBanzheng" @addBanzheng="addBanzheng"
|
|
@saveBanzheng="saveBanzheng" @editBanzheng="editBanzheng" @addBanzheng="addBanzheng"
|
|
@deleteBanzheng="deleteBanzheng" ref="banzhengXinxiList"></banzhengXinxiList>
|
|
@deleteBanzheng="deleteBanzheng" ref="banzhengXinxiList"></banzhengXinxiList>
|
|
<common-dialog ref="commonDialogRef" :title="deleteTitle" :content="deleteConcent"
|
|
<common-dialog ref="commonDialogRef" :title="deleteTitle" :content="deleteConcent"
|
|
@@ -128,54 +128,67 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
goBack() {
|
|
goBack() {
|
|
- //this.banzhengXinxiFlag = true
|
|
|
|
|
|
+ this.banzhengXinxiFlag = false
|
|
},
|
|
},
|
|
editBanzheng(data, index) {
|
|
editBanzheng(data, index) {
|
|
console.log('dataasdf', data);
|
|
console.log('dataasdf', data);
|
|
this.current = 3
|
|
this.current = 3
|
|
- this.banzhengXinxiFlag = false
|
|
|
|
- this.$refs.banzhengXinxi.editinfo(data, index)
|
|
|
|
- this.$refs.banzhengXinxi.currentMove('edit')
|
|
|
|
|
|
+ this.banzhengXinxiFlag = true
|
|
|
|
+ if (this.status == 'edit') {
|
|
|
|
+ this.$refs.banzhengXinxi.editinfo(data, index)
|
|
|
|
+ this.$refs.banzhengXinxi.currentMove('edit')
|
|
|
|
+ } else {
|
|
|
|
+ this.$refs.banzhengXinxi.editinfo(data, index)
|
|
|
|
+ this.$refs.banzhengXinxi.currentMove('addEdit')
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
addBanzheng(data, index) {
|
|
addBanzheng(data, index) {
|
|
this.banzhengXinxiFlag = true
|
|
this.banzhengXinxiFlag = true
|
|
this.$refs.banzhengXinxi.resetFun()
|
|
this.$refs.banzhengXinxi.resetFun()
|
|
//this.current = 3
|
|
//this.current = 3
|
|
// this.$refs.banzhengXinxi.resetFun()
|
|
// this.$refs.banzhengXinxi.resetFun()
|
|
- // this.$refs.banzhengXinxi.currentMove('editAdd')
|
|
|
|
|
|
+ if (this.status == 'edit') {
|
|
|
|
+ this.$refs.banzhengXinxi.currentMove('editAdd')
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
deleteBanzheng(data, index) {
|
|
deleteBanzheng(data, index) {
|
|
- console.log('data', data);
|
|
|
|
- console.log('index', index);
|
|
|
|
- console.log('data.statusBanzheng', data.statusBanzheng);
|
|
|
|
this.deleteId = data.id
|
|
this.deleteId = data.id
|
|
this.deleteIndex = index
|
|
this.deleteIndex = index
|
|
if (data.statusBanzheng == '办证完成') {
|
|
if (data.statusBanzheng == '办证完成') {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: "办证状态为办证完成禁止删除",
|
|
|
|
|
|
+ title: "办证状态为办证完成禁止删除 ",
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
this.$refs.commonDialogRef.handleShow()
|
|
this.$refs.commonDialogRef.handleShow()
|
|
|
|
+
|
|
},
|
|
},
|
|
deleteQuerenBtn() {
|
|
deleteQuerenBtn() {
|
|
- jiazhengKaozhengDelete({
|
|
|
|
- ids: [this.deleteId]
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.code == 0) {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: "成功",
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
- this.editInfo.kaozhengList.splice(this.deleteIndex, 1);
|
|
|
|
- if (this.editInfo.kaozhengList.length == 0) {
|
|
|
|
- this.banzhengXinxiFlag = true
|
|
|
|
|
|
+ if (this.status == 'add') {
|
|
|
|
+ this.allData.kaozhengList.splice(this.deleteIndex, 1)
|
|
|
|
+ this.editInfo.kaozhengList.splice(this.deleteIndex, 1)
|
|
|
|
+ } else {
|
|
|
|
+ jiazhengKaozhengDelete({
|
|
|
|
+ ids: [this.deleteId]
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.code == 0) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "成功",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ this.editInfo.kaozhengList.splice(this.deleteIndex, 1);
|
|
|
|
+ if (this.editInfo.kaozhengList.length == 0) {
|
|
|
|
+ this.banzhengXinxiFlag = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
idCardBlur(data) {
|
|
idCardBlur(data) {
|
|
if (this.status == 'edit') {
|
|
if (this.status == 'edit') {
|
|
@@ -255,13 +268,6 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
changeTab(data) {
|
|
changeTab(data) {
|
|
- console.log('data', data);
|
|
|
|
- if (this.status == 'edit' && data == 3) {
|
|
|
|
- this.banzhengXinxiFlag = true
|
|
|
|
- return false
|
|
|
|
- } else {
|
|
|
|
- this.banzhengXinxiFlag = false
|
|
|
|
- }
|
|
|
|
if (this.status == 'add') {
|
|
if (this.status == 'add') {
|
|
if (this.current >= 0) {
|
|
if (this.current >= 0) {
|
|
this.current--;
|
|
this.current--;
|
|
@@ -283,6 +289,11 @@
|
|
this.$refs.zhaopianZiliao.editinfo(this.editInfo)
|
|
this.$refs.zhaopianZiliao.editinfo(this.editInfo)
|
|
break;
|
|
break;
|
|
case 3:
|
|
case 3:
|
|
|
|
+ if (this.editInfo.kaozhengList.length > 0) {
|
|
|
|
+ this.banzhengXinxiFlag = false
|
|
|
|
+ } else {
|
|
|
|
+ this.banzhengXinxiFlag = true
|
|
|
|
+ }
|
|
this.$refs.banzhengXinxi.editinfo()
|
|
this.$refs.banzhengXinxi.editinfo()
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
@@ -422,10 +433,12 @@
|
|
this.zhaopianziliaoDataHandle(data, 'edit')
|
|
this.zhaopianziliaoDataHandle(data, 'edit')
|
|
},
|
|
},
|
|
addSave(data) {
|
|
addSave(data) {
|
|
- if (this.status == 'add') {
|
|
|
|
- this.submitJiazheng(data)
|
|
|
|
- } else {}
|
|
|
|
|
|
+ // if (this.status == 'add') {
|
|
|
|
+ // this.submitJiazheng(data)
|
|
|
|
+ // } else {
|
|
|
|
|
|
|
|
+ // }
|
|
|
|
+ this.submitJiazheng(data)
|
|
|
|
|
|
},
|
|
},
|
|
submitJiazheng(data) {
|
|
submitJiazheng(data) {
|
|
@@ -476,7 +489,30 @@
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ addEdit(data, flag, index) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "修改成功!",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ this.editInfo.kaozhengList[index].canxunshijian = data.canxunshijian
|
|
|
|
+ this.editInfo.kaozhengList[index].jgId = data.jgId
|
|
|
|
+ this.editInfo.kaozhengList[index].jgName = data.jgName
|
|
|
|
+ this.editInfo.kaozhengList[index].jzId = data.jzId
|
|
|
|
+ this.editInfo.kaozhengList[index].needKaoshi = data.needKaoshi
|
|
|
|
+ this.editInfo.kaozhengList[index].needKecheng = data.needKecheng
|
|
|
|
+ this.editInfo.kaozhengList[index].shicaochengji = data.shicaochengji
|
|
|
|
+ this.editInfo.kaozhengList[index].statusBanzheng = data.statusBanzheng
|
|
|
|
+ this.editInfo.kaozhengList[index].statusKaoshi = data.statusKaoshi
|
|
|
|
+ this.editInfo.kaozhengList[index].zongkeshi = data.zongkeshi
|
|
|
|
+ this.editInfo.kaozhengList[index].id = data.id
|
|
|
|
+ this.editInfo.kaozhengList[index].zyId = data.zyId
|
|
|
|
+ this.editInfo.kaozhengList[index].zyLevel = data.zyLevel
|
|
|
|
+ this.editInfo.kaozhengList[index].zyLevelName = data.zyLevelName
|
|
|
|
+ this.editInfo.kaozhengList[index].zyName = data.zyName
|
|
|
|
+ this.allData.kaozhengList = JSON.parse(JSON.stringify(this.editInfo.kaozhengList));
|
|
|
|
+ this.banzhengXinxiFlag = false
|
|
|
|
+ },
|
|
|
|
|
|
editSave(data, flag, index) {
|
|
editSave(data, flag, index) {
|
|
// debugger
|
|
// debugger
|
|
@@ -490,7 +526,6 @@
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
- //this.banzhengXinxiFlag = true
|
|
|
|
this.editInfo.kaozhengList[index].canxunshijian = data.canxunshijian
|
|
this.editInfo.kaozhengList[index].canxunshijian = data.canxunshijian
|
|
this.editInfo.kaozhengList[index].jgId = data.jgId
|
|
this.editInfo.kaozhengList[index].jgId = data.jgId
|
|
this.editInfo.kaozhengList[index].jgName = data.jgName
|
|
this.editInfo.kaozhengList[index].jgName = data.jgName
|
|
@@ -507,6 +542,7 @@
|
|
this.editInfo.kaozhengList[index].zyLevel = data.zyLevel
|
|
this.editInfo.kaozhengList[index].zyLevel = data.zyLevel
|
|
this.editInfo.kaozhengList[index].zyLevelName = data.zyLevelName
|
|
this.editInfo.kaozhengList[index].zyLevelName = data.zyLevelName
|
|
this.editInfo.kaozhengList[index].zyName = data.zyName
|
|
this.editInfo.kaozhengList[index].zyName = data.zyName
|
|
|
|
+ this.banzhengXinxiFlag = false
|
|
}
|
|
}
|
|
|
|
|
|
})
|
|
})
|
|
@@ -526,7 +562,7 @@
|
|
this.allData.kaozhengList.push(data)
|
|
this.allData.kaozhengList.push(data)
|
|
this.editInfo.kaozhengList.push(data)
|
|
this.editInfo.kaozhengList.push(data)
|
|
console.log('this.editInfo.kaozhengList', this.editInfo.kaozhengList);
|
|
console.log('this.editInfo.kaozhengList', this.editInfo.kaozhengList);
|
|
- // this.banzhengXinxiFlag = true
|
|
|
|
|
|
+ this.banzhengXinxiFlag = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|