xy 2 years ago
parent 5f323a153b
commit 5603ad737d

@ -5,7 +5,7 @@
<!--清除浏览器中的缓存 --> <!--清除浏览器中的缓存 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="pragram" content="no-cache"> <meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"> <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="expires" content="0"> <meta http-equiv="expires" content="0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">

@ -12,7 +12,6 @@
:file-list="fileList" :file-list="fileList"
:auto-upload="false" :auto-upload="false"
:on-remove="removeHande" :on-remove="removeHande"
:limit="1"
> >
<el-button slot="trigger" size="small" type="primary" <el-button slot="trigger" size="small" type="primary"
>选取文件</el-button >选取文件</el-button
@ -77,15 +76,15 @@ export default {
id: this.id, id: this.id,
}); });
this.detail = res; this.detail = res;
this.fileList = res.tender ? [{ this.fileList = res.tender ? res.tender.map(i => ({
url: res.tender.url, url: i.url,
name: res.tender.original_name, name: i.original_name,
response: res.tender response: i
}] : [] })) : []
}, },
submit() { submit() {
this.detail.invite_status = 3; this.detail.invite_status = 3;
this.detail.tender_id = this.fileList[0].response?.id; this.detail.tender_id = this.fileList.map(i => i.response?.id)
editorContract(this.detail).then((res) => { editorContract(this.detail).then((res) => {
this.hide(); this.hide();
this.$emit("refresh"); this.$emit("refresh");

@ -209,7 +209,7 @@
<template v-slot:is_framework> <template v-slot:is_framework>
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label" style="width: 200px;"> <div class="xy-table-item-label" style="width: 200px;">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>是否框架协议 <span style="color: red;font-weight: 600;padding-right: 4px;">*</span>是否新生成框架协议
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-switch v-model="detail.is_framework" active-text="" inactive-text="" :active-value="1" <el-switch v-model="detail.is_framework" active-text="" inactive-text="" :active-value="1"
@ -220,7 +220,7 @@
<template v-slot:use_framework_buy> <template v-slot:use_framework_buy>
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label" style="width: 200px;"> <div class="xy-table-item-label" style="width: 200px;">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>是否使用框架协议内的采购 <span style="color: red;font-weight: 600;padding-right: 4px;">*</span>是否使用框架协议采购内容
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-switch v-model="detail.use_framework_buy" active-text="" inactive-text="" :active-value="1" <el-switch v-model="detail.use_framework_buy" active-text="" inactive-text="" :active-value="1"
@ -822,7 +822,11 @@ import { resetSelect } from '@/utils'
if(val){ if(val){
this.getContractToContracts(); this.getContractToContracts();
}else{ }else{
resetSelect(this.contractSelect); this.contractSelect = {
page: 1,
page_size: 10,
is_framework: 1,
}
this.contractList = []; this.contractList = [];
this.contractTotal = 0; this.contractTotal = 0;
} }

@ -793,7 +793,7 @@
<div class="xy-table-item-label" style="width: 200px"> <div class="xy-table-item-label" style="width: 200px">
<span style="color: red; font-weight: 600; padding-right: 4px" <span style="color: red; font-weight: 600; padding-right: 4px"
>*</span >*</span
>是否框架协议 >是否新生成框架协议
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-switch <el-switch
@ -811,7 +811,7 @@
<div class="xy-table-item-label" style="width: 200px"> <div class="xy-table-item-label" style="width: 200px">
<span style="color: red; font-weight: 600; padding-right: 4px" <span style="color: red; font-weight: 600; padding-right: 4px"
>*</span >*</span
>是否使用框架协议内的采购 >是否使用框架协议采购内容
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-switch <el-switch
@ -1585,7 +1585,7 @@ export default {
width: 158, width: 158,
prop: "purchase_status", prop: "purchase_status",
customFn:row => { customFn:row => {
if (row.is_substitute || row.is_simple || (!row.is_contract && row.purchase_way?.value !== '网上商城')) { if (row.is_substitute || row.is_simple) {
return (<span></span>); return (<span></span>);
} }
const getDate = (value) => { const getDate = (value) => {
@ -2858,7 +2858,11 @@ export default {
if (val) { if (val) {
this.getContractToContracts(); this.getContractToContracts();
} else { } else {
resetSelect(this.contractSelect); this.contractSelect = {
page: 1,
page_size: 10,
is_framework: 1,
}
this.contractList = []; this.contractList = [];
this.contractTotal = 0; this.contractTotal = 0;
} }

@ -302,7 +302,7 @@ export default {
methods: { methods: {
async toOaDetail (row) { async toOaDetail (row) {
window.open( window.open(
`http://hjjc-szemcold-test.ali251.langye.net/index.php?s=/flow/edit/id/${row.flow_id}&auth_token=${this.$store.getters.oa_token}`, `${process.env.VUE_APP_OUT_OLD}/index.php?s=/flow/edit/id/${row.flow_id}&auth_token=${this.$store.getters.oa_token}`,
"bidding", "bidding",
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0` `top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
) )
@ -393,7 +393,7 @@ export default {
}, },
async getFundLogs() { async getFundLogs() {
await fundlogFlow(); //await fundlogFlow();
const res = await getFundLog({ const res = await getFundLog({
page_size: this.pageSize, page_size: this.pageSize,
page: this.pageIndex, page: this.pageIndex,

@ -168,7 +168,7 @@
</template> </template>
</template> </template>
</div> </div>
<xy-table :list="budgets" :show-index="false" :table-item="planTable" :height="310" style="margin-top: 10px;" <xy-table :list="budgets" :tree-props="{ children: 'notChildren', hasChildren: 'hasChildren' }" :show-index="false" :table-item="planTable" :height="310" style="margin-top: 10px;"
ref="budgetTable" @select="selectPlan"> ref="budgetTable" @select="selectPlan">
<template v-slot:btns> <template v-slot:btns>
<el-table-column label="使用金额(元)" header-align="center" width="140"> <el-table-column label="使用金额(元)" header-align="center" width="140">
@ -179,12 +179,12 @@
</template> </template>
</xy-table> </xy-table>
<div style="display: flex;justify-content: flex-end;"> <!-- <div style="display: flex;justify-content: flex-end;">-->
<Page :total="budgetTotal" show-elevator @on-change="e => { <!-- <Page :total="budgetTotal" show-elevator @on-change="e => {-->
budgetSelect.page = e; <!-- budgetSelect.page = e;-->
getBudgets(); <!-- getBudgets();-->
}" /> <!-- }" />-->
</div> <!-- </div>-->
</template> </template>
</xy-dialog> </xy-dialog>
@ -600,8 +600,7 @@ export default {
}, },
async getBudgets() { async getBudgets() {
let res = await getBudget(this.budgetSelect) let res = await getBudget(this.budgetSelect)
this.budgets = res.list.data this.budgets = res.list
this.budgetTotal = res.list.total
this.toggleSelection(this.form.plan_link.map(item => { this.toggleSelection(this.form.plan_link.map(item => {
return item.plan_id return item.plan_id
@ -610,7 +609,7 @@ export default {
// //
toggleSelection(plans) { toggleSelection(plans) {
if (plans) { if (plans) {
this.budgets.filter(plan => { this.budgets?.filter(plan => {
if (plans.includes(plan.id)) { if (plans.includes(plan.id)) {
plan.use_money = this.form.plan_link[plans.indexOf(plan.id)].use_money plan.use_money = this.form.plan_link[plans.indexOf(plan.id)].use_money
return true return true

@ -88,18 +88,6 @@ export default {
align: "center", align: "center",
width: 64, width: 64,
}, },
{
title: "类型",
align: "center",
width: 100,
render: (h, { row }) => {
let map = new Map([
["szemcold", "审批流转"],
["contract", "预算绩效"],
]);
return h("span", {}, map.get(row.from_type));
},
},
{ {
title: "内容", title: "内容",
key: "content", key: "content",

Loading…
Cancel
Save