master
飘泊客 1 year ago
parent 8c96b99105
commit 920260b21b

@ -8,7 +8,7 @@
<!-- 工具栏 --> <!-- 工具栏 -->
<a-card :bordered="false" :body-style="{ paddingBottom: 0 }"> <a-card :bordered="false" :body-style="{ paddingBottom: 0 }">
<div class="operationButtonArea"> <div class="operationButtonArea">
<a-button class="operationButton" @click="addShop"></a-button> <a-button type="primary" @click="addShop"></a-button>
<!-- 更多操作 --> <!-- 更多操作 -->
</div> </div>
</a-card> </a-card>
@ -30,7 +30,7 @@
<template v-else-if="column.key === 'operate'"> <template v-else-if="column.key === 'operate'">
<operation-group> <operation-group>
<a @click="editShop(record)"></a> <a @click="editShop(record)"></a>
<delete-text-button @confirm="deleteShopFun(record)" /> <!-- <delete-text-button @confirm="deleteShopFun(record)" /> -->
<a @click="selectReservation(record)"></a> <a @click="selectReservation(record)"></a>
</operation-group> </operation-group>
</template> </template>
@ -94,7 +94,7 @@ const editShop = (record: shopDetailVO) => {
const selectReservation = (record: shopDetailVO) => { const selectReservation = (record: shopDetailVO) => {
reservationModalRef.value?.open(FormAction.OTHER, record) reservationModalRef.value?.open(FormAction.OTHER, record)
} }
// //
const deleteShopFun = (record: shopDetailVO) => { const deleteShopFun = (record: shopDetailVO) => {
doRequest(deleteShop(record.id as number), { doRequest(deleteShop(record.id as number), {
successMessage: '删除成功!', successMessage: '删除成功!',
@ -115,11 +115,11 @@ const columns: ProColumns[] = [
dataIndex: 'id' dataIndex: 'id'
}, },
{ {
title: '店名称', title: '名称',
dataIndex: 'storeName' dataIndex: 'storeName'
}, },
{ {
title: '店类型', title: '类型',
dataIndex: 'storeType', dataIndex: 'storeType',
customRender: ({ record }: any) => { customRender: ({ record }: any) => {
if (record.storeType === 0) { if (record.storeType === 0) {
@ -130,7 +130,7 @@ const columns: ProColumns[] = [
} }
}, },
{ {
title: '店状态', title: '状态',
dataIndex: 'storeStatus', dataIndex: 'storeStatus',
customRender: function ({ record }: any) { customRender: function ({ record }: any) {
if (record.storeStatus === 0) { if (record.storeStatus === 0) {
@ -157,6 +157,10 @@ const columns: ProColumns[] = [
}, },
{ {
title: '承接销售', title: '承接销售',
dataIndex: 'address'
},
{
title: '店铺地址',
dataIndex: 'userName' dataIndex: 'userName'
}, },
{ {
@ -193,9 +197,7 @@ const columns: ProColumns[] = [
padding-bottom: 20px; padding-bottom: 20px;
} }
.operationButton { .operationButton {
background-color: #f4f4f5;
border-radius: 5px; border-radius: 5px;
color: #909399;
margin-right: 10px; margin-right: 10px;
} }
.editable-row-operations a { .editable-row-operations a {

@ -96,7 +96,7 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<a-row v-if="title != '编辑门店'" justify="start"> <a-row justify="start">
<a-col :span="24"> <a-col :span="24">
<a-form-item <a-form-item
label="门店地址" label="门店地址"
@ -105,10 +105,12 @@
:rules="[{ required: true, message: '请输入详细地址', trigger: ['blur'] }]" :rules="[{ required: true, message: '请输入详细地址', trigger: ['blur'] }]"
name="address" name="address"
> >
<a-input <a-textarea
id="tipinput" id="tipinput"
v-model:value="formModel.address" v-model:value="formModel.address"
:disabled="title == '编辑门店'"
allow-clear allow-clear
auto-size
placeholder="请输入详细地址" placeholder="请输入详细地址"
/> />
</a-form-item> </a-form-item>
@ -258,6 +260,7 @@ const selectUserList = () => {
} }
const handleClose = () => { const handleClose = () => {
closeModal() closeModal()
formModel.tradeTime = []
submitLoading.value = false submitLoading.value = false
} }

Loading…
Cancel
Save