Ver Fonte

feature 审核员查询页面接口对接

ylong há 6 meses atrás
pai
commit
2b4a359ca6

+ 11 - 14
src/views/recycleAffairs/auditor/components/page-search.vue

@@ -12,25 +12,26 @@
 </template>
 
 <script setup>
-  import { reactive, ref, defineEmits } from 'vue';
+  import { reactive, ref, defineEmits, computed, getCurrentInstance } from 'vue';
   import ProSearch from '@/components/CommonPage/ProSearch2.vue';
 
   let { proxy } = getCurrentInstance();
   const emit = defineEmits(['search']);
 
-  const godownList = ref([]);
   const formItems = computed(() => {
     return [
       { type: 'input', label: 'ISBN', prop: 'isbn' },
-      { type: 'input', label: '审核员', prop: 'auditName' },
-      { type: 'input', label: '录入员', prop: 'auditName' },
+      { type: 'input', label: '审核员', prop: 'auditUserName' },
+      { type: 'input', label: '录入员', prop: 'enterUserName' },
       {
         type: 'datetimerange',
-        label: ' ',
+        label: '时间范围',
         prop: 'time',
         props: {
           format: 'YYYY-MM-DD HH:mm:ss',
           valueFormat: 'YYYY-MM-DD HH:mm:ss',
+          startPlaceholder: '开始时间',
+          endPlaceholder: '结束时间',
           onChange: (value) => {
             initKeys.startTime = value ? value[0] : '';
             initKeys.endTime = value ? value[1] : '';
@@ -45,21 +46,17 @@
   });
 
   const initKeys = reactive({
+    isbn: '',
+    auditUserName: '',
+    enterUserName: '',
     startTime: '',
-    endTime: '',
-    godownId: ''
-  });
-
-  function getStoreList(name = '') {
-    return proxy.$http.post(`/baseinfo/godown/searchGodown?name=${name}`);
-  }
-  getStoreList().then((res) => {
-    godownList.value = res.data.data;
+    endTime: ''
   });
 
   const searchRef = ref(null);
   /** 搜索 */
   const search = (data) => {
+    delete data.time;
     emit('search', { ...data });
   };
 </script>

+ 6 - 12
src/views/recycleAffairs/auditor/index.vue

@@ -21,19 +21,18 @@
 
   /** 表格列配置 */
   const columns = ref([
-    { label: 'ISBN', prop: 'isbn', align: 'center' },
-    { label: '审核员', prop: 'godownName', align: 'center' },
-    { label: '录入员', prop: 'godownName', align: 'center' },
-    { label: '订单编号', prop: 'godownName', align: 'center' },
-    { label: '录入时间', prop: 'createTime', align: 'center' }
+    { label: 'ISBN', prop: 'isbn', align: 'center', minWidth: 120 },
+    { label: '审核员', prop: 'auditUserName', align: 'center', minWidth: 120 },
+    { label: '录入员', prop: 'enterUserName', align: 'center', minWidth: 120 },
+    { label: '订单编号', prop: 'orderId', align: 'center', minWidth: 120 },
+    { label: '审核时间', prop: 'auditTime', align: 'center', width: 180 }
   ]);
 
   /** 页面组件实例 */
   const pageRef = ref(null);
 
   const pageConfig = reactive({
-    pageUrl: '/baseinfo/godown/pagelist',
-    exportUrl: '/baseinfo/godown/export',
+    pageUrl: '/order/orderInfo/getBookCheckInfo',
     fileName: '审核员查询',
     cacheKey: 'auditorTable'
   });
@@ -42,9 +41,4 @@
   function reload(where) {
     pageRef.value?.reload(where);
   }
-
-  //导出excel
-  function handleExportExcel() {
-    pageRef.value?.exportData('审核员查询');
-  }
 </script>