|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
<div>
|
|
|
|
|
<!-- 付款登记-->
|
|
|
|
|
<xy-dialog
|
|
|
|
|
title="付款登记"
|
|
|
|
|
title="审核确认"
|
|
|
|
|
:is-show.sync="isShowPaymentRegistration"
|
|
|
|
|
type="form"
|
|
|
|
|
class="payment-registration"
|
|
|
|
|
@ -24,13 +24,13 @@
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
<span style="color: red; font-weight: 600; padding-right: 4px"
|
|
|
|
|
>*</span
|
|
|
|
|
>申请付款金额
|
|
|
|
|
>确认金额
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content xy-table-item-price">
|
|
|
|
|
<el-input
|
|
|
|
|
:readonly="type === 'detail'"
|
|
|
|
|
clearable
|
|
|
|
|
placeholder="请填写付款金额"
|
|
|
|
|
placeholder="请填写确认金额"
|
|
|
|
|
v-model="paymentRegistrationForm.applyMoney"
|
|
|
|
|
style="width: 150px"
|
|
|
|
|
/>
|
|
|
|
|
@ -233,6 +233,7 @@ import {deepCopy, parseTime} from "@/utils";
|
|
|
|
|
import {getOatoken} from "@/api/oatoken";
|
|
|
|
|
import {listdeptNoAuth} from "@/api/system/department";
|
|
|
|
|
import { save } from "@/api/away";
|
|
|
|
|
import {httpCurl} from "@/api/out";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
@ -357,6 +358,17 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getOaApplyMoney() {
|
|
|
|
|
let url = `${process.env.VUE_APP_OUT_URL}/flow/view/${this.contract.expense_flow_id}`
|
|
|
|
|
const res = await httpCurl({ auth_token: this.$store.getters.oa_token ,get_raw:1 },true,"/Api/flowDetail", "GET",url)
|
|
|
|
|
try {
|
|
|
|
|
const data = JSON.parse(res.flow['出差报销明细'])[0]
|
|
|
|
|
this.paymentRegistrationForm.applyMoney = data['tAmt']
|
|
|
|
|
} catch (err) {
|
|
|
|
|
console.error(err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
async getPlanTypes() {
|
|
|
|
|
const res = await getparameterTree({
|
|
|
|
|
id: 3
|
|
|
|
|
@ -582,6 +594,7 @@ export default {
|
|
|
|
|
isShowPaymentRegistration(newVal) {
|
|
|
|
|
if (newVal) {
|
|
|
|
|
this.getBudgets();
|
|
|
|
|
this.getOaApplyMoney();
|
|
|
|
|
|
|
|
|
|
if (this.type === "detail") {
|
|
|
|
|
this.getDetail()
|
|
|
|
|
|