001295 před 1 rokem
rodič
revize
8f0f3e1f60

+ 1 - 1
src/components/popover-select-v2/index.vue

@@ -163,7 +163,7 @@ export default {
     // auto
     async useAutocomplete(prop, cb) {
       if (prop) {
-        this.page.pageSize = 25;
+        this.page.pageSize = 1000000;
         this.model.search = prop;
         await this.fetchList(this.model, this.page);
         await cb(this.data);

+ 3 - 0
src/main.js

@@ -50,6 +50,7 @@ import VueMeta from "vue-meta";
 import DictData from "@/components/DictData";
 //
 import PopoverSelect from "@/components/popover-select";
+import PopoverSelectV2 from "@/components/popover-select-v2";
 //
 import PopoverTreeSelect from "@/components/popover-tree-select";
 //
@@ -80,6 +81,7 @@ Vue.prototype.$init = {
 };
 
 // 全局组件挂载
+
 Vue.component("DictTag", DictTag);
 Vue.component("Pagination", Pagination);
 Vue.component("RightToolbar", RightToolbar);
@@ -88,6 +90,7 @@ Vue.component("FileUpload", FileUpload);
 Vue.component("ImageUpload", ImageUpload);
 Vue.component("ImagePreview", ImagePreview);
 Vue.component("DrPopoverSelect", PopoverSelect);
+Vue.component("DrPopoverSelectV2", PopoverSelectV2);
 Vue.component("DrPopoverTreeSelect", PopoverTreeSelect);
 Vue.component("DrComputedInput", ComputedInput);
 Vue.component("DrFilePreview", FilePreview);

+ 0 - 1
src/views/material/classify/index.vue

@@ -76,7 +76,6 @@
                   <el-select
                     v-model="ruleForm.isEnable"
                     placeholder="启用状态"
-                    clearable
                     size="mini"
                     :disabled="disable"
                     style="width: 230px"

+ 15 - 3
src/views/purchase/transferOrder/add.vue

@@ -76,16 +76,28 @@
           </el-col>
           <el-col :span="1.5">
             <el-form-item label="客户">
-              <el-select clearable :disabled="sonDisable"
+              <DrPopoverSelectV2
+                size="mini"
+                v-model="basicForm.customerName"
+                valueKey= "name"
+                referName="CUSTOMER_PARAM"
+                :dataMapping="{
+                  customer: 'id',
+                  customerName: 'name',
+                }"
+                :source.sync="basicForm"
+              >
+              </DrPopoverSelectV2>
+
+              <!-- <el-select clearable :disabled="sonDisable"
                 size="mini"
                 v-model="basicForm.customer"
                 @clear="clean('客户')"
                 @focus="chooseRefer('CUSTOMER_PARAM', true, '客户')"
                 style="width: 200px"
               >
-                <!-- @change="controlDRHW"  -->
                 <el-option v-for="item in customerOptions" :key="item.id" :label="item.name" :value="item.id"/>
-              </el-select>
+              </el-select> -->
             </el-form-item>
           </el-col>
           <el-col :span="1.5">

+ 1 - 1
src/views/purchase/transferOrder/index.vue

@@ -347,7 +347,7 @@ export default {
   data() {
     return {
       loading: true,
-      itemLoading: true,
+      itemLoading: false,
       expanded: false,
       // 页面配置
       isList: true,