|
@@ -18,6 +18,8 @@
|
|
</banzhengXinxi>
|
|
</banzhengXinxi>
|
|
<banzhengXinxiList :list="editInfo.kaozhengList" v-show="banzhengXinxiFlag" @editBanzheng="editBanzheng"
|
|
<banzhengXinxiList :list="editInfo.kaozhengList" v-show="banzhengXinxiFlag" @editBanzheng="editBanzheng"
|
|
@addBanzheng="addBanzheng" @deleteBanzheng="deleteBanzheng" ref="banzhengXinxiList"></banzhengXinxiList>
|
|
@addBanzheng="addBanzheng" @deleteBanzheng="deleteBanzheng" ref="banzhengXinxiList"></banzhengXinxiList>
|
|
|
|
+ <common-dialog ref="commonDialogRef" :title="deleteTitle" :content="deleteConcent"
|
|
|
|
+ @confirm-btn="deleteQuerenBtn"></common-dialog>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -29,6 +31,7 @@
|
|
import banzhengXinxiList from './banzhengXinxiList.vue';
|
|
import banzhengXinxiList from './banzhengXinxiList.vue';
|
|
import qiuzhiXinxi from './qiuzhiXinxi.vue';
|
|
import qiuzhiXinxi from './qiuzhiXinxi.vue';
|
|
import zhaopianZiliao from './zhaopianZiliao.vue';
|
|
import zhaopianZiliao from './zhaopianZiliao.vue';
|
|
|
|
+ import commonDialog from '@/components/dialog/commonDialog.vue';
|
|
import gerenZiliao from './gerenZiliao.vue';
|
|
import gerenZiliao from './gerenZiliao.vue';
|
|
import {
|
|
import {
|
|
getJiazhengInfo,
|
|
getJiazhengInfo,
|
|
@@ -82,7 +85,11 @@
|
|
id: '',
|
|
id: '',
|
|
userId: '',
|
|
userId: '',
|
|
banzhengXinxiFlag: false,
|
|
banzhengXinxiFlag: false,
|
|
- editInfo: {}
|
|
|
|
|
|
+ editInfo: {},
|
|
|
|
+ deleteConcent: '你确定要执行这个操作吗?',
|
|
|
|
+ deleteTitle: '删除',
|
|
|
|
+ deleteIndex:'',
|
|
|
|
+ deleteId:'',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
@@ -90,7 +97,8 @@
|
|
banzhengXinxiList,
|
|
banzhengXinxiList,
|
|
qiuzhiXinxi,
|
|
qiuzhiXinxi,
|
|
gerenZiliao,
|
|
gerenZiliao,
|
|
- zhaopianZiliao,
|
|
|
|
|
|
+ commonDialog,
|
|
|
|
+ zhaopianZiliao
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
let pageInfo = JSON.parse(options.pageInfo)
|
|
let pageInfo = JSON.parse(options.pageInfo)
|
|
@@ -112,8 +120,22 @@
|
|
deleteBanzheng(data, index) {
|
|
deleteBanzheng(data, index) {
|
|
console.log('data', data);
|
|
console.log('data', data);
|
|
console.log('index', index);
|
|
console.log('index', index);
|
|
|
|
+ console.log('data.statusBanzheng', data.statusBanzheng);
|
|
|
|
+ this.deleteId = data.id
|
|
|
|
+ this.deleteIndex = index
|
|
|
|
+ if (data.statusBanzheng == '办证完成') {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "办证状态为办证完成禁止删除",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ this.$refs.commonDialogRef.handleShow()
|
|
|
|
+ },
|
|
|
|
+ deleteQuerenBtn() {
|
|
jiazhengKaozhengDelete({
|
|
jiazhengKaozhengDelete({
|
|
- ids: [data.id]
|
|
|
|
|
|
+ ids: [this.deleteId]
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -121,14 +143,13 @@
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
- this.editInfo.kaozhengList.splice(index, 1);
|
|
|
|
|
|
+ this.editInfo.kaozhengList = this.editInfo.kaozhengList.splice(index, 1);
|
|
if (this.editInfo.kaozhengList.length == 0) {
|
|
if (this.editInfo.kaozhengList.length == 0) {
|
|
this.banzhengXinxiFlag = false
|
|
this.banzhengXinxiFlag = false
|
|
this.current = 3
|
|
this.current = 3
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
},
|
|
},
|
|
idCardBlur(data) {
|
|
idCardBlur(data) {
|
|
this.$refs.qiuzhiXinxi.editinfo(data)
|
|
this.$refs.qiuzhiXinxi.editinfo(data)
|