瀏覽代碼

bug fix:201

chris 1 年之前
父節點
當前提交
ecb7202263
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      src/views/modules/cus/quoted-add-or-update.vue
  2. 2 1
      src/views/modules/worder/add-or-update-dialog.vue

+ 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',