|
|
|
|
@ -105,6 +105,8 @@ import { getList as getProducts } from "@/api/product"
|
|
|
|
|
import { serveList, getList } from "@/api/serveDetail";
|
|
|
|
|
import { parseTime, getAgeByIdcard } from "@/utils";
|
|
|
|
|
import { download } from "@/utils/downloadRequest";
|
|
|
|
|
import { getAuthTypes } from "@/utils/auth"
|
|
|
|
|
import qs from 'qs';
|
|
|
|
|
|
|
|
|
|
import serveDraw from "@/views/finance/component/serveDraw";
|
|
|
|
|
export default {
|
|
|
|
|
@ -187,9 +189,13 @@ export default {
|
|
|
|
|
async getProducts(){
|
|
|
|
|
const res = await getProducts({
|
|
|
|
|
page:1,
|
|
|
|
|
page_size:999
|
|
|
|
|
page_size:999,
|
|
|
|
|
})
|
|
|
|
|
this.products = res.data
|
|
|
|
|
let typesId = getAuthTypes(this).map(item => item.id)
|
|
|
|
|
this.products = res.data.filter(item => {
|
|
|
|
|
return typesId.indexOf(item.product_type_id) !== -1
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.select.product_id = this.products[0]?.id
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|