This commit is contained in:
weipengfei 2024-05-20 17:31:55 +08:00
parent 57055535cc
commit 80e3230cbb
6 changed files with 64 additions and 41 deletions

View File

@ -135,7 +135,7 @@
:readonly="false" /> :readonly="false" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <!-- <el-col :span="8">
<el-form-item label="银行卡转账信息" prop="financial_bank"> <el-form-item label="银行卡转账信息" prop="financial_bank">
<el-input v-model="formData.financial_bank" clearable placeholder="请输入银行卡转账信息" <el-input v-model="formData.financial_bank" clearable placeholder="请输入银行卡转账信息"
:readonly="false" /> :readonly="false" />
@ -169,13 +169,13 @@
</el-tag> </el-tag>
<el-button type="primary" @click="showDialog = true">添加标签</el-button> <el-button type="primary" @click="showDialog = true">添加标签</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
</el-row> </el-row>
</el-form> </el-form>
<el-dialog v-model="showDialog" title="选择标签" width="70%"> <!-- <el-dialog v-model="showDialog" title="选择标签" width="70%">
<dialogTable multipleChoice :config="goods_label" @customEvent="customEvent"> <dialogTable multipleChoice :config="goods_label" @customEvent="customEvent">
</dialogTable> </dialogTable>
</el-dialog> </el-dialog> -->
</popup> </popup>
</div> </div>
</template> </template>

View File

@ -4,11 +4,11 @@
<el-form class="mb-[-16px]" :model="queryParams" label-width="120px"> <el-form class="mb-[-16px]" :model="queryParams" label-width="120px">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="分类" prop="category_id"> <el-form-item label="供应商分类" prop="category_id">
<el-select <el-select
v-model="queryParams.category_id" v-model="queryParams.category_id"
clearable clearable
placeholder="请选择店铺类型" placeholder="请选择供应商类型"
> >
<el-option <el-option
v-for="(item, index) in dictData.mer_category_type" v-for="(item, index) in dictData.mer_category_type"
@ -20,11 +20,11 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="店铺类型" prop="type_id"> <el-form-item label="供应商类型" prop="type_id">
<el-select <el-select
v-model="queryParams.type_id" v-model="queryParams.type_id"
clearable clearable
placeholder="请选择店铺类型" placeholder="请选择供应商类型"
> >
<el-option <el-option
v-for="(item, index) in dictData.merchat_type" v-for="(item, index) in dictData.merchat_type"
@ -36,11 +36,11 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="名称" prop="mer_name"> <el-form-item label="供应商名称" prop="mer_name">
<el-input <el-input
v-model="queryParams.mer_name" v-model="queryParams.mer_name"
clearable clearable
placeholder="请输入名称" placeholder="请输入供应商名称"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -75,8 +75,8 @@
<el-table :data="pager.lists" @selection-change="handleSelectionChange"> <el-table :data="pager.lists" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column label="ID" prop="id" width="55" /> <el-table-column label="ID" prop="id" width="55" />
<el-table-column <!-- <el-table-column
label="分类" label="供应商分类"
prop="category_id" prop="category_id"
show-overflow-tooltip show-overflow-tooltip
> >
@ -86,9 +86,9 @@
:value="row.category_id" :value="row.category_id"
/> />
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column <el-table-column
label="店铺类型" label="供应商类型"
prop="type_id" prop="type_id"
show-overflow-tooltip show-overflow-tooltip
> >
@ -100,7 +100,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="名称" label="供应商名称"
prop="mer_name" prop="mer_name"
show-overflow-tooltip show-overflow-tooltip
/> />
@ -114,7 +114,7 @@
prop="interest_rate" prop="interest_rate"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <!-- <el-table-column
label="标签" label="标签"
prop="sys_labels_arr" prop="sys_labels_arr"
show-overflow-tooltip show-overflow-tooltip
@ -124,13 +124,13 @@
row.sys_labels_arr.map((t: any) => t.name).join(",") row.sys_labels_arr.map((t: any) => t.name).join(",")
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column <el-table-column
label="地址" label="供应商地址"
prop="mer_address" prop="mer_address"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column label="是否禁用" prop="status"> <el-table-column label="供应商是否禁用" prop="status">
<template #default="{ row }"> <template #default="{ row }">
<dict-value :options="dictData.show_status" :value="row.status" /> <dict-value :options="dictData.show_status" :value="row.status" />
</template> </template>
@ -141,7 +141,7 @@
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
label="手续费单独设置" label="供应商手续费单独设置"
width="200" width="200"
prop="commission_switch" prop="commission_switch"
> >
@ -151,7 +151,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="余额" label="供应商余额"
prop="mer_money" prop="mer_money"
show-overflow-tooltip show-overflow-tooltip
/> />

View File

@ -91,11 +91,11 @@
}" placeholder="请选择仓库" /> }" placeholder="请选择仓库" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <!-- <el-col :span="8">
<el-form-item label="商品货位" prop="location"> <el-form-item label="商品货位" prop="location">
<el-input v-model="formData.location" clearable placeholder="请输入商品货位" /> <el-input v-model="formData.location" clearable placeholder="请输入商品货位" />
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="8"> <el-col :span="8">
<el-form-item label="库存阈值" prop="stocktip"> <el-form-item label="库存阈值" prop="stocktip">
<el-input v-model="formData.stocktip" clearable placeholder="请输入库存阈值" /> <el-input v-model="formData.stocktip" clearable placeholder="请输入库存阈值" />

View File

@ -26,7 +26,7 @@
{{ form.merchant_name }} {{ form.merchant_name }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-table :data="form.goods_info" border style="width: 100%; margin-top: 20px"> <el-table :data="pager.lists" border style="width: 100%; margin-top: 20px">
<el-table-column prop="id" label="ID" width="120" /> <el-table-column prop="id" label="ID" width="120" />
<el-table-column prop="goods_name" label="商品名称" /> <el-table-column prop="goods_name" label="商品名称" />
<el-table-column prop="price" label="单价(元)" /> <el-table-column prop="price" label="单价(元)" />
@ -34,6 +34,12 @@
<el-table-column prop="nums" label="数量" /> <el-table-column prop="nums" label="数量" />
<el-table-column prop="total" label="合计(元)" /> <el-table-column prop="total" label="合计(元)" />
<el-table-column prop="nums_count" label="已采纳数量" /> <el-table-column prop="nums_count" label="已采纳数量" />
<el-table-column prop="is_push" label="推送状态">
<template #default="{ row }">
<span v-if="row.is_push == 0" style="color: #e6a23c;">未推送</span>
<span v-else>已推送</span>
</template>
</el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="摊贩订单" name="order"> <el-tab-pane label="摊贩订单" name="order">
@ -67,11 +73,11 @@ import {
apiOpurchaseclassLists, apiOpurchaseclassLists,
apiOpurchaseclassDelete, apiOpurchaseclassDelete,
apiOpurchaseclassDetail, apiOpurchaseclassDetail,
apiOpurchaseinfoListList,
} from "@/api/opurchaseclass"; } from "@/api/opurchaseclass";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import subOrder from "./component/subOrder.vue"; import subOrder from "./component/subOrder.vue";
import goodsOffer from "./component/goodsOffer.vue"; import goodsOffer from "./component/goodsOffer.vue";
import { apiOpurchaseinfoListList, apicreateSupplierGoods } from "@/api/opurchaseclass";
const route = useRoute(); const route = useRoute();
const form = ref({}); const form = ref({});
@ -104,18 +110,16 @@ const tabChange = (type: any) => {
}; };
//
const queryParams = reactive({
id: route.query.id,
})
//
const { pager, getLists, resetParams, resetPage } = usePaging({ const { pager, getLists, resetParams, resetPage } = usePaging({
fetchFun: apiOpurchaseinfoListList, fetchFun: apiOpurchaseinfoListList,
params: { is_push: 0, id: route.query.id }, params: queryParams
}); })
getLists()
// getLists()
const rePush = async () => {
await apicreateSupplierGoods({ id: route.query.id })
getLists()
}
</script> </script>

View File

@ -9,7 +9,7 @@
prop="goods_name" prop="goods_name"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <!-- <el-table-column
label="商品标签" label="商品标签"
prop="sys_labels_arr" prop="sys_labels_arr"
show-overflow-tooltip show-overflow-tooltip
@ -19,7 +19,7 @@
row.sys_labels_arr.map((t: any) => t.name).join(",") row.sys_labels_arr.map((t: any) => t.name).join(",")
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="单位" prop="unit_name" show-overflow-tooltip /> <el-table-column label="单位" prop="unit_name" show-overflow-tooltip />
<el-table-column label="单价(元)" prop="price" show-overflow-tooltip /> <el-table-column label="单价(元)" prop="price" show-overflow-tooltip />
<el-table-column prop="nums" label="数量" /> <el-table-column prop="nums" label="数量" />

View File

@ -24,7 +24,7 @@
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-table <el-table
:data="form.goods_info" :data="pager.lists"
border border
style="width: 100%; margin-top: 20px" style="width: 100%; margin-top: 20px"
> >
@ -35,6 +35,12 @@
<el-table-column prop="nums" label="数量" /> <el-table-column prop="nums" label="数量" />
<el-table-column prop="total" label="合计(元)" /> <el-table-column prop="total" label="合计(元)" />
<el-table-column prop="nums_count" label="已采纳数量" /> <el-table-column prop="nums_count" label="已采纳数量" />
<el-table-column prop="is_push" label="推送状态">
<template #default="{ row }">
<span v-if="row.is_push == 0" style="color: #e6a23c;cursor: pointer;" @click="activeName='notPushedGoods';tabChange('notPushedGoods')">未推送</span>
<span v-else>已推送</span>
</template>
</el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="商户订单" name="order"> <el-tab-pane label="商户订单" name="order">
@ -58,6 +64,7 @@ import {
apiOpurchaseclassLists, apiOpurchaseclassLists,
apiOpurchaseclassDelete, apiOpurchaseclassDelete,
apiOpurchaseclassDetail, apiOpurchaseclassDetail,
apiOpurchaseinfoListList
} from "@/api/opurchaseclass"; } from "@/api/opurchaseclass";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import subOrder from "./component/subOrder.vue"; import subOrder from "./component/subOrder.vue";
@ -95,4 +102,16 @@ const tabChange = (type: any) => {
if (type == "notPushedGoods") noPushRef.value?.getLists(); if (type == "notPushedGoods") noPushRef.value?.getLists();
} }
}; };
//
const queryParams = reactive({
id: route.query.id,
})
//
const { pager, getLists, resetParams, resetPage } = usePaging({
fetchFun: apiOpurchaseinfoListList,
params: queryParams
})
getLists()
</script> </script>