QuKatie преди 3 години
родител
ревизия
6dc7abdb7f
променени са 2 файла, в които са добавени 13 реда и са изтрити 1 реда
  1. 9 1
      src/components/fee-info/main.vue
  2. 4 0
      src/views/businessManagement/salesOrder/detailsPageEdit.vue

+ 9 - 1
src/components/fee-info/main.vue

@@ -498,7 +498,9 @@ export default {
     selectValue(value, row) {
       this.$set(row, "feeName", value.cname);
       this.$set(row, "ename", value.ename);
-      this.currencyChange(row);
+      if (!this.feeOption.column.find(e => e.prop == "currency").hide) {
+        this.currencyChange(row);
+      }
     },
     //选择应收应付
     // handleClick(tab){
@@ -640,6 +642,12 @@ export default {
           corpId: this.corpId,
           corpName: corpName
         };
+        if (
+          this.feeOption.column.find(e => e.prop == "currency").hide &&
+          this.optionType == "GN"
+        ) {
+          params.exchangeRate = 1;
+        }
         this.$refs.feeCrud.rowCellAdd(params);
       }
     },

+ 4 - 0
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -1775,6 +1775,10 @@ export default {
     this.optionPolicy.height = (window.innerHeight - 330) / 2;
     this.customerContact.height = window.innerHeight - 240;
     this.index++;
+    if(localStorage.getItem("roleName")=='salesman'){
+        this.findObject(this.customerContact.column, "purchaseAmount").hide=true;
+        this.findObject(this.customerContact.column, "purchaseAmount").showColumn=false;
+    }
   },
   updated() {
     this.$nextTick(() => {