|
@@ -162,25 +162,27 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column width='120' prop="goodsNames" label="已开发票 (元)">
|
|
|
+ <el-table-column width='190' prop="goodsNames" label="已开发票 (元)">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.goodsNames }}
|
|
|
- <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>
|
|
|
+ <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"
|
|
|
+ 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>
|
|
|
+ </div>
|
|
|
+ <div v-if="scope.row.editgoodsNames">
|
|
|
+ <el-input class="goodsnamesinput" v-model="scope.row.invoiced" placeholder="输入累计开票金额" ></el-input>
|
|
|
+ <i @click="submitgoodsNames(scope.row)" class="el-icon-check"></i>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="addressUrl" label="附件">
|
|
|
<template slot-scope="scope">
|
|
|
<img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" />
|
|
|
- <span v-if="scope.row.addressUrlArray != null">{{
|
|
|
- scope.row.addressUrlArray.length == 0
|
|
|
- ? ''
|
|
|
- : scope.row.addressUrlArray.length
|
|
|
- }}</span>
|
|
|
+ <span v-if="scope.row.addressUrlArray != null">{{scope.row.addressUrlArray.length == 0? '' : scope.row.addressUrlArray.length}}</span>
|
|
|
<!-- <i @click="fujian(scope.row)" class="el-icon-paperclip iconCss"></i> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -463,6 +465,25 @@ export default {
|
|
|
this.persionXiaLa()
|
|
|
},
|
|
|
methods: {
|
|
|
+ submitgoodsNames(row){
|
|
|
+ console.log(row)
|
|
|
+ if(row.invoiced<0){
|
|
|
+ this.$notify.warning({
|
|
|
+ title: '警告',
|
|
|
+ message: '发票金额输入错误',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ var dataobj={}
|
|
|
+ dataobj.id=row.id
|
|
|
+ dataobj.flag=3
|
|
|
+ dataobj.invoiced=row.invoiced
|
|
|
+ editInfo(dataobj)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message.success('修改成功')
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ },
|
|
|
persionXiaLa() {
|
|
|
getstafffind({
|
|
|
roles: 'b96299bb5dcf461e916b72b64c6943b0'
|
|
@@ -677,6 +698,7 @@ export default {
|
|
|
if (response.records[i].status) {
|
|
|
response.records[i].currectstatus = response.records[i].status
|
|
|
}
|
|
|
+ response.records[i].editgoodsNames=false
|
|
|
if (response.records[i].collectionDeadline) {
|
|
|
response.records[i].date = new Date(response.records[i].collectionDeadline).getTime()
|
|
|
console.log(response.records[i].date, parseInt(date) + (5 * 24 * 3600 * 1000))
|
|
@@ -1302,4 +1324,8 @@ export default {
|
|
|
color: #8890b1;
|
|
|
width: 100%;
|
|
|
}
|
|
|
+.el-table .cell .goodsnamesinput.el-input
|
|
|
+{
|
|
|
+width:80%;
|
|
|
+}
|
|
|
</style>
|