|
@@ -34,10 +34,10 @@
|
34
|
34
|
<el-form-item label="费用类别 : " prop="cost_classify">
|
35
|
35
|
<el-select v-model="form.cost_classify" style="width:160px;" placeholder="请选择">
|
36
|
36
|
<el-option
|
37
|
|
- v-for="(item,index) in getDictionaryDataConfig('system','cost_classify')"
|
|
37
|
+ v-for="(item,index) in costClassifyList"
|
38
|
38
|
:key="index"
|
39
|
39
|
:label="item.name"
|
40
|
|
- :value="item.id">
|
|
40
|
+ :value="item.value">
|
41
|
41
|
</el-option>
|
42
|
42
|
</el-select>
|
43
|
43
|
</el-form-item>
|
|
@@ -64,10 +64,10 @@
|
64
|
64
|
<el-form-item label="统计分类 : " prop="statistical_classification">
|
65
|
65
|
<el-select v-model="form.statistical_classification" style="width:160px;" placeholder="请选择">
|
66
|
66
|
<el-option
|
67
|
|
- v-for="(item,index) in getDictionaryDataConfig('system','statistics_category')"
|
|
67
|
+ v-for="(item,index) in statisticsCategoryList"
|
68
|
68
|
:key="index"
|
69
|
69
|
:label="item.name"
|
70
|
|
- :value="item.id">
|
|
70
|
+ :value="item.value">
|
71
|
71
|
</el-option>
|
72
|
72
|
</el-select>
|
73
|
73
|
</el-form-item>
|
|
@@ -97,10 +97,10 @@
|
97
|
97
|
<el-form-item label="试管颜色 : " prop="tube_color">
|
98
|
98
|
<el-select v-model="form.tube_color" style="width:160px;" placeholder="请选择">
|
99
|
99
|
<el-option
|
100
|
|
- v-for="(item,index) in getDictionaryDataConfig('system','tube_color')"
|
|
100
|
+ v-for="(item,index) in tubeColorList"
|
101
|
101
|
:key="index"
|
102
|
102
|
:label="item.name"
|
103
|
|
- :value="item.id">
|
|
103
|
+ :value="item.value">
|
104
|
104
|
</el-option>
|
105
|
105
|
</el-select>
|
106
|
106
|
</el-form-item>
|
|
@@ -248,6 +248,7 @@
|
248
|
248
|
import { uParseTime } from '@/utils/tools'
|
249
|
249
|
import { getDictionaryDataConfig,getDataConfig } from "@/utils/data";
|
250
|
250
|
import { getProjectDetail,updatedProject,getDePartmentList } from "@/api/project/project"
|
|
251
|
+ import {getInitializtion} from '@/api/stock'
|
251
|
252
|
export default {
|
252
|
253
|
data(){
|
253
|
254
|
return{
|
|
@@ -318,7 +319,10 @@ export default {
|
318
|
319
|
],
|
319
|
320
|
limit:100,
|
320
|
321
|
page:1,
|
321
|
|
- departMentList:[]
|
|
322
|
+ departMentList:[],
|
|
323
|
+ statisticsCategoryList:[],
|
|
324
|
+ tubeColorList:[],
|
|
325
|
+ costClassifyList:[]
|
322
|
326
|
}
|
323
|
327
|
},
|
324
|
328
|
methods:{
|
|
@@ -341,10 +345,12 @@ export default {
|
341
|
345
|
this.form.intro = "";
|
342
|
346
|
},
|
343
|
347
|
show(id) {
|
344
|
|
-
|
|
348
|
+ this.getlist()
|
|
349
|
+ this.getInitializtion()
|
345
|
350
|
this.visible = true
|
346
|
351
|
this.formTitle = '编辑'
|
347
|
352
|
this.getProjectDetail(id)
|
|
353
|
+
|
348
|
354
|
},
|
349
|
355
|
hide() {
|
350
|
356
|
this.visible = false
|
|
@@ -478,11 +484,25 @@ export default {
|
478
|
484
|
this.departMentList = department
|
479
|
485
|
}
|
480
|
486
|
})
|
481
|
|
- },
|
|
487
|
+ },
|
|
488
|
+ getInitializtion(){
|
|
489
|
+ getInitializtion().then(response=>{
|
|
490
|
+ if(response.data.state == 1){
|
|
491
|
+ var statisticsCategoryList = response.data.data.statisticsCategoryList
|
|
492
|
+ this.statisticsCategoryList = statisticsCategoryList
|
|
493
|
+ var tubeColorList = response.data.data.tubeColorList
|
|
494
|
+ this.tubeColorList = tubeColorList
|
|
495
|
+ var costClassifyList = response.data.data.costClassifyList
|
|
496
|
+ this.costClassifyList = costClassifyList
|
|
497
|
+ }
|
|
498
|
+ })
|
|
499
|
+ }
|
|
500
|
+
|
482
|
501
|
},
|
483
|
502
|
|
484
|
503
|
created(){
|
485
|
504
|
this.getlist()
|
|
505
|
+ this.getInitializtion()
|
486
|
506
|
}
|
487
|
507
|
}
|
488
|
508
|
</script>
|