|
@@ -71,9 +71,13 @@
|
|
:prop="'itemList.' + index + '.itemCategory'"
|
|
:prop="'itemList.' + index + '.itemCategory'"
|
|
:rules="rules['itemCategory']"
|
|
:rules="rules['itemCategory']"
|
|
>
|
|
>
|
|
- <el-select v-model="item.itemCategory" placeholder="请选择成本类型">
|
|
|
|
- <el-option label="分成成本" :value="1"></el-option>
|
|
|
|
- <el-option label="其他成本" :value="2"></el-option>
|
|
|
|
|
|
+ <el-select v-model="item.itemCategory" placeholder="请选择成本类别">
|
|
|
|
+ <el-option
|
|
|
|
+ :label="item.categoryName"
|
|
|
|
+ :value="item.categoryId"
|
|
|
|
+ v-for="item in categoryList"
|
|
|
|
+ :key="item.categoryId"
|
|
|
|
+ ></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
@@ -126,12 +130,8 @@
|
|
:rules="rules['itemType']"
|
|
:rules="rules['itemType']"
|
|
>
|
|
>
|
|
<el-select v-model="item.itemType" placeholder="请选择成本类型">
|
|
<el-select v-model="item.itemType" placeholder="请选择成本类型">
|
|
- <el-option
|
|
|
|
- :label="item.categoryName"
|
|
|
|
- :value="item.categoryId"
|
|
|
|
- v-for="item in categoryList"
|
|
|
|
- :key="item.categoryId"
|
|
|
|
- ></el-option>
|
|
|
|
|
|
+ <el-option label="百分比" :value="1"></el-option>
|
|
|
|
+ <el-option label="固定" :value="2"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
@@ -328,7 +328,6 @@ export default {
|
|
e.educationTypeId == educationTypeId &&
|
|
e.educationTypeId == educationTypeId &&
|
|
e.itemCategory == itemCategory
|
|
e.itemCategory == itemCategory
|
|
);
|
|
);
|
|
- console.log(levelList, 666);
|
|
|
|
const len = levelList.length;
|
|
const len = levelList.length;
|
|
if (len > 1) {
|
|
if (len > 1) {
|
|
const len1 = levelList.filter((e) => e.businessId == -1).length;
|
|
const len1 = levelList.filter((e) => e.businessId == -1).length;
|
|
@@ -395,9 +394,8 @@ export default {
|
|
this.getEduList();
|
|
this.getEduList();
|
|
},
|
|
},
|
|
getCategoryList() {
|
|
getCategoryList() {
|
|
- categoryList().then((res) => {
|
|
|
|
|
|
+ categoryList({ status: "0,1" }).then((res) => {
|
|
this.categoryList = res.rows;
|
|
this.categoryList = res.rows;
|
|
- console.log(this.categoryList, "this.categoryList");
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
getOrderCostDetail() {
|
|
getOrderCostDetail() {
|