From 54701e66c5fda30070829c056a90aa26ae208dee Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 24 May 2022 18:07:33 +0800 Subject: [PATCH] 111 --- .../modules/communityService/measure/info.vue | 565 ++++++++---------- 1 file changed, 257 insertions(+), 308 deletions(-) diff --git a/src/views/modules/communityService/measure/info.vue b/src/views/modules/communityService/measure/info.vue index de7a2ca5..74193bd2 100644 --- a/src/views/modules/communityService/measure/info.vue +++ b/src/views/modules/communityService/measure/info.vue @@ -1,42 +1,31 @@ @@ -360,7 +307,7 @@ export default { }, }, - data() { + data () { return { btnLoading: false, pageLoading: false, @@ -432,18 +379,18 @@ export default { computed: { ...mapGetters(["clientHeight", "iframeHeight"]), - disabled() { + disabled () { return this.addType != "edit"; }, }, watch: { - addType(val) { + addType (val) { this.formatRowForm(val); }, }, - async created() { + async created () { this.customerId = localStorage.getItem("customerId"); this.getInfo(); @@ -452,11 +399,11 @@ export default { }, methods: { - filterEdit(id) { + filterEdit (id) { const { user } = this.$store.state; return id === user.agencyId; }, - handleCateSlect(val) { + handleCateSlect (val) { console.log("val", val); if (val.length === 1) { this.demandOptions.forEach((item) => { @@ -468,31 +415,31 @@ export default { this.form.categoryCode = val[1]; } }, - handleDemandChange(val) { + handleDemandChange (val) { console.log("val", val, this.selectDemandUser); this.selectDemandUser = val.label; this.form.demandUserName = val.demandUserName; this.form.demandUserMobile = val.demandUserMobile; this.form.demandUserId = val.demandUserId; }, - handelBlurServiceTime(val) { + handelBlurServiceTime (val) { console.log("val", val); if (val.length > 0) { this.form.serviceStartTime = val[0]; this.form.serviceEndTime = val[1]; } }, - handleServiceChange(type, val) { + handleServiceChange (type, val) { if (val === "social_org") { if (type === "add") this.getServiceuserList(val, "add_demand"); else this.getServiceuserList(val, "query_demand"); } else this.getServiceuserList(val, ""); }, - handleGridChange(val) { + handleGridChange (val) { this.getDemandUserList(); }, - handelBlurServiceTime(val) { + handelBlurServiceTime (val) { console.log("val", val); if (val.length > 0) { this.form.serviceStartTime = val[0]; @@ -500,23 +447,23 @@ export default { } }, - handleServiceChange(type, val) { + handleServiceChange (type, val) { if (val === "social_org") { if (type === "add") this.getServiceuserList(val, "add_demand"); else this.getServiceuserList(val, "query_demand"); } else this.getServiceuserList(val, ""); }, - handleAdd(addType) { + handleAdd (addType) { this.addType = addType; this.dialogVisible = true; }, - handlerClose() { + handlerClose () { this.$emit("close"); }, - async formatRowForm(addType) { + async formatRowForm (addType) { this.addType = addType; const { form: row } = this; @@ -554,7 +501,7 @@ export default { this.dialogVisible = true; }, - async appointAjax() { + async appointAjax () { const _form = { demandRecId: this.form.demandRecId, serviceType: this.form.serviceType, @@ -578,7 +525,7 @@ export default { this.btnLoading = false; }, - async finishAjax() { + async finishAjax () { const { reportType, serviceShowFlag, serviceType } = this.form; const _form = { demandRecId: this.form.demandRecId, @@ -607,7 +554,7 @@ export default { this.btnLoading = false; }, - async editCate() { + async editCate () { const categoryCode = this.form.categoryCode; if (Array.isArray(categoryCode)) { if (categoryCode.length === 1) { @@ -643,7 +590,7 @@ export default { this.btnLoading = false; }, - handleSubmit() { + handleSubmit () { this.$refs.ruleForm.validate(async (valid) => { if (valid) { this.btnLoading = true; @@ -659,7 +606,7 @@ export default { }); }, - handleDel() { + handleDel () { let params = { demandRecId: this.demandRecId, }; @@ -680,7 +627,7 @@ export default { }); }, - getTreeData(data) { + getTreeData (data) { if (!Array.isArray(data)) return []; let arr = data.map((item) => { let _item = {}; @@ -696,7 +643,7 @@ export default { return arr; }, - getFlagData(data, flag) { + getFlagData (data, flag) { if (!Array.isArray(data)) return []; let arr1 = data.filter((item) => item[flag]); let arr2 = arr1.map((item) => { @@ -708,7 +655,7 @@ export default { return arr2; }, - async getGridList(type, agencyId) { + async getGridList (type, agencyId) { const { user } = await this.$store.state; console.log("user---ppp", user); // addorupdate query @@ -732,7 +679,7 @@ export default { }); }, - async getDemandUserList() { + async getDemandUserList () { const { user } = await this.$store.state; console.log("user---ppp", user); const params = { @@ -756,7 +703,7 @@ export default { }); }, - async getDemandOptions() { + async getDemandOptions () { this.$http .post("/heart/icresidemanddict/demandoption") .then(({ data: res }) => { @@ -775,7 +722,7 @@ export default { }); }, - async getServiceuserList(serviceType, query) { + async getServiceuserList (serviceType, query) { if (!serviceType) return false; const { demandUserId } = this.form; const params = { @@ -799,7 +746,7 @@ export default { }); }, - async getDictOptions() { + async getDictOptions () { this.$http .post("/sys/dict/data/dictlist", { dictType: "user_demand_status" }) .then(({ data: res }) => { @@ -845,7 +792,7 @@ export default { }); }, - async getInfo() { + async getInfo () { let params = { demandRecId: this.demandRecId, }; @@ -863,6 +810,8 @@ export default { res.data.parentCode + res.data.categoryCode, ], }; + + this.finishServiceTime = [this.form.serviceStartTime, this.form.serviceEndTime] this.getGridList(); this.getDemandOptions(); this.getDemandUserList();