| | |
| | | |
| | | |
| | | </Table> |
| | | </Modal>05 |
| | | </Modal> |
| | | <Modal :title="modalTitle3" v-model="customerVisible" :mask-closable="false" :width="1050"> |
| | | <Row class="operation" style="padding-bottom: 20px"> |
| | | <Button @click="addCustomer" type="primary" icon="md-add">添加</Button> |
| | |
| | | <FormItem label="商户编号" prop="code"> |
| | | <Input v-model="customerForm.code" /> |
| | | </FormItem> |
| | | <FormItem label="联系方式" prop="phone"> |
| | | <Input v-model="customerForm.phone" /> |
| | | </FormItem> |
| | | <FormItem label="经度" prop="lng"> |
| | | <Input v-model="customerForm.lng" /> |
| | | </FormItem> |
| | | <FormItem label="纬度" prop="lat"> |
| | | <Input v-model="customerForm.lat" /> |
| | | </FormItem> |
| | | <Form-item label="上次配送日期" prop="lastTime"> |
| | | <Row> |
| | | <Col> |
| | | <Date-picker @on-change="change1" type="date" value="yyyy-MM-dd" placeholder="选择日期" v-model="customerForm.lastTime"></Date-picker> |
| | | </Col> |
| | | </Row> |
| | | </Form-item> |
| | | |
| | | <Row :gutter="0"> |
| | | <Col span="12"> |
| | | <FormItem label="经度" prop="lng"> |
| | | <Input v-model="customerForm.lng" /> |
| | | </FormItem> |
| | | </Col> |
| | | <Col span="12"> |
| | | <FormItem label="纬度" prop="lat"> |
| | | <Input v-model="customerForm.lat" /> |
| | | </FormItem> |
| | | </Col> |
| | | </Row> |
| | | <Row :gutter="0"> |
| | | <Col span="12"> |
| | | <Form-item label="上次配送日期" prop="lastTime"> |
| | | <Row> |
| | | <Col> |
| | | <Date-picker @on-change="change1" type="date" value="yyyy-MM-dd" placeholder="选择日期" v-model="customerForm.lastTime"></Date-picker> |
| | | </Col> |
| | | </Row> |
| | | </Form-item> |
| | | </Col> |
| | | <Col span="12"> |
| | | <FormItem label="联系方式" prop="phone"> |
| | | <Input v-model="customerForm.phone" type="number"/> |
| | | </FormItem> |
| | | </Col> |
| | | </Row> |
| | | |
| | | <FormItem label="商户注册地址" prop="registeredAddress"> |
| | | <Input v-model="customerForm.registeredAddress" /> |
| | | </FormItem> |
| | |
| | | deleteAreaSection, |
| | | addCustomer, |
| | | deleteCustomer, |
| | | |
| | | } from "@/api/open"; |
| | | import util from "@/libs/util.js"; |
| | | export default { |
| | |
| | | areaForm: { |
| | | }, |
| | | customerForm: { |
| | | |
| | | kstatus : 1 |
| | | }, |
| | | areaSectionForm: { |
| | | }, |
| | |
| | | this.$refs.areaSectionForm.validate((valid) => { |
| | | this.customerForm.lastTime = this.lastTime; |
| | | this.customerForm.areaSectionId = this.areaSectionId; |
| | | this.customerForm.areaId = this.areaId; |
| | | this.customerForm.kstatus = 1; |
| | | if (valid) { |
| | | if (this.modalType == 0) { |
| | | // 添加 |