Procházet zdrojové kódy

用户选择组件修改、发起流程时调整实例标题

lizhenhao před 2 roky
rodič
revize
a2df3b6eba

+ 4 - 0
src/components/userSelect/UserSelectDialog.vue

@@ -315,6 +315,9 @@
       },
       // 获取数据列表
       refreshList () {
+        if (this.commonJS.isEmpty(this.searchForm.officeDTO.id) && this.commonJS.isEmpty(this.searchForm.companyDTO.id)) {
+          this.searchForm.selectAll = 'true'
+        }
         this.loading = true
         this.$http({
           url: '/sys/user/list',
@@ -326,6 +329,7 @@
             ...this.searchForm
           }
         }).then(({data}) => {
+          this.searchForm.selectAll = ''
           this.dataList = data.records
           this.total = data.total
           this.pageNo = data.current

+ 3 - 0
src/components/userSelectButton/UserSelectDialog.vue

@@ -315,6 +315,9 @@
       },
       // 获取数据列表
       refreshList () {
+        if (this.commonJS.isEmpty(this.searchForm.officeDTO.id) && this.commonJS.isEmpty(this.searchForm.companyDTO.id)) {
+          this.searchForm.selectAll = 'true'
+        }
         this.loading = true
         this.$http({
           url: '/sys/user/list',

+ 3 - 0
src/components/userSelectV2/UserSelectDialog.vue

@@ -315,6 +315,9 @@
       },
       // 获取数据列表
       refreshList () {
+        if (this.commonJS.isEmpty(this.searchForm.officeDTO.id) && this.commonJS.isEmpty(this.searchForm.companyDTO.id)) {
+          this.searchForm.selectAll = 'true'
+        }
         this.loading = true
         this.$http({
           url: '/sys/user/list',

+ 3 - 0
src/views/modules/cw/invoice/InvoiceFormTask.vue

@@ -954,6 +954,9 @@
             this.loading = true
             this.inputForm.workAttachmentDtoList = this.$refs.uploadComponent.getDataList()
             this.financeInvoiceService.saveForm(this.inputForm).then(({data}) => {
+              if (status === 'start' || status === 'reapply') {
+                this.inputForm.title = `${this.$store.state.user.name} 发起了 ${data.no} [财务-发票申请]`
+              }
               callback(data.businessTable, data.businessId, this.inputForm)
               this.loading = false
             }).catch(() => {

+ 1 - 0
src/views/modules/cw/reimbursementApproval/info/ReimbursementForm.vue

@@ -1014,6 +1014,7 @@
             this.inputForm.files = this.$refs.uploadComponent.getDataList()
             this.inputForm.type = '2'
             this.reimbursementApprovalService.save(this.inputForm).then(({data}) => {
+              this.inputForm.title = `${this.$store.state.user.name} 发起了 [${data.no}] - [财务-报销审批]`
               callback(data.businessTable, data.businessId, this.inputForm)
               this.$refs.inputForm.resetFields()
               this.loading = false

+ 3 - 0
src/views/modules/cw/reportCancellApply/ReportCancellApplyTaskForm.vue

@@ -313,6 +313,9 @@
               this.inputForm.createDate = this.moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
             }
             this.reportCancellApplyService.saveForm(this.inputForm).then(({data}) => {
+              if (status === 'start' || status === 'reapply') {
+                this.inputForm.title = `${this.$store.state.user.name} 发起了 [${this.inputForm.reportNo}] - ${this.inputForm.projectName} [财务-报告作废]`
+              }
               callback(data.businessTable, data.businessId, this.inputForm)
               this.loading = false
             }).catch(() => {

+ 3 - 0
src/views/modules/cw/workClientInfo/clientUserSelect/UserSelectDialog.vue

@@ -317,6 +317,9 @@
       refreshList () {
         this.loading = true
         this.searchForm.certType = '6'
+        if (this.commonJS.isEmpty(this.searchForm.officeDTO.id) && this.commonJS.isEmpty(this.searchForm.companyDTO.id)) {
+          this.searchForm.selectAll = 'true'
+        }
         this.$http({
           url: '/sys/user/list',
           method: 'get',