zhengyiming
2 天以前 d042bb3c5679375956c7616e6b1afe681fb82d9b
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
<template>
  <ContentScrollView style="background-color: transparent" has-padding-top>
    <TaskCheckFileCard
      :created-time="'2025-12-12 12:12:12'"
      :userCheckInTime="'2025-12-12 12:12:12'"
      :userCheckOutTime="'2025-12-12 12:12:12'"
      :checkReceiveStatus="10"
      :checkReceiveMethods="[10]"
      :files="list"
    ></TaskCheckFileCard>
    <nut-form :model-value="form" ref="formRef" :rules="rules" label-position="top">
      <nut-form-item class="bole-form-item" prop="remark" label="备注">
        <nut-textarea v-model="form.remark" rows="4" placeholder="请输入"> </nut-textarea>
      </nut-form-item>
    </nut-form>
  </ContentScrollView>
  <PageFooter>
    <PageFooterBtn type="primary" @click="handleConfirm">提交</PageFooterBtn>
  </PageFooter>
</template>
 
<script setup lang="ts">
import Taro from '@tarojs/taro';
import * as standardServiceServices from '@12333/services/apiV2/standardService';
import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types';
import { TaskCheckFileCard } from '@12333/components';
import { setOSSLink } from '@12333/utils';
 
defineOptions({
  name: 'InnerPage',
});
 
const list = ref([
  'https://storage.360buyimg.com/jdc-article/NutUItaro34.jpg',
  'https://storage.360buyimg.com/jdc-article/NutUItaro2.jpg',
  'https://storage.360buyimg.com/jdc-article/welcomenutui.jpg',
  'https://storage.360buyimg.com/jdc-article/fristfabu.jpg',
]);
 
const route = Taro.useRouter();
const id = route.params?.id as string;
 
const form = reactive({
  remark: '',
});
 
const rules = reactive<FormRules>({});
 
const formRef = ref<any>(null);
function handleConfirm() {
  if (!formRef.value) return;
  formRef.value.validate().then(({ valid, errors }: any) => {
    if (valid) {
      confirm();
    }
  });
}
 
async function confirm() {
  try {
  } catch (error) {}
}
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
</style>