关联单据

This commit is contained in:
x
2026-06-30 14:45:34 +08:00
parent 0433b439e0
commit e0dfd8dd0f

View File

@@ -53,7 +53,7 @@
<script>
import NavBar from '@components/NavBar.vue'
import {getBillDtl} from '@config/getData2.js'
import {getBillDtl2} from '@config/getData2.js'
export default {
name: 'SearchRelatedBill',
components: {
@@ -72,7 +72,7 @@ export default {
}
},
created () {
// this._getBillDtl()
// this._getBillDtl2()
},
methods: {
toSearch () {
@@ -83,7 +83,7 @@ export default {
this.size = '10'
this.busy = false
this.desc = ''
this._getBillDtl()
this._getBillDtl2()
},
toCheck (e) {
this.pkId = this.pkId === e.source_billdtl_id ? '' : e.source_billdtl_id
@@ -101,7 +101,7 @@ export default {
this.busy = true
this.page++
this.desc = '加载数据中...'
let res = await getBillDtl(this.page + '', this.size, this.val1)
let res = await getBillDtl2(this.page + '', this.size, this.val1)
if (res.code === '1') {
let newArr = []
res.rows.map(el => { newArr.push(Object.assign({}, el, {checked: 0})) })
@@ -117,8 +117,8 @@ export default {
this.desc = res.desc
}
},
async _getBillDtl () {
let res = await getBillDtl(this.page + '', this.size, this.val1)
async _getBillDtl2 () {
let res = await getBillDtl2(this.page + '', this.size, this.val1)
if (res.code === '1') {
let newArr = []
res.rows.map(el => { newArr.push(Object.assign({}, el, {checked: 0})) })