|
@@ -146,9 +146,21 @@
|
|
|
<el-table-column width='120' prop="expenses" label="费用支出"> </el-table-column>
|
|
|
<el-table-column width='120' prop="mildewGrain" label="未回款(元)">
|
|
|
<template slot-scope="scope">
|
|
|
- <span style='color:red;'
|
|
|
+ <!-- <span style='color:red;'
|
|
|
v-if='scope.row.datestatus && scope.row.invoiced > scope.row.contractRevenue'>{{ scope.row.mildewGrain }}</span>
|
|
|
- <span v-else>{{ scope.row.mildewGrain }}</span>
|
|
|
+ <span v-else>{{ scope.row.mildewGrain }}</span> -->
|
|
|
+ <div class="inputChenge">
|
|
|
+ <!-- readonly -->
|
|
|
+ <el-input v-model="scope.row.mildewGrain" v-if="scope.row.identification == 'true'"></el-input>
|
|
|
+ <div v-if="scope.row.identification == 'false'" class="inputs">
|
|
|
+ {{ scope.row.mildewGrain }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <img width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
+ src="../../../public/img/edit.png" @click="whether(scope.row,1)"
|
|
|
+ v-if="scope.row.identification == 'false'" alt="" />
|
|
|
+ <i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
|
|
|
+ v-if="scope.row.identification == 'true'" @click="varietyClick(scope.row,1)"></i>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
@@ -162,15 +174,27 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column width='190' prop="goodsNames" label="已开发票 (元)">
|
|
|
+ <el-table-column width='120' prop="goodsNames" label="已开发票 (元)">
|
|
|
<template slot-scope="scope">
|
|
|
- <div v-if="!scope.row.editgoodsNames" style="display:inline-block;">
|
|
|
- <span @dblclick="scope.row.editgoodsNames=true">{{ scope.row.invoiced?scope.row.invoiced:0 }}</span>
|
|
|
- <img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
+ <div v-if="!scope.row.editgoodsNames" >
|
|
|
+ <!-- <span @dblclick="scope.row.editgoodsNames=true">{{ scope.row.invoiced?scope.row.invoiced:0 }}</span> -->
|
|
|
+ <div class="inputChenge">
|
|
|
+ <!-- readonly -->
|
|
|
+ <el-input v-model="scope.row.invoiced" v-if="scope.row.identification1 == 'true'"></el-input>
|
|
|
+ <div v-if="scope.row.identification1 == 'false'" class="inputs">
|
|
|
+ {{ scope.row.invoiced }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- <img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
src="../../../public/img/fujian.png" @click="invoiceUploade(scope.row)" alt="" />
|
|
|
<span v-if="scope.row.invoiceUrl != null">
|
|
|
{{ scope.row.invoiceUrl ? scope.row.invoiceUrl.split(",").length : "" }}
|
|
|
- </span>
|
|
|
+ </span> -->
|
|
|
+ <img width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
+ src="../../../public/img/edit.png" @click="whether(scope.row,2)"
|
|
|
+ v-if="scope.row.identification1 == 'false'" alt="" />
|
|
|
+ <i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
|
|
|
+ v-if="scope.row.identification1 == 'true'" @click="varietyClick(scope.row,2)"></i>
|
|
|
</div>
|
|
|
<div v-if="scope.row.editgoodsNames">
|
|
|
<el-input class="goodsnamesinput" v-model="scope.row.invoiced" placeholder="输入累计开票金额" ></el-input>
|
|
@@ -327,7 +351,8 @@ import {
|
|
|
editInfo,
|
|
|
getsettlementprice,
|
|
|
getstafffind,
|
|
|
- sponsorWithdraw
|
|
|
+ sponsorWithdraw,
|
|
|
+ editProcessInfo
|
|
|
} from '@/model/contarct/index'
|
|
|
import {
|
|
|
downloadFile
|
|
@@ -551,6 +576,51 @@ export default {
|
|
|
},
|
|
|
})
|
|
|
},
|
|
|
+ whether(row, flag) {
|
|
|
+ if (flag == 1) {
|
|
|
+ row.identification = 'true'
|
|
|
+ } else {
|
|
|
+ row.identification1 = 'true'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //修改未回款、开票金额
|
|
|
+ varietyClick(row, flag) {
|
|
|
+ var title = ''
|
|
|
+ var data = {}
|
|
|
+ if(flag==1){
|
|
|
+ title = '确定要修改未回款金额?'
|
|
|
+ data = {
|
|
|
+ mildewGrain: row.mildewGrain,
|
|
|
+ id: row.id
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ title = '确定要修改已开发票金额?'
|
|
|
+ data = {
|
|
|
+ goodsName: row.invoiced,
|
|
|
+ id: row.id
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$confirm(title, {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ editProcessInfo(data)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$notify.success({
|
|
|
+ title: '成功',
|
|
|
+ message: '修改成功',
|
|
|
+ })
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
handleClose1() {
|
|
|
this.show = false
|
|
|
this.getList()
|
|
@@ -744,6 +814,8 @@ export default {
|
|
|
.then((response) => {
|
|
|
var date = new Date().getTime()
|
|
|
for (var i = 0; i < response.records.length; i++) {
|
|
|
+ response.records[i].identification = 'false'
|
|
|
+ response.records[i].identification1 = 'false'
|
|
|
if (response.records[i].status) {
|
|
|
response.records[i].currectstatus = response.records[i].status
|
|
|
}
|
|
@@ -1028,7 +1100,14 @@ export default {
|
|
|
.flex {
|
|
|
display: flex;
|
|
|
}
|
|
|
-
|
|
|
+ .inputChenge {
|
|
|
+ width: 100%;
|
|
|
+ display: inline-flex;
|
|
|
+ margin-left: -28%;
|
|
|
+ }
|
|
|
+ .inputs {
|
|
|
+ margin: 0 auto;
|
|
|
+ }
|
|
|
.el-range-editor.el-input__inner {
|
|
|
margin-left: 10px;
|
|
|
}
|