顾客地址

zhc4dev
wangjiadong 2 years ago
parent 86108c4812
commit f08f7c430d
  1. 13
      ant-design-vue-jeecg/src/views/customerreceivingaddress/admin/CustomerReceivingAddressList.vue
  2. 17
      ant-design-vue-jeecg/src/views/customerreceivingaddress/admin/modules/CustomerReceivingAddressForm.vue

@ -101,19 +101,20 @@
<a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />
<a-dropdown>
<!-- <a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
<a-menu slot="overlay">
<a-menu-item>
<a-menu-item>-->
<a @click="handleDetail(record)">详情</a>
</a-menu-item>
<a-menu-item>
<a-divider type="vertical" />
<!-- </a-menu-item>
<a-menu-item>-->
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
</a-menu-item>
<!-- </a-menu-item>
</a-menu>
</a-dropdown>
</a-dropdown>-->
</span>
</a-table>

@ -28,7 +28,7 @@
<a-row>
<a-col :span="24">
<a-form-model-item label="地址" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="address">
<a-textarea style="max-width:none; width: 200%" v-model="model.address" rows="4" placeholder="请输入地址" />
<a-textarea style="max-width:none; width: 200% ;height: 55px" v-model="model.address" rows="4" placeholder="请输入地址" />
</a-form-model-item>
</a-col>
</a-row>
@ -76,6 +76,7 @@
import { httpAction, getAction } from '@/api/manage'
import { validateDuplicateValue } from '@/utils/util'
import store from '@/store'
export default {
name: 'CustomerReceivingAddressForm',
@ -92,6 +93,8 @@
data () {
return {
model:{
mobile : store.getters.userInfo.phone,
receiver : store.getters.userInfo.realname
},
labelCol: {
xs: { span: 24 },
@ -107,10 +110,21 @@
{ required: true, message: '请输入邮编!'},
{ pattern: /^[1-9]\d{5}$/, message: '请输入正确的邮政编码!'},
],
receiver: [
{ required: true, message: '请输入收货人!'},
],
mobile: [
{ required: true, message: '请输入联系电话!'},
{ pattern: /^1[3456789]\d{9}$/, message: '请输入正确的手机号码!'},
],
sort: [
{ required: false},
{ validator: (rule, value, callback) => validateDuplicateValue('customer_receiving_address', 'sort', value, this.model.id, callback)},
],
labelcl: [
{ required: false},
{ validator: (rule, value, callback) => validateDuplicateValue('customer_receiving_address', 'labelcl', value, this.model.id, callback)},
],
},
url: {
add: "/customerreceivingaddress/customerReceivingAddress/add",
@ -125,6 +139,7 @@
},
},
created () {
console.log(store.getters.userInfo)
//model
this.modelDefault = JSON.parse(JSON.stringify(this.model));
},

Loading…
Cancel
Save