|
@@ -13,16 +13,16 @@
|
|
</template>
|
|
</template>
|
|
<template slot="right">
|
|
<template slot="right">
|
|
<ws-select
|
|
<ws-select
|
|
- v-model="searchTypeText"
|
|
|
|
|
|
+ v-model="warehouseName"
|
|
placeholder=""
|
|
placeholder=""
|
|
- @change="selecttaskType"
|
|
|
|
|
|
+ @change="selectwarehouseName"
|
|
:value="searchType"
|
|
:value="searchType"
|
|
>
|
|
>
|
|
<ws-option
|
|
<ws-option
|
|
- v-for="item in taskTypeList"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.value"
|
|
|
|
- :value="item.value"
|
|
|
|
|
|
+ v-for="item in warehouseList"
|
|
|
|
+ :key="item.warehouseName"
|
|
|
|
+ :label="item.warehouseName"
|
|
|
|
+ :value="item.warehouseName"
|
|
style="color: #8890b1"
|
|
style="color: #8890b1"
|
|
/>
|
|
/>
|
|
</ws-select>
|
|
</ws-select>
|
|
@@ -51,9 +51,9 @@
|
|
</template>
|
|
</template>
|
|
</BaseHeaderLayout>
|
|
</BaseHeaderLayout>
|
|
<el-table
|
|
<el-table
|
|
- :data="warehouseList"
|
|
|
|
|
|
+ :data="paymentList"
|
|
style="width: 100%; margin-top: 20px"
|
|
style="width: 100%; margin-top: 20px"
|
|
- ref="warehouseList"
|
|
|
|
|
|
+ ref="paymentList"
|
|
border
|
|
border
|
|
height="780"
|
|
height="780"
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
@@ -93,23 +93,25 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
class="table_td"
|
|
class="table_td"
|
|
prop="tidalGrainPrice"
|
|
prop="tidalGrainPrice"
|
|
- width='200'
|
|
|
|
|
|
+ width='180'
|
|
label="净重单价(元/公斤)"
|
|
label="净重单价(元/公斤)"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
class="table_td"
|
|
class="table_td"
|
|
prop="solidGrainPrice"
|
|
prop="solidGrainPrice"
|
|
- width='200'
|
|
|
|
|
|
+ width='180'
|
|
label="纯重单价(元/公斤)"
|
|
label="纯重单价(元/公斤)"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
class="table_td"
|
|
class="table_td"
|
|
prop="netWeight"
|
|
prop="netWeight"
|
|
|
|
+ width='140'
|
|
label="净重(公斤)"
|
|
label="净重(公斤)"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
class="table_td"
|
|
class="table_td"
|
|
prop="pureWeight"
|
|
prop="pureWeight"
|
|
|
|
+ width='140'
|
|
label="纯重(公斤)"
|
|
label="纯重(公斤)"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -138,10 +140,12 @@
|
|
label="操作"
|
|
label="操作"
|
|
width="350"
|
|
width="350"
|
|
>
|
|
>
|
|
|
|
+ <template scope="scope">
|
|
<el-button @click="del">删除</el-button>
|
|
<el-button @click="del">删除</el-button>
|
|
<el-button @click="settlement(1)">结算</el-button>
|
|
<el-button @click="settlement(1)">结算</el-button>
|
|
<el-button @click="settlement(2)">查看</el-button>
|
|
<el-button @click="settlement(2)">查看</el-button>
|
|
- <el-button>打印</el-button>
|
|
|
|
|
|
+ <el-button @click='print(scope.row)'>打印</el-button>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<!-- 付款弹窗 -->
|
|
<!-- 付款弹窗 -->
|
|
@@ -188,7 +192,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import {getpayment} from '@/model/houseSelfCollect/index'
|
|
|
|
|
|
+import {getpayment,selectWarehouseSelf} from '@/model/houseSelfCollect/index'
|
|
import houseSelfCollectPrint from './houseSelfCollectPrint.vue'
|
|
import houseSelfCollectPrint from './houseSelfCollectPrint.vue'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -204,16 +208,13 @@ export default {
|
|
paymentList:[],
|
|
paymentList:[],
|
|
deptCircularPage:{},
|
|
deptCircularPage:{},
|
|
deptBudgetTotal: 0,
|
|
deptBudgetTotal: 0,
|
|
- warehouseList: [
|
|
|
|
- {
|
|
|
|
- collectionEdPayable: '快付款',
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
paymentForm: false,
|
|
paymentForm: false,
|
|
taskTypeList: ['一号库'],
|
|
taskTypeList: ['一号库'],
|
|
searchType: '',
|
|
searchType: '',
|
|
searchTypeText: '',
|
|
searchTypeText: '',
|
|
searchKeyWord: '',
|
|
searchKeyWord: '',
|
|
|
|
+ warehouseList:[],
|
|
|
|
+ warehouseName:'',
|
|
value1: '', //付款日期
|
|
value1: '', //付款日期
|
|
modification: [],
|
|
modification: [],
|
|
}
|
|
}
|
|
@@ -223,9 +224,21 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getList(){
|
|
getList(){
|
|
- getpayment({currentPage:this.currentPage,pageSize:this.pageSize}).toPromise().then((response) => {
|
|
|
|
|
|
+ getpayment({
|
|
|
|
+ currentPage:this.currentPage,
|
|
|
|
+ pageSize:this.pageSize,
|
|
|
|
+ searchKeyWord:this.searchKeyWord,
|
|
|
|
+ searchType:this.searchType,
|
|
|
|
+ warehouseName:this.warehouseName
|
|
|
|
+ }).toPromise().then((response) => {
|
|
this.paymentList = response
|
|
this.paymentList = response
|
|
})
|
|
})
|
|
|
|
+ selectWarehouseSelf({
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ personCharge: sessionStorage.getItem('ws-pf_staffName'),
|
|
|
|
+ }).toPromise().then((response) => {
|
|
|
|
+ this.warehouseList = response
|
|
|
|
+ })
|
|
},
|
|
},
|
|
del() {
|
|
del() {
|
|
this.$confirm(
|
|
this.$confirm(
|
|
@@ -297,6 +310,10 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ print(index,row) {debugger
|
|
|
|
+ // 打印价格对照表
|
|
|
|
+ window.location.href="../../../static/payprint.html?data="+JSON.stringify(row)
|
|
|
|
+ },
|
|
examine() {
|
|
examine() {
|
|
if (this.modification.length == 0) {
|
|
if (this.modification.length == 0) {
|
|
this.$message.warning('请选择要审核的条目')
|
|
this.$message.warning('请选择要审核的条目')
|
|
@@ -350,7 +367,9 @@ export default {
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
// },
|
|
// },
|
|
- selecttaskType() {},
|
|
|
|
|
|
+ selectwarehouseName(e) {
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
console.log(`每页 ${val} 条`)
|
|
console.log(`每页 ${val} 条`)
|
|
this.pageSize = val
|
|
this.pageSize = val
|