Compare commits
No commits in common. "87a6298543f9861635cb9899db7dfd694eca3d88" and "a33172e67ed7d2b850180424511d171d30ab271e" have entirely different histories.
87a6298543
...
a33172e67e
|
@ -33,9 +33,4 @@ export function apiOpurchaseclassSubOrders(params: any) {
|
||||||
// 采购详情报价列表
|
// 采购详情报价列表
|
||||||
export function apiOpurchaseclassGoodsOfferList(params: any) {
|
export function apiOpurchaseclassGoodsOfferList(params: any) {
|
||||||
return request.get({ url: '/operation/opurchaseclass/goods_offer_list', params })
|
return request.get({ url: '/operation/opurchaseclass/goods_offer_list', params })
|
||||||
}
|
|
||||||
|
|
||||||
// 采购详情报价列表
|
|
||||||
export function apiOpurchaseclassGoodsOfferUpdate(params: any) {
|
|
||||||
return request.post({ url: '/operation/Opurchaseclass/goods_offer_update', params })
|
|
||||||
}
|
}
|
|
@ -1,25 +0,0 @@
|
||||||
<template>
|
|
||||||
<el-drawer
|
|
||||||
v-model="drawer"
|
|
||||||
title="I am the title"
|
|
||||||
>
|
|
||||||
<span>Hi, there!</span>
|
|
||||||
</el-drawer>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script lang="ts" setup name="goodList">
|
|
||||||
import { usePaging } from "@/hooks/usePaging";
|
|
||||||
import {
|
|
||||||
apiOpurchaseclassGoodsOfferList,
|
|
||||||
apiOpurchaseclassGoodsOfferUpdate,
|
|
||||||
} from "@/api/opurchaseclass";
|
|
||||||
|
|
||||||
const drawer = ref(false);
|
|
||||||
const form = ref({});
|
|
||||||
|
|
||||||
const setForm = (data: any) => {
|
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
|
@ -1,11 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<el-radio-group
|
<el-radio-group v-model="queryParams.is_adopt" size="small" @change="changeType">
|
||||||
v-model="queryParams.is_adopt"
|
|
||||||
size="small"
|
|
||||||
@change="changeType"
|
|
||||||
>
|
|
||||||
<el-radio-button label="全部" value="" />
|
<el-radio-button label="全部" value="" />
|
||||||
<el-radio-button label="未采纳" value="0" />
|
<el-radio-button label="未采纳" value="0" />
|
||||||
<el-radio-button label="已采纳" value="1" />
|
<el-radio-button label="已采纳" value="1" />
|
||||||
|
@ -20,12 +16,7 @@
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
width="220"
|
width="220"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column label="需求数量" prop="need_num" show-overflow-tooltip width="100" />
|
||||||
label="需求数量"
|
|
||||||
prop="need_num"
|
|
||||||
show-overflow-tooltip
|
|
||||||
width="100"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="单位"
|
label="单位"
|
||||||
prop="unit_name"
|
prop="unit_name"
|
||||||
|
@ -38,14 +29,13 @@
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
width="160"
|
width="160"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column label="提供数量" prop="nums" show-overflow-tooltip width="100"/>
|
||||||
label="提供数量"
|
|
||||||
prop="nums"
|
|
||||||
show-overflow-tooltip
|
|
||||||
width="100"
|
|
||||||
/>
|
|
||||||
<el-table-column label="报价" prop="price" show-overflow-tooltip />
|
<el-table-column label="报价" prop="price" show-overflow-tooltip />
|
||||||
<el-table-column label="是否采纳报价" prop="is_adopt" width="120">
|
<el-table-column
|
||||||
|
label="是否采纳报价"
|
||||||
|
prop="is_adopt"
|
||||||
|
width="120"
|
||||||
|
>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-tag v-if="row.is_adopt === 1" type="success">已采纳</el-tag>
|
<el-tag v-if="row.is_adopt === 1" type="success">已采纳</el-tag>
|
||||||
<el-tag v-else type="info">未采纳</el-tag>
|
<el-tag v-else type="info">未采纳</el-tag>
|
||||||
|
@ -57,16 +47,13 @@
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
width="160"
|
width="160"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="操作" fixed="right">
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
prop="is_adopt"
|
||||||
|
fixed="right"
|
||||||
|
>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button
|
<el-button type="primary" size="small">采纳</el-button>
|
||||||
type="primary"
|
|
||||||
v-if="row.is_adopt === 0"
|
|
||||||
size="small"
|
|
||||||
@click="offerGood(row)"
|
|
||||||
>采纳</el-button
|
|
||||||
>
|
|
||||||
<span v-else>商品已采纳</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -78,10 +65,7 @@
|
||||||
|
|
||||||
<script lang="ts" setup name="subOrder">
|
<script lang="ts" setup name="subOrder">
|
||||||
import { usePaging } from "@/hooks/usePaging";
|
import { usePaging } from "@/hooks/usePaging";
|
||||||
import {
|
import { apiOpurchaseclassGoodsOfferList } from "@/api/opurchaseclass";
|
||||||
apiOpurchaseclassGoodsOfferList,
|
|
||||||
apiOpurchaseclassGoodsOfferUpdate,
|
|
||||||
} from "@/api/opurchaseclass";
|
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
@ -99,17 +83,8 @@ defineExpose({
|
||||||
getLists,
|
getLists,
|
||||||
});
|
});
|
||||||
|
|
||||||
const changeType = (e: any) => {
|
const changeType = (e: any)=>{
|
||||||
queryParams.is_adopt = e;
|
queryParams.is_adopt = e;
|
||||||
getLists();
|
|
||||||
};
|
|
||||||
|
|
||||||
const offerGood = (row: any) => {
|
|
||||||
apiOpurchaseclassGoodsOfferUpdate({
|
|
||||||
id: row.id,
|
|
||||||
}).then((res) => {
|
|
||||||
getLists();
|
getLists();
|
||||||
});
|
}
|
||||||
};
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-table :data="pager.lists" border style="width: 100%;">
|
<el-table :data="pager.lists" border style="width: 100%">
|
||||||
<el-table-column prop="id" label="ID" width="120" />
|
<el-table-column prop="id" label="ID" width="120" />
|
||||||
<el-table-column label="单据编号" prop="number" show-overflow-tooltip />
|
<el-table-column label="单据编号" prop="number" show-overflow-tooltip />
|
||||||
<el-table-column label="单据金额" prop="total" show-overflow-tooltip />
|
<el-table-column label="单据金额" prop="total" show-overflow-tooltip />
|
||||||
|
@ -16,16 +16,10 @@
|
||||||
prop="create_time"
|
prop="create_time"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column label="操作" fixed="right">
|
|
||||||
<template #default="{ row }">
|
|
||||||
<el-button type="primary" @click="openDetail(row)" link>详情</el-button>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="flex mt-4 justify-end">
|
<div class="flex mt-4 justify-end">
|
||||||
<pagination v-model="pager" @change="getLists" />
|
<pagination v-model="pager" @change="getLists" />
|
||||||
</div>
|
</div>
|
||||||
<goodList ref="goodListRef" />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -33,7 +27,6 @@
|
||||||
import { usePaging } from "@/hooks/usePaging";
|
import { usePaging } from "@/hooks/usePaging";
|
||||||
import { apiOpurchaseclassSubOrders } from "@/api/opurchaseclass";
|
import { apiOpurchaseclassSubOrders } from "@/api/opurchaseclass";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import goodList from "./goodList.vue";
|
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
|
@ -49,11 +42,4 @@ const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||||
defineExpose({
|
defineExpose({
|
||||||
getLists
|
getLists
|
||||||
})
|
})
|
||||||
|
|
||||||
const goodListRef = ref(null);
|
|
||||||
|
|
||||||
const openDetail = (row: any) => {
|
|
||||||
goodListRef.value?.open(row);
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -25,6 +25,9 @@
|
||||||
<el-descriptions-item label="所属商户">
|
<el-descriptions-item label="所属商户">
|
||||||
{{ form.merchant_name }}
|
{{ form.merchant_name }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="ID">
|
||||||
|
{{ form.id }}
|
||||||
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<el-table
|
<el-table
|
||||||
:data="form.goods_info"
|
:data="form.goods_info"
|
||||||
|
|
Loading…
Reference in New Issue