Merge branch 'master' of https://gitee.com/beijing_hongye_huicheng/lilishop-ui
commit
71d8fbd5fe
|
@ -390,7 +390,8 @@ export default {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
img{width: 100%;}
|
overflow: hidden;
|
||||||
|
img{width: 100%;height: 100%;}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.preview-img{
|
.preview-img{
|
||||||
|
|
|
@ -129,7 +129,7 @@ export default {
|
||||||
{ required: true, message: '请输入银行卡号' },
|
{ required: true, message: '请输入银行卡号' },
|
||||||
{
|
{
|
||||||
type: 'string',
|
type: 'string',
|
||||||
pattern: /^([1-9]{1})(\d{14}|\d{18})$/,
|
pattern: /^[0-9]\d*$/,
|
||||||
message: '请输入正确的银行卡号'
|
message: '请输入正确的银行卡号'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -9,17 +9,17 @@
|
||||||
placeholder="请填写公司信息"
|
placeholder="请填写公司信息"
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem prop="storeAddressIdPath" label="公司所在地">
|
<FormItem prop="companyAddressIdPath" label="公司所在地">
|
||||||
<region
|
<region
|
||||||
style="width: 250px"
|
style="width: 250px"
|
||||||
@selected="selectedRegion"
|
@selected="selectedRegion"
|
||||||
:addressId="address"
|
:addressId="address"
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem prop="storeAddressDetail" label="公司详细地址">
|
<FormItem prop="companyAddress" label="公司详细地址">
|
||||||
<Input
|
<Input
|
||||||
type="text"
|
type="text"
|
||||||
v-model="form.storeAddressDetail"
|
v-model="form.companyAddress"
|
||||||
placeholder="请填写公司详细信息"
|
placeholder="请填写公司详细信息"
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
><span slot="append">人</span>
|
><span slot="append">人</span>
|
||||||
</Input>
|
</Input>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem prop="linkPhone" label="公司电话">
|
<FormItem prop="companyPhone" label="公司电话">
|
||||||
<Input
|
<Input
|
||||||
type="text"
|
type="text"
|
||||||
v-model="form.companyPhone"
|
v-model="form.companyPhone"
|
||||||
|
@ -217,8 +217,8 @@ export default {
|
||||||
},
|
},
|
||||||
rules: { // 验证规则
|
rules: { // 验证规则
|
||||||
companyName: [{ required: true, message: '请填写公司信息' }],
|
companyName: [{ required: true, message: '请填写公司信息' }],
|
||||||
storeAddressIdPath: [{ required: true, message: '请选择公司所在地' }],
|
companyAddressIdPath: [{ required: true, message: '请选择公司所在地' }],
|
||||||
storeAddressDetail: [{ required: true, message: '请填写公司详细地址' }],
|
companyAddress: [{ required: true, message: '请填写公司详细地址' }],
|
||||||
employeeNum: [
|
employeeNum: [
|
||||||
{ required: true, message: '请填写公司员工总数' },
|
{ required: true, message: '请填写公司员工总数' },
|
||||||
{ pattern: RegExp.integer, message: '只能填写正整数' }
|
{ pattern: RegExp.integer, message: '只能填写正整数' }
|
||||||
|
@ -229,9 +229,13 @@ export default {
|
||||||
],
|
],
|
||||||
linkName: [{ required: true, message: '请填写联系人姓名' }],
|
linkName: [{ required: true, message: '请填写联系人姓名' }],
|
||||||
linkPhone: [
|
linkPhone: [
|
||||||
{ required: true, message: '请填写公司电话' },
|
{ required: true, message: '请填写联系人电话' },
|
||||||
{ pattern: RegExp.mobile, message: '请填写正确的号码' }
|
{ pattern: RegExp.mobile, message: '请填写正确的号码' }
|
||||||
],
|
],
|
||||||
|
companyPhone: [
|
||||||
|
{ required: true, message: '请填写公司电话' },
|
||||||
|
{ pattern: RegExp.TEL, message: '请填写正确的号码' }
|
||||||
|
],
|
||||||
companyEmail: [
|
companyEmail: [
|
||||||
{ required: true, message: '请填写电子邮箱' },
|
{ required: true, message: '请填写电子邮箱' },
|
||||||
{ type: 'email', message: '请输入正确的邮箱' }
|
{ type: 'email', message: '请输入正确的邮箱' }
|
||||||
|
@ -277,10 +281,10 @@ export default {
|
||||||
},
|
},
|
||||||
// 地址选择回显
|
// 地址选择回显
|
||||||
selectedRegion (item) {
|
selectedRegion (item) {
|
||||||
this.$set(this.form, 'storeAddressIdPath', item[0].toString());
|
this.$set(this.form, 'companyAddressIdPath', item[0].toString());
|
||||||
this.$set(
|
this.$set(
|
||||||
this.form,
|
this.form,
|
||||||
'storeAddressPath',
|
'companyAddressPath',
|
||||||
item[1].toString().replace(/\s/g, '')
|
item[1].toString().replace(/\s/g, '')
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
@ -352,7 +356,7 @@ export default {
|
||||||
if (this.form.licencePhoto) {
|
if (this.form.licencePhoto) {
|
||||||
this.form.legalPhoto = this.content.legalPhoto.split(',');
|
this.form.legalPhoto = this.content.legalPhoto.split(',');
|
||||||
this.form.licencePhoto = this.content.licencePhoto.split(',');
|
this.form.licencePhoto = this.content.licencePhoto.split(',');
|
||||||
this.address = this.form.storeAddressIdPath;
|
this.address = this.form.companyAddressIdPath;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,12 +77,13 @@ export default {
|
||||||
this.dataReview = false;
|
this.dataReview = false;
|
||||||
let data = res.result;
|
let data = res.result;
|
||||||
let first = [
|
let first = [
|
||||||
'storeAddressIdPath',
|
'companyAddressPath',
|
||||||
'storeAddressPath',
|
'companyAddress',
|
||||||
'storeAddressDetail',
|
'companyAddressIdPath',
|
||||||
'companyEmail',
|
'companyEmail',
|
||||||
'companyName',
|
'companyName',
|
||||||
'employeeNum',
|
'employeeNum',
|
||||||
|
'companyPhone',
|
||||||
'legalId',
|
'legalId',
|
||||||
'legalName',
|
'legalName',
|
||||||
'licencePhoto',
|
'licencePhoto',
|
||||||
|
@ -104,7 +105,10 @@ export default {
|
||||||
'storeCenter',
|
'storeCenter',
|
||||||
'storeDesc',
|
'storeDesc',
|
||||||
'storeLogo',
|
'storeLogo',
|
||||||
'storeName'
|
'storeName',
|
||||||
|
'storeAddressIdPath',
|
||||||
|
'storeAddressPath',
|
||||||
|
'storeAddressDetail'
|
||||||
];
|
];
|
||||||
|
|
||||||
this.storeDisable = data.storeDisable;
|
this.storeDisable = data.storeDisable;
|
||||||
|
|
|
@ -72,6 +72,20 @@
|
||||||
@click="$refs.liliMap.showMap = true"
|
@click="$refs.liliMap.showMap = true"
|
||||||
>已定位</Button>
|
>已定位</Button>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
<FormItem prop="storeAddressIdPath" label="店铺所在地">
|
||||||
|
<region
|
||||||
|
style="width: 250px"
|
||||||
|
@selected="selectedRegion"
|
||||||
|
:addressId="address"
|
||||||
|
/>
|
||||||
|
</FormItem>
|
||||||
|
<FormItem prop="storeAddressDetail" label="店铺详细地址">
|
||||||
|
<Input
|
||||||
|
type="text"
|
||||||
|
v-model="form.storeAddressDetail"
|
||||||
|
placeholder="请填写店铺详细地址"
|
||||||
|
/>
|
||||||
|
</FormItem>
|
||||||
<FormItem prop="storeDesc" label="店铺简介">
|
<FormItem prop="storeDesc" label="店铺简介">
|
||||||
<Input
|
<Input
|
||||||
type="textarea"
|
type="textarea"
|
||||||
|
@ -102,6 +116,7 @@ import { getCategory } from '@/api/goods';
|
||||||
import Map from '@/components/map/index';
|
import Map from '@/components/map/index';
|
||||||
import storage from '@/plugins/storage';
|
import storage from '@/plugins/storage';
|
||||||
import { commonUrl } from '@/plugins/request.js';
|
import { commonUrl } from '@/plugins/request.js';
|
||||||
|
import region from '@/components/map/region.vue';
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
content: {
|
content: {
|
||||||
|
@ -109,7 +124,7 @@ export default {
|
||||||
type: Object
|
type: Object
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: { liliMap: Map },
|
components: { liliMap: Map, region },
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false, // 加载状态
|
loading: false, // 加载状态
|
||||||
|
@ -117,6 +132,7 @@ export default {
|
||||||
action: commonUrl + '/common/upload/file', // 上传地址
|
action: commonUrl + '/common/upload/file', // 上传地址
|
||||||
accessToken: {}, // 验证token
|
accessToken: {}, // 验证token
|
||||||
previewPicture: '', // 预览图片
|
previewPicture: '', // 预览图片
|
||||||
|
address: '', // 回显地址
|
||||||
visible: false, // 图片预览
|
visible: false, // 图片预览
|
||||||
form: { // 表单数据
|
form: { // 表单数据
|
||||||
storeLogo: []
|
storeLogo: []
|
||||||
|
@ -128,7 +144,9 @@ export default {
|
||||||
storeName: [{ required: true, message: '请填写店铺名称' }],
|
storeName: [{ required: true, message: '请填写店铺名称' }],
|
||||||
storeLogo: [{ required: true, message: '请上传店铺logo' }],
|
storeLogo: [{ required: true, message: '请上传店铺logo' }],
|
||||||
storeDesc: [{ required: true, message: '请填写店铺简介' }],
|
storeDesc: [{ required: true, message: '请填写店铺简介' }],
|
||||||
storeCenter: [{ required: true, message: '请选择店铺位置' }]
|
storeCenter: [{ required: true, message: '请选择店铺位置' }],
|
||||||
|
storeAddressIdPath: [{ required: true, message: '请选择店铺位置' }],
|
||||||
|
storeAddressDetail: [{ required: true, message: '请输入店铺详细地址' }]
|
||||||
},
|
},
|
||||||
categoryList: [] // 分类数据
|
categoryList: [] // 分类数据
|
||||||
};
|
};
|
||||||
|
@ -211,6 +229,15 @@ export default {
|
||||||
getCategory(0).then((res) => {
|
getCategory(0).then((res) => {
|
||||||
if (res.success) this.categoryList = res.result;
|
if (res.success) this.categoryList = res.result;
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
// 地址选择回显
|
||||||
|
selectedRegion (item) {
|
||||||
|
this.$set(this.form, 'storeAddressIdPath', item[0].toString());
|
||||||
|
this.$set(
|
||||||
|
this.form,
|
||||||
|
'storeAddressPath',
|
||||||
|
item[1].toString().replace(/\s/g, '')
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
@ -226,6 +253,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.form.storeLogo = [];
|
this.form.storeLogo = [];
|
||||||
}
|
}
|
||||||
|
this.address = this.form.storeAddressIdPath;
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,6 +170,10 @@
|
||||||
<span class="label">运费:</span>
|
<span class="label">运费:</span>
|
||||||
<span class="txt">{{ orderInfo.order.freightPrice | unitPrice('¥')}}</span>
|
<span class="txt">{{ orderInfo.order.freightPrice | unitPrice('¥')}}</span>
|
||||||
</li>
|
</li>
|
||||||
|
<li v-if="orderInfo.order.priceDetailDTO.updatePrice">
|
||||||
|
<span class="label">修改金额:</span>
|
||||||
|
<span class="txt theme_color">¥{{ orderInfo.order.priceDetailDTO.updatePrice | unitPrice }}</span>
|
||||||
|
</li>
|
||||||
<li v-if="orderInfo.order.priceDetailDTO.payPoint != 0">
|
<li v-if="orderInfo.order.priceDetailDTO.payPoint != 0">
|
||||||
<span class="label">使用积分:</span>
|
<span class="label">使用积分:</span>
|
||||||
<span class="txt flowPrice">{{orderInfo.order.priceDetailDTO.payPoint}}</span>
|
<span class="txt flowPrice">{{orderInfo.order.priceDetailDTO.payPoint}}</span>
|
||||||
|
|
|
@ -29,10 +29,10 @@
|
||||||
<Option value="REFUSED">审核拒绝</Option>
|
<Option value="REFUSED">审核拒绝</Option>
|
||||||
</Select>
|
</Select>
|
||||||
</Form-item>
|
</Form-item>
|
||||||
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
|
||||||
<Form-item label="创建时间" prop="createTime">
|
<Form-item label="创建时间" prop="createTime">
|
||||||
<DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd HH:mm:ss" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
<DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd HH:mm:ss" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
|
||||||
</Form-item>
|
</Form-item>
|
||||||
|
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
|
||||||
</Form>
|
</Form>
|
||||||
<Row class="operation padding-row">
|
<Row class="operation padding-row">
|
||||||
<Button @click="add" type="primary">添加</Button>
|
<Button @click="add" type="primary">添加</Button>
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
$theme_color: #804ed1;
|
|
||||||
|
|
||||||
|
|
||||||
//自动移滚动条样式
|
//自动移滚动条样式
|
||||||
|
|
|
@ -233,6 +233,10 @@
|
||||||
orderInfo.order.freightPrice | unitPrice("¥")
|
orderInfo.order.freightPrice | unitPrice("¥")
|
||||||
}}</span>
|
}}</span>
|
||||||
</li>
|
</li>
|
||||||
|
<li v-if="orderInfo.order.priceDetailDTO.updatePrice">
|
||||||
|
<span class="label">修改金额:</span>
|
||||||
|
<span class="txt theme_color">¥{{ orderInfo.order.priceDetailDTO.updatePrice | unitPrice }}</span>
|
||||||
|
</li>
|
||||||
<li v-if="orderInfo.order.priceDetailDTO.payPoint != 0">
|
<li v-if="orderInfo.order.priceDetailDTO.payPoint != 0">
|
||||||
<span class="label">使用积分:</span>
|
<span class="label">使用积分:</span>
|
||||||
<span class="txt">{{
|
<span class="txt">{{
|
||||||
|
@ -987,4 +991,7 @@ dl dt {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.theme_color{
|
||||||
|
color: $theme_color;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue