update
This commit is contained in:
parent
acad0b892f
commit
a085fd8c17
@ -1,26 +1,31 @@
|
|||||||
import request from '@/utils/request'
|
import request from "@/utils/request";
|
||||||
|
|
||||||
// 报价单列表
|
// 报价单列表
|
||||||
export function apiQuotationLists(params: any) {
|
export function apiQuotationLists(params: any) {
|
||||||
return request.get({ url: '/quotation.quotation/lists', params })
|
return request.get({ url: "/quotation.quotation/lists", params });
|
||||||
}
|
}
|
||||||
|
|
||||||
// 添加报价单
|
// 添加报价单
|
||||||
export function apiQuotationAdd(params: any) {
|
export function apiQuotationAdd(params: any) {
|
||||||
return request.post({ url: '/quotation.quotation/add', params })
|
return request.post({ url: "/quotation.quotation/add", params });
|
||||||
}
|
}
|
||||||
|
|
||||||
// 编辑报价单
|
// 编辑报价单
|
||||||
export function apiQuotationEdit(params: any) {
|
export function apiQuotationEdit(params: any) {
|
||||||
return request.post({ url: '/quotation.quotation/edit', params })
|
return request.post({ url: "/quotation.quotation/edit", params });
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除报价单
|
// 删除报价单
|
||||||
export function apiQuotationDelete(params: any) {
|
export function apiQuotationDelete(params: any) {
|
||||||
return request.post({ url: '/quotation.quotation/delete', params })
|
return request.post({ url: "/quotation.quotation/delete", params });
|
||||||
}
|
}
|
||||||
|
|
||||||
// 报价单详情
|
// 报价单详情
|
||||||
export function apiQuotationDetail(params: any) {
|
export function apiQuotationDetail(params: any) {
|
||||||
return request.get({ url: '/quotation.quotation/detail', params })
|
return request.get({ url: "/quotation.quotation/detail", params });
|
||||||
|
}
|
||||||
|
|
||||||
|
//apiQuotationSearch
|
||||||
|
export function apiQuotationSearch(params: any) {
|
||||||
|
return request.get({ url: "/quotation.quotation/datas", params });
|
||||||
}
|
}
|
@ -87,7 +87,6 @@ const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
|||||||
// 是否显示编辑框
|
// 是否显示编辑框
|
||||||
const showEdit = ref(false)
|
const showEdit = ref(false)
|
||||||
const showDtail = ref(false)
|
const showDtail = ref(false)
|
||||||
const customerList = ref([])
|
|
||||||
|
|
||||||
// 查询条件
|
// 查询条件
|
||||||
const queryParams = reactive({
|
const queryParams = reactive({
|
||||||
@ -140,19 +139,11 @@ const handleDelete = async (id: number | any[]) => {
|
|||||||
// 详情
|
// 详情
|
||||||
const handleDetail = async (data: any) => {
|
const handleDetail = async (data: any) => {
|
||||||
let res = await apiQuotationDetail({ id: data.id })
|
let res = await apiQuotationDetail({ id: data.id })
|
||||||
|
|
||||||
showDtail.value = true
|
showDtail.value = true
|
||||||
await nextTick()
|
await nextTick()
|
||||||
detailRef.value?.open()
|
detailRef.value?.open()
|
||||||
detailRef.value?.setFormData(res)
|
detailRef.value?.setFormData(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取客户列表
|
|
||||||
const customerlist = async () => {
|
|
||||||
let res = await apiCustomLists({ page_size: 9999, page_no: 1 })
|
|
||||||
customerList.value = res.lists
|
|
||||||
}
|
|
||||||
|
|
||||||
customerlist()
|
|
||||||
getLists()
|
getLists()
|
||||||
</script>
|
</script>
|
||||||
|
@ -2,14 +2,9 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-card class="!border-none mb-4" shadow="never">
|
<el-card class="!border-none mb-4" shadow="never">
|
||||||
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||||
<el-form-item label="报价单" prop="quotation_id">
|
<el-form-item label="报价单号" prop="quotation_id">
|
||||||
<el-select class="w-[280px]" v-model="queryParams.quotation_id" clearable placeholder="请选择税率">
|
<selectRemote :formData="queryParams" model="quotation_id" :api="apiQuotationSearch" />
|
||||||
<el-option label="全部" value=""></el-option>
|
|
||||||
<el-option v-for="(item, index) in quotationList" :key="index" :label="item.code"
|
|
||||||
:value="item.id" />
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="resetPage">查询</el-button>
|
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||||
<el-button @click="resetParams">重置</el-button>
|
<el-button @click="resetParams">重置</el-button>
|
||||||
@ -40,9 +35,7 @@
|
|||||||
<el-table-column label="不含税金额" prop="tax_exclusive_amount" show-overflow-tooltip />
|
<el-table-column label="不含税金额" prop="tax_exclusive_amount" show-overflow-tooltip />
|
||||||
<el-table-column label="含税金额" prop="tax_inclusive_amount" show-overflow-tooltip />
|
<el-table-column label="含税金额" prop="tax_inclusive_amount" show-overflow-tooltip />
|
||||||
<el-table-column label="备注" prop="remark" show-overflow-tooltip />
|
<el-table-column label="备注" prop="remark" show-overflow-tooltip />
|
||||||
<!-- <el-table-column label="添加人" prop="product_num" show-overflow-tooltip /> -->
|
|
||||||
<el-table-column label="创建日期" prop="create_time" show-overflow-tooltip />
|
<el-table-column label="创建日期" prop="create_time" show-overflow-tooltip />
|
||||||
<el-table-column label="备注" prop="remark" show-overflow-tooltip />
|
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex mt-4 justify-end">
|
<div class="flex mt-4 justify-end">
|
||||||
@ -56,31 +49,17 @@
|
|||||||
<script lang="ts" setup name="quotationDetailLists">
|
<script lang="ts" setup name="quotationDetailLists">
|
||||||
import { usePaging } from '@/hooks/usePaging'
|
import { usePaging } from '@/hooks/usePaging'
|
||||||
import { useDictData } from '@/hooks/useDictOptions'
|
import { useDictData } from '@/hooks/useDictOptions'
|
||||||
import { apiQuotationLists } from '@/api/quotation'
|
import { apiQuotationSearch } from '@/api/quotation'
|
||||||
import { apiQuotationDetailLists } from '@/api/quotation_detail'
|
import { apiQuotationDetailLists } from '@/api/quotation_detail'
|
||||||
import { timeFormat } from '@/utils/util'
|
|
||||||
import feedback from '@/utils/feedback'
|
|
||||||
// import EditPopup from './edit.vue'
|
|
||||||
|
|
||||||
// const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
|
||||||
// 是否显示编辑框
|
// 是否显示编辑框
|
||||||
const showEdit = ref(false)
|
const showEdit = ref(false)
|
||||||
const quotationList = ref([])
|
|
||||||
|
|
||||||
// 查询条件
|
// 查询条件
|
||||||
const queryParams = reactive({
|
const queryParams = reactive({
|
||||||
quotation_id: '',
|
quotation_id: '',
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
//获取报价单数据
|
|
||||||
const quotationlist = () => {
|
|
||||||
apiQuotationLists({ page_no: 1, page_size: 9995 }).then((res) => {
|
|
||||||
quotationList.value = res.lists
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// 选中数据
|
// 选中数据
|
||||||
const selectData = ref<any[]>([])
|
const selectData = ref<any[]>([])
|
||||||
|
|
||||||
@ -98,27 +77,5 @@ const { pager, getLists, resetParams, resetPage } = usePaging({
|
|||||||
params: queryParams
|
params: queryParams
|
||||||
})
|
})
|
||||||
|
|
||||||
// // 添加
|
|
||||||
// const handleAdd = async () => {
|
|
||||||
// showEdit.value = true
|
|
||||||
// await nextTick()
|
|
||||||
// editRef.value?.open('add')
|
|
||||||
// }
|
|
||||||
|
|
||||||
// // 编辑
|
|
||||||
// const handleEdit = async (data: any) => {
|
|
||||||
// showEdit.value = true
|
|
||||||
// await nextTick()
|
|
||||||
// editRef.value?.open('edit')
|
|
||||||
// editRef.value?.setFormData(data)
|
|
||||||
// }
|
|
||||||
|
|
||||||
// // 删除
|
|
||||||
// const handleDelete = async (id: number | any[]) => {
|
|
||||||
// await feedback.confirm('确定要删除?')
|
|
||||||
// await apiQuotationDetailDelete({ id })
|
|
||||||
// getLists()
|
|
||||||
// }
|
|
||||||
quotationlist()
|
|
||||||
getLists()
|
getLists()
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user