瀏覽代碼

修复bug

web100 2 年之前
父節點
當前提交
3389300fee

+ 5 - 3
src/components/fee-info/main.vue

@@ -565,14 +565,16 @@ export default {
     },
     //新增
     rowAdd() {
+      console.log(this.$parent.$data.form.corpId);
+      console.log(this.corpList.find(item => this.$parent.$data.form.corpId == item.id).cname);
       if (this.inCropId) {
         let corpName = ''
-        if (this.corpId) {
-          corpName = this.corpList.find(item => this.corpId == item.id).cname;
+        if (!this.corpId) {
+          corpName = this.corpList.find(item => this.$parent.$data.form.corpId == item.id).cname;
         }
         const params = {
           feesType: this.selectTab,
-          corpId: this.corpId ? this.corpId : '',
+          corpId: this.corpId ? this.corpId : corpName,
           corpName: this.corpId ? corpName : '',
           quantity:"1.000000",
           currency:this.$parent.$data.form.currency,

+ 10 - 7
src/views/basicData/customerInformation/index.vue

@@ -392,13 +392,16 @@ export default {
     refreshChange() {
       this.onLoad(this.page);
     },
-    onLoad(page, params = { parentId: 0 }) {
-      let queryParams = Object.assign({}, params, {
-        size: page.pageSize,
-        current: page.currentPage,
-        corpsTypeId: this.treeDeptId,
-        corpType: customerParameter.code
-      });
+    onLoad(page, params = {}) {
+        // 将搜索条件与现有参数合并
+  const queryParams = {
+    ...params,
+    parentId: this.treeDeptId,
+    size: page.pageSize,
+    current: page.currentPage,
+    corpsTypeId: this.treeDeptId,
+    corpType: customerParameter.code
+  };
       customerList(queryParams).then(res => {
         this.dataList = res.data.data.records;
         this.page.total = res.data.data.total;

+ 1 - 12
src/views/tirePartsMall/basicData/customerInformation/index.vue

@@ -265,14 +265,6 @@ export default {
     this.option = await this.getColumnData(this.getColumnName(207), option);
     this.getAllWorkDicts()
   },
-  activated () {
-      setTimeout(() => {
-        this.$nextTick(() => {
-          this.$refs.crud.doLayout()
-        })
-      }, 100)
-    },
-
   methods: {
     derivation() {
       window.open(
@@ -473,10 +465,7 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-// 解决.cell:empty::before存在时, avue 表格最后一个0px的空白列显示-,使表格错位问题
-/deep/ .avue-crud table tr td:last-child {
-  display: none;
-}
+
 .page-crad ::v-deep .basic-container__card {
   height: 94.2vh;
 }

+ 2 - 2
src/views/tirePartsMall/basicData/customerInformation/js/optionList.js

@@ -13,7 +13,7 @@ export const option = {
   viewBtn: false,
   editBtn: false,
   delBtn: false,
-  menuWidth: 130,
+  menuWidth: 140,
   searchIcon: true,
   searchIndex: 2,
   column: [
@@ -149,7 +149,7 @@ export const option = {
       showColumn: false,
       overHidden: true,
     },
-
+    
 
   ]
 }