刘翔宇-旅管家 3 years ago
parent 938e1396d5
commit 4e38f1beea

@ -71,7 +71,10 @@
</div> </div>
<div class="pay-plan"> <div class="pay-plan">
<div class="pay-plan-title">付款计划</div> <div class="pay-plan-title">付款计划</div>
<xy-table :height="240" :list="signPlan" :table-item="planTable" :show-index="false" :btn-width="130" @delete="deletePayPlan" @editor="(row)=>{$refs['detailContractSign'].planId = row.id;$refs['detailContractSign'].isShow = true}"></xy-table> <xy-table :height="240" :list="signPlan" :table-item="planTable" :show-index="false" :btn-width="130"
@delete="deletePayPlan"
@editor="(row)=>{$refs['detailContractSign'].planId = row.id;$refs['detailContractSign'].isShow = true}">
</xy-table>
</div> </div>
<div class="related-processes"> <div class="related-processes">
<div class="related-processes-title">相关流程进展查看</div> <div class="related-processes-title">相关流程进展查看</div>
@ -106,13 +109,28 @@
</template> </template>
<script> <script>
import {detailContract} from "@/api/contract/contract"; import {
import {delContractSign, getContractSign} from "@/api/contractSign/contractSign" detailContract
import {parseTime} from "@/utils" } from "@/api/contract/contract";
import {getOatoken} from "@/api/oatoken"; import {
import {Message} from "element-ui"; delContractSign,
import {moneyFormatter} from "@/utils" getContractSign
import {getparameter} from "@/api/system/dictionary"; } from "@/api/contractSign/contractSign"
import {
parseTime
} from "@/utils"
import {
getOatoken
} from "@/api/oatoken";
import {
Message
} from "element-ui";
import {
moneyFormatter
} from "@/utils"
import {
getparameter
} from "@/api/system/dictionary";
import detailContractSign from "./detailContractSign" import detailContractSign from "./detailContractSign"
export default { export default {
@ -132,8 +150,7 @@ export default {
id: '', id: '',
detail: null, detail: null,
isShowDetail: false, isShowDetail: false,
linkBudgetPlanTable:[ linkBudgetPlanTable: [{
{
label: "ID", label: "ID",
sortable: false, sortable: false,
prop: 'id', prop: 'id',
@ -152,14 +169,14 @@ export default {
return res[0]?.value || '未知' return res[0]?.value || '未知'
} }
} }
return ( return ( <
<div> div >
<Tag color="primary"> <
{ Tag color = "primary" > {
typeSwitch(row.type) typeSwitch(row.type)
} } <
</Tag> /Tag> <
</div> /div>
) )
} }
}, },
@ -190,8 +207,7 @@ export default {
} }
} }
], ],
journalTable:[ journalTable: [{
{
label: 'ID', label: 'ID',
sortable: false, sortable: false,
prop: 'id' prop: 'id'
@ -223,8 +239,7 @@ export default {
], ],
signPlan: [], signPlan: [],
planTypes: [], planTypes: [],
planTable:[ planTable: [{
{
prop: 'date', prop: 'date',
label: '日期', label: '日期',
sortable: false, sortable: false,
@ -259,7 +274,9 @@ export default {
}, },
methods: { methods: {
async getPlanTypes() { async getPlanTypes() {
const res = await getparameter({number:'money_way'}) const res = await getparameter({
number: 'money_way'
})
this.planTypes = res.detail this.planTypes = res.detail
}, },
@ -273,8 +290,11 @@ export default {
return return
} }
let res = await getOatoken() let res = await getOatoken()
let url =`${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.detail.purchase_last_flow_id}?oatoken=${res.oatoken}` let url =
let seeBuy = window.open(url,'seeBuy',`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`) `${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.detail.purchase_last_flow_id}?oatoken=${res.oatoken}`
let seeBuy = window.open(url, 'seeBuy',
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
)
}, },
async seeBidding() { async seeBidding() {
if (!this.detail?.invite_last_flow_id) { if (!this.detail?.invite_last_flow_id) {
@ -286,8 +306,11 @@ export default {
return return
} }
let res = await getOatoken() let res = await getOatoken()
let url =`${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.detail.invite_last_flow_id}?oatoken=${res.oatoken}` let url =
let seeBidding = window.open(url,'seeBidding',`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`) `${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.detail.invite_last_flow_id}?oatoken=${res.oatoken}`
let seeBidding = window.open(url, 'seeBidding',
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
)
}, },
async seeSignProcess() { async seeSignProcess() {
if (!this.detail?.join_last_flow_id) { if (!this.detail?.join_last_flow_id) {
@ -299,8 +322,11 @@ export default {
return return
} }
let res = await getOatoken() let res = await getOatoken()
let url =`${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.detail.join_last_flow_id}?oatoken=${res.oatoken}` let url =
let seeSign = window.open(url,'seeSign',`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`) `${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.detail.join_last_flow_id}?oatoken=${res.oatoken}`
let seeSign = window.open(url, 'seeSign',
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
)
}, },
async seeAskProcess() { async seeAskProcess() {
@ -313,13 +339,18 @@ export default {
return return
} }
let res = await getOatoken() let res = await getOatoken()
let url =`${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.detail.req_last_flow_id}?oatoken=${res.oatoken}` let url =
let seeAsk = window.open(url,'seeAsk',`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`) `${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.detail.req_last_flow_id}?oatoken=${res.oatoken}`
let seeAsk = window.open(url, 'seeAsk',
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
)
}, },
async getDetail(id) { async getDetail(id) {
this.id = id this.id = id
let res = await detailContract({id:id}) let res = await detailContract({
id: id
})
this.detail = res this.detail = res
let plans = res.plans let plans = res.plans
let linkPlan = res.plan_link let linkPlan = res.plan_link
@ -338,13 +369,17 @@ export default {
this.detail.plans = linkPlanTable this.detail.plans = linkPlanTable
console.log(this.detail) console.log(this.detail)
let plan = await getContractSign({contract_id:id}) let plan = await getContractSign({
contract_id: id
})
this.signPlan = plan.data this.signPlan = plan.data
}, },
// //
deletePayPlan(row) { deletePayPlan(row) {
delContractSign({id:row.id}).then(res=>{ delContractSign({
id: row.id
}).then(res => {
this.getSignPlan() this.getSignPlan()
Message({ Message({
type: 'success', type: 'success',
@ -407,17 +442,19 @@ export default {
padding: 0 10px; padding: 0 10px;
} }
&-item { &-item {
display: flex; display: flex;
margin-top: 8px; margin-top: 8px;
&-title { &-title {
padding: 0 20px; padding: 0 20px;
} }
&-content{
} &-content {}
&-unit { &-unit {
margin-left: 20px; margin-left: 20px;
@ -428,6 +465,7 @@ export default {
.link-budget-plan { .link-budget-plan {
margin-top: 20px; margin-top: 20px;
&-title { &-title {
@extend .base-info-title; @extend .base-info-title;
@ -440,14 +478,18 @@ export default {
&-title { &-title {
@extend .link-budget-plan-title; @extend .link-budget-plan-title;
} }
&-item { &-item {
@extend .base-info-item; @extend .base-info-item;
&-title { &-title {
@extend .base-info-item-title; @extend .base-info-item-title;
} }
&-content { &-content {
@extend .base-info-item-content; @extend .base-info-item-content;
} }
&-unit { &-unit {
@extend .base-info-item-unit; @extend .base-info-item-unit;
} }
@ -456,6 +498,7 @@ export default {
.pay-plan { .pay-plan {
margin-top: 20px; margin-top: 20px;
&-title { &-title {
@extend .link-budget-plan-title; @extend .link-budget-plan-title;
} }
@ -464,9 +507,11 @@ export default {
.related-processes { .related-processes {
margin-top: 20px; margin-top: 20px;
&-title { &-title {
@extend .link-budget-plan-title; @extend .link-budget-plan-title;
} }
&-item { &-item {
//color: red; //color: red;
@ -483,6 +528,7 @@ export default {
.journal { .journal {
margin-top: 20px; margin-top: 20px;
&-title { &-title {
@extend .link-budget-plan-title; @extend .link-budget-plan-title;
} }

@ -289,6 +289,18 @@
width: 36, width: 36,
type: "selection" type: "selection"
}, },
{
label: "科室",
prop: 'plan_department.name',
width: 100,
align: 'center'
},
{
label: "年份",
prop: 'year',
width: 80,
align: 'center'
},
{ {
label: "分类", label: "分类",
prop: 'type', prop: 'type',
@ -302,12 +314,14 @@
{ {
label: "名称", label: "名称",
prop: 'name', prop: 'name',
align: 'left' align: 'left',
width: 220,
}, },
{ {
label: "计划金额", label: "计划金额",
prop: 'money', prop: 'money',
align: 'right' align: 'right',
width: 120,
} }
], ],
planTotal: 0, planTotal: 0,

Loading…
Cancel
Save