|
@@ -72,6 +72,7 @@
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
+ :disabled="scope.row.status == 5"
|
|
|
v-if="secondDisable == 1 || secondDisable == 2 "
|
|
|
@click="rowCell(scope.row,scope.index)"
|
|
|
>{{ scope.row.$cellEdit ? '修改完成' : '修改' }}
|
|
@@ -79,6 +80,7 @@
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
+ :disabled="scope.row.status == 5"
|
|
|
v-if="secondDisable == 1 || secondDisable == 2 "
|
|
|
@click="rowDel(scope.row,scope.index)"
|
|
|
>删除
|
|
@@ -88,7 +90,7 @@
|
|
|
icon="el-icon-check"
|
|
|
size="small"
|
|
|
:disabled="!scope.row.id"
|
|
|
- v-if="scope.row.status == 4 || secondDisable == 1 || secondDisable == 2 "
|
|
|
+ v-if="scope.row.status != 5 && (scope.row.status == 4 || secondDisable == 1 || secondDisable == 2)"
|
|
|
@click.stop="beforeCloseAccount(scope.row,scope.index)"
|
|
|
>结 算
|
|
|
</el-button>
|
|
@@ -119,28 +121,32 @@
|
|
|
v-model="row.amount"
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
- oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
+ oninput='this.value=this.value.replace(/[^(\-?\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
></el-input>
|
|
|
<span v-else>{{ row.amount }}</span>
|
|
|
</template>
|
|
|
<template slot="serviceCharge" slot-scope="{ row }">
|
|
|
+ <span v-if="row.$cellEdit" class="required_fields">*</span>
|
|
|
<el-input
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model="row.serviceCharge"
|
|
|
+ style="width:90% !important;"
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
- oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
+ oninput='this.value=this.value.replace(/[^(\-?\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
@input="costCount(row)"
|
|
|
></el-input>
|
|
|
<span v-else>{{ row.serviceCharge }}</span>
|
|
|
</template>
|
|
|
<template slot="matMoney" slot-scope="{ row }">
|
|
|
+ <span v-if="row.$cellEdit" class="required_fields">*</span>
|
|
|
<el-input
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model="row.matMoney"
|
|
|
+ style="width:90% !important;"
|
|
|
placeholder="请输入"
|
|
|
size="small"
|
|
|
- oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
+ oninput='this.value=this.value.replace(/[^(\-?\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
@input="costCount(row)"
|
|
|
></el-input>
|
|
|
<span v-else>{{ row.matMoney }}</span>
|
|
@@ -191,7 +197,10 @@
|
|
|
width="70%"
|
|
|
:close-on-click-modal="false"
|
|
|
:destroy-on-close="true"
|
|
|
- :close-on-press-escape="false">
|
|
|
+ :modal-append-to-body='false'
|
|
|
+ :close-on-press-escape="false"
|
|
|
+ v-dialog-drag
|
|
|
+ >
|
|
|
<service-component
|
|
|
@serviceConfirm="serviceConfirm"
|
|
|
@choce="choce"
|
|
@@ -207,7 +216,6 @@
|
|
|
:close-on-click-modal="false"
|
|
|
:destroy-on-close="true"
|
|
|
:close-on-press-escape="false">
|
|
|
-
|
|
|
<el-form :model="accountFormData" ref="accountFormData">
|
|
|
<el-form-item label="账户名称" class="landConFrom-input" prop="accountName" :rules="rules">
|
|
|
<el-input v-model="accountFormData.accountName" style="width: 220px;" size="small" clearable placeholder="请输入" ></el-input>
|
|
@@ -550,23 +558,19 @@
|
|
|
this.loading = true;
|
|
|
this.allDataList = res.data.data.itemList;
|
|
|
|
|
|
- this.allDataList.map(item =>{
|
|
|
- if(item.projectType === 0){
|
|
|
- this.data_one.push(item)
|
|
|
- }
|
|
|
- })
|
|
|
- this.allDataList.map(item =>{
|
|
|
- if(item.projectType === 1){
|
|
|
- this.data_two.push(item)
|
|
|
- }
|
|
|
- })
|
|
|
- this.allDataList.map(item =>{
|
|
|
- if(item.projectType === 2){
|
|
|
- this.data_three.push(item)
|
|
|
- }
|
|
|
- })
|
|
|
+ this.data_one=this.allDataList.filter(item=>item.projectType === 0)
|
|
|
+ this.data_two=this.allDataList.filter(item=>item.projectType === 1)
|
|
|
+ this.data_three=this.allDataList.filter(item=>item.projectType === 2)
|
|
|
+
|
|
|
this.dataList = this.data_one
|
|
|
|
|
|
+ this.activeName = "first"
|
|
|
+ this.tab1 = true;
|
|
|
+ this.tab2 = false;
|
|
|
+ this.tab3 = false;
|
|
|
+ this.option = option
|
|
|
+ this.secondDisable = 0
|
|
|
+
|
|
|
this.loading = false;
|
|
|
}
|
|
|
if(res.data.data.filesList){
|
|
@@ -662,12 +666,13 @@
|
|
|
this.allDataList.push(...this.data_one,...this.data_two,...this.data_three)
|
|
|
|
|
|
for (let i = 0; i < this.allDataList.length; i++) {
|
|
|
- if(this.allDataList[i].superaddition === (null || "") && this.allDataList[i].projectType === 1){
|
|
|
- return this.$message.error(`请输入明细列表追加费必填项`);
|
|
|
+ if(this.allDataList[i].serviceCharge === (null || "")){
|
|
|
+ return this.$message.error(`请输入明细列表服务费必填项`);
|
|
|
}
|
|
|
- if(this.allDataList[i].costReturn === (null || "") && this.allDataList[i].projectType === 2){
|
|
|
- return this.$message.error(`请输入明细列表退费必填项`);
|
|
|
+ if(this.allDataList[i].matMoney === (null || "")){
|
|
|
+ return this.$message.error(`请输入明细列表代垫费必填项`);
|
|
|
}
|
|
|
+
|
|
|
if(this.allDataList[i].userid === (null || "")){
|
|
|
return this.$message.error(`请输入明细列表承做人必填项`);
|
|
|
}
|