This commit is contained in:
parent
36eb5699bd
commit
40255a6846
|
@ -138,6 +138,7 @@ const popupTitle = computed(() => {
|
||||||
// 表单数据
|
// 表单数据
|
||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
id: "",
|
id: "",
|
||||||
|
pid: "",
|
||||||
category_id: "",
|
category_id: "",
|
||||||
type_id: "",
|
type_id: "",
|
||||||
mer_name: "",
|
mer_name: "",
|
||||||
|
@ -169,6 +170,7 @@ const formData = reactive({
|
||||||
financial_wechat: "",
|
financial_wechat: "",
|
||||||
financial_alipay: "",
|
financial_alipay: "",
|
||||||
financial_type: "",
|
financial_type: "",
|
||||||
|
supplier: {}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 表单验证
|
// 表单验证
|
||||||
|
@ -200,13 +202,14 @@ const auditInfo = reactive({
|
||||||
const onAudit = () => {
|
const onAudit = () => {
|
||||||
if(auditInfo.status == 0 && auditInfo.mark == '') return ElMessage.error('请输入拒绝原因');
|
if(auditInfo.status == 0 && auditInfo.mark == '') return ElMessage.error('请输入拒绝原因');
|
||||||
apiSupplierStatus({
|
apiSupplierStatus({
|
||||||
id: formData.id,
|
id: formData.pid,
|
||||||
status: auditInfo.status,
|
status: auditInfo.status,
|
||||||
apply_id: formData.id,
|
apply_id: formData.apply_id,
|
||||||
service_phone: formData.service_phone,
|
service_phone: formData.supplier.service_phone,
|
||||||
mark: auditInfo.mark,
|
mark: auditInfo.mark,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
popupRef.value?.close();
|
popupRef.value?.close();
|
||||||
|
emit('success')
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
<!-- <el-table-column label="商户余额" prop="mer_money" show-overflow-tooltip /> -->
|
<!-- <el-table-column label="商户余额" prop="mer_money" show-overflow-tooltip /> -->
|
||||||
<el-table-column label="操作" width="170" fixed="right">
|
<el-table-column label="操作" width="170" fixed="right">
|
||||||
<template #default="{ row }">
|
<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>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
@ -151,12 +151,11 @@ const handleDelete = async (id: number | any[]) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 详情
|
// 详情
|
||||||
const handleDetail = async (id: any) => {
|
const handleDetail = async (data: any) => {
|
||||||
let res = await apiSupplierDetail({ id })
|
|
||||||
showDetail.value = true
|
showDetail.value = true
|
||||||
await nextTick()
|
await nextTick()
|
||||||
detailRef.value?.open('edit')
|
detailRef.value?.open('edit')
|
||||||
detailRef.value?.setFormData(res)
|
detailRef.value?.setFormData(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
getLists()
|
getLists()
|
||||||
|
|
|
@ -62,7 +62,11 @@
|
||||||
<el-table-column label="商户名称" prop="mer_name" show-overflow-tooltip />
|
<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="settle_cycle" show-overflow-tooltip />
|
||||||
<el-table-column label="利率" prop="interest_rate" 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="mer_address" show-overflow-tooltip />
|
||||||
<el-table-column label="商户是否禁用" prop="status">
|
<el-table-column label="商户是否禁用" prop="status">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
|
|
|
@ -61,7 +61,11 @@
|
||||||
<el-table-column label="购货价格" prop="buy" show-overflow-tooltip />
|
<el-table-column label="购货价格" prop="buy" show-overflow-tooltip />
|
||||||
<el-table-column label="销货价格" prop="sell" 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="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="code" show-overflow-tooltip />
|
||||||
<!-- <el-table-column label="默认仓库" prop="warehouse_name" show-overflow-tooltip /> -->
|
<!-- <el-table-column label="默认仓库" prop="warehouse_name" show-overflow-tooltip /> -->
|
||||||
<!-- <el-table-column label="商品货位" prop="location" show-overflow-tooltip /> -->
|
<!-- <el-table-column label="商品货位" prop="location" show-overflow-tooltip /> -->
|
||||||
|
|
Loading…
Reference in New Issue