ソースを参照

Merge branch 'feature-v2.0' into feature-sell

ylong 3 週間 前
コミット
90ffdf14b4
1 ファイル変更82 行追加78 行削除
  1. 82 78
      src/views/recycleOrder/components/order-review-search.vue

+ 82 - 78
src/views/recycleOrder/components/order-review-search.vue

@@ -11,86 +11,90 @@
 </template>
 
 <script setup>
-import { reactive, ref, defineEmits } from 'vue';
-import { useFormData } from '@/utils/use-form-data';
-import ProSearch from '@/components/CommonPage/ProSearch2.vue';
-import request from '@/utils/request';
+    import { reactive, ref, defineEmits } from 'vue';
+    import { useFormData } from '@/utils/use-form-data';
+    import ProSearch from '@/components/CommonPage/ProSearch2.vue';
+    import request from '@/utils/request';
 
-const emit = defineEmits(['search']);
-const columns = ref([
-    {
-        type: 'dictSelect',
-        label: '复审状态',
-        prop: 'reviewStatus',
-        props: { code: 'recycle_refund_status' }
-    },
-    {
-        type: 'input',
-        label: '用户名',
-        prop: 'userName'
-    },
-    {
-        type: 'input',
-        label: '订单编号(多个以中文逗号、空格或换行分割)',
-        prop: 'orderIds',
-        colProps: { span: 8 }
-    },
-    {
-        type: 'input',
-        label: '物流单号(多个以中文逗号、空格或换行分割)',
-        prop: 'waybillCodes',
-        colProps: { span: 8 }
-    },
-    {
-        type: 'select',
-        label: '收货仓库',
-        prop: 'godownId',
-        options: []
-    },
-    {
-        type: 'datetime',
-        label: '提交复审时间(开始时间)',
-        prop: 'applyTimeStart',
-        props: {
-            format: 'YYYY-MM-DD HH:mm:ss',
-            valueFormat: 'YYYY-MM-DD HH:mm:ss'
-        }
-    },
-    {
-        type: 'datetime',
-        label: '提交复审时间(结束时间)',
-        prop: 'applyTimeEnd',
-        props: {
-            valueFormat: 'YYYY-MM-DD HH:mm:ss'
-        }
-    },
-]);
+    const emit = defineEmits(['search']);
+    const columns = ref([
+        {
+            type: 'select',
+            label: '复审状态',
+            prop: 'reviewStatus',
+            options: [
+                { label: '未复审', value: '1' },
+                { label: '已复审', value: '2' },
+                { label: '复审终止', value: '3' }
+            ]
+        },
+        {
+            type: 'input',
+            label: '用户名',
+            prop: 'userName'
+        },
+        {
+            type: 'input',
+            label: '订单编号(多个以中文逗号、空格或换行分割)',
+            prop: 'orderIds',
+            colProps: { span: 8 }
+        },
+        {
+            type: 'input',
+            label: '物流单号(多个以中文逗号、空格或换行分割)',
+            prop: 'waybillCodes',
+            colProps: { span: 8 }
+        },
+        {
+            type: 'select',
+            label: '收货仓库',
+            prop: 'godownId',
+            options: []
+        },
+        {
+            type: 'datetime',
+            label: '提交复审时间(开始时间)',
+            prop: 'applyTimeStart',
+            props: {
+                format: 'YYYY-MM-DD HH:mm:ss',
+                valueFormat: 'YYYY-MM-DD HH:mm:ss'
+            }
+        },
+        {
+            type: 'datetime',
+            label: '提交复审时间(结束时间)',
+            prop: 'applyTimeEnd',
+            props: {
+                valueFormat: 'YYYY-MM-DD HH:mm:ss'
+            }
+        },
+    ]);
 
-//获取仓库数据
-function getGodownList() {
-    request.post('/baseinfo/godown/searchGodown?name=').then((res) => {
-        if (res.data.code === 200) {
-            let item = columns.value.find(
-                (item) => item.prop === 'godownId'
-            );
-            item.options = res.data.data.map((item) => ({
-                label: item.godownName,
-                value: item.id
-            }));
-        }
-    });
-}
-getGodownList();
+    //获取仓库数据
+    function getGodownList() {
+        request.post('/baseinfo/godown/searchGodown?name=').then((res) => {
+            if (res.data.code === 200) {
+                let item = columns.value.find(
+                    (item) => item.prop === 'godownId'
+                );
+                item.options = res.data.data.map((item) => ({
+                    label: item.godownName,
+                    value: item.id
+                }));
+            }
+        });
+    }
+    getGodownList();
 
-const searchRef = ref(null);
-/** 搜索 */
-const search = (data) => {
-    emit('search', { ...data });
-};
+    const searchRef = ref(null);
+    /** 搜索 */
+    const search = (data) => {
+        emit('search', { ...data });
+    };
 
-/** 重置 */
-const reset = () => {
-    resetFields();
-    search();
-};
+    /** 重置 */
+    const reset = () => {
+        resetFields();
+        search();
+    };
 </script>