Commit 21d75151 by 西瓜

反馈核查案件和嫌疑人删除

parent 7367ecb2
......@@ -15,9 +15,9 @@
},
{
"ids": "455542",
"label": "长签字页扫描件",
"label": "长签字页扫描件",
"codeType": "CODE_SHCE_HCFKFJLXDM",
"text": "长签字页扫描件",
"text": "长签字页扫描件",
"id": "02",
"isParent": false,
"children": []
......
......@@ -68,4 +68,9 @@ export const getXxzjbh = params =>
//附件删除
export const deleteObj1 = params =>
post(`${base.alyIP}/shse/deleteObj`, params)
\ No newline at end of file
post(`${base.alyIP}/shse/deleteObj`, params)
//嫌疑人,案件删除
export const deleteObjXyrAj = params =>
post(`${base.alyIP}/shse/deleteObj`, params)
\ No newline at end of file
......@@ -1062,7 +1062,7 @@
>阶段反馈</el-button
>
<el-button
v-else-if="xgbuttom == '1'"
v-else-if="xgbuttom == '1'"
type="info"
icon="el-icon-document-remove"
@click="submit('17')"
......@@ -1077,7 +1077,6 @@
id="caiji"
>办结反馈</el-button
>
</div>
<div v-else-if="propBottonType == 'Xdzl'">
<el-button
......@@ -1228,7 +1227,11 @@
</template>
<script>
import { queryCodeByType,deleteObj1 } from '@/api/xsInput/xsInput.js'
import {
queryCodeByType,
deleteObj1,
deleteObjXyrAj
} from '@/api/xsInput/xsInput.js'
import { get, post, postform } from '@/utils/http.js'
import base from '@/api/base'
import axios from 'axios'
......@@ -1279,6 +1282,8 @@ export default {
},
data () {
return {
scId: '',
tbName: '',
xXxxzjbhSc: '',
filterText: '',
buttom: this.$route.query.buttom,
......@@ -1530,23 +1535,69 @@ export default {
//点击垃圾桶 删除表单
deleteObj (obj) {
debugger
let self = this
self.propFormField.forEach(val => {
if (val.childrenAsAdd) {
val.childrenAsAdd.forEach(val2 => {
self.formLabelAlign[val2.id].forEach(val3 => {
if (val3 == obj) {
self.formLabelAlign[val2.id].splice(val2.list.indexOf(val3), 1)
// this.$message.success("删除成功");
this.$alert('删除成功!', '提示', {
confirmButtonText: '确定',
type: 'success'
if (!obj.xxzjbh) {
self.propFormField.forEach(val => {
if (val.childrenAsAdd) {
val.childrenAsAdd.forEach(val2 => {
self.formLabelAlign[val2.id].forEach(val3 => {
if (val3 == obj) {
self.formLabelAlign[val2.id].splice(
val2.list.indexOf(val3),
1
)
// this.$message.success("删除成功");
this.$alert('删除成功!', '提示', {
confirmButtonText: '确定',
type: 'success'
})
}
})
})
}
})
} else {
self.propFormField[4].childrenAsAdd.forEach(item => {
console.log(item)
self.scId = item.id
})
self.propFormField[5].childrenAsAdd.forEach(item => {
console.log(item)
self.scId = item.id
})
if (self.scId == 'hcfkglxyr') {
this.tbName = 'TB_YW_SHSEXS_HCFKGLXYR'
} else if (self.scId == 'hcfkglasj') {
this.tbName = 'TB_YW_SHSEXS_HCFKGLASJ'
}
deleteObjXyrAj({
xxzjbh: obj.xxzjbh,
tbName: this.tbName
}).then(res => {
if (res.code == '200') {
self.propFormField.forEach(val => {
if (val.childrenAsAdd) {
val.childrenAsAdd.forEach(val2 => {
self.formLabelAlign[val2.id].forEach(val3 => {
if (val3 == obj) {
self.formLabelAlign[val2.id].splice(
val2.list.indexOf(val3),
1
)
// this.$message.success("删除成功");
this.$alert('删除成功!', '提示', {
confirmButtonText: '确定',
type: 'success'
})
}
})
})
}
})
})
}
})
}
})
}
},
//新增表单数据
......@@ -2813,7 +2864,7 @@ export default {
)
}
}
debugger
debugger
console.log(
'1)普通字段处' + this.propSt + '.' + item.id,
self.formLabelAlign[item.id]
......@@ -3077,31 +3128,31 @@ export default {
},
beforeRemove (file, fileList) {
debugger
return this.$confirm(`是否要删除!`, '提示!', {
confirmButtonText: '确定',
type:'waring'
}).then( () => {
// if (file.uid == )
if (this.$route.query.fkxxzjbh) {
this.xXxxzjbhSc = file.xxzjbh
} else {
this.xXxxzjbhSc = this.xcfjSc
}
deleteObj1({
xxzjbh: this.xXxxzjbhSc,
tbName: 'TB_YW_SHSEXS_XSHCFKFJ'
}).then(res => {
if (res.code == '200') {
this.$alert('删除成功!','提示', {
confirmButtonText: '确定',
type: 'success',
callback: () => {
return this.$confirm(`是否要删除!`, '提示!', {
confirmButtonText: '确定',
type: 'waring'
}).then(() => {
// if (file.uid == )
if (this.$route.query.fkxxzjbh) {
this.xXxxzjbhSc = file.xxzjbh
} else {
this.xXxxzjbhSc = this.xcfjSc
}
deleteObj1({
xxzjbh: this.xXxxzjbhSc,
tbName: 'TB_YW_SHSEXS_XSHCFKFJ'
}).then(res => {
if (res.code == '200') {
this.$alert('删除成功!', '提示', {
confirmButtonText: '确定',
type: 'success',
callback: () => {
// location.reload();
}
})
}
})
}
})
}
})
})
},
handleRemove (file, fileList, item) {
debugger
......@@ -3135,7 +3186,10 @@ export default {
} else if (item.id == 'hcbgDzwd') {
params.append('shsexsbh', this.shsexsbh)
params.append('jsxxzjbh', this.xxzjbh)
params.append('jshcxxzjbh', this.jshcxxzjbh ? this.jshcxxzjbh : this.fkxxzjbh)
params.append(
'jshcxxzjbh',
this.jshcxxzjbh ? this.jshcxxzjbh : this.fkxxzjbh
)
params.append('fjlxdm', '01')
params.append('file', file.raw)
self.fkcs = params
......@@ -3143,8 +3197,11 @@ export default {
} else if (item.id == 'szqzySmj') {
params.append('shsexsbh', this.shsexsbh)
params.append('jsxxzjbh', this.xxzjbh)
// params.append('jshcxxzjbh', this.jshcxxzjbh)
params.append('jshcxxzjbh', this.jshcxxzjbh ? this.jshcxxzjbh : this.fkxxzjbh)
// params.append('jshcxxzjbh', this.jshcxxzjbh)
params.append(
'jshcxxzjbh',
this.jshcxxzjbh ? this.jshcxxzjbh : this.fkxxzjbh
)
params.append('fjlxdm', '02')
params.append('file', file.raw)
self.fkcs = params
......@@ -3153,7 +3210,10 @@ export default {
params.append('shsexsbh', this.shsexsbh)
params.append('jsxxzjbh', this.xxzjbh)
// params.append('jshcxxzjbh', this.jshcxxzjbh)
params.append('jshcxxzjbh', this.jshcxxzjbh ? this.jshcxxzjbh : this.fkxxzjbh)
params.append(
'jshcxxzjbh',
this.jshcxxzjbh ? this.jshcxxzjbh : this.fkxxzjbh
)
params.append('fjlxdm', '03')
params.append('file', file.raw)
self.fkcs = params
......@@ -3225,7 +3285,7 @@ export default {
})
debugger
postform(`${base.alyIP}/xsHcfkSp/addHcfkFj`, this.fkcs).then(res => {
if (res.code == '200') {
if (res.code == '200') {
this.xcfjSc = res.data.xxzjbh
this.$alert('上传成功!', '提示', {
confirmButtonText: '确定',
......@@ -4164,7 +4224,7 @@ $-header-fontSize: 18px;
}
}
}
/deep/.el-upload-list__item.is-success.focusing .el-icon-close-tip {
/deep/.el-upload-list__item.is-success.focusing .el-icon-close-tip {
display: none !important;
}
</style>
......@@ -632,7 +632,7 @@ export default {
content: []
},
smj: {
name: '长签字页扫面件:',
name: '长签字页扫面件:',
content: []
},
qt: {
......
......@@ -1036,7 +1036,7 @@ export default {
content: []
},
smj: {
name: '长签字页扫面件:',
name: '长签字页扫面件:',
content: []
},
qt: {
......
......@@ -425,7 +425,7 @@ export default {
content: [],
},
smj: {
name: "长签字页扫面件:",
name: "长签字页扫面件:",
content: [],
},
qt: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment