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

新增月回款目标和月销售目标新增时默认带出制单人编码和部门编码。

DongZ 1 жил өмнө
parent
commit
9e85efbd15

+ 4 - 2
src/views/business/spd/target/MonthReturnGoal.vue

@@ -278,9 +278,9 @@
                 </el-table-column>
                 <el-table-column label="制单人" align="center" width="180" :render-header="addRedStar">
                   <template slot-scope="scope">
-                    <el-popover-select-v2 v-model="monthReturnGoalDetailsList[scope.$index].creator" title="负责人"
+                    <el-popover-select-v2 v-model="monthReturnGoalDetailsList[scope.$index].creator" title="制单人"
                       valueKey="name" referName="CONTACTS_PARAM" :dataMapping="{creator: 'name'}"
-                      :source.sync="monthReturnGoalDetailsList[scope.$index]" placeholder="请输入负责人">
+                      :source.sync="monthReturnGoalDetailsList[scope.$index]" placeholder="请输入制单人">
                     </el-popover-select-v2>
                   </template>
                 </el-table-column>
@@ -704,7 +704,9 @@
         this.form.documentDate = new Date().getFullYear().toString() + '-' + (new Date().getMonth() + 1).toString()
           .padStart(2, '0') + '-' + new Date().getDate().toString().padStart(2, '0')
         this.form.annual = new Date().getFullYear().toString()
+        this.form.creatorCode = this.$store.state.user.name
         this.form.creator = this.$store.state.user.nickName
+        this.form.deptId = this.$store.state.user.deptId
         this.form.dept = this.$store.state.user.deptName
       },
       handleAddDetails() {

+ 2 - 0
src/views/business/spd/target/MonthSaleGoal.vue

@@ -751,7 +751,9 @@
         this.form.documentDate = new Date().getFullYear().toString() + '-' + (new Date().getMonth() + 1).toString()
           .padStart(2, '0') + '-' + new Date().getDate().toString().padStart(2, '0')
         this.form.annual = new Date().getFullYear().toString()
+        this.form.creatorCode = this.$store.state.user.name
         this.form.creator = this.$store.state.user.nickName
+        this.form.deptId = this.$store.state.user.deptId
         this.form.dept = this.$store.state.user.deptName
       },
       handleAddDetails() {