diff --git a/src/views/emis/emisSettleBill/MergeBillForm.vue b/src/views/emis/emisSettleBill/MergeBillForm.vue
index 066f8315..d3c07689 100644
--- a/src/views/emis/emisSettleBill/MergeBillForm.vue
+++ b/src/views/emis/emisSettleBill/MergeBillForm.vue
@@ -41,304 +41,68 @@
show-summary :summary-method="getSummaries"
>
-
+
-
+
+ 追加运单到此账单
+
+
批量确认
-
-
- 确认不出账
-
-
- 置账单异常
-
-
- 取消确认
+ @click="handleRemovceBillCode"
+ >从账单内删除运单
-
-
-
- 导出
-
-
-
-
- 批量确认
-
-
- 确认不出账
-
-
- 置账单异常
-
-
- 取消确认
-
-
-
-
-
-
-
-
-
- 账单名称:
-
- 账单月:
-
-
-
-
-
- 合账
-
-
-
-
- 拆子账单
-
-
-
- 导出
-
-
-
-
-
总票数:{{queryStatInfoMap?queryStatInfoMap.totalNum:0}},
- 总运费:{{queryStatInfoMap?queryStatInfoMap.totalBillFee:0}}
+ 总费用:{{queryStatInfoMap?queryStatInfoMap.totalBillFee:0}}
-
-
-
-
-
-
总费用:{{scope.row.billFee}}
-
- 运单详情
-
-
-
费用备注:{{scope.row.waybillDetail.feeRemark}}
-
-
-
- - {{$t(item.feeName)}}
- - {{item.billFee}}
-
- - {{item.remark}}
-
-
-
-
-
-
-
-
-
-
-
-
- 是
- 否
-
-
-
-
-
-
-
+
-
-
-
-
-
-
- {{ scope.row.custNo }}
-
-
-
-
+
{{ scope.row.customerName }}
+
+
+
-
+
+
+
+
-
-
-
+
+
+
+
@@ -438,6 +202,7 @@ export default {
getEmisSettleBill(this.id).then(response => {
this.form = response.data;
this.loading = false;
+ this.getSubBillList(this.form.settleBillNo);
});
}
else if(this.settleBillNo){
@@ -445,18 +210,36 @@ export default {
getEmisSettleBill(this.settleBillNo).then(response => {
this.form = response.data;
this.loading = false;
+ this.getSubBillList(this.form.settleBillNo);
});
}else{
- this.$modal.msgError("信息不存在");
+ this.$modal.msgError("账单不存在");
this.$emit("on-cancel");
}
},
+ getSubBillList(settleBillNo) {
+ this.loading = true;
+ let qParam={
+ settleBillNo:settleBillNo
+ }
+ listEmisSettleSubBill(qParam).then(response => {
+ this.emisSettleSubBillList = response.rows;
+ this.total = response.total;
+ this.loading = false;
+ });
+
+ // 查询统计
+ // getQueryStatInfoMap(qParam).then(response => {
+ // this.queryStatInfoMap = response.data;
+ // });
+
+ },
initSubBillList() {
this.loading = true;
-
+
listEmisSettleSubBill(this.queryParams).then(response => {
this.emisSettleSubBillList = response.rows;
this.total = response.total;
@@ -480,7 +263,6 @@ export default {
return;
}
-
if (
column.property === 'waybillDetail.billWeight'
) {
diff --git a/src/views/emis/emisSettleBill/SettleMainBillList.vue b/src/views/emis/emisSettleBill/SettleMainBillList.vue
index 56a745ec..51866db2 100644
--- a/src/views/emis/emisSettleBill/SettleMainBillList.vue
+++ b/src/views/emis/emisSettleBill/SettleMainBillList.vue
@@ -1,586 +1,357 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
- v-loading="loading"
- border stripe
- size="mini"
- :data="emisSettleBillList"
- :showSearch.sync="showSearch"
- :queryParams="queryParams"
- :total="total"
- @queryTable="getList"
- @selection-change="handleSelectionChange"
- @sort-change="handleSortChange"
- >
+
+
+
+ 修改账单
+
+
+ 导出
+
-
-
-
+
+ 导出EXCEL电子表
+
+
+
-
- 修改账单
-
-
-
- 导出
-
+
-
- 导出EXCEL电子表
-
-
-
+
+
+
+
+
+ {{scope.row.settleStartDate}}~{{scope.row.settleEndDate}}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row.recedMoney-scope.row.recedMoney}}
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+ 追加运单到此账单
+
+
+ 从账单内删除运单
+
+
+
+
+
+
+
+
+
+
+
总费用:{{scope.row.billFee}}
+
+ 运单详情
+
+
+
费用备注:{{scope.row.waybillDetail.feeRemark}}
+
+
+
+ - {{$t(item.feeName)}}
+ - {{item.billFee}}
+
+ - {{item.remark}}
+
+
+
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.custNo }}
+
+
+
+
+
+ {{ scope.row.customerName }}
+
+
+
+
+
+
+
+ {{scope.row.waybillDetail.productTypeName}}({{scope.row.waybillDetail.timeType}})
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- -->
-
-
-
-
-
-
- {{scope.row.settleStartDate}}~{{scope.row.settleEndDate}}
-
-
-
-
-
-
-
-
-
-
-
-
- {{scope.row.recedMoney-scope.row.recedMoney}}
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
+
+
+ 是
+ /
+
+
+
+
+
+
+
+ 未确认
+ 已确认
+ 确认不出账
+ 账单异常
+
+
+
+
+
+
+
+
+ 未确认
+ 已确认
+ 确认不出账
+ 账单异常
+
+
+
+
+
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -634,6 +405,8 @@ import MergeBillForm from '@/views/emis/emisSettleBill/MergeBillForm.vue';
import { parseTime,genJsSeqNo } from "@/utils/custom";
+import { listEmisSettleSubBill} from "@/api/emis/emisSettleSubBill";
+
export default {
name: "emisSettleBill",
@@ -686,6 +459,10 @@ export default {
openForm: false,
titleForm: "",
+ subBillTotal: 0,
+ // 结算子账单表格数据
+ emisSettleSubBillList: [],
+
// 弹出展示层
id:null,
titleView:"",
@@ -770,6 +547,26 @@ export default {
this.loading = false;
});
},
+ getDetailList(row, column, event) {
+
+ this.activeTab="dtlList";
+
+ this.loading = true;
+ let qParam={
+ settleBillNo:row.settleBillNo
+ }
+ listEmisSettleSubBill(qParam).then(response => {
+ this.emisSettleSubBillList = response.rows;
+ this.total = response.total;
+ this.loading = false;
+ });
+
+ // 查询统计
+ // getQueryStatInfoMap(qParam).then(response => {
+ // this.queryStatInfoMap = response.data;
+ // });
+
+ },
/** 搜索按钮操作 */
handleQuery() {
@@ -890,14 +687,37 @@ export default {
};
-
diff --git a/src/views/emis/emisSettleSubBill/SubBillConfirmByMoneyList.vue b/src/views/emis/emisSettleSubBill/SubBillConfirmByMoneyList.vue
index a3694280..27a66583 100644
--- a/src/views/emis/emisSettleSubBill/SubBillConfirmByMoneyList.vue
+++ b/src/views/emis/emisSettleSubBill/SubBillConfirmByMoneyList.vue
@@ -12,7 +12,7 @@
v-model="queryParams.billCode"
:placeholder="$t('多个流水号逗号或换行隔开')"
clearable
- :rows="2"
+ :rows="1"
/>
@@ -106,7 +106,7 @@
-
+
合账
+
-
+
{
this.$modal.msgSuccess("合并成功");
this.$emit("on-changed");
- this.titleMergeForm="合并账单";
- this.openMergeForm=true;
+ // this.titleMergeForm="账单-"+this.currentSettleBillNo;
+ // this.openMergeForm=true;
});
}).catch(() => {});
-
- // this.titleMergeForm="合并账单";
- // this.openMergeForm=true;
-
- // titleMergeForm:null,
- // openMergeForm:false,
- // selectBillList:[],
},
+ handleAutoMergeBill(){
+
+ if(!this.billMonth){
+ this.$message.error("账单月不能为空!");
+ return;
+ }
+
+ this.$confirm("确定自动合账吗?", "提示", {
+ cancelButtonText: "否",
+ confirmButtonText: "确定",
+ type: "warning",
+ distinguishCancelAndClose: true,
+ closeOnClickModal: false
+ }).then(() => {
+
+ this.currentSettleBillNo=genJsSeqNo();
+
+ let startDate = new Date(this.billMonth+"-01 00:00:00");
+ let endDate= this.getMonthLast(startDate);
+ endDate.setHours(23,59,59,0)
+
+ let settleBillForm={
+ settleBillNo: this.currentSettleBillNo,
+ settleBillName: this.billName,
+ billMonth: this.billMonth,
+ settleStartDate:parseTime(startDate),
+ settleEndDate:parseTime(endDate),
+ subBillList:this.selectBillList,
+ }
+
+
+ // 生成合账单号
+ addEmisSettleBill(settleBillForm).then(response => {
+ this.$modal.msgSuccess("合并成功");
+ this.$emit("on-changed");
+ this.titleMergeForm="账单-"+this.currentSettleBillNo;
+ this.openMergeForm=true;
+ });
+
+
+ }).catch(() => {});
+ },
+
// 获取当前月的最后一天
getMonthLast(date) {
var currentMonth = date.getMonth()
diff --git a/src/views/emis/emisSettleSubBill/SubBillConfirmByMonthList.vue b/src/views/emis/emisSettleSubBill/SubBillConfirmByMonthList.vue
index 41c0ee62..27a66583 100644
--- a/src/views/emis/emisSettleSubBill/SubBillConfirmByMonthList.vue
+++ b/src/views/emis/emisSettleSubBill/SubBillConfirmByMonthList.vue
@@ -12,7 +12,7 @@
v-model="queryParams.billCode"
:placeholder="$t('多个流水号逗号或换行隔开')"
clearable
- :rows="2"
+ :rows="1"
/>
@@ -106,7 +106,7 @@
-
+
合账
+
-
+
{
this.$modal.msgSuccess("合并成功");
this.$emit("on-changed");
- this.titleMergeForm="合并账单";
- this.openMergeForm=true;
+ // this.titleMergeForm="账单-"+this.currentSettleBillNo;
+ // this.openMergeForm=true;
});
}).catch(() => {});
-
- // this.titleMergeForm="合并账单";
- // this.openMergeForm=true;
-
- // titleMergeForm:null,
- // openMergeForm:false,
- // selectBillList:[],
},
+ handleAutoMergeBill(){
+
+ if(!this.billMonth){
+ this.$message.error("账单月不能为空!");
+ return;
+ }
+
+ this.$confirm("确定自动合账吗?", "提示", {
+ cancelButtonText: "否",
+ confirmButtonText: "确定",
+ type: "warning",
+ distinguishCancelAndClose: true,
+ closeOnClickModal: false
+ }).then(() => {
+
+ this.currentSettleBillNo=genJsSeqNo();
+
+ let startDate = new Date(this.billMonth+"-01 00:00:00");
+ let endDate= this.getMonthLast(startDate);
+ endDate.setHours(23,59,59,0)
+
+ let settleBillForm={
+ settleBillNo: this.currentSettleBillNo,
+ settleBillName: this.billName,
+ billMonth: this.billMonth,
+ settleStartDate:parseTime(startDate),
+ settleEndDate:parseTime(endDate),
+ subBillList:this.selectBillList,
+ }
+
+
+ // 生成合账单号
+ addEmisSettleBill(settleBillForm).then(response => {
+ this.$modal.msgSuccess("合并成功");
+ this.$emit("on-changed");
+ this.titleMergeForm="账单-"+this.currentSettleBillNo;
+ this.openMergeForm=true;
+ });
+
+
+ }).catch(() => {});
+ },
+
// 获取当前月的最后一天
getMonthLast(date) {
var currentMonth = date.getMonth()
diff --git a/src/views/emis/emisSettleSubBill/SubBillConfirmBySiteList.vue b/src/views/emis/emisSettleSubBill/SubBillConfirmBySiteList.vue
index 41c0ee62..27a66583 100644
--- a/src/views/emis/emisSettleSubBill/SubBillConfirmBySiteList.vue
+++ b/src/views/emis/emisSettleSubBill/SubBillConfirmBySiteList.vue
@@ -12,7 +12,7 @@
v-model="queryParams.billCode"
:placeholder="$t('多个流水号逗号或换行隔开')"
clearable
- :rows="2"
+ :rows="1"
/>
@@ -106,7 +106,7 @@
-
+
合账
+
-
+
{
this.$modal.msgSuccess("合并成功");
this.$emit("on-changed");
- this.titleMergeForm="合并账单";
- this.openMergeForm=true;
+ // this.titleMergeForm="账单-"+this.currentSettleBillNo;
+ // this.openMergeForm=true;
});
}).catch(() => {});
-
- // this.titleMergeForm="合并账单";
- // this.openMergeForm=true;
-
- // titleMergeForm:null,
- // openMergeForm:false,
- // selectBillList:[],
},
+ handleAutoMergeBill(){
+
+ if(!this.billMonth){
+ this.$message.error("账单月不能为空!");
+ return;
+ }
+
+ this.$confirm("确定自动合账吗?", "提示", {
+ cancelButtonText: "否",
+ confirmButtonText: "确定",
+ type: "warning",
+ distinguishCancelAndClose: true,
+ closeOnClickModal: false
+ }).then(() => {
+
+ this.currentSettleBillNo=genJsSeqNo();
+
+ let startDate = new Date(this.billMonth+"-01 00:00:00");
+ let endDate= this.getMonthLast(startDate);
+ endDate.setHours(23,59,59,0)
+
+ let settleBillForm={
+ settleBillNo: this.currentSettleBillNo,
+ settleBillName: this.billName,
+ billMonth: this.billMonth,
+ settleStartDate:parseTime(startDate),
+ settleEndDate:parseTime(endDate),
+ subBillList:this.selectBillList,
+ }
+
+
+ // 生成合账单号
+ addEmisSettleBill(settleBillForm).then(response => {
+ this.$modal.msgSuccess("合并成功");
+ this.$emit("on-changed");
+ this.titleMergeForm="账单-"+this.currentSettleBillNo;
+ this.openMergeForm=true;
+ });
+
+
+ }).catch(() => {});
+ },
+
// 获取当前月的最后一天
getMonthLast(date) {
var currentMonth = date.getMonth()
diff --git a/src/views/emis/emisSettleSubBill/subBillMergeMgnt.vue b/src/views/emis/emisSettleSubBill/subBillMergeMgnt.vue
index 07810351..27a66583 100644
--- a/src/views/emis/emisSettleSubBill/subBillMergeMgnt.vue
+++ b/src/views/emis/emisSettleSubBill/subBillMergeMgnt.vue
@@ -12,7 +12,7 @@
v-model="queryParams.billCode"
:placeholder="$t('多个流水号逗号或换行隔开')"
clearable
- :rows="2"
+ :rows="1"
/>
@@ -106,7 +106,7 @@
-
+
合账
+
-
+
{
this.$modal.msgSuccess("合并成功");
this.$emit("on-changed");
- this.titleMergeForm="账单-"+this.currentSettleBillNo;
- this.openMergeForm=true;
+ // this.titleMergeForm="账单-"+this.currentSettleBillNo;
+ // this.openMergeForm=true;
});
}).catch(() => {});
-
- // this.titleMergeForm="合并账单";
- // this.openMergeForm=true;
-
- // titleMergeForm:null,
- // openMergeForm:false,
- // selectBillList:[],
},
+ handleAutoMergeBill(){
+
+ if(!this.billMonth){
+ this.$message.error("账单月不能为空!");
+ return;
+ }
+
+ this.$confirm("确定自动合账吗?", "提示", {
+ cancelButtonText: "否",
+ confirmButtonText: "确定",
+ type: "warning",
+ distinguishCancelAndClose: true,
+ closeOnClickModal: false
+ }).then(() => {
+
+ this.currentSettleBillNo=genJsSeqNo();
+
+ let startDate = new Date(this.billMonth+"-01 00:00:00");
+ let endDate= this.getMonthLast(startDate);
+ endDate.setHours(23,59,59,0)
+
+ let settleBillForm={
+ settleBillNo: this.currentSettleBillNo,
+ settleBillName: this.billName,
+ billMonth: this.billMonth,
+ settleStartDate:parseTime(startDate),
+ settleEndDate:parseTime(endDate),
+ subBillList:this.selectBillList,
+ }
+
+
+ // 生成合账单号
+ addEmisSettleBill(settleBillForm).then(response => {
+ this.$modal.msgSuccess("合并成功");
+ this.$emit("on-changed");
+ this.titleMergeForm="账单-"+this.currentSettleBillNo;
+ this.openMergeForm=true;
+ });
+
+
+ }).catch(() => {});
+ },
+
// 获取当前月的最后一天
getMonthLast(date) {
var currentMonth = date.getMonth()