|
@@ -54,6 +54,12 @@
|
|
@click="dis()"
|
|
@click="dis()"
|
|
>定金</ws-button
|
|
>定金</ws-button
|
|
>
|
|
>
|
|
|
|
+ <ws-button
|
|
|
|
+ type="primary"
|
|
|
|
+ v-hasPermission="`report.goodsProcurementInReport.view`"
|
|
|
|
+ @click="exportlist()"
|
|
|
|
+ >导出</ws-button
|
|
|
|
+ >
|
|
</el-col>
|
|
</el-col>
|
|
<el-col style="text-align: right; line-height: 60px; width:300px" :span="8">
|
|
<el-col style="text-align: right; line-height: 60px; width:300px" :span="8">
|
|
<el-date-picker style="margin: 0 10px 0 0" value-format='yyyy-MM-dd' v-model="value2" @change='datechange'
|
|
<el-date-picker style="margin: 0 10px 0 0" value-format='yyyy-MM-dd' v-model="value2" @change='datechange'
|
|
@@ -160,7 +166,6 @@
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
>
|
|
>
|
|
<el-table-column
|
|
<el-table-column
|
|
- :selectable="selectInit"
|
|
|
|
type="selection"
|
|
type="selection"
|
|
width="55"
|
|
width="55"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
@@ -437,13 +442,17 @@ import {
|
|
editSettlementWeight,
|
|
editSettlementWeight,
|
|
addDisOrRemarks,
|
|
addDisOrRemarks,
|
|
stockPurchasePayMoney,
|
|
stockPurchasePayMoney,
|
|
|
|
+ export1
|
|
} from '@/model/statisticalReport/index'
|
|
} from '@/model/statisticalReport/index'
|
|
import { workflowcontent } from '@/model/houseSelfCollect/index'
|
|
import { workflowcontent } from '@/model/houseSelfCollect/index'
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
import { posthandle } from '@/model/purchasingManagement/index'
|
|
import { posthandle } from '@/model/purchasingManagement/index'
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import WsUpload from '@/components/WsUpload'
|
|
-import { EventBus } from 'base-core-lib'
|
|
|
|
|
|
+import {
|
|
|
|
+ dayjs,
|
|
|
|
+ EventBus
|
|
|
|
+ } from 'base-core-lib'
|
|
export default {
|
|
export default {
|
|
name: 'viewSpareMoney',
|
|
name: 'viewSpareMoney',
|
|
components: {
|
|
components: {
|
|
@@ -569,6 +578,10 @@ export default {
|
|
accessoryTFs1: false,
|
|
accessoryTFs1: false,
|
|
appendixIdss: [],
|
|
appendixIdss: [],
|
|
appendixIdss1:'',
|
|
appendixIdss1:'',
|
|
|
|
+ date: {
|
|
|
|
+ year: dayjs().format('YYYY'),
|
|
|
|
+ month: dayjs().format('MM'),
|
|
|
|
+ },
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
@@ -684,15 +697,7 @@ export default {
|
|
},
|
|
},
|
|
selectInit(row) {
|
|
selectInit(row) {
|
|
//在这里一定要记得类型匹配的上。
|
|
//在这里一定要记得类型匹配的上。
|
|
- if (row.approveStatus == null) {
|
|
|
|
- return true
|
|
|
|
- } else if (row.approveStatus != null) {
|
|
|
|
- if (row.taskId == null) {
|
|
|
|
- return false
|
|
|
|
- } else {
|
|
|
|
- return true
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
//添加定金信息
|
|
//添加定金信息
|
|
dis() {
|
|
dis() {
|
|
@@ -892,6 +897,18 @@ export default {
|
|
if (this.modification.length == 0) {
|
|
if (this.modification.length == 0) {
|
|
this.$message.warning('请选择一条要审核的条目')
|
|
this.$message.warning('请选择一条要审核的条目')
|
|
} else {
|
|
} else {
|
|
|
|
+ for (let i = 0; i < this.modification.length; i++) {
|
|
|
|
+ if (this.modification[i].approveStatus == null) {
|
|
|
|
+ this.$message.warning('请选择一条待审核的条目')
|
|
|
|
+ return
|
|
|
|
+ } else if (this.modification[i].approveStatus != null) {
|
|
|
|
+ if (this.modification[i].taskId == null) {
|
|
|
|
+ this.$message.warning('请选择一条待审核的条目')
|
|
|
|
+ return
|
|
|
|
+ } else {
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.$confirm(`审核通过后,任务将发送给下一级,是否确定通过?`, {
|
|
this.$confirm(`审核通过后,任务将发送给下一级,是否确定通过?`, {
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -941,6 +958,18 @@ export default {
|
|
if (this.modification.length == 0) {
|
|
if (this.modification.length == 0) {
|
|
this.$message.warning('请选择要驳回的条目')
|
|
this.$message.warning('请选择要驳回的条目')
|
|
} else {
|
|
} else {
|
|
|
|
+ for (let i = 0; i < this.modification.length; i++) {
|
|
|
|
+ if (this.modification[i].approveStatus == null) {
|
|
|
|
+ this.$message.warning('请选择一条待审核的条目')
|
|
|
|
+ return
|
|
|
|
+ } else if (this.modification[i].approveStatus != null) {
|
|
|
|
+ if (this.modification[i].taskId == null) {
|
|
|
|
+ this.$message.warning('请选择一条待审核的条目')
|
|
|
|
+ return
|
|
|
|
+ } else {
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.$confirm(`是否确定驳回?`, {
|
|
this.$confirm(`是否确定驳回?`, {
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -1206,14 +1235,7 @@ export default {
|
|
async exportlist() {
|
|
async exportlist() {
|
|
const { data } = await export1(
|
|
const { data } = await export1(
|
|
{
|
|
{
|
|
- compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
- contractType: this.contractType,
|
|
|
|
- currentPage: this.currentPage,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- searchType: this.searchType,
|
|
|
|
- searchKeyWord: this.searchKeyWord,
|
|
|
|
- startDate: this.startDate,
|
|
|
|
- endDate: this.endDate,
|
|
|
|
|
|
+ stockPurchaseReceiptReportList: this.modification,
|
|
},
|
|
},
|
|
{},
|
|
{},
|
|
{ responseType: 'blob' }
|
|
{ responseType: 'blob' }
|