Ver Fonte

修改记录

purui há 3 meses atrás
pai
commit
bd815c403f

+ 0 - 17
.vscode/extensions.json

@@ -1,17 +0,0 @@
-{
-  "recommendations": [
-    "vue.volar",
-    "stylelint.vscode-stylelint",
-    "esbenp.prettier-vscode",
-    "dbaeumer.vscode-eslint",
-    "antfu.unocss",
-    "antfu.iconify",
-    "evils.uniapp-vscode",
-    "uni-helper.uni-helper-vscode",
-    "uni-helper.uni-app-schemas-vscode",
-    "uni-helper.uni-highlight-vscode",
-    "uni-helper.uni-ui-snippets-vscode",
-    "uni-helper.uni-app-snippets-vscode",
-    "mrmlnc.vscode-json5"
-  ]
-}

+ 6 - 0
packages/merchant/src/core/libs/agent-requests.ts

@@ -299,6 +299,12 @@ export const getDesignerEvents = (query = {}) =>
 export const updateDesignerEvent = (query: Partial<DesignerEvent>) =>
   httpPost('/app-api/member/stylist-extra-events/update', query)
 /**
+ * /app-api/member/stylist-info-log/page 修改记录
+ * @param query
+ */
+export const getEditRecords = (query = {}) =>
+  httpGet<ResPageData<EditRecord>>('/app-api/member/stylist-info-log/page', query)   
+/**
  * 获取设计师浏览记录统计
  */
 export const getBrowseRecordCount = (stylistId: number) =>

+ 48 - 0
packages/merchant/src/pages/agent/designer/archives/index.vue

@@ -20,6 +20,7 @@ import {
   getSalesOrdersCounts,
   saveDesignerFamilyInfo,
   getUserInfoById,
+  getEditRecords,
 } from '../../../../core/libs/agent-requests'
 import { messages } from '../../../../core/libs/messages'
 import { omit } from 'radash'
@@ -44,14 +45,17 @@ const tabs = [
   { label: '奖项信息', value: 'award' },
   { label: '销售信息', value: 'sale' },
   { label: '游学/活动信息', value: 'activity' },
+  { label: '修改记录', value: 'record' },
   // { label: '其他活动信息', value: 'events' },
 ]
 const id = ref()
 const { data: basicData, run: setBasicData } = useRequest(() => getDesignerBasicInfo(id.value))
 console.log('basicData::::', basicData)
 const { data: familyData, run: setData } = useRequest(() => getUserInfoById(id.value))
+const { data: editData, run: setEditData } = useRequest(() => getEditRecords())
 const query = computed(() => ({ userId: id.value }))
 const eventsQuery = computed(() => ({ type: '3' }))
+const recordQuery = computed(() => ({ pageNo: 1, pageSize:10 }))
 const actionSheetStatus = ref(false)
 const schema = ref<DataFormSchema>()
 const formData = ref({
@@ -237,6 +241,9 @@ onShow(async () => {
     case 'activity':
       await activityListRef.value?.reload()
       break
+	case 'record':
+	  await setEditData()
+	  break  
     default:
       break
   }
@@ -564,6 +571,25 @@ onShow(async () => {
           </template>
         </PageHelperEvo>
       </template>
+	  <template v-if="tab === 'record'">
+		  <div class="bg-white p-4 mt-4 flex-grow flex flex-col">
+			  <SectionHeading title="修改记录"></SectionHeading>
+			  <PageHelperEvo :request="getEditRecords" :query="query">
+			    <template #default="{ source }">
+			      <template v-for="(it, index) in source?.list" :key="index">
+			        <div class="record">
+						<div class="record-time">
+							<div class="time">{{dayjs(it.createTime).format('YYYY-MM-DD')}}</div>
+							<div class="createBy">经纪人:杨温</div>
+						</div>
+						<div class="record-title">修改信息:</div>
+						<div class="record-content">{{it.content}}</div>
+					</div>
+			      </template>
+			    </template>
+			  </PageHelperEvo>
+		  </div>	  
+	  </template>
     </div>
     <BottomAppBar fixed placeholder>
       <wd-button v-if="tab === 'basic'" block :round="false" @click="handleEditBasicInfo">
@@ -581,3 +607,25 @@ onShow(async () => {
     </wd-action-sheet>
   </div>
 </template>
+<style lang="scss" scoped>
+.record{
+	padding: 60rpx 0;
+	border-bottom: 2rpx solid #F5F5F5;
+	.record-time{
+		display: flex;
+		justify-content: space-between;
+		color: rgba(0, 0, 0, 0.45);
+		font-size: 28rpx;
+		margin-bottom: 30rpx;
+	}
+	.record-title{
+		font-size: 32rpx;
+		color: rgba(0, 0, 0, 0.45);
+		margin-bottom: 14rpx;
+	}
+	.record-content{
+		color: rgba(0, 0, 0, 0.85);
+		font-size: 28rpx;
+	}
+}	
+</style>

+ 1 - 0
packages/merchant/src/pages/mine/index.vue

@@ -98,6 +98,7 @@ onShow(async () => {
   if (isLogined.value && isMerchant?.value) {
     await setData()
     await setOrders()
+	await pageHelperRef.value?.refresh()
   }
 
   if (isLogined.value && isAgent?.value) {

+ 1 - 0
packages/merchant/src/types/uni-pages.d.ts

@@ -22,6 +22,7 @@ interface NavigateToOptions {
        "/pages/mine/merchant/merchant_settings" |
        "/pages/agent/designer/archives/index" |
        "/pages/agent/designer/points/index" |
+       "/pages/agent/designer/points_details/index" |
        "/pages/agent/tasks/detail/index" |
        "/pages/common/auth/change-password/index" |
        "/pages/common/orders/detail/index" |