|
@@ -82,7 +82,7 @@
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
</div>
|
|
</div>
|
|
|
<el-dialog :title="$t(`红冲明细`)" :visible.sync="redInvoice" append-to-body>
|
|
<el-dialog :title="$t(`红冲明细`)" :visible.sync="redInvoice" append-to-body>
|
|
|
- <el-table :data="list" max-height="300px" >
|
|
|
|
|
|
|
+ <el-table :data="listInfo" max-height="300px" >
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
prop="goodscode"
|
|
prop="goodscode"
|
|
|
:label="$t(`商品编码`)"
|
|
:label="$t(`商品编码`)"
|
|
@@ -108,7 +108,19 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
+ <div class="container" style="text-align:right">
|
|
|
|
|
+ <el-pagination
|
|
|
|
|
+ background
|
|
|
|
|
+ small
|
|
|
|
|
+ @size-change="handleSizeChange2"
|
|
|
|
|
+ @current-change="handleCurrentChange2"
|
|
|
|
|
+ :current-page="currentPageInfo"
|
|
|
|
|
+ :page-sizes="[20, 50, 100, 200]"
|
|
|
|
|
+ layout="total,sizes, prev, pager, next, jumper"
|
|
|
|
|
+ :total="totalInfo">
|
|
|
|
|
+ </el-pagination>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div slot="footer" class="dialog-footer" style="margin-top: 0 !important;">
|
|
|
<el-button @click="redInvoice = false" size="small" class="inline-16">{{$t('取 消')}}</el-button>
|
|
<el-button @click="redInvoice = false" size="small" class="inline-16">{{$t('取 消')}}</el-button>
|
|
|
<!-- <el-button type="primary" @click="centerDialogVisible = false" size="small">{{$t('确 定')}}</el-button>-->
|
|
<!-- <el-button type="primary" @click="centerDialogVisible = false" size="small">{{$t('确 定')}}</el-button>-->
|
|
|
<customBtn
|
|
<customBtn
|
|
@@ -139,9 +151,10 @@ export default {
|
|
|
dialogFormVisible:false,
|
|
dialogFormVisible:false,
|
|
|
param:{
|
|
param:{
|
|
|
"id": 20221228101203,
|
|
"id": 20221228101203,
|
|
|
- "pageSize":9999,
|
|
|
|
|
"content": {
|
|
"content": {
|
|
|
"sa_invoicebillid":0,
|
|
"sa_invoicebillid":0,
|
|
|
|
|
+ "pageNumber":1,
|
|
|
|
|
+ "pageSize":20,
|
|
|
"where":{
|
|
"where":{
|
|
|
"condition":""
|
|
"condition":""
|
|
|
}
|
|
}
|
|
@@ -151,7 +164,21 @@ export default {
|
|
|
total:0,
|
|
total:0,
|
|
|
currentPage:0,
|
|
currentPage:0,
|
|
|
redInvoice:false,
|
|
redInvoice:false,
|
|
|
- siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid
|
|
|
|
|
|
|
+ siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid,
|
|
|
|
|
+ paramInfo:{
|
|
|
|
|
+ "id": 20221228101203,
|
|
|
|
|
+ "content": {
|
|
|
|
|
+ "sa_invoicebillid":0,
|
|
|
|
|
+ "pageNumber":1,
|
|
|
|
|
+ "pageSize":20,
|
|
|
|
|
+ "where":{
|
|
|
|
|
+ "condition":""
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ listInfo:[],
|
|
|
|
|
+ totalInfo:0,
|
|
|
|
|
+ currentPageInfo:0,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
@@ -165,12 +192,12 @@ export default {
|
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
// console.log(`每页 ${val} 条`);
|
|
|
this.param.content.pageSize = val
|
|
this.param.content.pageSize = val
|
|
|
- this.listData()
|
|
|
|
|
|
|
+ this.listData(this.param.content.sa_invoicebillid)
|
|
|
},
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
|
// console.log(`当前页: ${val}`);
|
|
// console.log(`当前页: ${val}`);
|
|
|
this.param.content.pageNumber = val
|
|
this.param.content.pageNumber = val
|
|
|
- this.listData()
|
|
|
|
|
|
|
+ this.listData(this.param.content.sa_invoicebillid)
|
|
|
},
|
|
},
|
|
|
// 删除明细
|
|
// 删除明细
|
|
|
async deleteRow (row) {
|
|
async deleteRow (row) {
|
|
@@ -191,7 +218,24 @@ export default {
|
|
|
this.$emit('onSuccess')
|
|
this.$emit('onSuccess')
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ async listDataInfo (id) {
|
|
|
|
|
+ console.log('执行22222')
|
|
|
|
|
+ this.paramInfo.content.sa_invoicebillid = id
|
|
|
|
|
+ const res = await this.$api.requested(this.paramInfo)
|
|
|
|
|
+ this.listInfo = res.data
|
|
|
|
|
+ this.totalInfo = res.total
|
|
|
|
|
+ this.currentPageInfo = res.pageNumber
|
|
|
|
|
+ },
|
|
|
|
|
+ handleSizeChange2(val) {
|
|
|
|
|
+ // console.log(`每页 ${val} 条`);
|
|
|
|
|
+ this.paramInfo.content.pageSize = val
|
|
|
|
|
+ this.listDataInfo(this.paramInfo.content.sa_invoicebillid)
|
|
|
|
|
+ },
|
|
|
|
|
+ handleCurrentChange2(val) {
|
|
|
|
|
+ // console.log(`当前页: ${val}`);
|
|
|
|
|
+ this.paramInfo.content.pageNumber = val
|
|
|
|
|
+ this.listDataInfo(this.paramInfo.content.sa_invoicebillid)
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
mounted () {
|
|
mounted () {
|
|
@@ -199,5 +243,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
</script>
|
|
|
-<style>
|
|
|
|
|
|
|
+<style scoped>
|
|
|
|
|
+/deep/ .el-dialog__body {
|
|
|
|
|
+ padding: 20px 20px 0 20px !important;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|