|
|
@ -327,7 +327,7 @@ |
|
|
|
@click="payEvent" |
|
|
|
>缴费</el-button |
|
|
|
> |
|
|
|
<el-button v-print="'#data'" style="margin-left: 80px" :disabled="!receiptDetails.contracttab || !receiptDetails.contracttab.serialnumber" type="primary"> |
|
|
|
<el-button @click="getNextsnr" v-print="'#data'" style="margin-left: 80px" :disabled="!receiptDetails.contracttab || !receiptDetails.contracttab.serialnumber" type="primary"> |
|
|
|
打印 |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
@ -356,13 +356,14 @@ |
|
|
|
</mailTable> |
|
|
|
</div> |
|
|
|
<div id="data"> |
|
|
|
<ReceiptPrinting :data="receiptDetails" /> |
|
|
|
<ReceiptPrinting :printSerialNumber="printSerialNumber" :data="receiptDetails" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import mailTable from '@/components/ColumnTable/tableComponent'; |
|
|
|
import ReceiptPrinting from '@/components/receiptPrinting.vue'; |
|
|
|
import { getNextsnr } from '@/api/property/pay' |
|
|
|
import moment from 'moment' |
|
|
|
import { |
|
|
|
getPropertyTab, |
|
|
@ -379,6 +380,7 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
printSerialNumber:'', |
|
|
|
fewMonths: 0, // 月数 |
|
|
|
fewDays: '', // 天数 |
|
|
|
ratesDay: '', // 收费标准-1天-1平米 |
|
|
@ -476,6 +478,11 @@ export default { |
|
|
|
// this.ratesDay = '' // input 框绑定的内容为空 |
|
|
|
// } |
|
|
|
// }, |
|
|
|
getNextsnr(){ |
|
|
|
getNextsnr({snrid:'printId'}).then(({data})=>{ |
|
|
|
this.printSerialNumber=data; |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleBeginChange(value) { |
|
|
|
let endTime = this.createBeginDate(this.queryParams.begindate,parseInt(this.fewMonths)) |
|
|
|
let newEndTime = moment(endTime).add(this.fewDays,'d').format('YYYY-MM-DD') |
|
|
@ -724,6 +731,9 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
created(){ |
|
|
|
this.getNextsnr(); |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|