|
@@ -16,19 +16,58 @@
|
|
|
}' clearable filterable></el-cascader>
|
|
}' clearable filterable></el-cascader>
|
|
|
</template>
|
|
</template>
|
|
|
</templateTable>
|
|
</templateTable>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 新详情 -->
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
title="详情"
|
|
title="详情"
|
|
|
- :visible.sync="dialogVisible"
|
|
|
|
|
|
|
+ :visible.sync="dialogVisibleNewDetail"
|
|
|
width="80%"
|
|
width="80%"
|
|
|
|
|
+ :before-close="handleCloseNew">
|
|
|
|
|
+ <templateTable ref="templateTable" :formList="formList1" @handleSearchList="handleSearchList1" :tableConfig="tableConfigDetailNew" :data="formTableDataNew"
|
|
|
|
|
+ @findPage="findPageNewDetail" >
|
|
|
|
|
+ </templateTable>
|
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button size="small" @click="handleCloseNew">取消</el-button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ title="结算"
|
|
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
|
|
+ width="70%"
|
|
|
:before-close="handleClose">
|
|
:before-close="handleClose">
|
|
|
- <templateTable ref="templateTable" :tableConfig="tableConfigDetail" :data="formTableData"
|
|
|
|
|
- @findPage="findPageDetail" >
|
|
|
|
|
- </templateTable>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 上传凭证 -->
|
|
|
|
|
+ <el-upload action="#" class="upload-demo" :limit="1" :auto-upload="false"
|
|
|
|
|
+ :on-change="drivingupload" ref="upload3" accept=".png, .jpg, .jpeg" :file-list="fileList">
|
|
|
|
|
+ <el-button size="small" type="primary">点击上传</el-button>
|
|
|
|
|
+ </el-upload>
|
|
|
|
|
+
|
|
|
|
|
+ <templateTable ref="templateTable" :tableConfig="tableConfigDetail" :data="formTableData" @findPage="findPageDetail" >
|
|
|
|
|
+ <template slot="settlementAmount" slot-scope="scope">
|
|
|
|
|
+ <el-input v-model="scope.row.invoicCommissionFeevalue" style="width:120px" size="mini"></el-input>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </templateTable>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button size="small" @click="submitBalance" type="primary">结算</el-button>
|
|
|
<el-button size="small" @click="dialogVisible = false">取消</el-button>
|
|
<el-button size="small" @click="dialogVisible = false">取消</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
- <el-dialog
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <el-dialog title="记录" :visible.sync="dialogVisiblerecord" width="30%" :before-close="handleCloserecord">
|
|
|
|
|
+ <templateTable ref="templateTable1" @getList="getListrecord"
|
|
|
|
|
+ :tableConfig="tableConfigDetailrecord" :data="formTableDatarecord" @findPage="findPageDetailrecord">
|
|
|
|
|
+ <template slot="imageUrl" slot-scope="scope">
|
|
|
|
|
+ <img v-if="scope.row.imageUrl" :src="`${process + scope.row.imageUrl}`" class="imageclass" @click.stop="showViewer=true; ProViewImg=process + scope.row.imageUrl" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </templateTable>
|
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button size="small" @click="dialogVisiblerecord = false">取消</el-button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!-- <el-dialog
|
|
|
title="结算"
|
|
title="结算"
|
|
|
:visible.sync="dialogVisiblebalance"
|
|
:visible.sync="dialogVisiblebalance"
|
|
|
width="20%"
|
|
width="20%"
|
|
@@ -57,7 +96,7 @@
|
|
|
<el-button size="small" @click="dialogVisiblebalance = false">取消</el-button>
|
|
<el-button size="small" @click="dialogVisiblebalance = false">取消</el-button>
|
|
|
<el-button type="primary" size="small" @click="balanceSumbit">确实</el-button>
|
|
<el-button type="primary" size="small" @click="balanceSumbit">确实</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
- </el-dialog>
|
|
|
|
|
|
|
+ </el-dialog> -->
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -77,6 +116,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ process:process.env.BASE_URL,
|
|
|
fileList:[],
|
|
fileList:[],
|
|
|
batchData:{},
|
|
batchData:{},
|
|
|
ztreeNodes:[],
|
|
ztreeNodes:[],
|
|
@@ -139,7 +179,8 @@ export default {
|
|
|
{
|
|
{
|
|
|
type: 'primary',
|
|
type: 'primary',
|
|
|
label: '详情',
|
|
label: '详情',
|
|
|
- click: (row, index) => { return this.haldDetail(row) },
|
|
|
|
|
|
|
+ // click: (row, index) => { return this.haldDetail(row) },
|
|
|
|
|
+ click: (row, index) => { return this.haldNewDetail(row) },
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
@@ -175,7 +216,7 @@ export default {
|
|
|
}]
|
|
}]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: "invoicCommissionFeevalue",
|
|
|
|
|
|
|
+ prop: "totalAmount",
|
|
|
label: "开票金额",
|
|
label: "开票金额",
|
|
|
type: "text"
|
|
type: "text"
|
|
|
},
|
|
},
|
|
@@ -185,29 +226,177 @@ export default {
|
|
|
type: "text"
|
|
type: "text"
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: "invoicTime",
|
|
|
|
|
|
|
+ prop: "createTime",
|
|
|
label: "开票时间",
|
|
label: "开票时间",
|
|
|
type: "text"
|
|
type: "text"
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "invoicedSettledAmount",
|
|
|
|
|
+ label: "开票已结算金额",
|
|
|
|
|
+ type: "text"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "invoicedNotSettledAmount",
|
|
|
|
|
+ label: "开票未结算金额",
|
|
|
|
|
+ type: "text"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "settlementAmount",
|
|
|
|
|
+ label: "结算金额",
|
|
|
|
|
+ type: "slot"
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ ],
|
|
|
|
|
+ loading: true,
|
|
|
|
|
+ // optBtns:[
|
|
|
|
|
+ // {
|
|
|
|
|
+ // type:'primary',
|
|
|
|
|
+ // label:'结算',
|
|
|
|
|
+ // hide:(row)=>{
|
|
|
|
|
+ // return row.invoicCommissionFeevalue?true:false
|
|
|
|
|
+ // },
|
|
|
|
|
+ // click:(row, index) => {return this.openBalanceFun(row)},
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // type:'primary',
|
|
|
|
|
+ // label:'作废',
|
|
|
|
|
+ // click:(row, index) => {return this.handVoid(row)},
|
|
|
|
|
+ // },
|
|
|
|
|
+ // ]
|
|
|
|
|
+ },
|
|
|
|
|
+ // 新详情
|
|
|
|
|
+ dialogVisibleNewDetail: false,
|
|
|
|
|
+ formList1: [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "结算状态",
|
|
|
|
|
+ prop: "settlementStatus",
|
|
|
|
|
+ type: "select",
|
|
|
|
|
+ options: [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '开票未结算',
|
|
|
|
|
+ value: '0'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '开票已结算',
|
|
|
|
|
+ value: '1'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '开票结算清',
|
|
|
|
|
+ value: '2'
|
|
|
|
|
+ },
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ findPageDetailListNew: {},
|
|
|
|
|
+ tableConfigDetailNew: {
|
|
|
|
|
+ columns: [
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "invoicId",
|
|
|
|
|
+ label: "开票号",
|
|
|
|
|
+ type: "text"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "invoicingMethod",
|
|
|
|
|
+ label: "开票方式",
|
|
|
|
|
+ type: "statMap",
|
|
|
|
|
+ options:[{
|
|
|
|
|
+ label: "保司开票",
|
|
|
|
|
+ value: "0",
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: "掌柜开票",
|
|
|
|
|
+ value: "1",
|
|
|
|
|
+ }]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "totalAmount",
|
|
|
|
|
+ label: "开票金额",
|
|
|
|
|
+ type: "text"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "invoicedSettledAmount",
|
|
|
|
|
+ label: "开票已结算金额",
|
|
|
|
|
+ type: "text"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "invoicedNotSettledAmount",
|
|
|
|
|
+ label: "开票未结算金额",
|
|
|
|
|
+ type: "text"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "completionStatus",
|
|
|
|
|
+ label: "结算状态",
|
|
|
|
|
+ type: "statMap",
|
|
|
|
|
+ options:[{
|
|
|
|
|
+ label: "开票未结算",
|
|
|
|
|
+ value: "0",
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: "开票已结算",
|
|
|
|
|
+ value: "1",
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: "开票结算清",
|
|
|
|
|
+ value: "2",
|
|
|
|
|
+ }]
|
|
|
|
|
+ },
|
|
|
],
|
|
],
|
|
|
loading: true,
|
|
loading: true,
|
|
|
|
|
+ isShowIndex: true,
|
|
|
|
|
+ operationWidth: '130',
|
|
|
optBtns:[
|
|
optBtns:[
|
|
|
{
|
|
{
|
|
|
type:'primary',
|
|
type:'primary',
|
|
|
label:'结算',
|
|
label:'结算',
|
|
|
- hide:(row)=>{
|
|
|
|
|
- return row.invoicCommissionFeevalue?true:false
|
|
|
|
|
|
|
+ hide:(row) => {
|
|
|
|
|
+ return row.completionStatus != '2'
|
|
|
},
|
|
},
|
|
|
- click:(row, index) => {return this.openBalanceFun(row)},
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ // click:(row, index) => {return this.openBalanceFun(row)},
|
|
|
|
|
+ click:(row, index) => {return this.haldDetail(row)},
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ type:'primary',
|
|
|
|
|
+ label:'记录',
|
|
|
|
|
+ hide:(row) => {
|
|
|
|
|
+ return row.completionStatus != '0'
|
|
|
|
|
+ },
|
|
|
|
|
+ click:(row, index) => {return this.haldRecord(row)},
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
type:'primary',
|
|
type:'primary',
|
|
|
label:'作废',
|
|
label:'作废',
|
|
|
- click:(row, index) => {return this.handVoid(row)},
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ hide:(row) => {
|
|
|
|
|
+ return row.completionStatus == '0'
|
|
|
|
|
+ },
|
|
|
|
|
+ click:(row, index) => {return this.haldDelete(row)},
|
|
|
|
|
+ }
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
|
|
+ formTableDataNew: [],
|
|
|
|
|
+ settlementSumId: '',
|
|
|
|
|
+ // 记录
|
|
|
|
|
+ dialogVisiblerecord: false,
|
|
|
|
|
+ tableConfigDetailrecord: {
|
|
|
|
|
+ columns: [
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "settlementTime",
|
|
|
|
|
+ label: "进账日期",
|
|
|
|
|
+ type: "text"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "settlementAmount",
|
|
|
|
|
+ label: "进帐金额",
|
|
|
|
|
+ type: "text"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "imageUrl",
|
|
|
|
|
+ label: "进帐截图",
|
|
|
|
|
+ type: "slot"
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ ],
|
|
|
|
|
+ loading: true,
|
|
|
|
|
+ isPaginationShow: true
|
|
|
|
|
+ },
|
|
|
|
|
+ formTableDatarecord: [],
|
|
|
|
|
+
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -220,6 +409,100 @@ export default {
|
|
|
this.findPage();
|
|
this.findPage();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ // 作废
|
|
|
|
|
+ haldDelete(row) {
|
|
|
|
|
+ this.$api.task.settlementSumFeesVoidInvoicing({
|
|
|
|
|
+ id: row.id
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ this.handleCloseNew()
|
|
|
|
|
+ this.findPage()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ // 记录
|
|
|
|
|
+ haldRecord(row) {
|
|
|
|
|
+ this.settlementSumId = row.id
|
|
|
|
|
+ this.dialogVisiblerecord = true
|
|
|
|
|
+ this.findPageDetailrecord(row)
|
|
|
|
|
+ },
|
|
|
|
|
+ handleCloserecord() {
|
|
|
|
|
+ this.dialogVisiblerecord = false
|
|
|
|
|
+ },
|
|
|
|
|
+ getListrecord(data) {
|
|
|
|
|
+ this.findPageDetailrecord({...data})
|
|
|
|
|
+ },
|
|
|
|
|
+ findPageDetailrecord(data) {
|
|
|
|
|
+ this.tableConfigDetailrecord.loading = true
|
|
|
|
|
+ this.$api.task.fncSettlementSumFees({
|
|
|
|
|
+ settlementSumId: this.settlementSumId,
|
|
|
|
|
+ settlementStatus: '2',
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ this.formTableDatarecord = res.data.content
|
|
|
|
|
+ this.tableConfigDetailrecord.loading = false
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.msg)
|
|
|
|
|
+ this.tableConfigDetailrecord = false
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ // 结算提交按钮
|
|
|
|
|
+ submitBalance() {
|
|
|
|
|
+ let subData = {
|
|
|
|
|
+ multipleSelection: this.formTableData,
|
|
|
|
|
+ settlementSumId: this.settlementSumId,
|
|
|
|
|
+ settlementImageId: this.batchData.id
|
|
|
|
|
+ }
|
|
|
|
|
+ subData.multipleSelection.forEach(val => {
|
|
|
|
|
+ val.createTime = null
|
|
|
|
|
+ })
|
|
|
|
|
+ this.$api.task.batchSumBalance(subData).then(res => {
|
|
|
|
|
+ // console.log(res)
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ this.$message.success('操作成功')
|
|
|
|
|
+ this.handleClose()
|
|
|
|
|
+ this.handleCloseNew()
|
|
|
|
|
+ this.findPage();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ // 新详情
|
|
|
|
|
+ findPageNewDetail(data) {
|
|
|
|
|
+ this.$api.task.settlementSumFeesQuery({
|
|
|
|
|
+ settlementStatus: '1',
|
|
|
|
|
+ completionStatus: data.settlementStatus || '0',
|
|
|
|
|
+ partnerCompaniesId: data.partnerCompaniesId,
|
|
|
|
|
+ isNotCar: '1',
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.code==200) {
|
|
|
|
|
+ this.formTableDataNew = res.data.content;
|
|
|
|
|
+ this.tableConfigDetailNew.loading = false;
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+ this.tableConfigDetailNew.loading = false;
|
|
|
|
|
+ this.$message.error(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ handleSearchList1(data) {
|
|
|
|
|
+ console.log(data, '1111111111111111111')
|
|
|
|
|
+ this.findPageNewDetail({...this.findPageDetailListNew, ...data})
|
|
|
|
|
+ },
|
|
|
|
|
+ haldNewDetail(row) {
|
|
|
|
|
+ this.dialogVisibleNewDetail= true
|
|
|
|
|
+ this.findPageDetailListNew = row
|
|
|
|
|
+ this.findPageNewDetail(row)
|
|
|
|
|
+ },
|
|
|
|
|
+ handleCloseNew() {
|
|
|
|
|
+ this.dialogVisibleNewDetail= false
|
|
|
|
|
+ },
|
|
|
handVoid(row){
|
|
handVoid(row){
|
|
|
this.$api.task
|
|
this.$api.task
|
|
|
.yaidlnvoicing({id:row.id})
|
|
.yaidlnvoicing({id:row.id})
|
|
@@ -327,20 +610,27 @@ export default {
|
|
|
haldDetail(row){
|
|
haldDetail(row){
|
|
|
this.dialogVisible=true
|
|
this.dialogVisible=true
|
|
|
this.findPageDetailList=row
|
|
this.findPageDetailList=row
|
|
|
|
|
+ this.settlementSumId = row.id
|
|
|
this.findPageDetail(row)
|
|
this.findPageDetail(row)
|
|
|
},
|
|
},
|
|
|
findPageDetail(data) {
|
|
findPageDetail(data) {
|
|
|
this.tableConfigDetail.loading=true
|
|
this.tableConfigDetail.loading=true
|
|
|
this.$api.task
|
|
this.$api.task
|
|
|
- .otherSettldetail({
|
|
|
|
|
|
|
+ // .otherSettldetail({
|
|
|
|
|
+ .fncSettlementFeesQuery({
|
|
|
// incomeIds:data.incomeIds,
|
|
// incomeIds:data.incomeIds,
|
|
|
partnerCompaniesId:data.partnerCompaniesId,
|
|
partnerCompaniesId:data.partnerCompaniesId,
|
|
|
handlingFeesStatus:'1',
|
|
handlingFeesStatus:'1',
|
|
|
- isNotCar:1
|
|
|
|
|
|
|
+ isNotCar:1,
|
|
|
|
|
+ settlementSumId: data.id
|
|
|
})
|
|
})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
if (res.code==200) {
|
|
if (res.code==200) {
|
|
|
- this.formTableData = res.data;
|
|
|
|
|
|
|
+ res.data.content.forEach(ele => {
|
|
|
|
|
+ ele.invoicCommissionFeevalue = 0
|
|
|
|
|
+ });
|
|
|
|
|
+ this.formTableData = res.data.content;
|
|
|
|
|
+ console.log(this.formTableData)
|
|
|
this.tableConfigDetail.loading = false;
|
|
this.tableConfigDetail.loading = false;
|
|
|
}
|
|
}
|
|
|
else{
|
|
else{
|
|
@@ -351,7 +641,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
handleClose(){
|
|
handleClose(){
|
|
|
this.dialogVisible=false
|
|
this.dialogVisible=false
|
|
|
- },
|
|
|
|
|
|
|
+ },
|
|
|
tablePageChange(val) {
|
|
tablePageChange(val) {
|
|
|
this.pageData.pageSize = val;
|
|
this.pageData.pageSize = val;
|
|
|
this.findPage();
|
|
this.findPage();
|
|
@@ -360,7 +650,7 @@ export default {
|
|
|
this.pageData.pageNum = val;
|
|
this.pageData.pageNum = val;
|
|
|
this.findPage();
|
|
this.findPage();
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
@@ -370,4 +660,3 @@ export default {
|
|
|
height: auto !important;
|
|
height: auto !important;
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|
|
|
-
|
|
|