Compare commits

...

2 Commits

Author SHA1 Message Date
zhaoxingchang.sd 176789104f feat:发票列表增加凭证号展示+排序 10 months ago
zhaoxingchang.sd e10fc916bf fix:复制功能传参问题修复 11 months ago
  1. 43
      src/views/statistics/invoiceList.vue

@ -153,8 +153,8 @@
>邮箱推送
</el-button>
</el-row>
<!--@sort-change="handleSort" -->
<custom-table
@sort-change="handleSort"
:columns="tableColumn"
:data="tableList"
:default-sort="{ prop: 'kprq', order: 'descending' }"
@ -365,6 +365,7 @@ export default {
return {
fpzldmType:'',
sureOrderModel:false,
saveList:{},
invoiceCopyRow:void 0,
qrcodeModel:false,
ewmSrc:'',
@ -837,6 +838,12 @@ export default {
fixed: "left",
},
{label: "序号", type: "index", width: "50", fixed: "left"},
{
label: "凭证号",
width: "170",
prop: "pzh",
sortable: "custom",
},
{
label: "开票时间",
width: "150",
@ -1098,6 +1105,7 @@ export default {
width: "",
prop: "ddh",
},
{
label: "发票代码",
width: "120",
@ -1172,6 +1180,7 @@ export default {
],
downloading:false,
bbloading:false,
orderBy:'',
};
},
watch:{
@ -1192,9 +1201,13 @@ export default {
},
methods: {
// toggle() {
// this.searchIsShow = !this.searchIsShow;
// },
handleSort(column, prop, order) {
if(column.prop == "pzh"){
column.order == 'ascending' ? this.orderBy = 'pzhAsc' : this.orderBy = 'pzhDesc';
}
this.queryInvoices();
},
pageChange(cur) {
this.page.page = cur.page;
this.page.limit = cur.limit;
@ -1205,17 +1218,26 @@ export default {
this.queryYwlx();
this.queryInvoices();
},
saveBtn(){
saveBtn(row){
this.sureOrderModel = true;
this.fpzldmType = void 0;
this.fpzldmType = '001';
this.saveList = row
},
sureCopyBtn(row){
let fpdm = ''
if(this.fpzldmType == '001'){
fpdm = '01'
}else if(this.fpzldmType == '002'){
fpdm = '02'
}else {
fpdm = this.fpzldmType
}
showLoading()
createOrderByCopyInvoiceApi({
fpzldm:JSON.stringify(this.fpzldmType),
entList:JSON.stringify([row.entId]),
fpqqlshList:JSON.stringify([row.fpqqlsh]),
xhfNsrsbh:JSON.stringify([row.xhfNsrsbh]),
fpzldm:fpdm,
entList:JSON.stringify([this.saveList.entId]),
fpqqlshList:JSON.stringify([this.saveList.fpqqlsh]),
xhfNsrsbh:JSON.stringify([this.saveList.xhfNsrsbh]),
}).then((response) => {
if (response.code == "0000") {
this.$message({
@ -1375,6 +1397,7 @@ export default {
}
let data = {
orderBy:this.orderBy,
zfbz: this.queryParams.zfbz,
startTime: this.queryParams.time[0],
endTime: this.queryParams.time[1],

Loading…
Cancel
Save