chris 1 gadu atpakaļ
vecāks
revīzija
ecb7202263

+ 1 - 1
src/views/modules/cus/quoted-add-or-update.vue

@@ -484,7 +484,7 @@ export default {
     inBound () {
       this.worderVisible = true
       this.$nextTick(() => {
-        this.$refs.worder.init(1)
+        this.$refs.worder.init(1, null, null, this.dataForm.projectName)
       })
     },
     addWorderItem (item) {

+ 2 - 1
src/views/modules/worder/add-or-update-dialog.vue

@@ -168,7 +168,7 @@ export default {
       this.visible = false
     },
     // 初始化。type:{addItem:仅回调方法返回数据,update:调用接口更新}
-    async init (id, item, type) {
+    async init (id, item, type, projectName) {
       this.id = id || 0
       this.type = type || 'addItem'
       if (item) {
@@ -182,6 +182,7 @@ export default {
       } else {
         this.isModify = false
         this.dataForm = {
+          taskName: projectName,
           content: '尽快报价',
           planCompletionTime: new Date(),
           ranks: '1',