Browse Source

bugfix 成本模板控制

谢杰标 2 năm trước cách đây
mục cha
commit
8a6cda7ed0

+ 3 - 1
src/views/financed/arap/index.vue

@@ -544,11 +544,13 @@ export default {
           label: "业务员",
           prop: "createUsername",
           hidden: true,
+          scope: "fill",
         },
         {
           label: "业务号",
           prop: "createNo",
           hidden: true,
+          scope: "fill",
         },
         {
           label: "已付提成(元)",
@@ -945,7 +947,7 @@ export default {
       if (this.type == 1) {
         data.push({
           prop: "billType",
-          placeholder: "账类型",
+          placeholder: "账类型",
           scope: "select",
           options: [
             { label: "月份", value: 1 },

+ 4 - 3
src/views/financed/cost/dislogSet.vue

@@ -265,7 +265,7 @@ export default {
   data() {
     var checkMinValue = (rule, value, callback) => {
       const list = this.itemList[rule.field.split(".")[1]];
-      const { maxValue, businessId } = list;
+      const { maxValue, businessId, itemCategory } = list;
       if (maxValue || value || value === 0) {
         if (!value && value !== 0) {
           callback(new Error("请输入最低价"));
@@ -276,9 +276,10 @@ export default {
         }
       }
 
-      if (businessId) {
+      if (businessId && itemCategory) {
         const levelList = this.itemList.filter(
-          (e) => e.businessId == list.businessId
+          (e) =>
+            e.businessId == list.businessId && e.itemCategory == itemCategory
         );
         if (levelList.length > 1) {
           const text = this.isHaveIntersect(levelList);