|
@@ -862,6 +862,16 @@ import { getFileUrl } from '@/api/common'
|
|
|
import imageUpload from '@/components/Common/image-upload.vue'
|
|
|
|
|
|
export default {
|
|
|
+ props: {
|
|
|
+ depositManageId: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: null
|
|
|
+ },
|
|
|
+ refEnginRecordNo: {
|
|
|
+ type: [String, Number],
|
|
|
+ default: null
|
|
|
+ }
|
|
|
+ },
|
|
|
components: {
|
|
|
imageUpload
|
|
|
},
|
|
@@ -910,7 +920,7 @@ export default {
|
|
|
methods: {
|
|
|
getDetail() {
|
|
|
if (this.engineering == '工程押金信息') {
|
|
|
- geDetail({ id: this.$parent.depositManageId }).then(res => {
|
|
|
+ geDetail({ id: this.depositManageId }).then(res => {
|
|
|
if (res.data.dataList.length == 0) {
|
|
|
this.isDis = true
|
|
|
} else {
|
|
@@ -932,7 +942,7 @@ export default {
|
|
|
})
|
|
|
} else if (this.engineering == '工程订单信息') {
|
|
|
geOrderInfo({
|
|
|
- refEnginRecordNo: this.$parent.refEnginRecordNo,
|
|
|
+ refEnginRecordNo: this.refEnginRecordNo,
|
|
|
examineStatus: 'OK'
|
|
|
}).then(res => {
|
|
|
this.dataList = res.data
|
|
@@ -942,7 +952,7 @@ export default {
|
|
|
pageSize: -1,
|
|
|
pageNum: 1,
|
|
|
type: 3,
|
|
|
- refEnginRecordNo: this.$parent.refEnginRecordNo
|
|
|
+ refEnginRecordNo: this.refEnginRecordNo
|
|
|
}).then(res => {
|
|
|
this.goodsList = res.data.records
|
|
|
})
|
|
@@ -950,7 +960,7 @@ export default {
|
|
|
getListProject({
|
|
|
pageSize: -1,
|
|
|
pageNum: 1,
|
|
|
- refEnginRecordNo: this.$parent.refEnginRecordNo
|
|
|
+ refEnginRecordNo: this.refEnginRecordNo
|
|
|
}).then(res => {
|
|
|
this.projectList = res.data.records
|
|
|
})
|
|
@@ -958,7 +968,7 @@ export default {
|
|
|
},
|
|
|
// 批量下载
|
|
|
async batchDownloadFn() {
|
|
|
- downloadFiles('deposit-manage/downZip', { parentId: this.$parent.depositManageId })
|
|
|
+ downloadFiles('deposit-manage/downZip', { parentId: this.depositManageId })
|
|
|
},
|
|
|
// 下载
|
|
|
downLoadFn(v, fileName) {
|
|
@@ -1005,7 +1015,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
goBack() {
|
|
|
- this.$parent.showPage = 1
|
|
|
+ this.$emit('setShowPage', 1)
|
|
|
},
|
|
|
handleRadio(e) {
|
|
|
this.getDetail()
|
|
@@ -1014,7 +1024,8 @@ export default {
|
|
|
this.details.isRefundDeposit = this.details.isRefundDeposit == true
|
|
|
editInfo(this.details).then(res => {
|
|
|
this.$successMsg('编辑成功')
|
|
|
- this.$parent.showPage = 1
|
|
|
+
|
|
|
+ this.$emit('setShowPage', 1)
|
|
|
})
|
|
|
},
|
|
|
handleReset() {
|
|
@@ -1056,8 +1067,7 @@ export default {
|
|
|
}).then(res => {
|
|
|
this.$emit('updateList')
|
|
|
this.$successMsg('已提交')
|
|
|
- this.$parent.showPage = 1
|
|
|
- this.$parent?.getList()
|
|
|
+ this.$emit('setShowPage', 1)
|
|
|
})
|
|
|
}
|
|
|
}
|