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 @@ + + + + + + + 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 @@ >新增 - - - - - - - + + + + + +
+ +
@@ -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 {