|
@@ -12,13 +12,13 @@
|
|
|
<!-- 操作日期 -->
|
|
<!-- 操作日期 -->
|
|
|
<view class="h-1" id="operationDatepppp"></view>
|
|
<view class="h-1" id="operationDatepppp"></view>
|
|
|
<up-form-item :borderBottom="false" label="操作日期" required prop="operationDate">
|
|
<up-form-item :borderBottom="false" label="操作日期" required prop="operationDate">
|
|
|
- <ut-datetime-picker v-model="form.operationDate.startDate" mode="datetime" dateFields="day">
|
|
|
|
|
|
|
+ <ut-datetime-picker v-model="form.operationDate.startDate" mode="date" dateFields="day">
|
|
|
<view class="d-flex mr-20">
|
|
<view class="d-flex mr-20">
|
|
|
<up-input v-model="form.operationDate.startDate" placeholder="请选择操作开始时间" border="bottom" :customStyle="{ paddingLeft: '0rpx' }"></up-input>
|
|
<up-input v-model="form.operationDate.startDate" placeholder="请选择操作开始时间" border="bottom" :customStyle="{ paddingLeft: '0rpx' }"></up-input>
|
|
|
<up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill" style="margin-left: -20rpx"></up-icon>
|
|
<up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill" style="margin-left: -20rpx"></up-icon>
|
|
|
</view>
|
|
</view>
|
|
|
</ut-datetime-picker>
|
|
</ut-datetime-picker>
|
|
|
- <ut-datetime-picker v-model="form.operationDate.endDate" mode="datetime" dateFields="day">
|
|
|
|
|
|
|
+ <ut-datetime-picker v-model="form.operationDate.endDate" mode="date" dateFields="day">
|
|
|
<view class="d-flex">
|
|
<view class="d-flex">
|
|
|
<up-input v-model="form.operationDate.endDate" placeholder="请选择操作结束时间" border="bottom" :customStyle="{ paddingLeft: '0rpx' }"></up-input>
|
|
<up-input v-model="form.operationDate.endDate" placeholder="请选择操作结束时间" border="bottom" :customStyle="{ paddingLeft: '0rpx' }"></up-input>
|
|
|
<up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill" style="margin-left: -20rpx"></up-icon>
|
|
<up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill" style="margin-left: -20rpx"></up-icon>
|
|
@@ -80,10 +80,11 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import { ref, reactive, computed, getCurrentInstance, type ComponentInternalInstance } from 'vue';
|
|
import { ref, reactive, computed, getCurrentInstance, type ComponentInternalInstance } from 'vue';
|
|
|
import { useClientRequest } from '@/utils/request';
|
|
import { useClientRequest } from '@/utils/request';
|
|
|
-
|
|
|
|
|
|
|
+import { useInfoStore } from '@/store';
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const { yes_no } = toRefs<any>(proxy?.useDict('yes_no'));
|
|
const { yes_no } = toRefs<any>(proxy?.useDict('yes_no'));
|
|
|
const deawerData = ref();
|
|
const deawerData = ref();
|
|
|
|
|
+const infoStore = useInfoStore();
|
|
|
// 表单数据
|
|
// 表单数据
|
|
|
const form = ref({
|
|
const form = ref({
|
|
|
operationDate: {
|
|
operationDate: {
|
|
@@ -92,7 +93,7 @@ const form = ref({
|
|
|
},
|
|
},
|
|
|
operationType: null as string | null,
|
|
operationType: null as string | null,
|
|
|
operationMethod: '',
|
|
operationMethod: '',
|
|
|
- recorder: '',
|
|
|
|
|
|
|
+ recorder: infoStore.userInfo?.name,
|
|
|
useMaterial: '0' as '0' | '1',
|
|
useMaterial: '0' as '0' | '1',
|
|
|
remark: '',
|
|
remark: '',
|
|
|
});
|
|
});
|
|
@@ -159,7 +160,9 @@ const query = async (pageNo: number, pageSize: number) => {
|
|
|
});
|
|
});
|
|
|
// return res.data;
|
|
// return res.data;
|
|
|
};
|
|
};
|
|
|
-
|
|
|
|
|
|
|
+const handleBaseinfoClose = () => {
|
|
|
|
|
+ deawerData.value = null;
|
|
|
|
|
+};
|
|
|
// 提交表单
|
|
// 提交表单
|
|
|
const save = () => {
|
|
const save = () => {
|
|
|
uni.$u.debounce(
|
|
uni.$u.debounce(
|