|
@@ -122,9 +122,10 @@
|
|
|
<el-table-column class="table_td" prop="updateDate" label="更新时间" width="150" sortable></el-table-column>
|
|
|
<el-table-column class="table_td" prop="status" width="80" label="状态">
|
|
|
<template scope="scope">
|
|
|
- <span v-if="scope.row.approveStatus">{{
|
|
|
+ <span v-if="scope.row.approveStatus&&scope.row.reverseFlag!=1">{{
|
|
|
scope.row.approveStatus
|
|
|
}}</span>
|
|
|
+
|
|
|
<span v-else>{{ scope.row.status }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -134,17 +135,18 @@
|
|
|
<span v-else>已开票</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column class="table_td" prop="collectionEdPayable" label="操作" width="500">
|
|
|
+ <el-table-column class="table_td" prop="collectionEdPayable" label="操作" width="600">
|
|
|
<template scope="scope">
|
|
|
<span v-hasPermission="`acquisitionManagement.acquisitionPay.add`">
|
|
|
<el-button v-if="
|
|
|
- (!scope.row.approveStatus ||
|
|
|
- scope.row.approveStatus == '待结算') &&
|
|
|
- (scope.row.status == '待结算' || scope.row.status == '已驳回' )
|
|
|
+ (!scope.row.approveStatus ||scope.row.approveStatus == '待结算') &&
|
|
|
+ (scope.row.status == '待结算' || scope.row.status == '已驳回' )||scope.row.approveStatus&&scope.row.reverseFlag==1
|
|
|
" @click="settlement(1, scope.row)">结算</el-button>
|
|
|
</span>
|
|
|
<el-button @click="settlement(2, scope.row)" v-hasPermission="`acquisitionManagement.acquisitionPay.view`">查看
|
|
|
</el-button>
|
|
|
+ <el-button v-if="scope.row.approveStatus&&scope.row.reverseFlag!=1" @click="settleaccounts(scope.row)" v-hasPermission="`acquisitionManagement.acquisitionPay.seet`">反结算
|
|
|
+ </el-button>
|
|
|
<el-button v-if="
|
|
|
scope.row.approveStatus ||
|
|
|
(scope.row.status != '待结算' && !scope.row.approveStatus)
|
|
@@ -308,7 +310,21 @@
|
|
|
:preview-src-list="[paymentReceipt]">
|
|
|
</el-image>
|
|
|
</el-dialog>
|
|
|
-
|
|
|
+ <el-dialog width="30%" title="开票信息" :visible.sync="invoicingshow" :close="invoicingClose">
|
|
|
+ <el-form :label-position="labelposition" label-width="200px" style='text-align:center;' class="customer">
|
|
|
+ <el-form-item label="税控盘:">
|
|
|
+ <el-select v-model="invoiceFlag" placeholder="请选择税控盘"
|
|
|
+ filterable clearable style="margin: 0 10px">
|
|
|
+ <el-option v-for="item in invoicingList" :key="'invoicing'+item.value" :label="item.label" :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="invoicingshow = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="invoicingconfirm">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -333,7 +349,8 @@
|
|
|
invoicing,
|
|
|
export1,
|
|
|
settlementEdit,
|
|
|
- workflowcontent
|
|
|
+ workflowcontent,
|
|
|
+ suspendinstance
|
|
|
} from '@/model/houseSelfCollect/index'
|
|
|
import {
|
|
|
posthandle,
|
|
@@ -354,12 +371,15 @@
|
|
|
paymentReceipt: '',
|
|
|
isPreviewPayOrder: false,
|
|
|
printType: 0,
|
|
|
+ invoiceFlag:'',
|
|
|
isShowPrintType1: true,
|
|
|
isShowPrintType2: true,
|
|
|
isShowPrintType3: true,
|
|
|
isShowPrintType4: true,
|
|
|
customerInfo: false,
|
|
|
form: {},
|
|
|
+ labelposition:'right',
|
|
|
+ invoicingList:[{label:'航天信息',value:1},{label:'百旺',value:2}],
|
|
|
formLabelWidth: '300px',
|
|
|
invoicing: '',
|
|
|
deleteshow: false,
|
|
@@ -402,6 +422,7 @@
|
|
|
warehouseNameKey: '',
|
|
|
warehouseName: '',
|
|
|
isShowPrint: false,
|
|
|
+ invoicingshow:false,
|
|
|
printData: {},
|
|
|
warehouse: [],
|
|
|
disabled: false,
|
|
@@ -439,6 +460,29 @@
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ invoicingClose(){
|
|
|
+ this.invoicingshow=false
|
|
|
+ },
|
|
|
+ settleaccounts(row){
|
|
|
+ this.$confirm('确定将该笔业务进行反结算操作?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+
|
|
|
+ suspendinstance({workflowId:row.workflowId,id:row.id}).toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '反结算成功!'
|
|
|
+ });
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ return false
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
imgshow() {
|
|
|
this.deleteshow = false
|
|
|
console.log(11111)
|
|
@@ -583,21 +627,12 @@
|
|
|
xmlhttp.send()
|
|
|
})
|
|
|
},
|
|
|
- invoicingClick() {
|
|
|
- // let data = JSON.stringify({
|
|
|
- // paymentManagementList : this.modification
|
|
|
- // })
|
|
|
- // //开票
|
|
|
- // invoicing(data)
|
|
|
- // .toPromise()
|
|
|
- // .then(response => {
|
|
|
- // console.log(response)
|
|
|
- // })
|
|
|
-
|
|
|
+ invoicingconfirm(){
|
|
|
let data = {
|
|
|
paymentManagementList: this.modification,
|
|
|
}
|
|
|
for (let i = 0; i < this.modification.length; i++) {
|
|
|
+ this.modification[i].invoiceFlag=this.invoiceFlag
|
|
|
if (
|
|
|
this.modification[i].status != '全部付款' &&
|
|
|
this.modification[i].status != '部分付款' &&
|
|
@@ -624,6 +659,19 @@
|
|
|
})
|
|
|
.catch(() => {})
|
|
|
},
|
|
|
+ invoicingClick() {
|
|
|
+ this.invoicingshow=true
|
|
|
+ // let data = JSON.stringify({
|
|
|
+ // paymentManagementList : this.modification
|
|
|
+ // })
|
|
|
+ // //开票
|
|
|
+ // invoicing(data)
|
|
|
+ // .toPromise()
|
|
|
+ // .then(response => {
|
|
|
+ // console.log(response)
|
|
|
+ // })
|
|
|
+
|
|
|
+ },
|
|
|
customer(row) {
|
|
|
getCustomerLook({
|
|
|
id: row.identityId,
|