|
@@ -1,120 +1,102 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
<el-tabs v-model="storeTab" @tab-click="onChangeStoreTab">
|
|
<el-tabs v-model="storeTab" @tab-click="onChangeStoreTab">
|
|
- <el-tab-pane label="基本信息" name="1"></el-tab-pane>
|
|
|
|
- <el-tab-pane label="结算账号" name="2"></el-tab-pane>
|
|
|
|
|
|
+ <el-tab-pane label="基本信息" name="1"></el-tab-pane>
|
|
|
|
+ <el-tab-pane label="结算账号" name="2"></el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
|
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-form v-loading="loading" ref="elForm" :model="form" :rules="rules" style="margin-left: 20%" :style="{width: '60%'}">
|
|
<el-form v-loading="loading" ref="elForm" :model="form" :rules="rules" style="margin-left: 20%" :style="{width: '60%'}">
|
|
<!-- 基本信息 -->
|
|
<!-- 基本信息 -->
|
|
- <template v-if="storeTab == '1'">
|
|
|
|
- <template v-if="storeTab1actionPage == '1'">
|
|
|
|
- <el-descriptions title="门店信息" :column="2" border :contentStyle="{'text-align': 'center'}">
|
|
|
|
- <!-- 详情展示 ============================================== -->
|
|
|
|
- <template slot="extra" >
|
|
|
|
- <el-button type="primary"
|
|
|
|
- size="medium"
|
|
|
|
- @click="handelActionStoreTab1"
|
|
|
|
- v-hasPermi="['system:store:edit']">操作</el-button>
|
|
|
|
- </template>
|
|
|
|
- <el-descriptions-item >
|
|
|
|
- <template slot="label"><i class="el-icon-discount"></i>门店编号</template>
|
|
|
|
- {{form.code}}</el-descriptions-item>
|
|
|
|
- <el-descriptions-item :labelStyle="{width: '25%'}">
|
|
|
|
- <template slot="label"><i class="el-icon-office-building"></i>门店名称</template>
|
|
|
|
- {{form.name}}</el-descriptions-item>
|
|
|
|
- <el-descriptions-item span="2" :contentStyle="{'text-align': 'left'}">
|
|
|
|
- <template slot="label"><i class="el-icon-picture"></i>门店照片</template>
|
|
|
|
- <el-image
|
|
|
|
- style="width: 100px; height: 100px"
|
|
|
|
- :src="form.companyPic"
|
|
|
|
- fit="fill"></el-image></el-descriptions-item>
|
|
|
|
- <el-descriptions-item >
|
|
|
|
- <template slot="label"><i class="el-icon-connection"></i>授权日期</template>
|
|
|
|
- {{form.openDateParse}}</el-descriptions-item>
|
|
|
|
- <el-descriptions-item >
|
|
|
|
- <template slot="label"><i class="el-icon-time"></i>营业时间</template>
|
|
|
|
- {{form.businessStartTime}} - {{form.businessEndTime}}</el-descriptions-item>
|
|
|
|
- <el-descriptions-item label="门店状态" >
|
|
|
|
- <template slot="label"><i class="el-icon-s-flag"></i>门店状态</template>
|
|
|
|
- <el-tag size="small"
|
|
|
|
- v-if="form.status==item.value"
|
|
|
|
- v-for="item in options"
|
|
|
|
- :key="item.value">
|
|
|
|
- {{item.label}}</el-tag>
|
|
|
|
- </el-descriptions-item>
|
|
|
|
- <el-descriptions-item >
|
|
|
|
- <template slot="label"><i class="el-icon-phone"></i>服务热线</template>
|
|
|
|
- {{form.contactWorkTel}}</el-descriptions-item>
|
|
|
|
-
|
|
|
|
- <el-descriptions-item span="1">
|
|
|
|
- <template slot="label"><i class="el-icon-download"></i>是否打印小票</template>
|
|
|
|
- <el-tag size="small"
|
|
|
|
- v-if="form.isPrint==item.value"
|
|
|
|
- v-for="item in options"
|
|
|
|
- :key="item.value">
|
|
|
|
- {{item.label}}</el-tag>
|
|
|
|
- </el-descriptions-item>
|
|
|
|
|
|
+ <template v-if="storeTab == '1'">
|
|
|
|
+ <template v-if="storeTab1actionPage == '1'">
|
|
|
|
+ <el-descriptions title="门店信息" :column="2" border :contentStyle="{'text-align': 'center'}">
|
|
|
|
+ <!-- 详情展示 ============================================== -->
|
|
|
|
+ <template slot="extra">
|
|
|
|
+ <el-button type="primary" size="medium" @click="handelActionStoreTab1" v-hasPermi="['system:store:edit']">操作</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ <el-descriptions-item>
|
|
|
|
+ <template slot="label"><i class="el-icon-discount"></i>门店编号</template>
|
|
|
|
+ {{form.code}}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item :labelStyle="{width: '25%'}">
|
|
|
|
+ <template slot="label"><i class="el-icon-office-building"></i>门店名称</template>
|
|
|
|
+ {{form.name}}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item span="2" :contentStyle="{'text-align': 'left'}">
|
|
|
|
+ <template slot="label"><i class="el-icon-picture"></i>门店免洗额度</template>
|
|
|
|
+ {{form.balance}}
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
+ <el-descriptions-item span="2" :contentStyle="{'text-align': 'left'}">
|
|
|
|
+ <template slot="label"><i class="el-icon-picture"></i>门店照片</template>
|
|
|
|
+ <el-image style="width: 100px; height: 100px" :src="form.companyPic" fit="fill"></el-image>
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
+ <el-descriptions-item>
|
|
|
|
+ <template slot="label"><i class="el-icon-connection"></i>授权日期</template>
|
|
|
|
+ {{form.openDateParse}}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item>
|
|
|
|
+ <template slot="label"><i class="el-icon-time"></i>营业时间</template>
|
|
|
|
+ {{form.businessStartTime}} - {{form.businessEndTime}}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="门店状态">
|
|
|
|
+ <template slot="label"><i class="el-icon-s-flag"></i>门店状态</template>
|
|
|
|
+ <el-tag size="small" v-if="form.status==item.value" v-for="item in options" :key="item.value">
|
|
|
|
+ {{item.label}}</el-tag>
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
+ <el-descriptions-item>
|
|
|
|
+ <template slot="label"><i class="el-icon-phone"></i>服务热线</template>
|
|
|
|
+ {{form.contactWorkTel}}</el-descriptions-item>
|
|
|
|
|
|
- <el-descriptions-item span="1">
|
|
|
|
- <template slot="label"><i class="el-icon-download"></i>小票是否打印客户姓名</template>
|
|
|
|
- <el-tag size="small"
|
|
|
|
- v-if="form.isPrintName==item.value"
|
|
|
|
- v-for="item in options"
|
|
|
|
- :key="item.value">
|
|
|
|
- {{item.label}}</el-tag>
|
|
|
|
- </el-descriptions-item>
|
|
|
|
|
|
+ <el-descriptions-item span="1">
|
|
|
|
+ <template slot="label"><i class="el-icon-download"></i>是否打印小票</template>
|
|
|
|
+ <el-tag size="small" v-if="form.isPrint==item.value" v-for="item in options" :key="item.value">
|
|
|
|
+ {{item.label}}</el-tag>
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
|
-
|
|
|
|
- <el-descriptions-item span="2">
|
|
|
|
- <template slot="label"><i class="el-icon-s-comment"></i>店铺说明</template>
|
|
|
|
- {{form.companyDetail}}</el-descriptions-item>
|
|
|
|
- <el-descriptions-item span="2">
|
|
|
|
- <template slot="label"><i class="el-icon-position"></i>所在区域</template>
|
|
|
|
- {{form.provinceName}}{{form.cityName}}{{form.areaName}}</el-descriptions-item>
|
|
|
|
- <el-descriptions-item span="2">
|
|
|
|
- <template slot="label"><i class="el-icon-location-information"></i>详细地址</template>
|
|
|
|
- {{form.address}}</el-descriptions-item>
|
|
|
|
- </el-descriptions>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <el-descriptions-item span="1">
|
|
|
|
+ <template slot="label"><i class="el-icon-download"></i>小票是否打印客户姓名</template>
|
|
|
|
+ <el-tag size="small" v-if="form.isPrintName==item.value" v-for="item in options" :key="item.value">
|
|
|
|
+ {{item.label}}</el-tag>
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
+ <el-descriptions-item span="2">
|
|
|
|
+ <template slot="label"><i class="el-icon-s-comment"></i>店铺说明</template>
|
|
|
|
+ {{form.companyDetail}}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item span="2">
|
|
|
|
+ <template slot="label"><i class="el-icon-location-information"></i>详细地址</template>
|
|
|
|
+ {{form.address}}</el-descriptions-item>
|
|
|
|
+ </el-descriptions>
|
|
|
|
+ </template>
|
|
|
|
|
|
<!-- 详情编辑 ============================================== -->
|
|
<!-- 详情编辑 ============================================== -->
|
|
<template v-if="storeTab1actionPage == '0'">
|
|
<template v-if="storeTab1actionPage == '0'">
|
|
<el-descriptions title="门店信息" :column="2" border>
|
|
<el-descriptions title="门店信息" :column="2" border>
|
|
- <template slot="extra" >
|
|
|
|
- <el-button type="primary" size="medium" @click="cancelForm" >取消</el-button>
|
|
|
|
- <el-button type="primary" size="medium" @click="submitForm" >保存</el-button>
|
|
|
|
- </template>
|
|
|
|
- <el-descriptions-item>
|
|
|
|
- <template slot="label"><i class="el-icon-discount"></i>门店编号</template>
|
|
|
|
- {{form.code}}</el-descriptions-item>
|
|
|
|
- <el-descriptions-item >
|
|
|
|
- <template slot="label"><i class="el-icon-office-building"></i>门店名称</template>
|
|
|
|
- {{form.name}}</el-descriptions-item>
|
|
|
|
- <el-descriptions-item >
|
|
|
|
- <template slot="label"><i class="el-icon-connection"></i>授权日期</template>
|
|
|
|
- {{form.openDateParse}}</el-descriptions-item>
|
|
|
|
- <el-descriptions-item label="门店状态" >
|
|
|
|
- <template slot="label"><i class="el-icon-s-flag"></i>门店状态</template>
|
|
|
|
- <el-tag size="small"
|
|
|
|
- v-if="form.status==item.value"
|
|
|
|
- v-for="item in options"
|
|
|
|
- :key="item.value">
|
|
|
|
- {{item.label}}</el-tag>
|
|
|
|
- </el-descriptions-item>
|
|
|
|
- <el-descriptions-item >
|
|
|
|
- <template slot="label"><i class="el-icon-position"></i>所在区域</template>
|
|
|
|
- {{form.provinceName}}{{form.cityName}}{{form.areaName}}</el-descriptions-item>
|
|
|
|
|
|
+ <template slot="extra">
|
|
|
|
+ <el-button type="primary" size="medium" @click="cancelForm">取消</el-button>
|
|
|
|
+ <el-button type="primary" size="medium" @click="submitForm">保存</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ <el-descriptions-item>
|
|
|
|
+ <template slot="label"><i class="el-icon-discount"></i>门店编号</template>
|
|
|
|
+ {{form.code}}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item>
|
|
|
|
+ <template slot="label"><i class="el-icon-office-building"></i>门店名称</template>
|
|
|
|
+ {{form.name}}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item>
|
|
|
|
+ <template slot="label"><i class="el-icon-connection"></i>授权日期</template>
|
|
|
|
+ {{form.openDateParse}}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="门店状态">
|
|
|
|
+ <template slot="label"><i class="el-icon-s-flag"></i>门店状态</template>
|
|
|
|
+ <el-tag size="small" v-if="form.status==item.value" v-for="item in options" :key="item.value">
|
|
|
|
+ {{item.label}}</el-tag>
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
+ <el-descriptions-item>
|
|
|
|
+ <template slot="label"><i class="el-icon-position"></i>所在区域</template>
|
|
|
|
+ {{form.provinceName}}{{form.cityName}}{{form.areaName}}</el-descriptions-item>
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
|
|
|
|
<!-- 可编辑部分-->
|
|
<!-- 可编辑部分-->
|
|
- <div class="action1" >
|
|
|
|
|
|
+ <div class="action1">
|
|
|
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
- <el-form-item label="详细地址" prop="address">
|
|
|
|
- <el-input v-model="form.address" placeholder="请输入详细地址" maxlength="200" show-word-limit />
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item label="详细地址" prop="address">
|
|
|
|
+ <el-input v-model="form.address" placeholder="请输入详细地址" maxlength="200" show-word-limit />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
<el-form-item label="店铺说明" prop="companyDetail">
|
|
<el-form-item label="店铺说明" prop="companyDetail">
|
|
@@ -123,18 +105,14 @@
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="服务热线" prop="contactWorkTel">
|
|
|
|
- <el-input v-model="form.contactWorkTel" placeholder="请输入服务热线" maxlength="12" show-word-limit />
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item label="服务热线" prop="contactWorkTel">
|
|
|
|
+ <el-input v-model="form.contactWorkTel" placeholder="请输入服务热线" maxlength="12" show-word-limit />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="是否打印小票" prop="isPrint">
|
|
<el-form-item label="是否打印小票" prop="isPrint">
|
|
<el-select v-model="form.isPrint" placeholder="请输入" show-word-limit>
|
|
<el-select v-model="form.isPrint" placeholder="请输入" show-word-limit>
|
|
- <el-option
|
|
|
|
- v-for="item in options"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value">
|
|
|
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -142,31 +120,21 @@
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="小票是否打印客户姓名" prop="isPrint">
|
|
<el-form-item label="小票是否打印客户姓名" prop="isPrint">
|
|
<el-select v-model="form.isPrintName" placeholder="请输入" show-word-limit>
|
|
<el-select v-model="form.isPrintName" placeholder="请输入" show-word-limit>
|
|
- <el-option
|
|
|
|
- v-for="item in options"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value">
|
|
|
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
- <el-form-item label="门店照片" prop="companyPic">
|
|
|
|
- <image-upload v-model="form.companyPic" />
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-form-item label="门店照片" prop="companyPic">
|
|
|
|
+ <image-upload v-model="form.companyPic" />
|
|
|
|
+ </el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
<el-form-item label="营业时间">
|
|
<el-form-item label="营业时间">
|
|
<template>
|
|
<template>
|
|
- <el-time-picker
|
|
|
|
- is-range
|
|
|
|
- v-model="businessTimeList"
|
|
|
|
- format="HH:mm" value-format="HH:mm"
|
|
|
|
- range-separator="至"
|
|
|
|
- start-placeholder="开始时间"
|
|
|
|
- end-placeholder="结束时间"
|
|
|
|
- placeholder="选择时间范围">
|
|
|
|
|
|
+ <el-time-picker is-range v-model="businessTimeList" format="HH:mm" value-format="HH:mm" range-separator="至"
|
|
|
|
+ start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围">
|
|
</el-time-picker>
|
|
</el-time-picker>
|
|
</template>
|
|
</template>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -174,40 +142,37 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
- </template>
|
|
|
|
|
|
+ </template>
|
|
|
|
|
|
-<!-- 账号信息 -->
|
|
|
|
- <template v-if="storeTab == '2'">
|
|
|
|
- <el-descriptions title="账号信息" :column="1" border>
|
|
|
|
- <template slot="extra" v-if="storeTab2actionPage == '1'">
|
|
|
|
- <el-button type="primary"
|
|
|
|
- size="medium"
|
|
|
|
- @click="handelActionStoreTab2"
|
|
|
|
- v-hasPermi="['system:store:edit']" >操作</el-button>
|
|
|
|
- </template>
|
|
|
|
- <template slot="extra" v-if="storeTab2actionPage == '0'">
|
|
|
|
- <el-button type="primary" size="medium" @click="cancelForm" >取消</el-button>
|
|
|
|
- <el-button type="primary" size="medium" @click="submitForm" >保存</el-button>
|
|
|
|
- </template>
|
|
|
|
- <template v-if="storeTab2actionPage == '1'">
|
|
|
|
- <el-descriptions-item label="开户行">{{form.bankName}}</el-descriptions-item>
|
|
|
|
- <el-descriptions-item label="姓名">{{form.bankUserName}}</el-descriptions-item>
|
|
|
|
- <el-descriptions-item label="银行卡号">{{form.bankCardNumber}}</el-descriptions-item>
|
|
|
|
|
|
+ <!-- 账号信息 -->
|
|
|
|
+ <template v-if="storeTab == '2'">
|
|
|
|
+ <el-descriptions title="账号信息" :column="1" border>
|
|
|
|
+ <template slot="extra" v-if="storeTab2actionPage == '1'">
|
|
|
|
+ <el-button type="primary" size="medium" @click="handelActionStoreTab2" v-hasPermi="['system:store:edit']">操作</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ <template slot="extra" v-if="storeTab2actionPage == '0'">
|
|
|
|
+ <el-button type="primary" size="medium" @click="cancelForm">取消</el-button>
|
|
|
|
+ <el-button type="primary" size="medium" @click="submitForm">保存</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-if="storeTab2actionPage == '1'">
|
|
|
|
+ <el-descriptions-item label="开户行">{{form.bankName}}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="姓名">{{form.bankUserName}}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="银行卡号">{{form.bankCardNumber}}</el-descriptions-item>
|
|
|
|
+ </template>
|
|
|
|
+ </el-descriptions>
|
|
|
|
+ <template v-if="storeTab2actionPage == '0'">
|
|
|
|
+ <el-form-item label="开户行" prop="bankName">
|
|
|
|
+ <el-input v-model="form.bankName" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="姓名" prop="bankUserName">
|
|
|
|
+ <el-input v-model="form.bankUserName" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="银行卡号" prop="bankCardNumber">
|
|
|
|
+ <el-input v-model="form.bankCardNumber" />
|
|
|
|
+ </el-form-item>
|
|
</template>
|
|
</template>
|
|
- </el-descriptions>
|
|
|
|
- <template v-if="storeTab2actionPage == '0'">
|
|
|
|
- <el-form-item label="开户行" prop="bankName">
|
|
|
|
- <el-input v-model="form.bankName" />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="姓名" prop="bankUserName">
|
|
|
|
- <el-input v-model="form.bankUserName" />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="银行卡号" prop="bankCardNumber">
|
|
|
|
- <el-input v-model="form.bankCardNumber" />
|
|
|
|
- </el-form-item>
|
|
|
|
</template>
|
|
</template>
|
|
- </template>
|
|
|
|
- </el-form>
|
|
|
|
|
|
+ </el-form>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -220,13 +185,13 @@ import {
|
|
import { formatDate } from '@/utils'
|
|
import { formatDate } from '@/utils'
|
|
export default {
|
|
export default {
|
|
name: "storeBase",
|
|
name: "storeBase",
|
|
- dicts: ['goods_type','sys_normal_disable'],
|
|
|
|
|
|
+ dicts: ['goods_type', 'sys_normal_disable'],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- storeTab:'1',
|
|
|
|
- storeTab1actionPage:'1',
|
|
|
|
- storeTab2actionPage:'1',
|
|
|
|
- businessTimeList:[],
|
|
|
|
|
|
+ storeTab: '1',
|
|
|
|
+ storeTab1actionPage: '1',
|
|
|
|
+ storeTab2actionPage: '1',
|
|
|
|
+ businessTimeList: [],
|
|
// 遮罩层
|
|
// 遮罩层
|
|
loading: true,
|
|
loading: true,
|
|
// 选中数组
|
|
// 选中数组
|
|
@@ -268,13 +233,13 @@ export default {
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- handelActionStoreTab1(){
|
|
|
|
|
|
+ handelActionStoreTab1() {
|
|
this.storeTab1actionPage = '0'
|
|
this.storeTab1actionPage = '0'
|
|
},
|
|
},
|
|
- handelActionStoreTab2(){
|
|
|
|
|
|
+ handelActionStoreTab2() {
|
|
this.storeTab2actionPage = '0'
|
|
this.storeTab2actionPage = '0'
|
|
},
|
|
},
|
|
- onChangeStoreTab(){
|
|
|
|
|
|
+ onChangeStoreTab() {
|
|
this.handleQuery()
|
|
this.handleQuery()
|
|
},
|
|
},
|
|
/** 搜索按钮操作 */
|
|
/** 搜索按钮操作 */
|
|
@@ -290,7 +255,7 @@ export default {
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
this.businessTimeList.push(response.data.businessStartTime != null && response.data.businessStartTime != '' ? response.data.businessStartTime : '');
|
|
this.businessTimeList.push(response.data.businessStartTime != null && response.data.businessStartTime != '' ? response.data.businessStartTime : '');
|
|
this.businessTimeList.push(response.data.businessEndTime != null && response.data.businessEndTime != '' ? response.data.businessEndTime : '');
|
|
this.businessTimeList.push(response.data.businessEndTime != null && response.data.businessEndTime != '' ? response.data.businessEndTime : '');
|
|
- if (this.form.openDate != null ){
|
|
|
|
|
|
+ if (this.form.openDate != null) {
|
|
this.form.openDateParse = new Date(this.form.openDate).toLocaleDateString();
|
|
this.form.openDateParse = new Date(this.form.openDate).toLocaleDateString();
|
|
}
|
|
}
|
|
this.storeTab1actionPage = '1';
|
|
this.storeTab1actionPage = '1';
|
|
@@ -318,15 +283,15 @@ export default {
|
|
};
|
|
};
|
|
this.resetForm("form");
|
|
this.resetForm("form");
|
|
},
|
|
},
|
|
- cancelForm(){
|
|
|
|
|
|
+ cancelForm() {
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
submitForm() {
|
|
submitForm() {
|
|
- if (this.form.id != null) {
|
|
|
|
- updateStore(this.form).then(response => {
|
|
|
|
- this.$modal.msgSuccess("修改成功");
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ if (this.form.id != null) {
|
|
|
|
+ updateStore(this.form).then(response => {
|
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
|
+ this.getList();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -334,7 +299,7 @@ export default {
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style>
|
|
<style>
|
|
-.action1{
|
|
|
|
- margin-top: 20px;
|
|
|
|
|
|
+.action1 {
|
|
|
|
+ margin-top: 20px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|