随手拍
This commit is contained in:
		@@ -2,14 +2,19 @@
 | 
			
		||||
  <div class="Transfer">
 | 
			
		||||
    <div class="contents">
 | 
			
		||||
      <u-form :model="forms" ref="uForm" label-width="auto" :border-bottom="false">
 | 
			
		||||
        <u-form-item label="事件分类" prop="groupName" required :border-bottom="false" right-icon="arrow-right">
 | 
			
		||||
        <u-form-item label="转交给" prop="status" required :border-bottom="false" right-icon="arrow-right" class="first-form" v-if="status == 1">
 | 
			
		||||
          <u-input v-model="forms.status" placeholder="请选择转交对象" @click="toSelectUser" disabled />
 | 
			
		||||
 | 
			
		||||
          <!-- <AiTreePicker :ops="treeList" v-model="forms.status" @select="handerSelect"> </AiTreePicker> -->
 | 
			
		||||
        </u-form-item>
 | 
			
		||||
        <u-form-item label="事件分类" prop="groupName" required :border-bottom="false" right-icon="arrow-right" v-if="status != 1">
 | 
			
		||||
          <u-input v-model="forms.groupName" placeholder="请选择事件分类" @click="show = true" />
 | 
			
		||||
 | 
			
		||||
          <u-select v-model="show" :list="myList" value-name="id" label-name="groupName" @confirm="selectStatus"></u-select>
 | 
			
		||||
        </u-form-item>
 | 
			
		||||
 | 
			
		||||
        <u-form-item :label="number == 3 ? '办结意见' : number == 2 ? '拒绝受理意见' : '办理意见'" prop="content" required :border-bottom="false" label-position="top" class="contents">
 | 
			
		||||
          <u-input v-model="forms.content" :placeholder="number == 2 ? '请写下拒绝受理意见…' : '请写下你的办结意见...'" type="textarea" auto-height height="100" maxlength="500" />
 | 
			
		||||
        <u-form-item :label="status == 3 ? '办结意见' : status == 2 ? '拒绝受理意见' : '办理意见'" prop="content" required :border-bottom="false" label-position="top" class="contents">
 | 
			
		||||
          <u-input v-model="forms.content" :placeholder="status == 2 ? '请写下拒绝受理意见…' : '请写下你的办结意见...'" type="textarea" auto-height height="100" maxlength="500" />
 | 
			
		||||
        </u-form-item>
 | 
			
		||||
 | 
			
		||||
        <div class="line"></div>
 | 
			
		||||
@@ -18,24 +23,19 @@
 | 
			
		||||
          <AiUploader :def.sync="forms.files" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader>
 | 
			
		||||
        </u-form-item>
 | 
			
		||||
 | 
			
		||||
        <!-- <u-form-item label="转交给" prop="status" required :border-bottom="false" right-icon="arrow-right" class="first-form">
 | 
			
		||||
          <u-input v-model="forms.status" placeholder="请选择转交对象" @click="toSelectUser" disabled />
 | 
			
		||||
 | 
			
		||||
          <AiTreePicker :ops="treeList" v-model="forms.status" @select="handerSelect"> </AiTreePicker>
 | 
			
		||||
        </u-form-item> -->
 | 
			
		||||
      </u-form>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="btn" v-if="this.number == 1" @click="submit3">
 | 
			
		||||
    <div class="btn" v-if="this.status == 1" @click="submit3">
 | 
			
		||||
      <span>转交事件</span>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="btn" v-if="this.number == 2" @click="submit2">
 | 
			
		||||
    <div class="btn" v-if="this.status == 2" @click="submit2">
 | 
			
		||||
      <span>拒绝受理</span>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="btn" v-if="this.number == 3" @click="submit3">
 | 
			
		||||
      <span>我来受理</span>
 | 
			
		||||
    <div class="btn" v-if="this.status == 3" @click="submit3">
 | 
			
		||||
      <span>我已办结</span>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
@@ -55,23 +55,16 @@ export default {
 | 
			
		||||
      },
 | 
			
		||||
      flag: false,
 | 
			
		||||
      show: false,
 | 
			
		||||
      number: '',
 | 
			
		||||
 | 
			
		||||
      status: '',  //1转交  2拒绝受理  3我已办结
 | 
			
		||||
      myList: [],
 | 
			
		||||
      groupName: '',
 | 
			
		||||
      groupId: '',
 | 
			
		||||
      id: '',
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  onLoad(o) {
 | 
			
		||||
    console.log(o)
 | 
			
		||||
    this.groupName = o.groupName
 | 
			
		||||
    this.groupId = o.groupId
 | 
			
		||||
    this.number = o.number
 | 
			
		||||
    this.id = o.id
 | 
			
		||||
 | 
			
		||||
    this.forms.groupId = this.groupId
 | 
			
		||||
    this.forms.groupName = this.groupName
 | 
			
		||||
  onLoad(option) {
 | 
			
		||||
    this.status = option.status
 | 
			
		||||
    this.id = option.id
 | 
			
		||||
    this.forms.groupId = option.groupId
 | 
			
		||||
    this.forms.groupName = option.groupName
 | 
			
		||||
    this.typeList()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
@@ -84,13 +77,13 @@ export default {
 | 
			
		||||
 | 
			
		||||
      this.$refs.uForm.validate((valid) => {
 | 
			
		||||
        if (valid) {
 | 
			
		||||
          if (this.number == 2 || this.number == 3) {
 | 
			
		||||
          if (this.status == 2 || this.status == 3) {
 | 
			
		||||
            if (!this.forms.groupName) {
 | 
			
		||||
              return this.$u.toast('请选择事件分类')
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (!this.forms.content) {
 | 
			
		||||
              return this.$u.toast(this.number == 2 ? '请输入拒绝受理意见' : '请输入你的办结意见')
 | 
			
		||||
              return this.$u.toast(this.status == 2 ? '请输入拒绝受理意见' : '请输入你的办结意见')
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
@@ -133,13 +126,13 @@ export default {
 | 
			
		||||
 | 
			
		||||
      this.$refs.uForm.validate((valid) => {
 | 
			
		||||
        if (valid) {
 | 
			
		||||
          if (this.number == 2 || this.number == 3) {
 | 
			
		||||
          if (this.status == 2 || this.status == 3) {
 | 
			
		||||
            if (!this.forms.groupName) {
 | 
			
		||||
              return this.$u.toast('请选择事件分类')
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (!this.forms.content) {
 | 
			
		||||
              return this.$u.toast(this.number == 2 ? '请输入拒绝受理意见' : '请输入你的办结意见')
 | 
			
		||||
              return this.$u.toast(this.status == 2 ? '请输入拒绝受理意见' : '请输入你的办结意见')
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user