|
@@ -395,7 +395,9 @@
|
|
<!-- <el-button type="primary" @click="printSmall">打印小票</el-button> -->
|
|
<!-- <el-button type="primary" @click="printSmall">打印小票</el-button> -->
|
|
<el-button type="primary" @click="printBig">打印单据</el-button>
|
|
<el-button type="primary" @click="printBig">打印单据</el-button>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -436,6 +438,7 @@ export default {
|
|
this.information = '结算'
|
|
this.information = '结算'
|
|
}
|
|
}
|
|
this.getList()
|
|
this.getList()
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
closeDialog(){
|
|
closeDialog(){
|
|
@@ -460,6 +463,7 @@ export default {
|
|
this.dialogTableVisible = true
|
|
this.dialogTableVisible = true
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+
|
|
},
|
|
},
|
|
printSmall() {
|
|
printSmall() {
|
|
window.open('../../../../../static/payprint.html?type=1&dataList=' +JSON.stringify(this.printData))
|
|
window.open('../../../../../static/payprint.html?type=1&dataList=' +JSON.stringify(this.printData))
|
|
@@ -490,8 +494,7 @@ export default {
|
|
this.paymentList.actualPayment = this.paymentList.calculationPayable
|
|
this.paymentList.actualPayment = this.paymentList.calculationPayable
|
|
this.actualPayment( this.paymentList.actualPayment)
|
|
this.actualPayment( this.paymentList.actualPayment)
|
|
}else{
|
|
}else{
|
|
-
|
|
|
|
- this.paymentList.grainMoney=this.paymentList.qualityInspectionManagement.dryGrainPrice * this.paymentList.netWeight
|
|
|
|
|
|
+ // this.paymentList.grainMoney=this.paymentList.qualityInspectionManagement.solidGrainPrice*this.paymentList.weighingManagement.netWeight
|
|
this.paymentList.calculationPayable=Number(this.paymentList.grainMoney)+Number(this.paymentList.weighingSubsidy)+Number(this.paymentList.freightSubsidy)+Number(this.paymentList.unloadSubsidy)+Number(this.paymentList.otherSubsidy)-Number(this.paymentList.weighingDeduction)-this.paymentList.freightDeduction-Number(this.paymentList.unloadDeduction)-Number(this.paymentList.otherDeduction)-Number(this.paymentList.qualityDeduction)
|
|
this.paymentList.calculationPayable=Number(this.paymentList.grainMoney)+Number(this.paymentList.weighingSubsidy)+Number(this.paymentList.freightSubsidy)+Number(this.paymentList.unloadSubsidy)+Number(this.paymentList.otherSubsidy)-Number(this.paymentList.weighingDeduction)-this.paymentList.freightDeduction-Number(this.paymentList.unloadDeduction)-Number(this.paymentList.otherDeduction)-Number(this.paymentList.qualityDeduction)
|
|
this.paymentList.calculationPayable = this.paymentList.calculationPayable.toFixed(2)
|
|
this.paymentList.calculationPayable = this.paymentList.calculationPayable.toFixed(2)
|
|
this.paymentList.actualPayment = this.paymentList.calculationPayable
|
|
this.paymentList.actualPayment = this.paymentList.calculationPayable
|
|
@@ -712,8 +715,6 @@ export default {
|
|
postpaymentedit(this.paymentList).toPromise().then((response) => {
|
|
postpaymentedit(this.paymentList).toPromise().then((response) => {
|
|
getpaymentexamine({id:this.$route.query.id}).toPromise().then((response) => {
|
|
getpaymentexamine({id:this.$route.query.id}).toPromise().then((response) => {
|
|
this.printData= response
|
|
this.printData= response
|
|
- let date = new Date()
|
|
|
|
- this.printData.currentTime = date.getFullYear() + '年' + '月' + date.getDate() + '日'
|
|
|
|
})
|
|
})
|
|
this.isShowPrint = true
|
|
this.isShowPrint = true
|
|
},
|
|
},
|