From 818d4458d77505b25ea057b49b409b1868ea8cff Mon Sep 17 00:00:00 2001
From: wang-hao-jie <1550036656@qq.com>
Date: 星期一, 06 六月 2022 15:34:11 +0800
Subject: [PATCH] 默认更改列表
---
src/views/your/area-manage/areaManage.vue | 117 +++++++++++++++++++++++++++++++++-------------------------
1 files changed, 67 insertions(+), 50 deletions(-)
diff --git a/src/views/your/area-manage/areaManage.vue b/src/views/your/area-manage/areaManage.vue
index 3eb330d..8d7e2b2 100644
--- a/src/views/your/area-manage/areaManage.vue
+++ b/src/views/your/area-manage/areaManage.vue
@@ -66,10 +66,16 @@
<FormItem label="鐗囧尯鎻忚堪" prop="description">
<Input v-model="areaForm.description" />
</FormItem>
- <FormItem label="閰嶉�佸憳" prop="userId">
- <Select v-model="areaForm.userId" filterable>
- <Option :value="0" :key="0" selected>璇烽�夋嫨</Option>
- <Option v-for="item in userList" :value="item.id">{{ item.nickname }}</Option>
+ <!--<FormItem label="閰嶉�佸憳" prop="userId">-->
+ <!--<Select v-model="areaForm.userId" filterable>-->
+ <!--<Option :value="0" :key="0" selected>璇烽�夋嫨</Option>-->
+ <!--<Option v-for="item in userList" :value="item.id">{{ item.nickname }}</Option>-->
+ <!--</Select>-->
+ <!--</FormItem>-->
+ <FormItem label="閰嶉�佽溅杈�" prop="carId">
+ <Select v-model="areaForm.carId" filterable>
+ <Option value="" key="" selected>璇烽�夋嫨</Option>
+ <Option v-for="item in carList" :value="item.id">{{ item.carNo }}</Option>
</Select>
</FormItem>
</Form>
@@ -130,9 +136,9 @@
<FormItem label="鍟嗘埛鍚嶇О" prop="name">
<Input v-model="customerForm.name" />
</FormItem>
- <FormItem label="鍟嗘埛缂栧彿" prop="code">
- <Input v-model="customerForm.code" />
- </FormItem>
+ <!--<FormItem label="鍟嗘埛缂栧彿" prop="code">-->
+ <!--<Input v-model="customerForm.code" />-->
+ <!--</FormItem>-->
<Row :gutter="0">
<Col span="12">
@@ -147,15 +153,15 @@
</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">-->
+ <!--<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"/>
@@ -316,6 +322,7 @@
modalTitle: "",
modalTitle2: "",
modalTitle3: "",
+ carList:[],
searchForm: {
// 鎼滅储妗嗗垵濮嬪寲瀵硅薄
pageNumber: 1, // 褰撳墠椤垫暟
@@ -327,7 +334,6 @@
areaForm: {
},
customerForm: {
- kstatus : 1
},
areaSectionForm: {
},
@@ -366,8 +372,8 @@
}
},
{
- title: "閰嶉�佷汉",
- key: "nickName",
+ title: "閰嶉�佽溅杈�",
+ key: "carNo",
width: 200,
},
{
@@ -519,33 +525,33 @@
key: "phone",
width: 135,
},
- {
- title: "鐘舵��",
- key: "status",
- width:100,
- render: (h, params) => {
- let re = "";
- if (params.row.status == 0) {
- return h("div", [
- h("Badge", {
- props: {
- status: "success",
- text: "姝e父",
- },
- }),
- ]);
- } else if (params.row.status == 1) {
- return h("div", [
- h("Badge", {
- props: {
- status: "error",
- text: "涓嶆椿璺�",
- },
- }),
- ]);
- }
- },
- },
+ // {
+ // title: "鐘舵��",
+ // key: "status",
+ // width:100,
+ // render: (h, params) => {
+ // let re = "";
+ // if (params.row.status == 0) {
+ // return h("div", [
+ // h("Badge", {
+ // props: {
+ // status: "success",
+ // text: "姝e父",
+ // },
+ // }),
+ // ]);
+ // } else if (params.row.status == 1) {
+ // return h("div", [
+ // h("Badge", {
+ // props: {
+ // status: "error",
+ // text: "涓嶆椿璺�",
+ // },
+ // }),
+ // ]);
+ // }
+ // },
+ // },
{
title: "鑱旂郴浜�",
key: "linker",
@@ -713,6 +719,13 @@
}
});
},
+ getAllCar(){
+ getAll().then((res)=>{
+ if (res.success){
+ this.carList=res.result;
+ }
+ });
+ },
getAreaSectionList(areaId) {
this.loading = true;
this.searchForm.areaId=areaId;
@@ -800,14 +813,16 @@
},
submitCustomer() {
this.$refs.areaSectionForm.validate((valid) => {
- this.customerForm.lastTime = this.lastTime;
+ //this.customerForm.lastTime = this.lastTime;
this.customerForm.areaSectionId = this.areaSectionId;
this.customerForm.areaId = this.areaId;
- this.customerForm.kstatus = 1;
+
if (valid) {
+ this.$delete(this.customerForm,'receives')
if (this.modalType == 0) {
// 娣诲姞
this.submitLoading = true;
+ this.customerForm.kstatus = 0;
addCustomer(this.customerForm).then((res) => {
this.submitLoading = false;
if (res.success) {
@@ -896,7 +911,8 @@
console.log(this.areaSectionId);
},
addCar() {
- this.getAllUser();
+ //this.getAllUser();
+ this.getAllCar();
this.modalType = 0;
this.modalTitle = "娣诲姞";
this.$refs.areaForm.resetFields();
@@ -920,7 +936,8 @@
this.addCustomerVisible = true;
},
edit(v) {
- this.getAllUser();
+ //this.getAllUser();
+ this.getAllCar()
this.modalType = 1;
this.modalTitle = "缂栬緫";
this.$refs.areaForm.resetFields();
--
Gitblit v1.9.1