{{ item.label }}:
@@ -60,18 +60,14 @@
待封档
已封档
@@ -88,7 +84,6 @@
-
+
-
+
+
+
+ 下载
+
+
+ 删除
+
+
+
@@ -149,6 +162,7 @@ import {
updateProMonthTableAPI,
uploadProMonthTableRefundAPI,
} from '@/api/synthesize-query/three-and-one'
+import { deleteFileAPI } from '@/api/common'
import DialogModel from '@/components/DialogModel/index.vue'
export default {
name: 'HeaderInfo',
@@ -169,12 +183,23 @@ export default {
default: '',
},
},
+
+ computed: {
+ fileCount() {
+ if (this.monthlyData.contractFile) {
+ return 3 - this.monthlyData.contractFile.length
+ }
+ return 3
+ },
+ },
data() {
return {
uploadVisible: false,
fileSize: 10,
fileList: [],
- monthlyData: {},
+ monthlyData: {
+ contractFile: [],
+ },
dialogConfig: {
outerTitle: '银行回单查看',
outerWidth: '40%',
@@ -197,7 +222,7 @@ export default {
},
{
label: '封档时间',
- valueKey: 'refundTime',
+ valueKey: 'blockTime',
},
{
label: '回单附件',
@@ -236,12 +261,14 @@ export default {
const res = await updateProMonthTableAPI({
id: this.id,
- refundStatus: 2,
+ status: 2,
})
if (res.code == 200) {
this.$modal.msgSuccess('封档成功')
this.getMonthlyData()
+ this.uploadVisible = false
+ this.fileList = []
}
})
.catch(() => {
@@ -270,6 +297,9 @@ export default {
if (this.fileList.length > 0) {
// this.uploadVisible = false
const formData = new FormData()
+ const params = {
+ id: this.id,
+ }
const fileMsg = []
this.fileList.forEach((item) => {
formData.append('files', item.raw)
@@ -279,10 +309,14 @@ export default {
})
})
+ formData.append('fileMsg', JSON.stringify(fileMsg))
+ formData.append('params', JSON.stringify(params))
const res = await uploadProMonthTableRefundAPI(formData)
if (res.code == 200) {
this.$modal.msgSuccess('回单上传成功')
this.getMonthlyData()
+ this.uploadVisible = false
+ this.fileList = []
}
} else {
this.$modal.msgError('请上传文件')
@@ -345,13 +379,42 @@ export default {
// 查看附件
handleClickContractFile() {
console.log('查看附件')
- this.dialogConfig.outerVisible = true
+ if (this.monthlyData.contractFile.length > 0) {
+ this.dialogConfig.outerVisible = true
+ } else {
+ this.$modal.msgError('暂无附件')
+ }
},
// 关闭弹框
handleCloseDialogOuter() {
this.dialogConfig.outerVisible = false
},
+
+ // 删除附件
+ onHandleDeleteFile(row) {
+ console.log('删除附件', row)
+
+ this.$confirm('是否确定删除附件?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning',
+ })
+ .then(async () => {
+ const res = await deleteFileAPI(row.id)
+ if (res.code == 200) {
+ this.$modal.msgSuccess('删除成功')
+ this.getMonthlyData()
+ }
+ })
+ .catch(() => {
+ // console.log('取消')
+ })
+ },
+ // 下载附件
+ onHandleDownloadFile(row) {
+ window.open(row.lsUrl, '_blank')
+ },
},
}
diff --git a/src/views/synthesize-query/three-and-one/month-detail/components/nameList.vue b/src/views/synthesize-query/three-and-one/month-detail/components/nameList.vue
index 703d6f1..164f6f0 100644
--- a/src/views/synthesize-query/three-and-one/month-detail/components/nameList.vue
+++ b/src/views/synthesize-query/three-and-one/month-detail/components/nameList.vue
@@ -11,29 +11,29 @@
>
@@ -128,7 +128,7 @@ export default {
},
data() {
return {
- total: 100,
+ total: 0,
nameListQueryParams: {
monthId: this.id,
onDuty: '',
diff --git a/src/views/synthesize-query/three-and-one/month-detail/components/wage-info.vue b/src/views/synthesize-query/three-and-one/month-detail/components/wage-info.vue
index 2472462..c6649df 100644
--- a/src/views/synthesize-query/three-and-one/month-detail/components/wage-info.vue
+++ b/src/views/synthesize-query/three-and-one/month-detail/components/wage-info.vue
@@ -11,20 +11,23 @@
>
@@ -61,8 +64,8 @@
stripe
style="width: 100%"
:data="wageInfoListData"
- :header-cell-style="tableHeaderStyle"
:cell-style="tableCellStyle"
+ :header-cell-style="tableHeaderStyle"
>
@@ -86,9 +88,19 @@
@@ -111,7 +123,10 @@