From 1882771daa1e953ab0e2959625dd2a8b5efbc973 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Fri, 26 Nov 2021 17:35:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=9A=E7=BE=A4=E5=9F=BA=E6=9C=AC=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityService/dqfwzx/cpts/edit.vue | 158 +++++++- .../communityService/dqfwzx/cpts/order.vue | 341 ++++++++++++++++++ .../dqfwzx/cpts/orderList.vue | 206 +++++++++++ .../modules/communityService/dqfwzx/index.vue | 265 +++++++++++--- .../modules/communityService/shzz/index.vue | 1 - .../communityService/sqzzz/cpts/edit.vue | 6 +- .../modules/communityService/sqzzz/index.vue | 1 - 7 files changed, 907 insertions(+), 71 deletions(-) create mode 100644 src/views/modules/communityService/dqfwzx/cpts/order.vue create mode 100644 src/views/modules/communityService/dqfwzx/cpts/orderList.vue diff --git a/src/views/modules/communityService/dqfwzx/cpts/edit.vue b/src/views/modules/communityService/dqfwzx/cpts/edit.vue index df346a61..74772f22 100644 --- a/src/views/modules/communityService/dqfwzx/cpts/edit.vue +++ b/src/views/modules/communityService/dqfwzx/cpts/edit.vue @@ -57,6 +57,67 @@ + + + 上午 + + + 至 + + + + + + 下午 + + + 至 + + + + + - + v-model="item.appointmentType" + filterable + placeholder="预约类型" + :disabled="item.matterId != undefined" + > + + + + + + + 至 + + { @@ -361,7 +482,10 @@ export default { this.dataForm.partyServiceCenterId = this.partyServiceCenterId; } - const { data, code, msg } = await requestPost(url, this.dataForm); + const { data, code, msg } = await requestPost(url, { + ...this.dataForm, + matterList: this.dataForm.matterList.filter((item) => !item.matterId), + }); if (code === 0) { this.$message({ @@ -394,6 +518,8 @@ export default { longitude: "", latitude: "", matterList: [], + delMatterList: [], + locationAddress: "", }; }, // 开启加载动画 @@ -450,7 +576,9 @@ export default { } .m-staffs { - width: 468px; + margin-left: auto; + width: 650px; + .item { display: flex; justify-content: space-around; diff --git a/src/views/modules/communityService/dqfwzx/cpts/order.vue b/src/views/modules/communityService/dqfwzx/cpts/order.vue new file mode 100644 index 00000000..ec777b77 --- /dev/null +++ b/src/views/modules/communityService/dqfwzx/cpts/order.vue @@ -0,0 +1,341 @@ + + + + + + + + + + + + + + + + + {{ item.time }} + + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + + + + + + + + diff --git a/src/views/modules/communityService/dqfwzx/cpts/orderList.vue b/src/views/modules/communityService/dqfwzx/cpts/orderList.vue new file mode 100644 index 00000000..4f812c75 --- /dev/null +++ b/src/views/modules/communityService/dqfwzx/cpts/orderList.vue @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + 取消 + + + + + + + + + + + + + + + diff --git a/src/views/modules/communityService/dqfwzx/index.vue b/src/views/modules/communityService/dqfwzx/index.vue index 2afa5533..36e5a473 100644 --- a/src/views/modules/communityService/dqfwzx/index.vue +++ b/src/views/modules/communityService/dqfwzx/index.vue @@ -6,48 +6,89 @@ >新增 - - - - - - 查看 - 编辑 0"> + + + + {{ item.centerName }} + + 社区地址: + {{ item.address }} + + + 办公电话: + {{ item.workPhone }} + + + 办公时间: + + 上午 {{ item.amStartTime }} - {{ item.amEndTime }} + 下午 {{ item.pmStartTime }} - {{ item.pmEndTime }} + + + + + - + + 修改 + + + + + + + + - 删除 - - - - + + 预约 + + 预约记录 + + + + + + + + @@ -66,6 +107,39 @@ @dialogOk="handleEditSuccess" > + + + + + + + + + + @@ -74,20 +148,25 @@ import { requestPost } from "@/js/dai/request"; import nextTick from "dai-js/tools/nextTick"; import { mapGetters } from "vuex"; import editForm from "./cpts/edit"; +import orderForm from "./cpts/order"; +import orderList from "./cpts/orderList"; export default { - components: { editForm }, + components: { editForm, orderForm, orderList }, data() { return { openSearch: false, formShow: false, formTitle: "", - formShow: false, + form2Show: false, + orderListShow: false, agencyId: "", tableData: [], + + currentIndex: 0, }; }, computed: { @@ -105,6 +184,12 @@ export default { handleClose() { this.formShow = false; }, + handleCloseForm2() { + this.form2Show = false; + }, + handleCloseOrderList() { + this.orderListShow = false; + }, async handleAdd() { this.formShow = true; @@ -113,16 +198,22 @@ export default { this.$refs.eleEditForm.initForm("add"); }, - async handleWatch(rowIndex) { + async handleWatch() { this.formShow = true; await nextTick(); - this.$refs.eleEditForm.initForm("detail", this.tableData[rowIndex]); + this.$refs.eleEditForm.initForm( + "detail", + this.tableData[this.currentIndex] + ); }, - async handleEdit(rowIndex) { + async handleEdit() { this.formShow = true; await nextTick(); - this.$refs.eleEditForm.initForm("edit", this.tableData[rowIndex]); + this.$refs.eleEditForm.initForm( + "edit", + this.tableData[this.currentIndex] + ); }, handleEditSuccess() { @@ -130,6 +221,27 @@ export default { this.getTableData(); }, + async handleOrder(index) { + this.form2Show = true; + await nextTick(); + this.$refs.eleOrderForm.initForm( + "add", + this.tableData[this.currentIndex], + index + ); + }, + + handleOrderSuccess() { + this.handleCloseForm2(); + }, + + async handleOrderList(index) { + this.orderListShow = true; + await nextTick(0); + console.log(this.$refs); + this.$refs.eleOrderList.init(this.tableData[this.currentIndex], index); + }, + async handleDel(rowData, rowIndex) { console.log(rowData, rowIndex); const url = @@ -156,12 +268,8 @@ export default { }); if (code === 0) { console.log("列表请求成功!!!!!!!!!!!!!!"); - this.total = data.total || 0; - this.tableData = data.list - ? data.list.map((item) => { - return item; - }) - : []; + + this.tableData = data; } else { } }, @@ -184,6 +292,63 @@ export default {
上午 {{ item.amStartTime }} - {{ item.amEndTime }}
下午 {{ item.pmStartTime }} - {{ item.pmEndTime }}