更新
This commit is contained in:
@@ -18,9 +18,9 @@
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-button type="success" icon="el-icon-search" size="small" style="margin-left: 10px" @click="PageSize = 30;PageCurrent = 1;tableData2=[];getTableData()">查询</el-button>
|
||||
<el-badge :value="value" :max="99" class="item">
|
||||
<el-button size="small" plain @click="AccountsReceivable">查看收款信息</el-button>
|
||||
</el-badge>
|
||||
<!--<el-badge :value="value" :max="99" class="item">-->
|
||||
<!--<el-button size="small" plain @click="AccountsReceivable">查看收款信息</el-button>-->
|
||||
<!--</el-badge>-->
|
||||
</el-card>
|
||||
<el-card>
|
||||
<el-col :span="14">
|
||||
@@ -88,40 +88,40 @@
|
||||
{{ scope.row.姓名 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="60" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="编辑" placement="top">
|
||||
<div style="display: inline-block">
|
||||
<el-button
|
||||
:disabled="scope.row.是否禁用编辑"
|
||||
type="text"
|
||||
size="mini"
|
||||
icon="el-icon-edit-outline"
|
||||
@click.stop="EditTableData(scope.row)"/>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="新增发票" placement="top">
|
||||
<div style="display: inline-block">
|
||||
<el-button
|
||||
:disabled="scope.row.是否禁用编辑"
|
||||
type="text"
|
||||
size="mini"
|
||||
icon="el-icon-circle-plus-outline"
|
||||
@click.stop="EditTableData(scope.row)"/>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
<!--<el-tooltip :open-delay="1000" effect="dark" content="删除" placement="top">-->
|
||||
<!--<div style="display: inline-block">-->
|
||||
<!--<el-button-->
|
||||
<!--style="margin-left: 20px"-->
|
||||
<!--size="mini"-->
|
||||
<!--type="text"-->
|
||||
<!--icon="el-icon-delete"-->
|
||||
<!--@click.stop="dellist(scope.row)"/>-->
|
||||
<!--</div>-->
|
||||
<!--</el-tooltip>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!--<el-table-column label="操作" align="center" width="60" fixed="right">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--<el-tooltip :open-delay="1000" effect="dark" content="编辑" placement="top">-->
|
||||
<!--<div style="display: inline-block">-->
|
||||
<!--<el-button-->
|
||||
<!--:disabled="scope.row.是否禁用编辑"-->
|
||||
<!--type="text"-->
|
||||
<!--size="mini"-->
|
||||
<!--icon="el-icon-edit-outline"-->
|
||||
<!--@click.stop="EditTableData(scope.row)"/>-->
|
||||
<!--</div>-->
|
||||
<!--</el-tooltip>-->
|
||||
<!--<el-tooltip :open-delay="1000" effect="dark" content="新增发票" placement="top">-->
|
||||
<!--<div style="display: inline-block">-->
|
||||
<!--<el-button-->
|
||||
<!--:disabled="scope.row.是否禁用编辑"-->
|
||||
<!--type="text"-->
|
||||
<!--size="mini"-->
|
||||
<!--icon="el-icon-circle-plus-outline"-->
|
||||
<!--@click.stop="EditTableData(scope.row)"/>-->
|
||||
<!--</div>-->
|
||||
<!--</el-tooltip>-->
|
||||
<!--<!–<el-tooltip :open-delay="1000" effect="dark" content="删除" placement="top">–>-->
|
||||
<!--<!–<div style="display: inline-block">–>-->
|
||||
<!--<!–<el-button–>-->
|
||||
<!--<!–style="margin-left: 20px"–>-->
|
||||
<!--<!–size="mini"–>-->
|
||||
<!--<!–type="text"–>-->
|
||||
<!--<!–icon="el-icon-delete"–>-->
|
||||
<!--<!–@click.stop="dellist(scope.row)"/>–>-->
|
||||
<!--<!–</div>–>-->
|
||||
<!--<!–</el-tooltip>–>-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
@@ -136,109 +136,37 @@
|
||||
</el-col>
|
||||
<el-col :span="10">
|
||||
<el-table
|
||||
v-loading="listLoading2"
|
||||
:row-style="tableRowClassName1"
|
||||
:row-key="getRowKeys1"
|
||||
:expand-row-keys="expands1"
|
||||
:data="tableData2"
|
||||
style="width: 100%;max-height: 440px;text-align: center"
|
||||
height="210"
|
||||
highlight-current-row
|
||||
border
|
||||
stripe
|
||||
size="mini"
|
||||
@expand-change="selectMachine1">
|
||||
<el-table-column type="expand" label="详情">
|
||||
<template slot-scope="scope">
|
||||
<el-table :data="tableData4" class="subTableHeader" border stripe style="width: 600px; text-align: center" size="mini">
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="序号"
|
||||
type="index"
|
||||
width="100"/>
|
||||
<el-table-column label="本次收款金额" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.本次收款金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="本次收款时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.本次收款时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" fixed="right" align="center" width="110">
|
||||
<template slot-scope="scope">
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="编辑" placement="top">
|
||||
<div style="display: inline-block">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit-outline"
|
||||
@click="handleEdit2(scope.row);flag = 2"/>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="删除" placement="top">
|
||||
<div style="display: inline-block">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
style="margin-left: 20px"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete2(scope.row)"/>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</template>
|
||||
</el-table-column>
|
||||
size="mini">
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="付款批次"
|
||||
label="序号"
|
||||
type="index"
|
||||
width="70"/>
|
||||
<el-table-column align="center" label="应收金额(万元)" width="118px">
|
||||
width="100"/>
|
||||
<el-table-column label="收款金额" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.应收金额 }}
|
||||
{{ scope.row.金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="已收金额(万元)" width="118px">
|
||||
<el-table-column label="收款时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.已收金额 }}
|
||||
{{ scope.row.入账时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="收款阶段" min-width="169px">
|
||||
<el-table-column label="操作" fixed="right" align="center" width="110">
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="scope.row.执行进度id" filterable placeholder="请选择收款阶段" style="width: 130px" size="mini" @change="changeTime(scope.row)">
|
||||
<el-option
|
||||
v-for="item in plannedTime"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="110">
|
||||
<template slot-scope="scope">
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="收款" placement="top">
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="编辑" placement="top">
|
||||
<div style="display: inline-block">
|
||||
<el-button
|
||||
:disabled="scope.row.是否禁用收款"
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-money"
|
||||
@click="handleEdit1(scope.row);flag=1"/>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="收款转移" placement="top">
|
||||
<div style="display: inline-block">
|
||||
<el-button
|
||||
:disabled="scope.row.是否禁用"
|
||||
size="mini"
|
||||
type="text"
|
||||
style="margin-left: 20px"
|
||||
icon="el-icon-sort"
|
||||
@click="TransferPlan(scope.row)"/>
|
||||
icon="el-icon-edit-outline"
|
||||
@click="handleEdit2(scope.row);flag = 2"/>
|
||||
</div>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
@@ -941,47 +869,9 @@ export default {
|
||||
})
|
||||
},
|
||||
getTableData2(row) {
|
||||
this.timetime = row.合同签订日期
|
||||
this.moneyID = row.资金id
|
||||
this.max = parseFloat(row.未支付金额)
|
||||
this.contractTotal = parseFloat(row.合同总金额)
|
||||
this.listLoading2 = true
|
||||
searchTable2(this.PageCurrent2, this.PageSize2, this.moneyID).then(response => {
|
||||
this.id3 = ''
|
||||
this.listLoading2 = false
|
||||
const data = response.data.rows
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
data[i].未收金额 === '0' ? data[i].是否禁用收款 = true : data[i].是否禁用收款 = false
|
||||
data[i].未收金额 === '0' ? data[i].是否禁用 = true : data[i].是否禁用 = false
|
||||
data[i].执行进度id = parseInt(data[i].执行进度id)
|
||||
if (data[i].节点日期 !== '' && data[i].节点日期 !== null) {
|
||||
data[i].节点日期 = data[i].节点日期.substring(0, data[i].节点日期.length - 8)
|
||||
}
|
||||
if (data[i].计划付款时间 === '' || data[i].计划付款时间 === null) {
|
||||
data[i].是否禁用收款 = true
|
||||
data[i].状态 = '进度未完'
|
||||
} else {
|
||||
data[i].计划付款时间 = data[i].计划付款时间.substring(0, data[i].计划付款时间.length - 8)
|
||||
data[i].是否禁用收款 = false
|
||||
if (data[i].未收金额 === '0') {
|
||||
data[i].是否禁用收款 = true
|
||||
data[i].状态 = '已完成'
|
||||
} else {
|
||||
if (data[i].状态 === '0') {
|
||||
data[i].状态 = '未开始'
|
||||
}
|
||||
if (data[i].状态 === '1') {
|
||||
data[i].状态 = '即将拖期'
|
||||
}
|
||||
if (data[i].状态 === '2') {
|
||||
data[i].状态 = '已拖期'
|
||||
}
|
||||
}
|
||||
}
|
||||
data[i].未收金额 === '0' ? data[i].是否禁用 = true : data[i].是否禁用 = false
|
||||
}
|
||||
this.tableData2 = data
|
||||
this.total2 = response.data.total
|
||||
searchTable2(this.moneyID).then(response => {
|
||||
this.tableData2 = response.data
|
||||
})
|
||||
},
|
||||
handleSizeChange(val) {
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
{{ scope.row.项目名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="合同总额" prop="合同总额" width="140" show-overflow-tooltip>
|
||||
<el-table-column align="right" label="合同总额(万元)" prop="合同总额" width="140" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ Number(scope.row.合同总金额).toFixed(2) }}
|
||||
</template>
|
||||
@@ -289,7 +289,7 @@
|
||||
<el-input v-model="form.bidding" readonly clearable size="small" style="width:200px" placeholder="若缴纳保证金请选择" @dblclick.native="openBidding()" @clear="clearBidding()"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col v-show="isTrue" :span="12">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="合同总额" prop="contractAmount">
|
||||
<el-input v-model="form.contractAmount" clearable size="small" style="width:200px" placeholder="请输入合同金额"/>
|
||||
</el-form-item>
|
||||
@@ -367,7 +367,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="付款方式" prop="付款方式">
|
||||
<el-select v-model="form.付款方式" :disabled="disabled" placeholder="请选择付款方式" size="small" style="width: 200px">
|
||||
<el-select v-model="form.付款方式" placeholder="请选择付款方式" size="small" style="width: 200px">
|
||||
<el-option
|
||||
v-for="item in money"
|
||||
:key="item.value"
|
||||
@@ -998,7 +998,7 @@ export default {
|
||||
this.isTrue = false
|
||||
},
|
||||
chaEdit() {
|
||||
editchar(this.form.EntryName, this.form.drawingJointSignNode, this.form.EquipmentPreAcceptanceNode, this.form.ConsignmentNode, this.form.installDebugNode, this.id1, this.form.executionProgressID, this.CustomerCode, this.form.remark, this.hetongID, this.form.付款方式, this.form.contractSigningDate, this.biddingNumber).then(response => {
|
||||
editchar(this.form.EntryName, this.form.drawingJointSignNode, this.form.EquipmentPreAcceptanceNode, this.form.ConsignmentNode, this.form.installDebugNode, this.id1, this.form.executionProgressID, this.CustomerCode, this.form.remark, this.hetongID, this.form.付款方式, this.form.contractSigningDate, this.biddingNumber, this.form.contractAmount).then(response => {
|
||||
this.dialogFormVisible1 = false
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('信息更新成功')
|
||||
|
||||
Reference in New Issue
Block a user