Ver Fonte

Merge branch 'master' of http://47.100.37.243:10191/wutt/manHourHousekeeper

Min há 1 ano atrás
pai
commit
7ae668e09e
30 ficheiros alterados com 539 adições e 399 exclusões
  1. 15 10
      fhKeeper/formulahousekeeper/customerBuler-crm/src/App.vue
  2. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/analysis/api.ts
  3. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/analysis/index.vue
  4. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/business/api.ts
  5. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/business/index.vue
  6. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/contacts/api.ts
  7. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/contacts/index.vue
  8. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/corpreport/api.ts
  9. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/corpreport/index.vue
  10. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/customer/api.ts
  11. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/customer/index.vue
  12. 1 1
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/login.vue
  13. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/order/api.ts
  14. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/order/index.vue
  15. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/product/api.ts
  16. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/product/index.vue
  17. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/system/api.ts
  18. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/system/dictionary/api.ts
  19. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/system/dictionary/index.vue
  20. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/system/index.vue
  21. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/system/role/api.ts
  22. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/system/role/index.vue
  23. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/tasks/api.ts
  24. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/tasks/index.vue
  25. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/team/api.ts
  26. 0 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/team/index.vue
  27. 6 0
      fhKeeper/formulahousekeeper/customerBuler-crm/src/type.d.ts
  28. 2 2
      fhKeeper/formulahousekeeper/timesheet/src/views/corpreport/list.vue
  29. 509 385
      fhKeeper/formulahousekeeper/timesheet/src/views/project/summary.vue
  30. 6 1
      fhKeeper/formulahousekeeper/timesheet_h5/src/views/task/editask.vue

+ 15 - 10
fhKeeper/formulahousekeeper/customerBuler-crm/src/App.vue

@@ -5,24 +5,29 @@
 <script setup lang="ts">
 import { onMounted, ref, provide, inject } from 'vue'
 import { useStore } from '@/store/index'
-interface GlobalPopup {
-  showSuccess: (msg: string, time: number) => void
-  showError: (msg: string, time: number) => void
-  showWarning: (msg: string, time: number) => void
-}
+import { ElNotification } from 'element-plus'
 const { setAsyncRoutesMark } = useStore()
 window.addEventListener('beforeunload', () => beforeunloadFn())
 const beforeunloadFn = (() => {
   setAsyncRoutesMark(false)
 })
 
-provide('globalPopup', {
-  showSuccess: (msg: string, time: number) => { console.log(msg, '执行成功', time) }, //!SECTION 成功
-  showError: (msg: string, time: number) => { console.log(msg, '执行成功'), time }, //!SECTION 失败
-  showWarning: (msg: string, time: number) => { console.log(msg, '执行成功'), time }, //!SECTION 警告
+provide<GlobalPopup>('globalPopup', {
+  showSuccess: (msg: string, time: number, icon: string) => { notificationTiop }, //!SECTION 成功
+  showError: (msg: string, time: number, icon: string) => { notificationTiop }, //!SECTION 失败
+  showWarning: (msg: string, time: number, icon: string) => { notificationTiop }, //!SECTION 警告
+  showInfo: (msg: string, time: number, icon: string) => { notificationTiop }, //!SECTION 文本
 })
 
-
+const notificationTiop = (msg: string, time: number, icon: string, type: string) => {
+  let obj: any = {}
+  obj.title = '提示'
+  obj.message = msg
+  time ? obj.duration = time : obj.duration = 2000
+  icon ? obj.iconClass = icon : obj.iconClass = ''
+  type ? obj.type = type : obj.type = 'success'
+  ElNotification(obj)
+}
 
 </script>
 

+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/analysis/api.ts


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/analysis/index.vue


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/business/api.ts


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/business/index.vue


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/contacts/api.ts


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/contacts/index.vue


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/corpreport/api.ts


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/corpreport/index.vue


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/customer/api.ts


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/customer/index.vue


+ 1 - 1
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/login.vue

@@ -76,7 +76,7 @@ const login = (formEl: FormInstance | undefined) => {
     console.log(ruleForm.value);
     post(LOGIN, { ...ruleForm.value }).then(res => {
       console.log(res);
-      globalPopup.showSuccess('登录成功')
+      globalPopup?.showSuccess('登录成功', 1000, '')
       // if(res.code == 'error') {
       //   ElMessage.error({
       //     message: "登录失败",

+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/order/api.ts


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/order/index.vue


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/product/api.ts


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/product/index.vue


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/system/api.ts


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/system/dictionary/api.ts


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/system/dictionary/index.vue


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/system/index.vue


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/system/role/api.ts


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/system/role/index.vue


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/tasks/api.ts


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/tasks/index.vue


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/team/api.ts


+ 0 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/team/index.vue


+ 6 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/type.d.ts

@@ -0,0 +1,6 @@
+type GlobalPopup = {
+  showSuccess: (msg: string, time: number, icon: string) => void;
+  showError: (msg: string, time: number, icon: string) => void;
+  showWarning: (msg: string, time: number, icon: string) => void;
+  showInfo: (msg: string, time: number, icon: string) => void;
+};

+ 2 - 2
fhKeeper/formulahousekeeper/timesheet/src/views/corpreport/list.vue

@@ -82,9 +82,9 @@
         <!-- 时间段筛选 ins == 6 || ins == 8 || ins == 9 || ins == 10 || ins == 11 || ins == 12 || ins == 5 || ins == 16 || ins == 17 || ins == 18 || ins == 20 || ins == 21 || ins == 22 -->
         <template v-if="screeningCondition.timePeriod.includes(ins)">
           <span>
-            <span class="demonstration" style="color:#999;padding:0 10px">
+            <!-- <span class="demonstration" style="color:#999;padding:0 10px">
               {{ ins == 15 ? $t('xiang-mu-chuang-jian-shi-jian-duan') : $t('message.period') }}
-            </span>
+            </span> -->
             <el-date-picker v-model="rangeDatas" type="daterange" value-format="yyyy-MM-dd" :placeholder="$t('selectstartdate')" @change="picks()" :range-separator="$t('other.to')" :start-placeholder="$t('time.startDate')" :end-placeholder="$t('time.endDate')" style="width:300px" :clearable="ins == 15" size="small"> </el-date-picker>
           </span>
         </template>

Diff do ficheiro suprimidas por serem muito extensas
+ 509 - 385
fhKeeper/formulahousekeeper/timesheet/src/views/project/summary.vue


+ 6 - 1
fhKeeper/formulahousekeeper/timesheet_h5/src/views/task/editask.vue

@@ -151,6 +151,9 @@
                         <div class="popupSearch" v-if="user.userNameNeedTranslate != '1'">
                             <van-search v-model="executor.searchText" placeholder="输入员工姓名搜索" @search="onSearch" shape="round" background="#F4F4F4"></van-search>
                         </div>
+                        <div class="popupSearch" v-if="user.userNameNeedTranslate == '1'">
+                            <van-search v-model="executor.searchText" placeholder="输入员工姓名搜索" @search="getOnSearch(executor.searchText)" shape="round" background="#F4F4F4"></van-search>
+                        </div>
 
                         <div class="popupCon conBorder">
                             <van-radio-group v-model="executor.item" class="popupItem marginNone borderNone">
@@ -421,7 +424,9 @@ export default {
             this.finishDateShow = false
         },
         
-        executorChange(item,index){           // 选择执行人
+        executorChange(item,index){  // 选择执行人
+            this.executor.searchText = ''
+            this.getOnSearch('')
             this.executor.show = true
             this.executor.index = index
             this.executor.searchList.forEach(u=>{if (u.id == item.executorId) {