qukaidi %!s(int64=3) %!d(string=hai) anos
pai
achega
e92d6c38b4
Modificáronse 1 ficheiros con 40 adicións e 0 borrados
  1. 40 0
      src/components/warehousKH/main.vue

+ 40 - 0
src/components/warehousKH/main.vue

@@ -0,0 +1,40 @@
+<template>
+    <div style="display: flex;">
+        <el-select v-model="value" placeholder="请选择" filterable clearable>
+            <el-option v-for="item in corpList" :key="item.id" :label="item.cname" :value="item.id">
+            </el-option>
+        </el-select>
+        <el-button icon="el-icon-refresh" size="mini" v-if="label != 'shortName'" :disabled="disabled"
+            @click="refreshData"></el-button>
+    </div>
+</template>
+
+<script>
+import { allCropList } from "@/api/basicData/customerInformation";
+import { kMaxLength } from "buffer";
+export default {
+    name: "main",
+    data() {
+        return {
+            form:{},
+            corpList: []
+        };
+    },
+    props: {
+        value: String,
+        disabled: Boolean,
+    },
+    created() {
+        let userObj = JSON.parse(localStorage.getItem("saber-userInfo")).content;
+        allCropList({corpType:'KH', adminProfiles: userObj.role_name != "admin" ? userObj.user_id : null }).then(res => {
+            this.corpList = res.data.data;
+        });
+    },
+    methods: {},
+    watch: {
+    }
+};
+</script>
+
+<style lang="scss" scoped>
+</style>