|
@@ -20,13 +20,13 @@
|
|
|
:loading="saveLoading" @click="finstlbillsRevokeReconciliationfun">撤销对账
|
|
|
</el-button>
|
|
|
<el-button size="small" type="success" plain style="margin-right: 8px" :disabled="!form.id" v-else
|
|
|
- :loading="saveLoading" @click="finstlbillsConfirmReconciliationfun">确认对账
|
|
|
+ :loading="saveLoading" @click="editCustomer('对账')">确认对账
|
|
|
</el-button>
|
|
|
<el-button size="small" type="primary" style="margin-right: 8px" v-if="editSave" :disabled="submitType"
|
|
|
:loading="saveLoading" @click="editHandle">编 辑
|
|
|
</el-button>
|
|
|
<el-button size="small" type="primary" style="margin-right: 8px" v-else :disabled="submitType"
|
|
|
- :loading="saveLoading" @click="editCustomer">保 存
|
|
|
+ :loading="saveLoading" @click="editCustomer()">保 存
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -147,6 +147,19 @@
|
|
|
</search-query>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <!--<el-col :span="4">-->
|
|
|
+ <!-- <el-form-item label="对账" prop="isChecked" label-width="50px">-->
|
|
|
+ <!-- <search-query :datalist="allyesnoData"-->
|
|
|
+ <!-- :selectValue="form.isChecked"-->
|
|
|
+ <!-- :clearable="true"-->
|
|
|
+ <!-- :disabled="editSave"-->
|
|
|
+ <!-- :buttonIf="false"-->
|
|
|
+ <!-- :forParameter="{ key:'dictKey', label:'dictValue', value:'dictKey'}"-->
|
|
|
+ <!-- @corpChange="corpChange($event,'isChecked')"-->
|
|
|
+ <!-- @corpFocus="allyesnoWorkDictsfun" >-->
|
|
|
+ <!-- </search-query>-->
|
|
|
+ <!-- </el-form-item>-->
|
|
|
+ <!--</el-col>-->
|
|
|
<el-col :span="4">
|
|
|
<el-form-item label="业务开始日期" prop="businessDateStart">
|
|
|
<el-date-picker v-model="form.businessDateStart" clearable
|
|
@@ -821,17 +834,12 @@
|
|
|
this.editSave = false
|
|
|
},
|
|
|
// 保存
|
|
|
- editCustomer(){
|
|
|
+ editCustomer(type){
|
|
|
// 对账单位
|
|
|
if (!this.form.corpId) {
|
|
|
this.$message.warning('请选择对账单位');
|
|
|
return
|
|
|
}
|
|
|
- // // 业务类型
|
|
|
- // if (!this.form.businessTypes) {
|
|
|
- // this.$message.warning('请选择业务类型');
|
|
|
- // return
|
|
|
- // }
|
|
|
if (!this.form.id) {
|
|
|
// 是否选择从表数据
|
|
|
if (this.handleSelectionData.length == 0) {
|
|
@@ -844,10 +852,6 @@
|
|
|
this.$message.warning('请选择本次结算币种');
|
|
|
return;
|
|
|
}
|
|
|
- // if (!item.currentStlAmount) {
|
|
|
- // this.$message.warning('请选择本次结算金额');
|
|
|
- // return;
|
|
|
- // }
|
|
|
}
|
|
|
this.saveLoading = true // 加载动画
|
|
|
this.pageLoading = true
|
|
@@ -890,14 +894,32 @@
|
|
|
return item
|
|
|
})
|
|
|
}
|
|
|
- finstlbillsSubmit(this.form).then(res=>{
|
|
|
- this.saveLoading = false
|
|
|
- this.pageLoading = false
|
|
|
- this.$message.success('操作成功');
|
|
|
- this.finstlbillsDetailfun(res.data.data.id)
|
|
|
- }).catch(err=>{
|
|
|
- this.pageLoading = false
|
|
|
- })
|
|
|
+ // 判断是单独点击保存还是点击确认对账
|
|
|
+ if (type == '对账') {
|
|
|
+ this.$confirm("确定进行对账操作?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(()=>{
|
|
|
+ finstlbillsSubmit(this.form).then(res=>{
|
|
|
+ this.form = res.data.data
|
|
|
+ this.finstlbillsConfirmReconciliationfun()
|
|
|
+ })
|
|
|
+ }).catch(err=>{
|
|
|
+ this.pageLoading = false
|
|
|
+ this.saveLoading = false
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ finstlbillsSubmit(this.form).then(res=>{
|
|
|
+ this.saveLoading = false
|
|
|
+ this.pageLoading = false
|
|
|
+ this.$message.success('操作成功');
|
|
|
+ this.finstlbillsDetailfun(res.data.data.id)
|
|
|
+ }).catch(err=>{
|
|
|
+ this.pageLoading = false
|
|
|
+ this.saveLoading = false
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
// 详情接口
|
|
|
finstlbillsDetailfun(id){
|
|
@@ -1146,32 +1168,27 @@
|
|
|
},
|
|
|
// 对账确认
|
|
|
finstlbillsConfirmReconciliationfun(){
|
|
|
- this.$confirm("确定进行对账操作?", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(()=>{
|
|
|
-
|
|
|
- this.pageLoading = true
|
|
|
- this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.join(','):'' // 业务类型
|
|
|
- this.form.accountDateFrom = this.form.accountDateFrom?this.form.accountDateFrom.slice(0,10) + ' 00:00:00':null // 财务开始日期
|
|
|
- this.form.accountDateTo = this.form.accountDateTo?this.form.accountDateTo.slice(0,10) + ' 00:00:00':null // 财务开始日期
|
|
|
- this.form.auditDateFrom = this.form.auditDateFrom?this.form.auditDateFrom.slice(0,10) + ' 00:00:00':null
|
|
|
- this.form.auditDateTo = this.form.auditDateTo?this.form.auditDateTo.slice(0,10) + ' 00:00:00':null
|
|
|
- this.form.businessDateEnd = this.form.businessDateEnd?this.form.businessDateEnd.slice(0,10) + ' 00:00:00':null
|
|
|
- this.form.businessDateStart = this.form.businessDateStart?this.form.businessDateStart.slice(0,10) + ' 00:00:00':null
|
|
|
- this.form.billDate = this.form.billDate?this.form.billDate.slice(0,10) + ' 00:00:00':null
|
|
|
- this.form.url = '/iosBasicData/finstlbills/index',
|
|
|
+ this.pageLoading = true
|
|
|
+ this.saveLoading = true
|
|
|
+ this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.join(','):'' // 业务类型
|
|
|
+ this.form.accountDateFrom = this.form.accountDateFrom?this.form.accountDateFrom.slice(0,10) + ' 00:00:00':null // 财务开始日期
|
|
|
+ this.form.accountDateTo = this.form.accountDateTo?this.form.accountDateTo.slice(0,10) + ' 00:00:00':null // 财务开始日期
|
|
|
+ this.form.auditDateFrom = this.form.auditDateFrom?this.form.auditDateFrom.slice(0,10) + ' 00:00:00':null
|
|
|
+ this.form.auditDateTo = this.form.auditDateTo?this.form.auditDateTo.slice(0,10) + ' 00:00:00':null
|
|
|
+ this.form.businessDateEnd = this.form.businessDateEnd?this.form.businessDateEnd.slice(0,10) + ' 00:00:00':null
|
|
|
+ this.form.businessDateStart = this.form.businessDateStart?this.form.businessDateStart.slice(0,10) + ' 00:00:00':null
|
|
|
+ this.form.billDate = this.form.billDate?this.form.billDate.slice(0,10) + ' 00:00:00':null
|
|
|
+ this.form.url = '/iosBasicData/finstlbills/index',
|
|
|
this.form.pageStatus = "this.$store.getters.paidapplication"
|
|
|
- this.form.pageLabel = "对账中心(F)"
|
|
|
- finstlbillsConfirmReconciliation(this.form).then(res=>{
|
|
|
- this.pageLoading = false
|
|
|
- this.$message.success('操作成功');
|
|
|
- this.editSave = true
|
|
|
- this.finstlbillsDetailfun(res.data.data.id)
|
|
|
- }).catch(err=>{
|
|
|
- this.pageLoading = false
|
|
|
- })
|
|
|
+ this.form.pageLabel = "对账中心(F)"
|
|
|
+ finstlbillsConfirmReconciliation(this.form).then(res=>{
|
|
|
+ this.pageLoading = false
|
|
|
+ this.saveLoading = false
|
|
|
+ this.$message.success('操作成功');
|
|
|
+ this.editSave = true
|
|
|
+ this.finstlbillsDetailfun(res.data.data.id)
|
|
|
+ }).catch(err=>{
|
|
|
+ this.pageLoading = false
|
|
|
})
|
|
|
},
|
|
|
// 对账撤销
|
|
@@ -1332,7 +1349,11 @@
|
|
|
// 获取 全部是否 接口
|
|
|
allyesnoWorkDictsfun(){
|
|
|
// 全部/是/否
|
|
|
- getWorkDicts('all_yes_no').then(res=>{
|
|
|
+ // getWorkDicts('all_yes_no').then(res=>{
|
|
|
+ // this.allyesnoData = res.data.data;
|
|
|
+ // })
|
|
|
+ // 对账字典
|
|
|
+ getWorkDicts('los_check_status').then(res=>{
|
|
|
this.allyesnoData = res.data.data;
|
|
|
})
|
|
|
// 销账(F)
|