Эх сурвалжийг харах

目标管理-增加新增物料后的提示文本。

DongZ 1 жил өмнө
parent
commit
dce176c70a

+ 13 - 3
src/views/business/spd/target/MonthSaleGoal.vue

@@ -320,8 +320,9 @@
                       <div slot="content">{{ scope.row.memo }}</div>
                       <el-popover-select-v2 v-model="monthSaleGoalDetailsList[scope.$index].material" title="物料"
                         valueKey="name" referName="MATERIAL_PARAM"
-                        @change="setClassify(scope.row.oneLevelClassify, scope.row.twoLevelClassify, monthSaleGoalDetailsList[scope.$index])"
-                        :dataMapping="{ materialCode: 'code', material: 'name', oneLevelClassify: 'oneClass', twoLevelClassify: 'twoClass'}"
+                        @change="setClassify(scope.row.oneLevelClassify, scope.row.twoLevelClassify, monthSaleGoalDetailsList[scope.$index], scope.row)"
+                        :dataMapping="{ materialCode: 'code', material: 'name', oneLevelClassify: 'oneClass', twoLevelClassify: 'twoClass',
+                        specification: 'specification', packExplain: 'packExplain', model: 'model'}"
                         :source.sync="monthSaleGoalDetailsList[scope.$index]" placeholder="请输入物料">
                       </el-popover-select-v2>
                     </el-tooltip>
@@ -581,6 +582,9 @@
           twoLevelClassifyCode: null,
           twoLevelClassify: null,
           materialCode: null,
+          specification: null,
+          packExplain: null,
+          model: null,
           material: null,
           department: null,
           num: null,
@@ -809,6 +813,9 @@
           twoLevelClassifyCode: null,
           twoLevelClassify: null,
           materialCode: null,
+          specification: null,
+          packExplain: null,
+          model: null,
           material: null,
           department: null,
           num: null,
@@ -1096,9 +1103,12 @@
         this.$refs.upload.submit();
       },
       // 选择物料后,给一级分类和二级分类复赋值
-      setClassify(one, two, obj) {
+      setClassify(one, two, obj, row) {
         const oneArray = one.split("&")
         const twoArray = two.split("&")
+        // 物料提醒文本
+        const memo = '名称:' + row.material + '; 编码:' + row.materialCode + '; 规格:' + row.specification + ';  包装:' + row.packExplain + '; 型号:' + row.model + '。';
+        obj.memo = memo;
         obj.oneLevelClassifyCode = oneArray[1]
         obj.oneLevelClassify = oneArray[0]
         obj.twoLevelClassifyCode = twoArray[1]