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