xy 2 years ago
parent 5f323a153b
commit 5603ad737d

@ -5,7 +5,7 @@
<!--清除浏览器中的缓存 -->
<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 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="expires" content="0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">

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

@ -209,7 +209,7 @@
<template v-slot:is_framework>
<div class="xy-table-item">
<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 class="xy-table-item-content">
<el-switch v-model="detail.is_framework" active-text="" inactive-text="" :active-value="1"
@ -220,7 +220,7 @@
<template v-slot:use_framework_buy>
<div class="xy-table-item">
<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 class="xy-table-item-content">
<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){
this.getContractToContracts();
}else{
resetSelect(this.contractSelect);
this.contractSelect = {
page: 1,
page_size: 10,
is_framework: 1,
}
this.contractList = [];
this.contractTotal = 0;
}

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

@ -302,7 +302,7 @@ export default {
methods: {
async toOaDetail (row) {
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",
`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() {
await fundlogFlow();
//await fundlogFlow();
const res = await getFundLog({
page_size: this.pageSize,
page: this.pageIndex,

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

@ -88,18 +88,6 @@ export default {
align: "center",
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: "内容",
key: "content",

Loading…
Cancel
Save