|
@@ -32,9 +32,17 @@
|
|
value=""
|
|
value=""
|
|
/>
|
|
/>
|
|
<ws-option
|
|
<ws-option
|
|
- v-for="item in contractNoList.records"
|
|
|
|
|
|
+ v-if='item.reportStatus'
|
|
|
|
+ v-for="item in contractNoList"
|
|
:key="item.constKey"
|
|
:key="item.constKey"
|
|
- :label="item.contractNo+'('+item.closeaccountstatus+')'"
|
|
|
|
|
|
+ :label="item.contractNo+'('+item.reportStatus+')'"
|
|
|
|
+ :value="item.contractNo"
|
|
|
|
+ />
|
|
|
|
+ <ws-option
|
|
|
|
+ v-if='!item.reportStatus'
|
|
|
|
+ v-for="item in contractNoList"
|
|
|
|
+ :key="item.constKey"
|
|
|
|
+ :label="item.contractNo"
|
|
:value="item.contractNo"
|
|
:value="item.contractNo"
|
|
/>
|
|
/>
|
|
</ws-select>
|
|
</ws-select>
|
|
@@ -192,7 +200,11 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
- getclose,closeaudit,closepaymoney,closecollmoney
|
|
|
|
|
|
+ getclose,
|
|
|
|
+ getpurchasecontractno,
|
|
|
|
+ closeaudit,
|
|
|
|
+ closepaymoney,
|
|
|
|
+ closecollmoney
|
|
} from '@/model/statisticalReport/index'
|
|
} from '@/model/statisticalReport/index'
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
@@ -421,6 +433,15 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getList() {
|
|
getList() {
|
|
|
|
+ if(this.roleId=='4c2d50d8ff2943c1b7a1e947feefe048'){
|
|
|
|
+ this.roleFlag=1
|
|
|
|
+ }else if(this.roleId=='cca3cf0ca2814d1e918f5b0a4380fe69'){
|
|
|
|
+ this.roleFlag=2
|
|
|
|
+ }else if(this.roleId=='9ad8abb997714ef29068f23c2ad3b125'){
|
|
|
|
+ this.roleFlag=3
|
|
|
|
+ }else if(this.roleId=='3d7b9179552b4c3e9c2d7af43962e2e4'){
|
|
|
|
+ this.roleFlag=4
|
|
|
|
+ }
|
|
getclose({
|
|
getclose({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
@@ -433,7 +454,7 @@ export default {
|
|
.then(response => {
|
|
.then(response => {
|
|
this.warehouseList = response
|
|
this.warehouseList = response
|
|
})
|
|
})
|
|
- getclose({
|
|
|
|
|
|
+ getpurchasecontractno({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
@@ -441,15 +462,6 @@ export default {
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then(response => {
|
|
.then(response => {
|
|
- for (let i = 0; i < response.records.length; i++) {
|
|
|
|
- if(response.records[i].amountNotPayable==0){
|
|
|
|
- response.records[i].closeaccountstatus='已结算'
|
|
|
|
- }else{
|
|
|
|
- response.records[i].closeaccountstatus='待结算'
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
this.contractNoList = response
|
|
this.contractNoList = response
|
|
})
|
|
})
|
|
},
|
|
},
|