|
@@ -20,7 +20,7 @@
|
|
|
:shortcuts="shortcuts"
|
|
|
@change="handleQuery"
|
|
|
value-format="YYYY-MM-DD[T]HH:mm:ss"
|
|
|
- :default-time="defaultTimeStartEnd"
|
|
|
+ :default-time="defaultTimeStartEnd"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="审批状态" prop="State" v-if="state.queryParams.AuditState === '2'">
|
|
@@ -83,8 +83,8 @@ import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
|
|
import { FormInstance } from 'element-plus';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import { returnAuditList } from '@/api/business/return';
|
|
|
-import { defaultTimeStartEnd, shortcuts } from "@/utils/constants";
|
|
|
-import Other from "@/utils/other";
|
|
|
+import { defaultTimeStartEnd, shortcuts } from '@/utils/constants';
|
|
|
+import Other from '@/utils/other';
|
|
|
// 引入组件
|
|
|
const ReturnAudit = defineAsyncComponent(() => import('@/views/business/return/components/Return-audit.vue')); // 审批
|
|
|
const ReturnAuditMultiple = defineAsyncComponent(() => import('@/views/business/return/components/Return-audit-multiple.vue'));
|
|
@@ -119,9 +119,9 @@ const state = reactive<any>({
|
|
|
Keyword: null, // 关键字
|
|
|
State: null, // 审批状态
|
|
|
AuditState: '1', // 是否已处理 1 待审批 2已审批
|
|
|
- crTime:[],
|
|
|
- CreationTimeStart:null,
|
|
|
- CreationTimeEnd:null
|
|
|
+ crTime: [],
|
|
|
+ CreationTimeStart: null,
|
|
|
+ CreationTimeEnd: null,
|
|
|
},
|
|
|
tableData: [], //表单
|
|
|
loading: false, // 加载
|
|
@@ -133,14 +133,14 @@ const handleQuery = () => {
|
|
|
queryList();
|
|
|
};
|
|
|
/** 获取列表 */
|
|
|
-const requestParams = ref({})
|
|
|
+const requestParams = ref({});
|
|
|
const queryList = () => {
|
|
|
state.loading = true;
|
|
|
- requestParams.value = Other.deepClone(state.queryParams);
|
|
|
- requestParams.value.CreationTimeStart = state.queryParams.crTime === null ? null : state.queryParams.crTime[0]; // 生成时间
|
|
|
- requestParams.value.CreationTimeEnd = state.queryParams.crTime === null ? null : state.queryParams.crTime[1];
|
|
|
- Reflect.deleteProperty( requestParams.value, 'crTime'); // 删除无用的参数
|
|
|
- requestParams.value.AuditState === '2' ? state.queryParams.State : null
|
|
|
+ requestParams.value = Other.deepClone(state.queryParams);
|
|
|
+ requestParams.value.CreationTimeStart = state.queryParams.crTime === null ? null : state.queryParams.crTime[0]; // 生成时间
|
|
|
+ requestParams.value.CreationTimeEnd = state.queryParams.crTime === null ? null : state.queryParams.crTime[1];
|
|
|
+ Reflect.deleteProperty(requestParams.value, 'crTime'); // 删除无用的参数
|
|
|
+ requestParams.value.AuditState === '2' ? state.queryParams.State : null;
|
|
|
returnAuditList(requestParams.value)
|
|
|
.then((res) => {
|
|
|
state.tableData = res.result?.items ?? [];
|