feat(order): 添加支付方式列并移除冗余功能
- 在商品报价表格中添加支付方式列 - 移除 outboundChange 函数,减少冗余代码 - 更新采购信息设置,添加支付方式设置 - 移除 product_offer_export 函数,简化功能
This commit is contained in:
parent
1e3ecd71e0
commit
13ccb38fb1
|
@ -50,6 +50,7 @@
|
||||||
<el-table-column label="采购人员" prop="buyer_name" show-overflow-tooltip />
|
<el-table-column label="采购人员" prop="buyer_name" show-overflow-tooltip />
|
||||||
|
|
||||||
<el-table-column label="采购状态" prop="buyer_confirm_name" show-overflow-tooltip />
|
<el-table-column label="采购状态" prop="buyer_confirm_name" show-overflow-tooltip />
|
||||||
|
<el-table-column label="支付方式" prop="pay_type_name" show-overflow-tooltip />
|
||||||
<el-table-column label="是否入库" prop="is_storage_name" show-overflow-tooltip />
|
<el-table-column label="是否入库" prop="is_storage_name" show-overflow-tooltip />
|
||||||
<el-table-column label="操作" fixed="right" width="180">
|
<el-table-column label="操作" fixed="right" width="180">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
|
@ -297,11 +298,6 @@ const oneClickStorage = () => {
|
||||||
getLists()
|
getLists()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const outboundChange = (e) => {
|
|
||||||
const price = (formData.value.purchase * e).toFixed(2)
|
|
||||||
const price2 = parseFloat(formData.value.purchase) + parseFloat(price)
|
|
||||||
formData.value.outbound_price = price2.toFixed(2)
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* 采购信息设置
|
* 采购信息设置
|
||||||
*/
|
*/
|
||||||
|
@ -332,6 +328,7 @@ const procureClick = (data: any) => {
|
||||||
formData.value.store_info = data.store_info
|
formData.value.store_info = data.store_info
|
||||||
formData.value.marques = data.marques
|
formData.value.marques = data.marques
|
||||||
formData.value.after_sales = data.after_sales
|
formData.value.after_sales = data.after_sales
|
||||||
|
formData.value.pay_type = data.pay_type
|
||||||
|
|
||||||
dictData.outbound_floating.forEach((item) => {
|
dictData.outbound_floating.forEach((item) => {
|
||||||
if (item.value == data.top_cate_name) {
|
if (item.value == data.top_cate_name) {
|
||||||
|
@ -356,16 +353,6 @@ const OclickDialogBuyer = () => {
|
||||||
warehouse_list.value = res.lists
|
warehouse_list.value = res.lists
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const product_offer_export = () => {
|
|
||||||
apiPurchaseProductOfferLists({
|
|
||||||
export: 2,
|
|
||||||
order_id: queryParams.order_id
|
|
||||||
}).then((res) => {
|
|
||||||
window.open(res.url, '_blank')
|
|
||||||
ElMessage.success('导出成功')
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParams = reactive({
|
const queryParams = reactive({
|
||||||
order_id: order_id.value.id,
|
order_id: order_id.value.id,
|
||||||
store_name: '',
|
store_name: '',
|
||||||
|
|
Loading…
Reference in New Issue