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

Loading…
Cancel
Save