Bläddra i källkod

岗位类型回显

duy 2 år sedan
förälder
incheckning
c5184873e5
1 ändrade filer med 6 tillägg och 2 borttagningar
  1. 6 2
      src/views/project/cost/form.vue

+ 6 - 2
src/views/project/cost/form.vue

@@ -216,6 +216,7 @@ const getBudgetTypeList=async()=>{
     const {error, code, data} = await costApi.getSecondSubject()
     if (!error && code === 200) {
         budgetTypeList.value=getArrValue(data)
+     
 
     } else {
         budgetTypeList.value={}
@@ -224,7 +225,6 @@ const getBudgetTypeList=async()=>{
 //任务明细
 const taskDetailList=ref([])
 const budgetTypeChange=async(val)=>{
-    console.log(val,'val');
     let id=''
     budgetTypeList.value.forEach((ele)=>{
         if(ele.dictValue===val){
@@ -245,6 +245,10 @@ const getPostDict=async(type)=>{
     const {error, code, data} = await costApi.getPostDict()
     if (!error && code === 200) {
         postTypeList.value=getArrValue(data)
+        postTypeList.value.forEach((ele)=>{
+            ele.code=parseInt(ele.code)
+        })
+
 
     } else {
         postTypeList.value={}
@@ -336,7 +340,7 @@ const tableColumn = [
     {key: 'projectProcess', name: '项目环节', width: '160', align: 'center'},
     {key: 'budgetType', name: '预算类型', width: '160', align: 'center'},
     {key: 'taskDetail', name: '任务明细', width: '160',  align: 'center'},
-    {key: 'budgetDays', name: '预计工作量(小数/整数)', width: '160',  align: 'center'},
+    {key: 'budgetDays', name: '预计工作量(小数/整数/天)', width: '160',  align: 'center'},
     {key: 'postType', name: '投入岗位类型(日单价)', width: '160', align: 'center'},
     {key: 'staffCount', name: '投入人员数量', width: '160', align: 'center'},
     {key: 'budgetStaffCost', name: '预计人工成本(元)', width: '160', align: 'center'},