|
@@ -4,14 +4,14 @@
|
|
|
<el-scrollbar style="height: 100%">
|
|
|
<el-row>
|
|
|
<el-col style="padding-left: 15px; width:48%" :span="16">
|
|
|
- <ws-button :type="searchType == 1 ? 'primary' : ''" @click="handlestatus(1)">待审核</ws-button>
|
|
|
+ <ws-button :type="searchType == '' ? 'primary' : ''" @click="handlestatus('')">全部</ws-button>
|
|
|
+ <!-- <ws-button :type="searchType == 1 ? 'primary' : ''" @click="handlestatus(1)">待审核</ws-button> -->
|
|
|
<ws-button :type="searchType == 2 ? 'primary' : ''" @click="handlestatus(2)">待结算</ws-button>
|
|
|
<ws-button :type="searchType == 3 ? 'primary' : ''" @click="handlestatus(3)">已结算</ws-button>
|
|
|
- <ws-button :type="searchType == '' ? 'primary' : ''" @click="handlestatus('')">全部</ws-button>
|
|
|
- <ws-button type="primary" v-hasPermission="`report.goodsProcurementInReport.view`" @click="handleAudit()">通过
|
|
|
+ <!-- <ws-button type="primary" v-hasPermission="`report.goodsProcurementInReport.view`" @click="handleAudit()">通过
|
|
|
</ws-button>
|
|
|
<ws-button type="primary" v-hasPermission="`report.goodsProcurementInReport.view`" @click="handlereject()">驳回
|
|
|
- </ws-button>
|
|
|
+ </ws-button> -->
|
|
|
<ws-button type="primary" v-hasPermission="`report.goodsProcurementInReport.payment`" @click="handlepayment">
|
|
|
付款</ws-button>
|
|
|
<ws-button type="primary" v-hasPermission="`report.goodsProcurementInReport.view`" @click="addRemarks()">备注
|
|
@@ -20,9 +20,9 @@
|
|
|
</ws-button>
|
|
|
</el-col>
|
|
|
<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'
|
|
|
- type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="起始时间"
|
|
|
- end-placeholder="截止时间">
|
|
|
+ <el-date-picker value-format="yyyy-MM-dd" v-model="value2" type="daterange" align="right" unlink-panels :clearable="false"
|
|
|
+ range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions"
|
|
|
+ class="data_css" @change="datechange">
|
|
|
</el-date-picker>
|
|
|
</el-col>
|
|
|
<el-col style="text-align: right; line-height: 60px; padding-right: 10px" :span="8">
|
|
@@ -126,14 +126,14 @@
|
|
|
<el-table-column width="100" class="table_td" label="已付金额(元)" prop="amountEdPayable"></el-table-column>
|
|
|
<el-table-column width="100" class="table_td" label="未付金额(元)" prop="amountNotPayable"></el-table-column>
|
|
|
<el-table-column class="table_td" label="付款日期" prop="paymentDate"></el-table-column>
|
|
|
- <el-table-column label="状态" prop="status">
|
|
|
+ <!-- <el-table-column label="状态" prop="status">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.approveStatus != null">{{
|
|
|
scope.row.approveStatus
|
|
|
}}</span>
|
|
|
<span v-else>{{ scope.row.status }}</span>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
</el-table>
|
|
|
|
|
|
<!-- 页数 -->
|
|
@@ -283,7 +283,7 @@
|
|
|
deptBudgetTotal: 0,
|
|
|
currentPage: 1,
|
|
|
pageSize: 10,
|
|
|
- searchType: '1',
|
|
|
+ searchType: '',
|
|
|
searchTypeText: '未完成',
|
|
|
searchKeyWord: '',
|
|
|
contractType: 2,
|
|
@@ -358,6 +358,7 @@
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
+ this.getPassYearFormatDate()
|
|
|
this.getContractList()
|
|
|
this.showType = this.isShow
|
|
|
},
|
|
@@ -670,6 +671,7 @@
|
|
|
this.startDate = ''
|
|
|
this.endDate = ''
|
|
|
}
|
|
|
+ this.getContractList()
|
|
|
this.getList()
|
|
|
},
|
|
|
//审核
|
|
@@ -885,10 +887,12 @@
|
|
|
getContractList() {
|
|
|
getStockPurchaseContractNoList({
|
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
|
- currentPage: this.currentPage,
|
|
|
- pageSize: this.pageSize,
|
|
|
- roleFlag: this.roleFlag,
|
|
|
- contractNo: this.contractNo,
|
|
|
+ startDate: this.startDate,
|
|
|
+ endDate: this.endDate,
|
|
|
+ // currentPage: this.currentPage,
|
|
|
+ // pageSize: this.pageSize,
|
|
|
+ // roleFlag: this.roleFlag,
|
|
|
+ // contractNo: this.contractNo,
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
@@ -909,7 +913,38 @@
|
|
|
// handleDownload(file) {
|
|
|
// console.log(file)
|
|
|
// },
|
|
|
+ getPassYearFormatDate() {
|
|
|
+ if (!localStorage.getItem('startDate') && !localStorage.getItem('endDate')) {
|
|
|
+ var nowDate = new Date()
|
|
|
+ var _date = new Date()
|
|
|
+ nowDate.setTime(nowDate.getTime() - 24 * 60 * 60 * 1000 * 30)
|
|
|
+ var year = nowDate.getFullYear()
|
|
|
+ var year1 = _date.getFullYear()
|
|
|
+ var month = nowDate.getMonth() + 1
|
|
|
+ var month1 = _date.getMonth() + 1
|
|
|
+ var strDate = nowDate.getDate()
|
|
|
+ var strDate1 = _date.getDate()
|
|
|
+ if (month >= 1 && month <= 9) {
|
|
|
+ month = '0' + month
|
|
|
+ }
|
|
|
+ if (month1 >= 1 && month1 <= 9) {
|
|
|
+ month1 = '0' + month1
|
|
|
+ }
|
|
|
|
|
|
+ if (strDate >= 0 && strDate <= 9) {
|
|
|
+ strDate = '0' + strDate
|
|
|
+ }
|
|
|
+ if (strDate1 >= 0 && strDate1 <= 9) {
|
|
|
+ strDate1 = '0' + strDate1
|
|
|
+ }
|
|
|
+ this.startDate = year + '-' + month + '-' + strDate
|
|
|
+ this.endDate = year1 + '-' + month1 + '-' + strDate1
|
|
|
+ } else {
|
|
|
+ this.startDate = localStorage.getItem('startDate')
|
|
|
+ this.endDate = localStorage.getItem('endDate')
|
|
|
+ }
|
|
|
+ this.value2 = [this.startDate, this.endDate]
|
|
|
+ },
|
|
|
handlePictureCardPreviewDis(file) {
|
|
|
this.depositUrl = file.data.url
|
|
|
this.dialogVisible = true
|