|
@@ -155,40 +155,48 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form label-position="right" label-width="120px" :model="listData">
|
|
|
<el-form-item label="商品封面">
|
|
|
- <div class="imgBoxins">
|
|
|
- <img
|
|
|
- :src="$methodsTools.splitImgHost(listData.coverUrl)"
|
|
|
- alt=""
|
|
|
- />
|
|
|
- <div
|
|
|
- class="posimg"
|
|
|
- v-if="
|
|
|
- listData.coverUrl === null ||
|
|
|
- listData.coverUrl === '' ||
|
|
|
- listData.coverUrl === undefined
|
|
|
- "
|
|
|
- >
|
|
|
- <label for="uplose">
|
|
|
- <i class="el-icon-circle-plus-outline iconStsz"></i
|
|
|
- ></label>
|
|
|
- <input
|
|
|
- ref="file"
|
|
|
- type="file"
|
|
|
- style="display: none"
|
|
|
- id="uplose"
|
|
|
- @change="getImgFile"
|
|
|
- />
|
|
|
- <p>
|
|
|
- 注:请上传小于300kb,尺寸为750*440的图片,支持gif、jpg、jpeg、png等类型
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <el-row :gutter="10" style="margin-bottom: 10px">
|
|
|
+ <el-col :span="12">
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ width: 100%;
|
|
|
+ height: 150px;
|
|
|
+ border: 2px dashed #999;
|
|
|
+ border-radius: 28px;
|
|
|
+ line-height: 150px;
|
|
|
+ text-align: center;
|
|
|
+ "
|
|
|
+ v-if="!listData.coverUrl"
|
|
|
+ >
|
|
|
+ <label for="uplose">
|
|
|
+ <i class="el-icon-circle-plus-outline iconStsz"></i
|
|
|
+ ></label>
|
|
|
+ <input
|
|
|
+ ref="file"
|
|
|
+ type="file"
|
|
|
+ style="display: none"
|
|
|
+ id="uplose"
|
|
|
+ @change="getImgFile"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <el-image
|
|
|
+ v-else
|
|
|
+ style="width: 100%"
|
|
|
+ :src="$methodsTools.splitImgHost(listData.coverUrl)"
|
|
|
+ :preview-src-list="[
|
|
|
+ $methodsTools.splitImgHost(listData.coverUrl),
|
|
|
+ ]"
|
|
|
+ >
|
|
|
+ </el-image>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="11">
|
|
|
+ <span style="color: #999; font-size: 13px"
|
|
|
+ >注:请上传小于300kb,尺寸为750*440的图片,支持gif、jpg、jpeg、png等类型</span
|
|
|
+ >
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-button
|
|
|
- v-if="
|
|
|
- listData.coverUrl !== null &&
|
|
|
- listData.coverUrl !== '' &&
|
|
|
- listData.coverUrl !== undefined
|
|
|
- "
|
|
|
+ v-if="listData.coverUrl"
|
|
|
type="danger"
|
|
|
size="mini"
|
|
|
class="margin-top: 20px;"
|
|
@@ -210,12 +218,18 @@
|
|
|
ref="listData2"
|
|
|
>
|
|
|
<el-form-item label="商品标准价格" prop="standPrice">
|
|
|
- <el-input class="numInputs" v-model="listData.standPrice"
|
|
|
+ <el-input
|
|
|
+ class="numInputs"
|
|
|
+ v-model="listData.standPrice"
|
|
|
+ @change="judgeResult1"
|
|
|
><template slot="prepend">¥</template></el-input
|
|
|
>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="商品最低价格" prop="lowestPrice">
|
|
|
- <el-input class="numInputs" v-model="listData.lowestPrice"
|
|
|
+ <el-input
|
|
|
+ class="numInputs"
|
|
|
+ v-model="listData.lowestPrice"
|
|
|
+ @change="judgeResult2"
|
|
|
><template slot="prepend">¥</template></el-input
|
|
|
>
|
|
|
</el-form-item>
|
|
@@ -433,6 +447,9 @@
|
|
|
? "回放"
|
|
|
: "未知"
|
|
|
}}</span>
|
|
|
+ <span v-else-if="item.scope === 'businessType'">
|
|
|
+ {{ scope.row[item.prop1] }}-{{ scope.row[item.prop2] }}
|
|
|
+ </span>
|
|
|
<span v-else-if="item.scope === 'type'">
|
|
|
{{
|
|
|
scope.row[item.prop] === 1
|
|
@@ -550,6 +567,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="补考次数" prop="studyCount">
|
|
|
<el-input-number
|
|
|
+ :precision="0"
|
|
|
class="numInputs"
|
|
|
v-model="listData.studyCount"
|
|
|
:min="1"
|
|
@@ -600,6 +618,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="学习次数" prop="studyCount">
|
|
|
<el-input-number
|
|
|
+ :precision="0"
|
|
|
class="numInputs"
|
|
|
v-model="listData.studyCount"
|
|
|
:min="1"
|
|
@@ -633,12 +652,11 @@
|
|
|
class="dis_fs"
|
|
|
v-if="listData.goodsType === 1 || listData.goodsType === 2"
|
|
|
>
|
|
|
- <el-popover
|
|
|
- placement="bottom-start"
|
|
|
- trigger="click"
|
|
|
- class="checkBoxSty1"
|
|
|
- >
|
|
|
- <el-checkbox-group v-model="listData.certificateIds">
|
|
|
+ <el-popover placement="bottom-start" trigger="click">
|
|
|
+ <el-checkbox-group
|
|
|
+ v-model="listData.certificateIds"
|
|
|
+ class="checkBix"
|
|
|
+ >
|
|
|
<el-checkbox
|
|
|
v-for="(item, index) in certificateOption"
|
|
|
:key="index"
|
|
@@ -803,6 +821,7 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
|
+ @opened="prepareEnd"
|
|
|
:visible.sync="dialogVisibleTableBoxs"
|
|
|
width="800px"
|
|
|
:show-close="false"
|
|
@@ -890,6 +909,7 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
|
+ @opened="prepareEnd"
|
|
|
:visible.sync="dialogVisibleTableBoxs2"
|
|
|
width="800px"
|
|
|
:show-close="false"
|
|
@@ -954,6 +974,9 @@
|
|
|
: "未知"
|
|
|
}}
|
|
|
</span>
|
|
|
+ <span v-else-if="item.scope === 'businessType'">
|
|
|
+ {{ scope.row[item.prop1] }}-{{ scope.row[item.prop2] }}
|
|
|
+ </span>
|
|
|
<span v-else-if="item.scope === 'type'">
|
|
|
{{
|
|
|
scope.row[item.prop] === 1
|
|
@@ -1115,6 +1138,9 @@
|
|
|
>
|
|
|
</el-popover>
|
|
|
</ul>
|
|
|
+ <span v-else-if="item.scope === 'canDownload'">{{
|
|
|
+ scope.row[item.prop] === 1 ? "是" : "否"
|
|
|
+ }}</span>
|
|
|
<span v-else>{{ scope.row[item.prop] }}</span></template
|
|
|
>
|
|
|
</el-table-column></template
|
|
@@ -1276,6 +1302,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
+ <search-box-new
|
|
|
+ ref="searchBox"
|
|
|
+ :formData="formDataBK"
|
|
|
+ :formList="formListBK"
|
|
|
+ @search="getGoodsList(1)"
|
|
|
+ @init="getGoodsList(2)"
|
|
|
+ />
|
|
|
<el-table
|
|
|
ref="multipleTable"
|
|
|
:data="goodsList"
|
|
@@ -1307,14 +1340,24 @@
|
|
|
header-align="center"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row[item.prop] }}</span></template
|
|
|
+ <span v-if="item.scope === 'status'">{{
|
|
|
+ scope.row[item.prop] === 1 ? "上架" : "未上架"
|
|
|
+ }}</span>
|
|
|
+ <span v-else-if="item.scope === 'status1'">{{
|
|
|
+ scope.row[item.prop] === 1 ? "有效" : "无效"
|
|
|
+ }}</span>
|
|
|
+ <span v-else-if="item.scope === 'times'">
|
|
|
+ {{ $methodsTools.onlyForma(scope.row[item.prop1]) }} -
|
|
|
+ {{ $methodsTools.onlyForma(scope.row[item.prop2]) }}
|
|
|
+ </span>
|
|
|
+ <span v-else>{{ scope.row[item.prop] }}</span></template
|
|
|
>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<pagination
|
|
|
:total="total5"
|
|
|
- :pageSize="formData.pageSize"
|
|
|
- :currentPage="formData.pageNum"
|
|
|
+ :pageSize="formDataBK.pageSize"
|
|
|
+ :currentPage="formDataBK.pageNum"
|
|
|
@handleSizeChange="handleSizeChange5"
|
|
|
@handleCurrentChange="handleCurrentChange5"
|
|
|
/>
|
|
@@ -1362,6 +1405,7 @@ export default {
|
|
|
coverUrl: "oss/images/avatar/20211013/1634097664410_1397766697",
|
|
|
educationTypeId: "",
|
|
|
businessId: "",
|
|
|
+ status: 1,
|
|
|
schoolId: "",
|
|
|
majorId: "",
|
|
|
subjectId: "",
|
|
@@ -1585,14 +1629,36 @@ export default {
|
|
|
{
|
|
|
label: "商品编码",
|
|
|
prop: "code",
|
|
|
+ width: "140px",
|
|
|
},
|
|
|
{
|
|
|
label: "商品名称",
|
|
|
prop: "goodsName",
|
|
|
+ width: "260px",
|
|
|
},
|
|
|
{
|
|
|
label: "标准价格(¥)",
|
|
|
prop: "standPrice",
|
|
|
+ width: "140px",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "商品状态",
|
|
|
+ prop: "status",
|
|
|
+ scope: "status1",
|
|
|
+ width: "110px",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "商品有效期",
|
|
|
+ prop1: "validityStartTime",
|
|
|
+ prop2: "validityEndTime",
|
|
|
+ scope: "times",
|
|
|
+ width: "310px",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "商品可售状态",
|
|
|
+ prop: "goodsStatus",
|
|
|
+ scope: "status",
|
|
|
+ width: "130px",
|
|
|
},
|
|
|
],
|
|
|
total5: 0,
|
|
@@ -1616,6 +1682,19 @@ export default {
|
|
|
placeholder: "请输入讲义标题/讲义编码",
|
|
|
},
|
|
|
],
|
|
|
+ formListBK: [
|
|
|
+ {
|
|
|
+ prop: "searchKey",
|
|
|
+ placeholder: "请输入商品编码/商品名称",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ formDataBK: {
|
|
|
+ searchKey: "",
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ educationTypeId: "",
|
|
|
+ businessId: "",
|
|
|
+ },
|
|
|
total3: 0,
|
|
|
formData3: {
|
|
|
pageNum: 1,
|
|
@@ -1624,7 +1703,8 @@ export default {
|
|
|
examType: 1,
|
|
|
educationTypeId: "",
|
|
|
businessId: "",
|
|
|
- names: "",
|
|
|
+ subjectId:"",
|
|
|
+ key: "",
|
|
|
},
|
|
|
formList3: [
|
|
|
{
|
|
@@ -1647,25 +1727,32 @@ export default {
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- prop: "names",
|
|
|
- placeholder: "请输入标题名称",
|
|
|
+ prop: "subjectId",
|
|
|
+ placeholder: "科目",
|
|
|
+ scope: "sujectType",
|
|
|
+ edu: "educationTypeId",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "key",
|
|
|
+ placeholder: "标题前缀/标题编码/标题名称",
|
|
|
},
|
|
|
],
|
|
|
// 视频商品表格数据------------------------------------------------------------------------start
|
|
|
tableSetTSB: [
|
|
|
{ label: "排序", prop: "sort", scope: "inputs", width: "100" },
|
|
|
- { label: "科目名称", prop: "code" },
|
|
|
- { label: "课程名称", prop: "prefixName", width: "120" },
|
|
|
- { label: "科目", prop: "subjectName" },
|
|
|
+ { label: "课程编码", prop: "code", width: "140" },
|
|
|
+ { label: "课程名称", prop: "prefixName", width: "190" },
|
|
|
+ { label: "科目", prop: "subjectName", width: "150" },
|
|
|
{ label: "专业", prop: "categoryName" },
|
|
|
- { label: "院校", prop: "schoolName" },
|
|
|
+ { label: "院校", prop: "schoolName", width: "150" },
|
|
|
{
|
|
|
label: "业务层次",
|
|
|
prop1: "projectName",
|
|
|
prop2: "businessName",
|
|
|
scope: "busin",
|
|
|
+ width: "350px",
|
|
|
},
|
|
|
- { label: "教育类型", prop: "educationName" },
|
|
|
+ { label: "教育类型", prop: "educationName", width: "160" },
|
|
|
{
|
|
|
label: "发布状态",
|
|
|
prop: "publishStatus",
|
|
@@ -1674,14 +1761,14 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
tableSetTSBBOX: [
|
|
|
- { label: "课程编码", prop: "code" },
|
|
|
- { label: "名称前缀", prop: "prefixName", width: "120" },
|
|
|
- { label: "课程标题", prop: "courseName" },
|
|
|
+ { label: "课程编码", prop: "code", width: "140px" },
|
|
|
+ { label: "名称前缀", prop: "prefixName", width: "160px" },
|
|
|
+ { label: "课程标题", prop: "courseName", width: "300px" },
|
|
|
{
|
|
|
label: "发布状态",
|
|
|
prop: "publishStatus",
|
|
|
scope: "Status",
|
|
|
- width: "120",
|
|
|
+ width: "120px",
|
|
|
},
|
|
|
],
|
|
|
total: 0, //一共多少条
|
|
@@ -1705,18 +1792,24 @@ export default {
|
|
|
// scope: "businessLevel",
|
|
|
// edu: "educationTypeId",
|
|
|
// },
|
|
|
- {
|
|
|
- prop: "schoolId",
|
|
|
- placeholder: "院校",
|
|
|
- scope: "schoolList",
|
|
|
- edu: "educationTypeId",
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // prop: "schoolId",
|
|
|
+ // placeholder: "院校",
|
|
|
+ // scope: "schoolList",
|
|
|
+ // edu: "educationTypeId",
|
|
|
+ // },
|
|
|
{
|
|
|
prop: "majorId",
|
|
|
placeholder: "专业",
|
|
|
scope: "Professional",
|
|
|
edu: "educationTypeId",
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: "subjectId",
|
|
|
+ placeholder: "科目",
|
|
|
+ scope: "sujectType",
|
|
|
+ edu: "educationTypeId",
|
|
|
+ },
|
|
|
// {
|
|
|
// prop: "publishStatus",
|
|
|
// placeholder: "发布状态",
|
|
@@ -1734,7 +1827,7 @@ export default {
|
|
|
// },
|
|
|
{
|
|
|
prop: "key",
|
|
|
- placeholder: "请输入课程标题/课程编码",
|
|
|
+ placeholder: "课程标题/课程编码/标题前缀",
|
|
|
},
|
|
|
],
|
|
|
disCheckList: [],
|
|
@@ -1745,17 +1838,23 @@ export default {
|
|
|
auditionList: [],
|
|
|
aboutJYBox: false,
|
|
|
jYtableSet: [
|
|
|
- { label: "讲义编码", prop: "encoder" },
|
|
|
+ { label: "讲义编码", prop: "encoder", width: "150px" },
|
|
|
{ label: "讲义标题", prop: "handoutsName" },
|
|
|
+ // {
|
|
|
+ // label: "适合业务层级",
|
|
|
+ // prop: "courseHandoutsBusinessVo",
|
|
|
+ // prop1: "educationName",
|
|
|
+ // prop2: "projectName",
|
|
|
+ // prop3: "businessName",
|
|
|
+ // scope: "eduType",
|
|
|
+ // },
|
|
|
{
|
|
|
- label: "适合业务层级",
|
|
|
- prop: "courseHandoutsBusinessVo",
|
|
|
- prop1: "educationName",
|
|
|
- prop2: "projectName",
|
|
|
- prop3: "businessName",
|
|
|
- scope: "eduType",
|
|
|
+ label: "是否可下载",
|
|
|
+ prop: "canDownload",
|
|
|
+ scope: "canDownload",
|
|
|
+ width: "140px",
|
|
|
},
|
|
|
- { label: "发布状态", prop: "status", scope: "Status" },
|
|
|
+ { label: "发布状态", prop: "status", scope: "Status", width: "140px" },
|
|
|
],
|
|
|
jYtableData: [],
|
|
|
jYactiveBoxs: false,
|
|
@@ -1767,21 +1866,37 @@ export default {
|
|
|
// 题库商品表格数据------------------------------------------------------------------------start
|
|
|
tableSetTSB2: [
|
|
|
{ label: "排序", prop: "sort", scope: "inputs", width: "100" },
|
|
|
+ { label: "题卷名称", prop: "name", width: "300" },
|
|
|
{ label: "科目", prop: "subjectName", width: "130" },
|
|
|
- { label: "题卷名称", prop: "name" },
|
|
|
+ {
|
|
|
+ label: "业务层次",
|
|
|
+ prop1: "projectName",
|
|
|
+ prop2: "businessName",
|
|
|
+ width: "300",
|
|
|
+ scope: "businessType",
|
|
|
+ },
|
|
|
+ { label: "教育类型", prop: "educationName", width: "160" },
|
|
|
{ label: "题库类型", prop: "type", scope: "type", width: "120" },
|
|
|
- // {
|
|
|
- // label: "发布状态",
|
|
|
- // prop: "publishStatus",
|
|
|
- // scope: "Status",
|
|
|
- // width: "120",
|
|
|
- // },
|
|
|
+ {
|
|
|
+ label: "发布状态",
|
|
|
+ prop: "publishStatus",
|
|
|
+ scope: "Status",
|
|
|
+ },
|
|
|
],
|
|
|
tableSetTSBBOX2: [
|
|
|
- { label: "编码", prop: "code" },
|
|
|
- { label: "前缀", prop: "prefixName", width: "120" },
|
|
|
- { label: "名称", prop: "name" },
|
|
|
- { label: "题库类型", prop: "type", scope: "type" },
|
|
|
+ { label: "题卷编码", prop: "code", width: "120" },
|
|
|
+ { label: "题卷前缀", prop: "prefixName", width: "120" },
|
|
|
+ { label: "题卷名称", prop: "name", width: "300" },
|
|
|
+ { label: "科目", prop: "subjectName", width: "160" },
|
|
|
+ {
|
|
|
+ label: "业务层次",
|
|
|
+ prop1: "projectName",
|
|
|
+ prop2: "businessName",
|
|
|
+ width: "300",
|
|
|
+ scope: "businessType",
|
|
|
+ },
|
|
|
+ { label: "教育类型", prop: "educationName", width: "160" },
|
|
|
+ { label: "题库类型", prop: "type", scope: "type", width: "120" },
|
|
|
{
|
|
|
label: "发布状态",
|
|
|
prop: "publishStatus",
|
|
@@ -1833,13 +1948,32 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
- created() {
|
|
|
- this.getDict();
|
|
|
- },
|
|
|
+ created() {},
|
|
|
mounted() {
|
|
|
// this.getJyData();
|
|
|
+ this.getDict();
|
|
|
},
|
|
|
methods: {
|
|
|
+ judgeResult1(v) {
|
|
|
+ if (
|
|
|
+ Number(this.listData.lowestPrice) &&
|
|
|
+ Number(this.listData.lowestPrice) > Number(this.listData.standPrice)
|
|
|
+ ) {
|
|
|
+ this.listData.lowestPrice = "";
|
|
|
+ this.$message.warning("商品最低价格高于标准价格,请重新输入");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ judgeResult2(v) {
|
|
|
+ if (
|
|
|
+ Number(this.listData.standPrice) &&
|
|
|
+ Number(this.listData.standPrice) < Number(this.listData.lowestPrice)
|
|
|
+ ) {
|
|
|
+ this.listData.lowestPrice = "";
|
|
|
+ this.$message.warning("商品最低价格高于标准价格,请重新输入");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ },
|
|
|
changeTypes() {
|
|
|
this.listData.studyCount = 1;
|
|
|
if (this.listData.goodsType === 3 || this.listData.goodsType === 4) {
|
|
@@ -1921,21 +2055,34 @@ export default {
|
|
|
this.goodsNames = "";
|
|
|
this.goodsCode = "";
|
|
|
},
|
|
|
- getGoodsList() {
|
|
|
+ getGoodsList(int) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
if (!this.listData.businessId) {
|
|
|
this.$message.warning("请先选择业务层次");
|
|
|
return;
|
|
|
} else {
|
|
|
- this.formData.businessId = this.listData.businessId;
|
|
|
+ this.formDataBK.businessId = this.listData.businessId;
|
|
|
}
|
|
|
if (this.listData.goodsType === 3) {
|
|
|
- this.formData.filtration = 2;
|
|
|
+ this.formDataBK.filtration = 2;
|
|
|
}
|
|
|
if (this.listData.goodsType === 4) {
|
|
|
- this.formData.filtration = 1;
|
|
|
+ this.formDataBK.filtration = 1;
|
|
|
+ }
|
|
|
+ if (int === 1) {
|
|
|
+ this.formDataBK.pageNum = 1;
|
|
|
}
|
|
|
- this.$api.inquireGoodslistGoods(this.formData).then((res) => {
|
|
|
+ if (int === 2) {
|
|
|
+ this.formDataBK.searchKey = "";
|
|
|
+ this.formDataBK.pageNum = 1;
|
|
|
+ }
|
|
|
+ if (int === 3) {
|
|
|
+ this.formDataBK.searchKey = "";
|
|
|
+ this.formDataBK.pageNum = 1;
|
|
|
+ this.formDataBK.pageSize = 10;
|
|
|
+ }
|
|
|
+ var data = JSON.parse(JSON.stringify(this.formDataBK));
|
|
|
+ this.$api.inquireGoodslistGoods(data).then((res) => {
|
|
|
for (let i = 0; i < res.rows.length; i++) {
|
|
|
if (res.rows[i].goodsId === this.getNewGoodsId) {
|
|
|
res.rows[i].goodsStatus = 1;
|
|
@@ -1948,16 +2095,16 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
handleSizeChange5(v) {
|
|
|
- this.formData.pageSize = v;
|
|
|
- this.formData.pageNum = 1;
|
|
|
+ this.formDataBK.pageSize = v;
|
|
|
+ this.formDataBK.pageNum = 1;
|
|
|
this.getGoodsList();
|
|
|
},
|
|
|
handleCurrentChange5(v) {
|
|
|
- this.formData.pageNum = v;
|
|
|
+ this.formDataBK.pageNum = v;
|
|
|
this.getGoodsList();
|
|
|
},
|
|
|
async goToActiveGoods() {
|
|
|
- await this.getGoodsList();
|
|
|
+ await this.getGoodsList(3);
|
|
|
this.goodsId = this.listData.makeGoodsId;
|
|
|
this.goodsNames = this.listData.makeGoodsName;
|
|
|
this.goodsCode = this.listData.makeGoodsCode;
|
|
@@ -2145,7 +2292,7 @@ export default {
|
|
|
res.rows.map((item, index) => {
|
|
|
var array = [];
|
|
|
item.courseProjectTypeVo.map((items, indexs) => {
|
|
|
- array.push(items.id);
|
|
|
+ array.push(items.educationId);
|
|
|
});
|
|
|
item.courseArrays = array;
|
|
|
});
|
|
@@ -2197,7 +2344,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
this.majorOption.map((items) => {
|
|
|
- if (items.courseArrays.indexOf(item.projectId) !== -1) {
|
|
|
+ if (items.courseArrays.indexOf(item.educationId) != -1) {
|
|
|
newMajorOption.push(items);
|
|
|
}
|
|
|
});
|
|
@@ -2556,6 +2703,13 @@ export default {
|
|
|
);
|
|
|
// this.listData.standPriceJson[this.NUMBerS] = this.listitemData;
|
|
|
} else {
|
|
|
+ const INQU = this.listData.standPriceJson.some((item) => {
|
|
|
+ return item.priceTypeId === this.listitemData.priceTypeId;
|
|
|
+ });
|
|
|
+ if (INQU) {
|
|
|
+ this.$message.warning("已存在相同费用类型,禁止重复");
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.listitem[0].options.map((i, k) => {
|
|
|
if (i.costId === Number(this.listitemData.priceTypeId)) {
|
|
|
this.listitemData.priceTypeName = i.costName;
|
|
@@ -2575,7 +2729,9 @@ export default {
|
|
|
var a = "";
|
|
|
this.certificateOption.map((item, index) => {
|
|
|
if (item.tpId === id) {
|
|
|
- a = item.typeId ? item.certificateName + ":" + item.title : item.title;
|
|
|
+ a = item.typeId
|
|
|
+ ? item.certificateName + ":" + item.title
|
|
|
+ : item.title;
|
|
|
}
|
|
|
});
|
|
|
return a;
|
|
@@ -2637,12 +2793,25 @@ export default {
|
|
|
this.dialogVisibleTableBoxs = true;
|
|
|
this.$nextTick(function () {
|
|
|
self.$refs.multipleTable.clearSelection();
|
|
|
- // self.$refs.searchBox.changeEducationType(
|
|
|
- // self.listData.educationTypeId
|
|
|
- // );
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ prepareEnd() {
|
|
|
+ this.$refs.searchBox.changeEducationType(
|
|
|
+ this.listData.educationTypeId,
|
|
|
+ true
|
|
|
+ );
|
|
|
+ var a = ''
|
|
|
+ if (this.listData.businessId) {
|
|
|
+ this.newCourTypeOptions.forEach(item => {
|
|
|
+ if(item.id == this.listData.businessId){
|
|
|
+ a = item.projectId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.$refs.searchBox.changeSuject(a)
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
submitTab() {
|
|
|
if (this.activeLists.length === 0) {
|
|
|
this.dialogVisibleTableBoxs = false;
|
|
@@ -2732,14 +2901,14 @@ export default {
|
|
|
this.formData3.pageNum = 1;
|
|
|
// this.formData3.educationTypeId = "";
|
|
|
// this.formData3.businessId = "";
|
|
|
- this.formData3.names = "";
|
|
|
+ this.formData3.key = "";
|
|
|
+ this.formData3.subjectId = "";
|
|
|
this.search3();
|
|
|
},
|
|
|
search3(int) {
|
|
|
var self = this;
|
|
|
var data = JSON.parse(JSON.stringify(self.formData3));
|
|
|
if (data.examType === 1) {
|
|
|
- data.moduleName = data.names;
|
|
|
self.$api.inquireBankModule(data).then((res) => {
|
|
|
res.rows.forEach((item) => {
|
|
|
item.ids = 1 + "-" + item.moduleExamId;
|
|
@@ -2759,7 +2928,6 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
if (data.examType === 2) {
|
|
|
- data.name = data.names;
|
|
|
self.$api.inquirebankchapterList(data).then((res) => {
|
|
|
res.rows.forEach((item) => {
|
|
|
item.ids = 2 + "-" + item.chapterExamId;
|
|
@@ -2778,7 +2946,6 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
if (data.examType === 3) {
|
|
|
- data.examName = data.names;
|
|
|
self.$api.inquirebankexamList(data).then((res) => {
|
|
|
res.rows.forEach((item) => {
|
|
|
item.ids = 3 + "-" + item.examId;
|
|
@@ -2800,6 +2967,7 @@ export default {
|
|
|
},
|
|
|
editAddBoxs2(int) {
|
|
|
var self = this;
|
|
|
+ this.formData3.subjectId = ''
|
|
|
var data = JSON.parse(JSON.stringify(this.formData3));
|
|
|
if (this.listData.educationTypeId) {
|
|
|
data.educationTypeId = this.listData.educationTypeId;
|
|
@@ -2829,9 +2997,9 @@ export default {
|
|
|
if (int === 1) {
|
|
|
self.$nextTick(function () {
|
|
|
self.$refs.multipleTable2.clearSelection();
|
|
|
- self.$refs.searchBox.changeEducationType(
|
|
|
- self.listData.educationTypeId
|
|
|
- );
|
|
|
+ // self.$refs.searchBox.changeEducationType(
|
|
|
+ // self.listData.educationTypeId
|
|
|
+ // );
|
|
|
self.formData3.businessId = self.listData.businessId;
|
|
|
});
|
|
|
}
|
|
@@ -2857,9 +3025,9 @@ export default {
|
|
|
if (int === 1) {
|
|
|
self.$nextTick(function () {
|
|
|
self.$refs.multipleTable2.clearSelection();
|
|
|
- self.$refs.searchBox.changeEducationType(
|
|
|
- self.listData.educationTypeId
|
|
|
- );
|
|
|
+ // self.$refs.searchBox.changeEducationType(
|
|
|
+ // self.listData.educationTypeId
|
|
|
+ // );
|
|
|
self.formData3.businessId = self.listData.businessId;
|
|
|
});
|
|
|
}
|
|
@@ -2886,9 +3054,9 @@ export default {
|
|
|
if (int === 1) {
|
|
|
self.$nextTick(function () {
|
|
|
self.$refs.multipleTable2.clearSelection();
|
|
|
- self.$refs.searchBox.changeEducationType(
|
|
|
- self.listData.educationTypeId
|
|
|
- );
|
|
|
+ // self.$refs.searchBox.changeEducationType(
|
|
|
+ // self.listData.educationTypeId
|
|
|
+ // );
|
|
|
self.formData3.businessId = self.listData.businessId;
|
|
|
});
|
|
|
}
|
|
@@ -3061,7 +3229,7 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
-.checkBoxSty1 {
|
|
|
+.checkBix {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
}
|