|
@@ -54,12 +54,6 @@
|
|
@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'
|
|
@@ -166,6 +160,7 @@
|
|
@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>
|
|
@@ -442,17 +437,13 @@ 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 {
|
|
|
|
- dayjs,
|
|
|
|
- EventBus
|
|
|
|
- } from 'base-core-lib'
|
|
|
|
|
|
+import { EventBus } from 'base-core-lib'
|
|
export default {
|
|
export default {
|
|
name: 'viewSpareMoney',
|
|
name: 'viewSpareMoney',
|
|
components: {
|
|
components: {
|
|
@@ -578,10 +569,6 @@ export default {
|
|
accessoryTFs1: false,
|
|
accessoryTFs1: false,
|
|
appendixIdss: [],
|
|
appendixIdss: [],
|
|
appendixIdss1:'',
|
|
appendixIdss1:'',
|
|
- date: {
|
|
|
|
- year: dayjs().format('YYYY'),
|
|
|
|
- month: dayjs().format('MM'),
|
|
|
|
- },
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
@@ -697,7 +684,15 @@ 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() {
|
|
@@ -897,18 +892,6 @@ 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: '确定',
|
|
@@ -958,18 +941,6 @@ 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: '确定',
|
|
@@ -1235,7 +1206,14 @@ export default {
|
|
async exportlist() {
|
|
async exportlist() {
|
|
const { data } = await export1(
|
|
const { data } = await export1(
|
|
{
|
|
{
|
|
- stockPurchaseReceiptReportList: this.modification,
|
|
|
|
|
|
+ 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,
|
|
},
|
|
},
|
|
{},
|
|
{},
|
|
{ responseType: 'blob' }
|
|
{ responseType: 'blob' }
|