This commit is contained in:
weipengfei 2024-05-18 16:28:55 +08:00
parent 36eb5699bd
commit 40255a6846
4 changed files with 19 additions and 9 deletions

View File

@ -138,6 +138,7 @@ const popupTitle = computed(() => {
//
const formData = reactive({
id: "",
pid: "",
category_id: "",
type_id: "",
mer_name: "",
@ -169,6 +170,7 @@ const formData = reactive({
financial_wechat: "",
financial_alipay: "",
financial_type: "",
supplier: {}
});
//
@ -200,13 +202,14 @@ const auditInfo = reactive({
const onAudit = () => {
if(auditInfo.status == 0 && auditInfo.mark == '') return ElMessage.error('请输入拒绝原因');
apiSupplierStatus({
id: formData.id,
id: formData.pid,
status: auditInfo.status,
apply_id: formData.id,
service_phone: formData.service_phone,
apply_id: formData.apply_id,
service_phone: formData.supplier.service_phone,
mark: auditInfo.mark,
}).then((res) => {
popupRef.value?.close();
emit('success')
});
};

View File

@ -71,7 +71,7 @@
<!-- <el-table-column label="商户余额" prop="mer_money" show-overflow-tooltip /> -->
<el-table-column label="操作" width="170" fixed="right">
<template #default="{ row }">
<el-button v-if="!row.status" link type="primary" @click="handleDetail(row.pid)">
<el-button v-if="!row.status" link type="primary" @click="handleDetail(row)">
审核
</el-button>
</template>
@ -151,12 +151,11 @@ const handleDelete = async (id: number | any[]) => {
}
//
const handleDetail = async (id: any) => {
let res = await apiSupplierDetail({ id })
const handleDetail = async (data: any) => {
showDetail.value = true
await nextTick()
detailRef.value?.open('edit')
detailRef.value?.setFormData(res)
detailRef.value?.setFormData(data)
}
getLists()

View File

@ -62,7 +62,11 @@
<el-table-column label="商户名称" prop="mer_name" show-overflow-tooltip />
<el-table-column label="结算周期(天)" prop="settle_cycle" show-overflow-tooltip />
<el-table-column label="利率" prop="interest_rate" show-overflow-tooltip />
<el-table-column label="标签" prop="sys_labels_text" show-overflow-tooltip />
<el-table-column label="标签" prop="sys_labels_arr" show-overflow-tooltip >
<template #default="{ row }">
<span>{{row.sys_labels_arr.map((t:any)=>t.name).join(',')}}</span>
</template>
</el-table-column>
<el-table-column label="商户地址" prop="mer_address" show-overflow-tooltip />
<el-table-column label="商户是否禁用" prop="status">
<template #default="{ row }">

View File

@ -61,7 +61,11 @@
<el-table-column label="购货价格" prop="buy" show-overflow-tooltip />
<el-table-column label="销货价格" prop="sell" show-overflow-tooltip />
<el-table-column label="零售价格" prop="retail" show-overflow-tooltip />
<el-table-column label="标签" prop="sys_labels_text" show-overflow-tooltip />
<el-table-column label="标签" prop="sys_labels_text" show-overflow-tooltip >
<template #default="{ row }">
<span>{{ row.sys_labels_arr.map((t:any)=>t.name).join(',') }}</span>
</template>
</el-table-column>
<el-table-column label="条形码" prop="code" show-overflow-tooltip />
<!-- <el-table-column label="默认仓库" prop="warehouse_name" show-overflow-tooltip /> -->
<!-- <el-table-column label="商品货位" prop="location" show-overflow-tooltip /> -->