|
@@ -13,6 +13,8 @@ const dialogVisible = ref(false)
|
|
const cancelEmail = ref('')
|
|
const cancelEmail = ref('')
|
|
const cancelUniqueSn = ref('')
|
|
const cancelUniqueSn = ref('')
|
|
const total = ref(0)
|
|
const total = ref(0)
|
|
|
|
+const productList = ref([])
|
|
|
|
+const productId = ref('')
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
let pageText = document.getElementsByClassName('el-pagination__jump')[0]
|
|
let pageText = document.getElementsByClassName('el-pagination__jump')[0]
|
|
@@ -20,6 +22,7 @@ onMounted(() => {
|
|
pageText.childNodes[0].nodeValue = '跳至'
|
|
pageText.childNodes[0].nodeValue = '跳至'
|
|
}
|
|
}
|
|
pagingQuery()
|
|
pagingQuery()
|
|
|
|
+ getproductList()
|
|
})
|
|
})
|
|
const filter = () => {
|
|
const filter = () => {
|
|
get('http://81.68.234.235:8032/pdf-tech/vppOrderDetail/pageByCompany', formdata).then(
|
|
get('http://81.68.234.235:8032/pdf-tech/vppOrderDetail/pageByCompany', formdata).then(
|
|
@@ -40,6 +43,14 @@ const pagingQuery = () => {
|
|
}
|
|
}
|
|
)
|
|
)
|
|
}
|
|
}
|
|
|
|
+//获取已购买产品
|
|
|
|
+const getproductList = (val) => {
|
|
|
|
+ get('http://81.68.234.235:8032/pdf-tech/product/listWithAdmin').then(
|
|
|
|
+ (res) => {
|
|
|
|
+ productList.value = res.data.result
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+}
|
|
//打开对话框
|
|
//打开对话框
|
|
const handleClick = (val) => {
|
|
const handleClick = (val) => {
|
|
dialogVisible.value = true
|
|
dialogVisible.value = true
|
|
@@ -72,9 +83,9 @@ const handleCurrentChange = (value) => {
|
|
<span>Content</span>
|
|
<span>Content</span>
|
|
</div>
|
|
</div>
|
|
<div class="flex bg-[#fff] pt-32px px-24px rounded-t-8px w-full">
|
|
<div class="flex bg-[#fff] pt-32px px-24px rounded-t-8px w-full">
|
|
- <select name="" id="" class="w-140px">
|
|
|
|
|
|
+ <select v-model="productId" name="" id="" class="w-140px">
|
|
<option value="" disabled selected>Product</option>
|
|
<option value="" disabled selected>Product</option>
|
|
- <option v-for="item in tableData" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
|
+ <option v-for="item in productList" :key="item.id" :label="item.name" :value="item.id">
|
|
</option>
|
|
</option>
|
|
</select>
|
|
</select>
|
|
<button @click="filter()" class="
|
|
<button @click="filter()" class="
|