|
@@ -66,7 +66,7 @@
|
|
|
@selection-change="handleSelectionChange"
|
|
|
:data="recordList"
|
|
|
style="width: 100%"
|
|
|
- height="780"
|
|
|
+ border height="calc(100% - 170px)"
|
|
|
>
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
<el-table-column type="index" label="序号" width="50">
|
|
@@ -77,7 +77,6 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="goodsName" label="货名"> </el-table-column>
|
|
|
<el-table-column prop="grossWeight" label="毛重(吨)">
|
|
|
- <template slot-scope="scope">{{scope.grossWeight}}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="tare" label="皮重(吨)">
|
|
|
</el-table-column>
|
|
@@ -101,6 +100,12 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="inOutDate" label="出入库日期"> </el-table-column>
|
|
|
</el-table>
|
|
|
+ <div style="text-align: center">
|
|
|
+ <!-- 页数 -->
|
|
|
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
+ :page-sizes="[10, 30, 50, 100, 500, 1000, 9999]" layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="deptBudgetTotal"></el-pagination>
|
|
|
+ </div>
|
|
|
<el-dialog :visible.sync="isShowadjustment" title="调整">
|
|
|
<div>
|
|
|
<el-input
|
|
@@ -345,6 +350,7 @@
|
|
|
<td class="col" colspan="7">{{ printData.capitalize }}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
+
|
|
|
<div class="bottom">
|
|
|
<div class="bottom-row1">
|
|
|
<div>
|
|
@@ -354,7 +360,6 @@
|
|
|
<div>皮检:{{ printData.weighingManagement.skinInspector }}</div>
|
|
|
<div>结算:{{ printData.settlementClerk }}</div>
|
|
|
<div>付款:{{ printData.cashier }}</div>
|
|
|
- <div>复点:{{}}</div>
|
|
|
<div></div>
|
|
|
</div>
|
|
|
<div class="bottom-row2">
|
|
@@ -390,18 +395,7 @@
|
|
|
<el-button type="primary" @click="printBig">打印单据</el-button>
|
|
|
</div>
|
|
|
</el-dialog> -->
|
|
|
- <div class="pageNumber">
|
|
|
- <!-- 页数 -->
|
|
|
- <el-pagination
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :current-page="currentPage"
|
|
|
- :page-size="deptCircularPage.pageSize"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="deptBudgetTotal"
|
|
|
- >
|
|
|
- </el-pagination>
|
|
|
- </div>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -449,12 +443,12 @@ export default {
|
|
|
printList1: [],
|
|
|
newList:[],
|
|
|
count:0,
|
|
|
- startDate:"",
|
|
|
- endDate:"",
|
|
|
+ startDate:'',
|
|
|
+ endDate:'',
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
- localStorage.setItem("pageUp","1")
|
|
|
+ localStorage.setItem('pageUp','1')
|
|
|
this.deptBudgetList.baseId = this.$route.query.baseId
|
|
|
this.deptBudgetList.positionId = this.$route.query.positionId
|
|
|
this.deptBudgetList.warehouseName = this.$route.query.warehouseName
|
|
@@ -464,8 +458,8 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
find(){
|
|
|
- this.startDate = ""
|
|
|
- this.endDate = ""
|
|
|
+ this.startDate = ''
|
|
|
+ this.endDate = ''
|
|
|
if(this.value2){
|
|
|
this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
|
|
|
this.endDate = this.dateFormat('YYYY-mm-dd', this.value2[1])
|
|
@@ -486,27 +480,27 @@ export default {
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((res) => {
|
|
|
- for (let i = 0; i < res.records.length; i++) {
|
|
|
- if (res.records[i].grossWeight) {
|
|
|
- res.records[i].grossWeight = Number(res.records[i].grossWeight * 1000).toFixed(3)
|
|
|
- }
|
|
|
- if (res.records[i].tare) {
|
|
|
- res.records[i].tare = Number(res.records[i].tare * 1000).toFixed(3)
|
|
|
- }
|
|
|
- if (res.records[i].netWeight) {
|
|
|
- res.records[i].netWeight = Number(res.records[i].netWeight*1000).toFixed(3)
|
|
|
+ // for (let i = 0; i < res.records.length; i++) {
|
|
|
+ // if (res.records[i].grossWeight) {
|
|
|
+ // res.records[i].grossWeight = Number(res.records[i].grossWeight * 1000).toFixed(3)
|
|
|
+ // }
|
|
|
+ // if (res.records[i].tare) {
|
|
|
+ // res.records[i].tare = Number(res.records[i].tare * 1000).toFixed(3)
|
|
|
+ // }
|
|
|
+ // if (res.records[i].netWeight) {
|
|
|
+ // res.records[i].netWeight = Number(res.records[i].netWeight*1000).toFixed(3)
|
|
|
|
|
|
- }
|
|
|
- if (
|
|
|
- res.records[i].grossWeight &&
|
|
|
- res.records[i].tare &&
|
|
|
- res.records[i].netWeight
|
|
|
- ) {
|
|
|
- res.records[i].weight = Number(res.records[i].grossWeight - res.records[i].tare - res.records[i].netWeight).toFixed(3)
|
|
|
- } else {
|
|
|
- res.records[i].weight = null
|
|
|
- }
|
|
|
- }
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // res.records[i].grossWeight &&
|
|
|
+ // res.records[i].tare &&
|
|
|
+ // res.records[i].netWeight
|
|
|
+ // ) {
|
|
|
+ // res.records[i].weight = Number(res.records[i].grossWeight - res.records[i].tare - res.records[i].netWeight).toFixed(3)
|
|
|
+ // } else {
|
|
|
+ // res.records[i].weight = null
|
|
|
+ // }
|
|
|
+ // }
|
|
|
this.recordList = res.records
|
|
|
this.deptBudgetTotal = res.total
|
|
|
})
|
|
@@ -583,14 +577,14 @@ export default {
|
|
|
this.printList1 = []
|
|
|
this.count = 0
|
|
|
for(let j = 0 ; j < this.ruleForm.type.length ; j++){
|
|
|
- if(this.ruleForm.type[j] == "打印磅单"){
|
|
|
+ if(this.ruleForm.type[j] == '打印磅单'){
|
|
|
for(let i = 0 ; i < selection.length ; i++){
|
|
|
// selection[i].printType = "打印磅单"
|
|
|
selection[i].code = this.getdate() + selection[i].commonWarehouseNo + this.verifyinit()
|
|
|
this.printList.push(selection[i])
|
|
|
}
|
|
|
}
|
|
|
- else if(this.ruleForm.type[j] == "打印结算单"){
|
|
|
+ else if(this.ruleForm.type[j] == '打印结算单'){
|
|
|
for(let index = 0 ; index < selection.length ; index++){
|
|
|
if(!selection[index].paymentId){
|
|
|
this.$message.error('只有收购入库的条目才能打印结算单,请重新勾选!')
|
|
@@ -600,7 +594,7 @@ export default {
|
|
|
this.printSettlementSheet(selection)
|
|
|
}
|
|
|
}
|
|
|
- if(this.ruleForm.type.length == 1 && this.ruleForm.type[0] == "打印磅单"){
|
|
|
+ if(this.ruleForm.type.length == 1 && this.ruleForm.type[0] == '打印磅单'){
|
|
|
sessionStorage.setItem('inOutRecord_printBD', JSON.stringify(this.printList))
|
|
|
window.open('../../../../../static/tradeServicesPrint.html')
|
|
|
}
|
|
@@ -616,8 +610,8 @@ export default {
|
|
|
if(this.count == list.length){
|
|
|
sessionStorage.setItem('inOutRecord_printBD', JSON.stringify(this.printList))
|
|
|
sessionStorage.setItem('inOutRecord_printJSD', JSON.stringify(this.printList1))
|
|
|
- console.log("磅单",this.printList)
|
|
|
- console.log("结算单",this.printList1)
|
|
|
+ console.log('磅单',this.printList)
|
|
|
+ console.log('结算单',this.printList1)
|
|
|
window.open('../../../../../static/tradeServicesPrint.html')
|
|
|
}
|
|
|
})
|