修改省市区和营业时间

master
doublekou 1 year ago
commit 69977f6fb1

@ -63,23 +63,28 @@
:readonly="title === '详情' || title === '审核'" :readonly="title === '详情' || title === '审核'"
/> />
</a-form-item> </a-form-item>
<a-form-item <a-row>
label="备注" <a-col :span="24">
name="remark" <a-form-item
:label-col="{ sm: { span: 24 }, md: { span: 5 } }" label="备注"
:wrapper-col=" name="remark"
title === '详情' || title === '审核' :label-col="{ sm: { span: 24 }, md: { span: 5 } }"
? { sm: { span: 24 }, md: { span: 9 } } :wrapper-col="
: { sm: { span: 24 }, md: { span: 11 } } title === '详情' || title === '审核'
" ? { sm: { span: 24 }, md: { span: 9 } }
> : { sm: { span: 24 }, md: { span: 19 } }
<a-input "
v-model:value="formModel.remark" >
placeholder="请输入备注" <a-input
style="width: 65%" v-model:value="formModel.remark"
:readonly="title === '详情' || title === '审核'" placeholder="请输入备注"
/> style="width: 100%"
</a-form-item> allow-clear
:readonly="title === '详情' || title === '审核'"
/>
</a-form-item>
</a-col>
</a-row>
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :xl="14" :md="14" :sm="14"> <a-col :xl="14" :md="14" :sm="14">
<a-form-item <a-form-item

@ -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 @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'
}, },
{ {
@ -192,12 +196,6 @@ const columns: ProColumns[] = [
.operationButtonArea { .operationButtonArea {
padding-bottom: 20px; padding-bottom: 20px;
} }
// .operationButton {
// background-color: #f4f4f5;
// border-radius: 5px;
// color: #909399;
// margin-right: 10px;
// }
.editable-row-operations a { .editable-row-operations a {
margin-right: 8px; margin-right: 8px;
} }

@ -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