列表展示

master
xy 2 years ago
parent 4ae5c72509
commit ad05dec9b4

@ -53,7 +53,7 @@
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-select v-model="form.contract_type" style="width: 300px"> <el-select v-model="form.contract_type" style="width: 300px">
<el-option v-for="(item,index) in ['收入类','支出类','技术协议']" :label="item" :value="index+1"></el-option> <el-option v-for="(item,index) in ['收入类','支出类','技术协议','其他协议']" :label="item" :value="index+1"></el-option>
</el-select> </el-select>
</div> </div>
</div> </div>

@ -315,13 +315,13 @@
contractId: null, contractId: null,
contract: {}, contract: {},
signList: [], signList: [],
signTable: [{ signTable: [
prop: 'created_at', {
label: '日期', prop: "date",
label: "计划日期",
width: 170, width: 170,
sortable: false,
formatter: (v1, v2, value) => { formatter: (v1, v2, value) => {
return parseTime(new Date(value)) return this.$moment(new Date(value)).format("YYYY-MM-DD")
} }
}, },
{ {
@ -347,6 +347,15 @@
minWidth: 180, minWidth: 180,
align: 'left', align: 'left',
sortable: false, sortable: false,
},
{
prop: 'created_at',
label: '日期',
width: 170,
sortable: false,
formatter: (v1, v2, value) => {
return this.$moment(new Date(value)).format("YYYY-MM-DD HH:mm:ss")
}
} }
], ],

@ -50,10 +50,10 @@
<template v-slot:supply v-if="detail.is_simple"> <template v-slot:supply v-if="detail.is_simple">
<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;font-size: 11px;">*</span>承包商/供货商 <span style="color: red;font-weight: 600;padding-right: 4px;font-size: 11px;">*</span>承包商/供货商/协议方
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-input v-model="detail.supply" placeholder="请填写承包商/供货商" style="width: 300px;"/> <el-input v-model="detail.supply" placeholder="请填写承包商/供货商/协议方" style="width: 300px;"/>
</div> </div>
</div> </div>
</template> </template>

@ -12,7 +12,7 @@
<div>本次为第 <span style="font-weight: 600;padding: 0 1vw;">{{payIndex}}</span> 次付款</div> <div>本次为第 <span style="font-weight: 600;padding: 0 1vw;">{{payIndex}}</span> 次付款</div>
<div>{{registration.remark}}</div> <div>{{registration.remark}}</div>
</div> </div>
<div style="grid-area: tb2-1" class="print-table1-grid-top">承包商/供货商<span <div style="grid-area: tb2-1" class="print-table1-grid-top">承包商/供货商/协议方<span
style="font-weight: 600">{{registration.contract.supply}}</span></div> style="font-weight: 600">{{registration.contract.supply}}</span></div>
<div style="grid-area: tb2-2" class="print-table1-grid-top">合同服务时间<span <div style="grid-area: tb2-2" class="print-table1-grid-top">合同服务时间<span
style="font-weight: 600">{{registration.contract.start_date}} - style="font-weight: 600">{{registration.contract.start_date}} -

@ -197,10 +197,10 @@
</el-form-item> </el-form-item>
<template v-if="form.is_simple"> <template v-if="form.is_simple">
<el-form-item prop="supply" label="承包商/供货商"> <el-form-item prop="supply" label="承包商/供货商/协议方">
<el-input <el-input
v-model="form.supply" v-model="form.supply"
placeholder="请填写承包商/供货商" placeholder="请填写承包商/供货商/协议方"
style="width: 100%" style="width: 100%"
/> />
</el-form-item> </el-form-item>
@ -1333,6 +1333,10 @@ export default {
} else { } else {
this.form.contract_plan_links = [] this.form.contract_plan_links = []
} }
if (this.form.is_contract && this.form.is_simple) {
this.form.purchase_status = 3;
this.form.invite_status = 3;
}
if (this.type === 'add') { if (this.type === 'add') {
addContrant(this.form,true).then(res => { addContrant(this.form,true).then(res => {
this.btnLoading = false this.btnLoading = false

@ -501,12 +501,12 @@
font-size: 11px; font-size: 11px;
" "
>*</span >*</span
>承包商/供货商 >承包商/供货商/协议方
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-input <el-input
v-model="form.supply" v-model="form.supply"
placeholder="请填写承包商/供货商" placeholder="请填写承包商/供货商/协议方"
style="width: 300px" style="width: 300px"
/> />
</div> </div>

@ -288,7 +288,7 @@
@delete="(row) => deleteContract(row.id)" @delete="(row) => deleteContract(row.id)"
@editor="" @editor=""
> >
<template v-slot:btns v-if="!/contractLedger/g.test($route.path)"> <template v-slot:btns v-if="!/contractLedger$/g.test($route.path)">
<el-table-column <el-table-column
fixed="right" fixed="right"
header-align="center" header-align="center"
@ -297,7 +297,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="slot-btns"> <div class="slot-btns">
<template v-if="scope.row.FLOWSTATUS['zhifu'].isEnabled()"> <template v-if="scope.row.FLOWSTATUS['zhifu'].isEnabled() && !/contractLedger/g.test($route.path)">
<template v-if="scope.row.is_assurance === 1"> <template v-if="scope.row.is_assurance === 1">
<!-- 如果是 履约文件--> <!-- 如果是 履约文件-->
<template v-if="scope.row.assurance_status === 1"> <template v-if="scope.row.assurance_status === 1">
@ -511,7 +511,7 @@
scope.row.invite_status != 1 || scope.row.invite_status != 1 ||
scope.row.purchase_status != 1 || scope.row.purchase_status != 1 ||
scope.row.status === 2 scope.row.status === 2
) || (scope.row.is_substitute && scope.row.join_status === 1) )
" "
> >
<Poptip <Poptip
@ -681,7 +681,7 @@
font-size: 11px; font-size: 11px;
" "
>*</span >*</span
>承包商/供货商 >承包商/供货商/协议方
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-input <el-input
@ -1141,7 +1141,7 @@
<oaFiles ref="oaFiles"></oaFiles> <oaFiles ref="oaFiles"></oaFiles>
<addContractLedger ref="addContractLedger" @refresh="getContracts"></addContractLedger> <addContractLedger ref="addContractLedger" @refresh="getContracts(false,false,true)"></addContractLedger>
</div> </div>
</template> </template>
@ -1383,7 +1383,8 @@ export default {
let map = new Map([ let map = new Map([
[1,'收入类'], [1,'收入类'],
[2,'支出类'], [2,'支出类'],
[3,'技术协议'] [3,'技术协议'],
[4,'其他协议']
]) ])
return map.get(value) return map.get(value)
} }
@ -2486,6 +2487,9 @@ export default {
) { ) {
await this.buyProcess(res.list.data[0]) await this.buyProcess(res.list.data[0])
} }
if (res.list.data[0].is_simple !== 1 && res.list.data[0].is_substitute ) {
await this.signProcess(res.list.data[0])
}
} }
} }
}, },
@ -2839,10 +2843,15 @@ export default {
this.select.is_contract = 1; this.select.is_contract = 1;
this.select.purchase_status = 3; this.select.purchase_status = 3;
this.select.invite_status = 3; this.select.invite_status = 3;
this.select.is_simple = "";
} }
if (/contractAll/g.test(this.$route.path)) { if (/contractAll/g.test(this.$route.path)) {
this.select.is_simple = ""; this.select.is_simple = "";
} }
if (/contractList/g.test(this.$route.path)) {
this.select.is_substitute = 0;//is_substitute 1
//this.select.contract_type = 2;
}
}, },
destroyed() { destroyed() {
window.onfocus = null; window.onfocus = null;

Loading…
Cancel
Save