sen
1 天以前 7ed2a032d0724e68aec8af940f2ce0023a9f0eb7
ui/admin-ui3/src/views/tms/collectionTmsQuotePlan/index.vue
@@ -163,6 +163,7 @@
            let active = table.active;
            if (Array.isArray(active)) active = active[0];
            if (active) {
              console.log(active)
              Object.assign(form.value, {
                projectId: active.id,
                projectName: active.projectName,
@@ -173,7 +174,7 @@
              });
            }
          },
          type: 'table',suffixIcon:'search',dataType: 'string',
          type: 'table',suffixIcon:'search',dataType: 'object',
          children:{
            border: true,
            searchMenuSpan: 5,
@@ -226,7 +227,7 @@
                id = value[0]
              }
              getTmsProject(id).then(res=>{
                return callback(res.data||{})
                return callback(res.data ? [res.data] : [])
              })
            }else{
              listTmsProject({pageSize:page.pageSize,pageNum:page.currentPage,...data}).then(res=>{
@@ -444,14 +445,15 @@
  handleSelectionChangeFunc: (selection: any) => {
    selectionList.value = selection;
  },
  getBeginListFunc:()=>{
  getBeginListFunc:(params = {})=>{
    queryParams.value.planType = '0'
    return params;
  },
  handleBeforeOpenFunc:(type:string)=>{
    form.value.items = [];
    if (type === 'add'){
      form.value.items = sys_quotation_items.value.map((item:any)=>{
        return { rowKey: randomId() ,freeName: item.label,unit: '次'}
        return { rowKey: randomId() ,freeName: item.label,free: item.value,unit: '次'}
      })
    }
  },
@@ -493,12 +495,12 @@
      });
      form.value.items = sys_quotation_items.value.map((item:any)=>{
        let find = selectionList2.value.find((ele:any)=>
          ele.freeName === item.label
          ele.free == item.value
        );
        if ( find){
          return find;
        }else{
          return { rowKey: randomId() ,freeName: item.label,unit: '次'}
          return { rowKey: randomId() ,freeName: item.label,free: item.value,unit: '次'}
        }
      })
      nextTick( ()=>{