xy 2 years ago
parent 182f058933
commit 5f323a153b

@ -14,7 +14,7 @@
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label"> <div class="xy-table-item-label">
<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">
@ -240,7 +240,7 @@ export default {
is_contract: 1, is_contract: 1,
is_framework: "", is_framework: "",
purchase_status: 3, purchase_status: 3,
join_status: 3, //join_status: 3,
invite_status: 3, invite_status: 3,
files: [] files: []
}, },

@ -30,6 +30,16 @@
</div> </div>
</div> </div>
</template> </template>
<template #content>
<div class="xy-table-item">
<div class="xy-table-item-label" style="width: 200px">
合同主要内容
</div>
<div class="xy-table-item-content">
<el-input v-model="form.content" style="width: 300px" type="textarea" :autosize="{ minRows: 2 }" placeholder="请输入合同主要内容"></el-input>
</div>
</div>
</template>
<template v-slot:supply> <template v-slot:supply>
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label"> <div class="xy-table-item-label">
@ -248,6 +258,7 @@
form: { form: {
is_contract: 1, is_contract: 1,
number: '', number: '',
content: "",
supply: '', supply: '',
carryDepartment: '', carryDepartment: '',
money: '', money: '',
@ -443,6 +454,7 @@
editorContract({ editorContract({
id: this.contractId, id: this.contractId,
number: this.form.number, number: this.form.number,
content: this.form.content,
supply: this.form.supply, supply: this.form.supply,
carry_department: this.form.carryDepartment, carry_department: this.form.carryDepartment,
money: this.form.money, money: this.form.money,
@ -530,6 +542,7 @@
if (res.flow_detail.total) this.form.money = Number(res.flow_detail?.total) if (res.flow_detail.total) this.form.money = Number(res.flow_detail?.total)
if (res.flow_detail.yifang) this.form.supply = res.flow_detail?.yifang if (res.flow_detail.yifang) this.form.supply = res.flow_detail?.yifang
if (res.flow.dept_name) this.form.carryDepartment = res.flow?.dept_name if (res.flow.dept_name) this.form.carryDepartment = res.flow?.dept_name
if (res.flow_detail.contract_content) this.form.content = res.flow_detail.contract_content
}, },
//oa //oa
// async getOaContractInfo() { // async getOaContractInfo() {

@ -97,7 +97,7 @@
<xy-table :list="plans" :show-index="false" :table-item="planTable" :height="310" style="margin-top: 10px;" <xy-table :list="plans" :show-index="false" :table-item="planTable" :height="310" style="margin-top: 10px;"
ref="planTable" @select="selectPlan"> ref="planTable" @select="selectPlan">
<template v-slot:btns> <template v-slot:btns>
<el-table-column label="使用金额" header-align="center"> <el-table-column label="使用金额(元)" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<Input :value="scope.row.use_money" @input="planInput($event,scope.row)" /> <Input :value="scope.row.use_money" @input="planInput($event,scope.row)" />
</template> </template>

@ -19,7 +19,7 @@
<div class="xy-table-item-label"> <div class="xy-table-item-label">
<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">
<div style="display: flex; width: 300px; align-items: center"> <div style="display: flex; width: 300px; align-items: center">
@ -228,16 +228,6 @@
</div> </div>
</div> </div>
</template> </template>
<template #content>
<div class="xy-table-item">
<div class="xy-table-item-label" style="width: 200px">
合同主要内容
</div>
<div class="xy-table-item-content">
<el-input v-model="detail.content" style="width: 300px" type="textarea" :autosize="{ minRows: 2 }" placeholder="请输入合同主要内容"></el-input>
</div>
</div>
</template>
<template v-slot:contract_to_contracts v-if="detail.use_framework_buy"> <template v-slot:contract_to_contracts v-if="detail.use_framework_buy">
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label"> <div class="xy-table-item-label">
@ -268,7 +258,7 @@
<xy-table :list="plans" :show-index="false" :table-item="planTable" :height="310" style="margin-top: 10px;" <xy-table :list="plans" :show-index="false" :table-item="planTable" :height="310" style="margin-top: 10px;"
ref="editorPlanTable" row-key="id" border default-expand-all :tree-props="{ children: 'notChildren', hasChildren: 'hasChildren' }" @select="selectPlan"> ref="editorPlanTable" row-key="id" border default-expand-all :tree-props="{ children: 'notChildren', hasChildren: 'hasChildren' }" @select="selectPlan">
<template v-slot:btns> <template v-slot:btns>
<el-table-column label="使用金额" header-align="center" width="130"> <el-table-column label="使用金额(元)" header-align="center" width="130">
<template slot-scope="scope" v-if="scope.row.pid === 0"> <template slot-scope="scope" v-if="scope.row.pid === 0">
<Input :value="scope.row.useMoney" @input="planInput($event,scope.row)" /> <Input :value="scope.row.useMoney" @input="planInput($event,scope.row)" />
</template> </template>
@ -762,6 +752,7 @@ import { resetSelect } from '@/utils'
is_plan: this.detail.isBudget ? 1 : 0, is_plan: this.detail.isBudget ? 1 : 0,
is_simple:this.detail?.is_simple, is_simple:this.detail?.is_simple,
content: this.detail?.content, content: this.detail?.content,
is_contract: this.detail?.is_contract,
supply:this.detail?.supply, supply:this.detail?.supply,
purchase_type_id: this.detail.methods, purchase_type_id: this.detail.methods,
purchase_way_id: this.detail.modality, purchase_way_id: this.detail.modality,

@ -113,7 +113,7 @@
<Input search enter-button=" " placeholder="搜索预算计划.." v-model="searchContent" @on-search="getBudgets"/> <Input search enter-button=" " placeholder="搜索预算计划.." v-model="searchContent" @on-search="getBudgets"/>
<xy-table :list="plans" :show-index="false" :table-item="planTable" :height="310" style="margin-top: 10px;" ref="planTable" @select="selectPlan"> <xy-table :list="plans" :show-index="false" :table-item="planTable" :height="310" style="margin-top: 10px;" ref="planTable" @select="selectPlan">
<template v-slot:btns> <template v-slot:btns>
<el-table-column label="使用金额" header-align="center"> <el-table-column label="使用金额(元)" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<Input :value="scope.row.useMoney ? scope.row.useMoney: scope.row.money" @input="(e)=>scope.row.useMoney = e"/> <Input :value="scope.row.useMoney ? scope.row.useMoney: scope.row.money" @input="(e)=>scope.row.useMoney = e"/>
</template> </template>

@ -248,7 +248,7 @@
@select="selectPlan" @select="selectPlan"
> >
<template v-slot:btns> <template v-slot:btns>
<el-table-column label="使用金额" header-align="center"> <el-table-column label="使用金额(元)" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<Input <Input
:value="scope.row.useMoney" :value="scope.row.useMoney"

@ -303,10 +303,10 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="slot-btns"> <div class="slot-btns">
<template v-if="scope.row.status === 2 && scope.row.is_end === 0"> <template v-if="(scope.row.status === 2 && scope.row.is_end === 0) || (!scope.row.is_contract && scope.row.purchase_way && scope.row.purchase_way.value === '网上商城' && scope.row.purchase_status === 3)">
<template v-if="scope.row.is_assurance == 1"> <template v-if="scope.row.is_assurance == 1 || (!scope.row.is_contract && scope.row.purchase_way && scope.row.purchase_way.value === '网上商城' && scope.row.purchase_status === 3)">
<!-- 如果是 履约文件--> <!-- 如果是 履约文件-->
<template v-if="scope.row.assurance_status == 1"> <template v-if="scope.row.assurance_status == 1 || (!scope.row.is_contract && scope.row.purchase_way && scope.row.purchase_way.value === '网上商城' && scope.row.purchase_status === 3)">
<!-- 那么必须财务审核通过--> <!-- 那么必须财务审核通过-->
<Button <Button
class="slot-btns-item" class="slot-btns-item"
@ -344,7 +344,7 @@
</template> </template>
<template <template
v-if="(scope.row.status === 1 && scope.row.join_status === 3 && !/contractLedger/g.test($route.path)) || !(!scope.row.is_framework && scope.row.purchase_way && scope.row.purchase_way.value === '网上商城')" v-if="(scope.row.status === 1 && scope.row.join_status === 3 && !/contractLedger/g.test($route.path)) && (scope.row.is_contract && scope.row.purchase_way && scope.row.purchase_way.value !== '网上商城')"
> >
<Button <Button
class="slot-btns-item" class="slot-btns-item"
@ -361,12 +361,12 @@
<!-- 采购完成 --> <!-- 采购完成 -->
<template <template
v-if=" v-if="
scope.row.invite_status === 1 && (scope.row.invite_status === 1 &&
scope.row.purchase_status === 3 && scope.row.purchase_status === 3 &&
(scope.row.purchase_way (scope.row.purchase_way
? scope.row.purchase_way.remark === 'true' ? scope.row.purchase_way.remark === 'true'
: false) && : false) &&
!scope.row.is_substitute !scope.row.is_substitute) && (scope.row.is_contract && scope.row.purchase_way && scope.row.purchase_way.value !== '网上商城')
" "
> >
<Button <Button
@ -405,13 +405,13 @@
<!--不需要走采购流程那么直接就是会签如果采购方式不需要招标的也是直接会签--> <!--不需要走采购流程那么直接就是会签如果采购方式不需要招标的也是直接会签-->
<template <template
v-if=" v-if="
(scope.row.join_status === 1 && ((scope.row.join_status === 1 &&
(scope.row.invite_status === 3 || (scope.row.invite_status === 3 ||
((scope.row.purchase_way ((scope.row.purchase_way
? scope.row.purchase_way.remark === 'false' ? scope.row.purchase_way.remark === 'false'
: false) && : false) &&
scope.row.purchase_status === 3))) || scope.row.purchase_status === 3))) ||
(scope.row.is_substitute && scope.row.join_status === 1) (scope.row.is_substitute && scope.row.join_status === 1)) && (scope.row.is_contract && scope.row.purchase_way && scope.row.purchase_way.value !== '网上商城')
" "
> >
<Button <Button
@ -569,7 +569,7 @@
<div class="xy-table-item-label"> <div class="xy-table-item-label">
<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">
<div style="display: flex; width: 300px; align-items: center"> <div style="display: flex; width: 300px; align-items: center">
@ -682,9 +682,11 @@
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-select <el-select
ref="methodInput"
v-model="form.methods" v-model="form.methods"
placeholder="请选择采购形式" placeholder="请选择采购形式"
style="width: 300px" style="width: 300px"
@change="showIsFramework"
> >
<el-option <el-option
v-for="item in purchaseType" v-for="item in purchaseType"
@ -786,7 +788,7 @@
</div> </div>
</div> </div>
</template> </template>
<template v-slot:is_framework> <template v-slot:is_framework v-if="isShowIsFramework">
<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 style="color: red; font-weight: 600; padding-right: 4px"
@ -818,6 +820,7 @@
inactive-text="否" inactive-text="否"
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
@change="showIsFramework"
/> />
</div> </div>
</div> </div>
@ -854,16 +857,6 @@
</div> </div>
</div> </div>
</template> </template>
<template #content>
<div class="xy-table-item">
<div class="xy-table-item-label" style="width: 200px">
合同主要内容
</div>
<div class="xy-table-item-content">
<el-input v-model="form.content" style="width: 300px" type="textarea" :autosize="{ minRows: 2 }" placeholder="请输入合同主要内容"></el-input>
</div>
</div>
</template>
<template v-slot:plan> <template v-slot:plan>
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label"> <div class="xy-table-item-label">
@ -1004,7 +997,7 @@
<template v-slot:btns> <template v-slot:btns>
<el-table-column <el-table-column
header-align="center" header-align="center"
label="使用金额" label="使用金额(元)"
fixed="right" fixed="right"
width="140" width="140"
> >
@ -1225,6 +1218,7 @@ export default {
}; };
return { return {
isShowIsFramework: true,
userList: ["ma_sm", "admin", "yu_l","wang_yx","li_f","chen_y"], userList: ["ma_sm", "admin", "yu_l","wang_yx","li_f","chen_y"],
nowContract: {}, nowContract: {},
window: { window: {
@ -1591,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) { if (row.is_substitute || row.is_simple || (!row.is_contract && row.purchase_way?.value !== '网上商城')) {
return (<span></span>); return (<span></span>);
} }
const getDate = (value) => { const getDate = (value) => {
@ -2127,6 +2121,16 @@ export default {
}; };
}, },
methods: { methods: {
showIsFramework () {
this.$nextTick(() => {
if (this.$refs['methodInput'].selected.label === '直接发包' && this.form.use_framework_buy) {
this.isShowIsFramework = false;
this.form.is_framework = true
} else {
this.isShowIsFramework = true;
}
})
},
async toOaDetail (tbname,row) { async toOaDetail (tbname,row) {
let res; let res;
switch (tbname) { switch (tbname) {
@ -2460,6 +2464,7 @@ export default {
total: row?.money || row?.plan_price, total: row?.money || row?.plan_price,
out_contract_id: row.id, out_contract_id: row.id,
contract_content: row.content, contract_content: row.content,
yifang: row.supply
//"\\":row.supply //"\\":row.supply
}; };
// let res = await getOatoken() // let res = await getOatoken()
@ -2771,6 +2776,7 @@ export default {
type: this.form.type, type: this.form.type,
is_plan: this.form.isBudget ? 1 : 0, is_plan: this.form.isBudget ? 1 : 0,
purchase_type_id: this.form.methods, purchase_type_id: this.form.methods,
is_contract: this.form.is_contract,
purchase_way_id: this.form.modality, purchase_way_id: this.form.modality,
money_way_id: `${this.form.fundingChannels.toString()}`, money_way_id: `${this.form.fundingChannels.toString()}`,
plan_price: this.form.price, plan_price: this.form.price,

@ -352,7 +352,7 @@
<xy-table ref="planTable" :height="300" :list="plans" :show-index="false" :table-item="planTable" <xy-table ref="planTable" :height="300" :list="plans" :show-index="false" :table-item="planTable"
style="margin-top: 10px;" @select="selectPlan"> style="margin-top: 10px;" @select="selectPlan">
<template v-slot:btns> <template v-slot:btns>
<el-table-column header-align="center" label="使用金额" fixed="right" width="140"> <el-table-column header-align="center" label="使用金额(元)" fixed="right" width="140">
<template slot-scope="scope"> <template slot-scope="scope">
<Input :value="scope.row.useMoney" @input="planInput($event,scope.row)" /> <Input :value="scope.row.useMoney" @input="planInput($event,scope.row)" />
</template> </template>

@ -185,7 +185,7 @@
<xy-table :list="plans" :show-index="false" :table-item="planTable" :height="310" style="margin-top: 10px;" <xy-table :list="plans" :show-index="false" :table-item="planTable" :height="310" style="margin-top: 10px;"
ref="planTable" @select="selectPlan"> ref="planTable" @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">
<template slot-scope="scope"> <template slot-scope="scope">
<Input :value="scope.row.use_money" @input="inputMoney($event,scope.row)" /> <Input :value="scope.row.use_money" @input="inputMoney($event,scope.row)" />
</template> </template>

@ -171,7 +171,7 @@
<xy-table :list="budgets" :show-index="false" :table-item="planTable" :height="310" style="margin-top: 10px;" <xy-table :list="budgets" :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">
<template slot-scope="scope"> <template slot-scope="scope">
<Input :value="scope.row.use_money" @input="inputMoney($event,scope.row)" /> <Input :value="scope.row.use_money" @input="inputMoney($event,scope.row)" />
</template> </template>

Loading…
Cancel
Save