Przeglądaj źródła

fix:修改边界值,处理生成文书后加载实际的文书文件

luzhixia 3 tygodni temu
rodzic
commit
58cb15cf38

+ 3 - 0
src/components/costAudit/EstablishmentDialog.vue

@@ -23,6 +23,7 @@
             placeholder="请输入成本监审项目名称"
             style="width: 100%"
             maxlength="30"
+            show-word-limit
           ></el-input>
         </el-form-item>
 
@@ -254,6 +255,7 @@
             placeholder="请输入立项理由"
             style="width: 100%"
             maxlength="200"
+            show-word-limit
           ></el-input>
         </el-form-item>
 
@@ -323,6 +325,7 @@
             placeholder="请输入其他专家"
             style="width: 100%"
             maxlength="30"
+            show-word-limit
           ></el-input>
         </el-form-item>
 

+ 19 - 2
src/views/costAudit/auditInfo/auditManage/auditDocumentsMain.vue

@@ -998,12 +998,29 @@
                 : this.document.enterpriseId,
               electronicDocumentUrl: this.fileUrl,
             })
-              .then(() => {
+              .then((res) => {
                 this.loading.saveDocument = false
                 this.$message.success('保存成功!')
                 this.documentDialogVisible = false
-                this.activeView = ''
+                // this.documentDialogVisible = false
+                // this.activeView = ''
                 this.getlist()
+                if (res.value) {
+                  this.handleEditDocument({
+                    ...this.document,
+                    id: res.value,
+                    projectId: this.project.projectId,
+                    costProjectDocumentFiles:
+                      this.costDocumentTemplateFiles || [],
+                    enterpriseId: this.isMultipleMode
+                      ? this.document.enterpriseId.join(',')
+                      : this.document.enterpriseId,
+                    electronicDocumentUrl: this.fileUrl,
+                  })
+                } else {
+                  this.documentDialogVisible = false
+                  this.activeView = ''
+                }
               })
               .catch((err) => {
                 this.loading.saveDocument = false

+ 0 - 4
src/views/costAudit/baseInfo/auditDocManage/index.vue

@@ -8,8 +8,6 @@
             v-model="searchForm.title"
             placeholder="请输入文件标题"
             clearable
-            maxlength="30"
-            show-word-limit
           />
         </el-form-item>
         <el-form-item label="文号:">
@@ -17,8 +15,6 @@
             v-model="searchForm.documentNumber"
             placeholder="请输入文号"
             clearable
-            maxlength="30"
-            show-word-limit
           />
         </el-form-item>
         <el-form-item>

+ 11 - 10
src/views/costAudit/baseInfo/auditDocNoManage/index.vue

@@ -36,8 +36,6 @@
                 v-model="searchForm.whName"
                 placeholder="请输入"
                 clearable
-                maxlength="30"
-                show-word-limit
               ></el-input>
             </el-form-item>
 
@@ -247,10 +245,12 @@
                     required
                   >
                     <el-input
-                      v-model="formData.currentValue"
+                      v-model.number="formData.currentValue"
                       placeholder="请输入当前流水号值"
-                      maxlength="30"
+                      type="text"
+                      maxlength="5"
                       show-word-limit
+                      oninput="value=value.replace(/[^\d]/g,'')"
                     ></el-input>
                   </el-form-item>
                 </el-col>
@@ -260,6 +260,7 @@
                     <el-input
                       v-model="formData.rulePattern"
                       placeholder="请输入"
+                      maxlength="50"
                       show-word-limit
                     ></el-input>
                     例如: {文号前缀}成审 {年份} {当前流水号值}号
@@ -287,10 +288,10 @@
                     <el-input
                       v-model.number="formData.serialLength"
                       placeholder="请输入"
-                      type="number"
-                      min="1"
-                      max="99999"
+                      type="text"
+                      maxlength="5"
                       show-word-limit
+                      oninput="value=value.replace(/[^\d]/g,'')"
                     ></el-input>
                   </el-form-item>
                 </el-col>
@@ -302,10 +303,10 @@
                     <el-input
                       v-model.number="formData.initialValue"
                       placeholder="请输入"
-                      type="number"
-                      min="0"
-                      max="99999"
+                      type="text"
+                      maxlength="5"
                       show-word-limit
+                      oninput="value=value.replace(/[^\d]/g,'')"
                     ></el-input>
                   </el-form-item>
                 </el-col>

+ 0 - 2
src/views/costAudit/baseInfo/auditEntityManage/index.vue

@@ -19,8 +19,6 @@
             placeholder="请输入单位名称"
             clearable
             style="width: 200px"
-            maxlength="30"
-            show-word-limit
           ></el-input>
         </el-form-item>
 

+ 2 - 0
src/views/costAudit/projectInfo/auditProjectManage/annualReviewPlan/index.vue

@@ -202,6 +202,7 @@
                   placeholder="请输入成本监审项目名称"
                   clearable
                   maxlength="30"
+                  show-word-limit
                 />
               </el-form-item>
             </el-col>
@@ -279,6 +280,7 @@
                   placeholder="请输入监审时间,例如:上半年/下半年"
                   clearable
                   maxlength="30"
+                  show-word-limit
                 ></el-input>
                 <!-- <el-select
                   v-model="currentProject.auditTime"

+ 1 - 1
src/views/costAudit/projectInfo/auditTaskManage/taskCustomizedRelease/auditNoticeTab.vue

@@ -901,8 +901,8 @@
                 this.$emit('refresh', this.project.projectId)
                 if (res.value) {
                   this.handleEditDocument({
-                    id: res.value,
                     ...this.document,
+                    id: res.value,
                     projectId: this.project.projectId,
                     costProjectDocumentFiles:
                       this.costDocumentTemplateFiles || [],

+ 7 - 2
src/views/costAudit/projectInfo/auditTaskManage/taskProgressManage/index.vue

@@ -153,6 +153,8 @@
               type="textarea"
               rows="5"
               placeholder="请输入中止原因"
+              maxlength="500"
+              show-word-limit
             ></el-input>
           </el-form-item>
         </el-form>
@@ -174,7 +176,7 @@
       :close-on-click-modal="false"
     >
       <div class="dialog-content">
-        <el-form ref="urgeForm" :model="urgeForm" label-width="100px">
+        <el-form ref="urgeForm" :model="urgeForm" label-width="120px">
           <el-form-item label="选择督办人员:">
             <el-select
               v-model="urgeForm.remindPerson"
@@ -197,6 +199,7 @@
               placeholder="请输入督办要求"
               style="width: 100%"
               maxlength="500"
+              show-word-limit
             ></el-input>
           </el-form-item>
           <!-- <el-form-item label="发送方式:">
@@ -251,6 +254,7 @@
               placeholder="请输入催办内容"
               style="width: 100%"
               maxlength="500"
+              show-word-limit
             ></el-input>
           </el-form-item>
         </el-form>
@@ -297,6 +301,7 @@
               placeholder="请输入催办内容"
               style="width: 100%"
               maxlength="500"
+              show-word-limit
             ></el-input>
           </el-form-item>
           <!-- <el-form-item label="发送方式:">
@@ -376,7 +381,7 @@
           {
             prop: 'serialNumber',
             label: '序号',
-            width: 60,
+            width: 80,
             align: 'center',
             formatter: (row) => {
               return row.pid == 0 ? row.parentIndex : ''

+ 5 - 1
src/views/costAudit/projectInfo/taskSuperviseManage/superviseMattersManage/index.vue

@@ -57,7 +57,7 @@
       <el-table-column
         prop="serialNumber"
         label="序号"
-        width="60"
+        width="80"
         header-align="center"
         align="center"
       >
@@ -200,6 +200,10 @@
           <el-input
             v-model="reportForm.projectName"
             placeholder="请输入报告内容"
+            type="textarea"
+            maxlength="500"
+            rows="5"
+            show-word-limit
           />
         </el-form-item>
         <el-form-item label="督办材料:">