Blame view

antis-ncc-admin/src/views/workFlow/workFlowForm/receiptProcessing/index.vue 3.67 KB
de2bd2f9   “wangming”   项目初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
  <template>
    <div class="flow-form" v-loading="loading">
      <div class="com-title">
        <h1>收文处理表</h1>
        <span class="number">流程编码:{{dataForm.billNo}}</span>
      </div>
      <el-form ref="dataForm" :model="dataForm" :rules="dataRule" label-width="100px"
        :disabled="setting.readonly">
        <el-row>
          <el-col :span="12" v-if="judgeShow('flowTitle')">
            <el-form-item label="流程标题" prop="flowTitle">
              <el-input v-model="dataForm.flowTitle" placeholder="流程标题"
                :disabled="judgeWrite('flowTitle')"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12" v-if="judgeShow('flowUrgent')">
            <el-form-item label="紧急程度" prop="flowUrgent">
              <el-select v-model="dataForm.flowUrgent" placeholder="选择紧急程度"
                :disabled="judgeWrite('flowUrgent')">
                <el-option :key="item.value" :label="item.label" :value="item.value"
                  v-for="item in flowUrgentOptions" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12" v-if="judgeShow('fileTitle')">
            <el-form-item label="文件标题" prop="fileTitle">
              <el-input v-model="dataForm.fileTitle" placeholder="文件标题"
                :disabled="judgeWrite('fileTitle')"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12" v-if="judgeShow('communicationUnit')">
            <el-form-item label="来文单位" prop="communicationUnit">
              <el-input v-model="dataForm.communicationUnit" placeholder="来文单位"
                :disabled="judgeWrite('communicationUnit')"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12" v-if="judgeShow('letterNum')">
            <el-form-item label="来文字号" prop="letterNum">
              <el-input v-model="dataForm.letterNum" placeholder="来文字号"
                :disabled="judgeWrite('letterNum')"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12" v-if="judgeShow('receiptDate')">
            <el-form-item label="收文日期" prop="receiptDate">
              <el-date-picker v-model="dataForm.receiptDate" type="datetime" placeholder="选择日期"
                value-format="timestamp" format="yyyy-MM-dd HH:mm" :editable='false'
                :disabled="judgeWrite('receiptDate')">
              </el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="24" v-if="judgeShow('fileJson')">
            <el-form-item label="相关附件" prop="fileJson">
              <NCC-UploadFz v-model="fileList" type="workFlow" :disabled="judgeWrite('fileJson')" />
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
  </template>
  
  <script>
  import comMixin from '../mixin';
  export default {
    mixins: [comMixin],
    name: 'ReceiptProcessing',
    data() {
      return {
        billEnCode: 'WF_ReceiptProcessingNo',
        dataForm: {
          flowId: '',
          id: '',
          billNo: '',
          flowTitle: '',
          flowUrgent: 1,
          letterNum: '',
          fileTitle: '',
          communicationUnit: '',
          receiptDate: '',
          fileJson: ''
        },
        dataRule: {
          flowTitle: [
            { required: true, message: '流程标题不能为空', trigger: 'blur' },
          ],
          flowUrgent: [
            { required: true, message: '紧急程度不能为空', trigger: 'change' },
          ],
          receiptDate: [
            { required: true, message: '收文日期不能为空', trigger: 'change' },
          ]
        }
      }
    },
    methods: {
      selfInit(data) {
        this.dataForm.flowTitle = this.userInfo.userName + "的收文处理表"
      }
    }
  }
  </script>