查询
This commit is contained in:
		@@ -166,6 +166,8 @@ export default {
 | 
				
			|||||||
            size: 6,
 | 
					            size: 6,
 | 
				
			||||||
            current: this.current,
 | 
					            current: this.current,
 | 
				
			||||||
            areaId: this.areaId,
 | 
					            areaId: this.areaId,
 | 
				
			||||||
 | 
					            createUserId: this.currentTabs == 1 ? this.user.id : '',
 | 
				
			||||||
 | 
					            title: this.keyword,
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
        .then((res) => {
 | 
					        .then((res) => {
 | 
				
			||||||
@@ -192,7 +194,10 @@ export default {
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    change(index) {
 | 
					    change(index) {
 | 
				
			||||||
 | 
					      this.areaId = this.user.areaId
 | 
				
			||||||
 | 
					      this.keyword = ''
 | 
				
			||||||
      this.currentTabs = index
 | 
					      this.currentTabs = index
 | 
				
			||||||
 | 
					      this.getList()
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    goDetail(item, hint) {
 | 
					    goDetail(item, hint) {
 | 
				
			||||||
@@ -225,11 +230,13 @@ export default {
 | 
				
			|||||||
    handerSearch(e) {
 | 
					    handerSearch(e) {
 | 
				
			||||||
      this.keyword = e
 | 
					      this.keyword = e
 | 
				
			||||||
      this.current = 1
 | 
					      this.current = 1
 | 
				
			||||||
 | 
					      this.getList()
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    handerClear() {
 | 
					    handerClear() {
 | 
				
			||||||
      this.keyword = ''
 | 
					      this.keyword = ''
 | 
				
			||||||
      this.current = 1
 | 
					      this.current = 1
 | 
				
			||||||
 | 
					      this.getList()
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    previewImage(images, img) {
 | 
					    previewImage(images, img) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,19 +9,15 @@
 | 
				
			|||||||
            <AiAreaPicker v-model="forms.areaId" ref="areaIds" :areaId="areaIdProps" @select="areaSelect" style="color: #333"> </AiAreaPicker>
 | 
					            <AiAreaPicker v-model="forms.areaId" ref="areaIds" :areaId="areaIdProps" @select="areaSelect" style="color: #333"> </AiAreaPicker>
 | 
				
			||||||
          </u-form-item>
 | 
					          </u-form-item>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <u-form-item label="走访对象" prop="application" required style="position: relative">
 | 
					          <u-form-item label="走访对象" prop="create_user_name" required style="position: relative">
 | 
				
			||||||
            <u-input v-model="forms.application" disabled placeholder="请选择走访对象" @click="toWalkObject" />
 | 
					            <u-input v-model="forms.create_user_name" disabled placeholder="请选择走访对象" @click="toWalkObject" />
 | 
				
			||||||
            <!-- @click="showObject = true" @click="toWalkObject" -->
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            <!-- <u-select v-model="showObject" :list="Objectlist" @confirm="applicaStatus"></u-select> -->
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <u-icon name="arrow-right" color="#CCCCCC" style="position: absolute; top: 25px; right: 30px"></u-icon>
 | 
					            <u-icon name="arrow-right" color="#CCCCCC" style="position: absolute; top: 25px; right: 30px"></u-icon>
 | 
				
			||||||
          </u-form-item>
 | 
					          </u-form-item>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <u-form-item label="现实状态" prop="reality" style="position: relative">
 | 
					          <u-form-item label="现实状态" prop="reality" style="position: relative">
 | 
				
			||||||
            <u-input v-model="forms.reality" disabled placeholder="请选择走访对象" @click="showStstus = true" />
 | 
					            <u-input v-model="forms.reality" disabled placeholder="请选择走访慰问对象" @click="showStstus = true" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <!-- :disabled="!forms.object" -->
 | 
					 | 
				
			||||||
            <u-select v-model="showStstus" :list="$dict.getDict('realityStatus')" value-name="dictValue" label-name="dictName" @confirm="realityStstus"></u-select>
 | 
					            <u-select v-model="showStstus" :list="$dict.getDict('realityStatus')" value-name="dictValue" label-name="dictName" @confirm="realityStstus"></u-select>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <u-icon name="arrow-right" color="#CCCCCC" style="position: absolute; top: 25px; right: 30px"></u-icon>
 | 
					            <u-icon name="arrow-right" color="#CCCCCC" style="position: absolute; top: 25px; right: 30px"></u-icon>
 | 
				
			||||||
@@ -48,7 +44,7 @@
 | 
				
			|||||||
      <AiBack></AiBack>
 | 
					      <AiBack></AiBack>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <component v-else :is="comp" :params="params"></component>
 | 
					    <component v-else :is="comp" :paramss="params" @back="backlist"></component>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -72,7 +68,8 @@ export default {
 | 
				
			|||||||
      show: false,
 | 
					      show: false,
 | 
				
			||||||
      forms: {
 | 
					      forms: {
 | 
				
			||||||
        areaId: '',
 | 
					        areaId: '',
 | 
				
			||||||
        application: '',
 | 
					        optionId: '',
 | 
				
			||||||
 | 
					        create_user_name: '',
 | 
				
			||||||
        reality: '',
 | 
					        reality: '',
 | 
				
			||||||
        realityValue: '',
 | 
					        realityValue: '',
 | 
				
			||||||
        title: '',
 | 
					        title: '',
 | 
				
			||||||
@@ -80,7 +77,6 @@ export default {
 | 
				
			|||||||
        images: [],
 | 
					        images: [],
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      showAreaId: false,
 | 
					      showAreaId: false,
 | 
				
			||||||
      showObject: false,
 | 
					 | 
				
			||||||
      showStstus: false,
 | 
					      showStstus: false,
 | 
				
			||||||
      flag: false,
 | 
					      flag: false,
 | 
				
			||||||
      addList: true,
 | 
					      addList: true,
 | 
				
			||||||
@@ -95,11 +91,7 @@ export default {
 | 
				
			|||||||
      this.getDetail()
 | 
					      this.getDetail()
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  mounted() {
 | 
					  mounted() {},
 | 
				
			||||||
    this.$on('black', (data) => {
 | 
					 | 
				
			||||||
      console.log(data)
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  methods: {
 | 
					  methods: {
 | 
				
			||||||
    getDetail() {
 | 
					    getDetail() {
 | 
				
			||||||
      this.$http.post(`/app/appvisitvondolence/queryDetailById?id=${this.params.id}`).then((res) => {
 | 
					      this.$http.post(`/app/appvisitvondolence/queryDetailById?id=${this.params.id}`).then((res) => {
 | 
				
			||||||
@@ -107,7 +99,6 @@ export default {
 | 
				
			|||||||
          this.forms = res.data
 | 
					          this.forms = res.data
 | 
				
			||||||
          this.forms.realityValue = res.data.reality
 | 
					          this.forms.realityValue = res.data.reality
 | 
				
			||||||
          this.forms.reality = this.$dict.getLabel('realityStatus', res.data.reality)
 | 
					          this.forms.reality = this.$dict.getLabel('realityStatus', res.data.reality)
 | 
				
			||||||
 | 
					 | 
				
			||||||
          if (res.data.images) {
 | 
					          if (res.data.images) {
 | 
				
			||||||
            this.forms.images = JSON.parse(res.data.images || '[]')
 | 
					            this.forms.images = JSON.parse(res.data.images || '[]')
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
@@ -121,9 +112,9 @@ export default {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      this.$refs.uForm.validate((valid) => {
 | 
					      this.$refs.uForm.validate((valid) => {
 | 
				
			||||||
        if (valid) {
 | 
					        if (valid) {
 | 
				
			||||||
          // if (!this.forms.application) {
 | 
					          if (!this.forms.create_user_name) {
 | 
				
			||||||
          //   return this.$u.toast('请选择走访对象')
 | 
					            return this.$u.toast('请选择走访慰问对象')
 | 
				
			||||||
          // }
 | 
					          }
 | 
				
			||||||
          if (!this.forms.title) {
 | 
					          if (!this.forms.title) {
 | 
				
			||||||
            return this.$u.toast('请输入入户走访事项')
 | 
					            return this.$u.toast('请输入入户走访事项')
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
@@ -140,8 +131,9 @@ export default {
 | 
				
			|||||||
          this.$http
 | 
					          this.$http
 | 
				
			||||||
            .post(`/app/appvisitvondolence/addOrUpdate`, {
 | 
					            .post(`/app/appvisitvondolence/addOrUpdate`, {
 | 
				
			||||||
              areaId: this.forms.areaId,
 | 
					              areaId: this.forms.areaId,
 | 
				
			||||||
              applicationId: '02fcf19c81154f6ea9560d9a9deee9f4',
 | 
					              applicationId: this.forms.applicationId,
 | 
				
			||||||
              optionId: '4703806718f842a98a28df554c6aa6b2',
 | 
					              name: this.forms.create_user_name,
 | 
				
			||||||
 | 
					              optionId: this.forms.applicationId,
 | 
				
			||||||
              reality: this.forms.realityValue ? this.forms.realityValue : this.forms.reality,
 | 
					              reality: this.forms.realityValue ? this.forms.realityValue : this.forms.reality,
 | 
				
			||||||
              title: this.forms.title,
 | 
					              title: this.forms.title,
 | 
				
			||||||
              description: this.forms.description,
 | 
					              description: this.forms.description,
 | 
				
			||||||
@@ -174,6 +166,14 @@ export default {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    backlist(e) {
 | 
				
			||||||
 | 
					      console.log(e.item)
 | 
				
			||||||
 | 
					      this.forms.create_user_name = e.item.create_user_name
 | 
				
			||||||
 | 
					      this.forms.applicationId = e.appId
 | 
				
			||||||
 | 
					      this.forms.optionId = e.item.id
 | 
				
			||||||
 | 
					      this.addList = true
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    realityStstus(e) {
 | 
					    realityStstus(e) {
 | 
				
			||||||
      this.forms.reality = e[0].label
 | 
					      this.forms.reality = e[0].label
 | 
				
			||||||
      this.forms.realityValue = e[0].value
 | 
					      this.forms.realityValue = e[0].value
 | 
				
			||||||
@@ -182,7 +182,7 @@ export default {
 | 
				
			|||||||
    toWalkObject() {
 | 
					    toWalkObject() {
 | 
				
			||||||
      this.addList = false
 | 
					      this.addList = false
 | 
				
			||||||
      this.comp = 'walkObject'
 | 
					      this.comp = 'walkObject'
 | 
				
			||||||
      this.params = 111
 | 
					      this.paramss = 111
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,9 +15,15 @@
 | 
				
			|||||||
        <div v-if="DiyList.length > 0">
 | 
					        <div v-if="DiyList.length > 0">
 | 
				
			||||||
          <u-collapse event-type="close" arrowaccordion>
 | 
					          <u-collapse event-type="close" arrowaccordion>
 | 
				
			||||||
            <u-collapse-item v-for="(item, index) in DiyList" :title="item.menuLevel2Name" :key="index" @change="selectUser(item)">
 | 
					            <u-collapse-item v-for="(item, index) in DiyList" :title="item.menuLevel2Name" :key="index" @change="selectUser(item)">
 | 
				
			||||||
              <u-checkbox-group @change="checkboxGroupChange">
 | 
					              <u-radio-group v-model="value">
 | 
				
			||||||
                <u-checkbox @change="checkboxChange" v-model="e.checked" v-for="(e, index) in userList" :key="index" :name="e.create_user_name" shape="circle">{{ e.name00 }}</u-checkbox>
 | 
					                <u-radio v-for="(item, index) in userList" :key="index" :name="item.create_user_name">
 | 
				
			||||||
              </u-checkbox-group>
 | 
					                  {{ item.create_user_name }}
 | 
				
			||||||
 | 
					                </u-radio>
 | 
				
			||||||
 | 
					              </u-radio-group>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					              <!-- <u-checkbox-group>
 | 
				
			||||||
 | 
					                <u-checkbox v-model="e.checked" v-for="(e, index) in userList" :key="index" :name="e.create_user_name" shape="circle">{{ e.create_user_name }}</u-checkbox>
 | 
				
			||||||
 | 
					              </u-checkbox-group> -->
 | 
				
			||||||
            </u-collapse-item>
 | 
					            </u-collapse-item>
 | 
				
			||||||
          </u-collapse>
 | 
					          </u-collapse>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
@@ -64,6 +70,8 @@ export default {
 | 
				
			|||||||
      ],
 | 
					      ],
 | 
				
			||||||
      nameList: [],
 | 
					      nameList: [],
 | 
				
			||||||
      current: 1,
 | 
					      current: 1,
 | 
				
			||||||
 | 
					      appId: '',
 | 
				
			||||||
 | 
					      value: '',
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  computed: {},
 | 
					  computed: {},
 | 
				
			||||||
@@ -81,7 +89,8 @@ export default {
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    selectUser(item) {
 | 
					    selectUser(item) {
 | 
				
			||||||
      console.log(item)
 | 
					      console.log(item.id)
 | 
				
			||||||
 | 
					      this.appId = item.id
 | 
				
			||||||
      this.$http.post(`/app/appapplicationinfo/list?appId=${item.id}¤t=${this.current}&size=${99}`, { searchParam: this.keyword }).then((res) => {
 | 
					      this.$http.post(`/app/appapplicationinfo/list?appId=${item.id}¤t=${this.current}&size=${99}`, { searchParam: this.keyword }).then((res) => {
 | 
				
			||||||
        if (res.code == 0) {
 | 
					        if (res.code == 0) {
 | 
				
			||||||
          this.userList = res.data.records
 | 
					          this.userList = res.data.records
 | 
				
			||||||
@@ -89,19 +98,10 @@ export default {
 | 
				
			|||||||
      })
 | 
					      })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    checkboxGroupChange(a) {
 | 
					 | 
				
			||||||
      console.log(a)
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    checkboxChange(e) {
 | 
					 | 
				
			||||||
      console.log(e)
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    submit() {
 | 
					    submit() {
 | 
				
			||||||
      this.userList.map((item) => {
 | 
					      this.userList.map((item) => {
 | 
				
			||||||
        if (item.checked == true) {
 | 
					        if (item.create_user_name == this.value) {
 | 
				
			||||||
          console.log(11, 'back', 'item')
 | 
					          this.$emit('back', { item: item, appId: this.appId })
 | 
				
			||||||
          this.$emit('back', item)
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
@@ -134,19 +134,15 @@ export default {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    .Checkbox {
 | 
					    .Checkbox {
 | 
				
			||||||
      padding: 0 20px 0 30px;
 | 
					      padding: 0 20px 0 30px;
 | 
				
			||||||
      ::v-deep .u-checkbox-group {
 | 
					
 | 
				
			||||||
        .u-checkbox {
 | 
					 | 
				
			||||||
          // position: relative;
 | 
					 | 
				
			||||||
          height: 112px;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
      ::v-deep .u-collapse {
 | 
					      ::v-deep .u-collapse {
 | 
				
			||||||
        .u-collapse-item {
 | 
					        .u-collapse-item {
 | 
				
			||||||
          .u-collapse-body {
 | 
					          .u-collapse-body {
 | 
				
			||||||
            display: inline;
 | 
					            // display: inline;
 | 
				
			||||||
            .u-checkbox-group {
 | 
					            .u-radio-group {
 | 
				
			||||||
              display: flex;
 | 
					              .u-radio {
 | 
				
			||||||
              flex-direction: column;
 | 
					                line-height: 0;
 | 
				
			||||||
 | 
					              }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -171,7 +167,6 @@ export default {
 | 
				
			|||||||
      color: #ffffff;
 | 
					      color: #ffffff;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    .typeName {
 | 
					    .typeName {
 | 
				
			||||||
      // margin: 48px 0 44px 0;
 | 
					 | 
				
			||||||
      margin: 36px 0 22px 0;
 | 
					      margin: 36px 0 22px 0;
 | 
				
			||||||
      .typeName-box {
 | 
					      .typeName-box {
 | 
				
			||||||
        padding: 16px 14px;
 | 
					        padding: 16px 14px;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user