Commit 03da7023 authored by 黄奎's avatar 黄奎

新增修改订单调整

parent 7862e151
This diff is collapsed.
...@@ -991,8 +991,7 @@ ...@@ -991,8 +991,7 @@
</div> </div>
</td> </td>
<td style="border:none;" v-if="AuthorityObj.isShowEdit && viewType == 0"> <td style="border:none;" v-if="AuthorityObj.isShowEdit && viewType == 0">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400;display:none;" label="编辑"
@click="editOrder(item)" />
<q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;display:none;"> <q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;display:none;">
<q-list> <q-list>
<q-item clickable v-close-popup> <q-item clickable v-close-popup>
...@@ -1917,10 +1916,7 @@ ...@@ -1917,10 +1916,7 @@
this.IsRefund = 0 this.IsRefund = 0
var newUrlPath = "/financial/financalDocument/ChoiceAddFinancialDocuments"; var newUrlPath = "/financial/financalDocument/ChoiceAddFinancialDocuments";
this.OpenNewUrl(newUrlPath, query); this.OpenNewUrl(newUrlPath, query);
// this.$router.push({
// path: newUrlPath,
// query
// });
}, },
chanceType_lx(obj) { chanceType_lx(obj) {
//留学的时 成本制单 //留学的时 成本制单
......
...@@ -23,12 +23,14 @@ ...@@ -23,12 +23,14 @@
</div> </div>
</div> </div>
</div> </div>
<abroadlist :dataList="dataList" :loading="loading" @select="selectCourse" :select="defaultCourse"></abroadlist> <abroadlist :dataList="dataList" :loading="loading" @select="selectCourse" :select="defaultCourse">
</abroadlist>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="PageCount" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="PageCount"
:input="true" @input="changePage" /> :input="true" @input="changePage" />
</q-step> </q-step>
<q-step :name="2" title="确认" icon="settings" :done="step > 2"> <q-step :name="2" title="确认" icon="settings" :done="step > 2">
<studyForm ref="orderForm" :save-obj="saveObj" :select="selectedArr" @success="$emit('close')" @cancelloading='cancelloading'></studyForm> <studyForm ref="orderForm" :save-obj="saveObj" :select="selectedArr" @success="$emit('close')"
@cancelloading='cancelloading'></studyForm>
</q-step> </q-step>
</q-stepper> </q-stepper>
</q-card-section> </q-card-section>
...@@ -44,14 +46,9 @@ ...@@ -44,14 +46,9 @@
</template> </template>
<script> <script>
import {
queryCourseDropdownList,
getCourseSubject
} from "../../../api/course/index";
import { import {
queryStudyAbroadPage queryStudyAbroadPage
} from '../../../api/studyabroad/index' } from '../../../api/studyabroad/index'
import abroadlist from "./transfer-order/abroadlist"; import abroadlist from "./transfer-order/abroadlist";
import studyForm from "./transfer-order/study-form"; import studyForm from "./transfer-order/study-form";
export default { export default {
...@@ -84,7 +81,7 @@ ...@@ -84,7 +81,7 @@
dataList: [], dataList: [],
defaultCourse: [], defaultCourse: [],
saveObj: {}, //所选数据 saveObj: {}, //所选数据
loading:false, loading: false,
studyList: [{ studyList: [{
Id: 1, Id: 1,
Name: '留学' Name: '留学'
...@@ -93,11 +90,11 @@ ...@@ -93,11 +90,11 @@
Name: '就业' Name: '就业'
}], }],
PageCount: 0, PageCount: 0,
selectedArr:[] selectedArr: []
}; };
}, },
mounted() { mounted() {
if(this.select){ if (this.select) {
this.selectedArr = this.select; this.selectedArr = this.select;
} }
this.getList(); this.getList();
...@@ -121,13 +118,13 @@ ...@@ -121,13 +118,13 @@
}, },
// 选择课程 // 选择课程
selectCourse(val) { selectCourse(val) {
if(val&&val.length>0){ if (val && val.length > 0) {
this.saveObj = val[0]; this.saveObj = val[0];
this.defaultCourse = val; this.defaultCourse = val;
this.saveObj.OrderCourseList =[]; this.saveObj.OrderCourseList = [];
this.saveObj.OrderCourseList.push(JSON.parse(JSON.stringify(this.saveObj))); this.saveObj.OrderCourseList.push(JSON.parse(JSON.stringify(this.saveObj)));
this.saveObj.TextbookFee=0; this.saveObj.TextbookFee = 0;
this.saveObj.CoursewareFee=0; this.saveObj.CoursewareFee = 0;
} }
}, },
next() { next() {
...@@ -146,11 +143,11 @@ ...@@ -146,11 +143,11 @@
this.getList(); this.getList();
}, },
saveOrderForm() { saveOrderForm() {
this.loading1 = true this.loading1 = true;
this.$refs.orderForm.saveOrderInfo(); this.$refs.orderForm.saveOrderInfo();
}, },
cancelloading() { cancelloading() {
this.loading1 = false this.loading1 = false;
}, },
} }
}; };
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
v-model="courseMsg.School_Id" :options="schoolList" emit-value map-options label="关联校区" v-model="courseMsg.School_Id" :options="schoolList" emit-value map-options label="关联校区"
clearable /> clearable />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @change="resetSearch" clearable filled v-model="courseMsg.ClassNo" label="班号" <q-input @change="resetSearch" clearable filled v-model="courseMsg.ClassNo" label="班号"
@clear="resetSearch" maxlength="20" /> @clear="resetSearch" maxlength="20" />
...@@ -74,8 +73,7 @@ ...@@ -74,8 +73,7 @@
</q-step> </q-step>
<q-step :name="3" title="确认" icon="settings" :done="step > 3"> <q-step :name="3" title="确认" icon="settings" :done="step > 3">
<orderForm ref="orderForm" :mode="mode" :schoolList="schoolList" :save-obj="saveObj" :stuData="stuData" <orderForm ref="orderForm" :mode="mode" :schoolList="schoolList" :save-obj="saveObj" :stuData="stuData"
:modityOrderType="1" :selectedCourseList="selectedCourseList" @success="$emit('close')" @success="$emit('close')" @cancelloading="cancelloading"></orderForm>
@cancelloading="cancelloading"></orderForm>
</q-step> </q-step>
</q-stepper> </q-stepper>
</q-card-section> </q-card-section>
...@@ -100,11 +98,9 @@ ...@@ -100,11 +98,9 @@
} from "../../../api/sale/sale"; } from "../../../api/sale/sale";
import { import {
getSchoolDropdown, //获取校区列表 getSchoolDropdown, //获取校区列表
} from "../../../api/school/index"; } from "../../../api/school/index";
import { import {
queryCourseDropdownList, queryCourseDropdownList,
} from "../../../api/course/index"; } from "../../../api/course/index";
import Mode from "./transfer-order/tickMode"; import Mode from "./transfer-order/tickMode";
import Course from "./transfer-order/courselist"; import Course from "./transfer-order/courselist";
...@@ -188,7 +184,7 @@ ...@@ -188,7 +184,7 @@
myClassList: [], myClassList: [],
allClassList: [], allClassList: [],
loading1: false, //防止多次点击 loading1: false, //防止多次点击
mode: 1, mode: 1, //1-班课,2-常规约课,3-vip 1对1
selectedCourseList: [], //多选课程 selectedCourseList: [], //多选课程
}; };
}, },
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
</div> </div>
</div> </div>
</div> </div>
<q-table :pagination="msg" :selection="mode==2?'multiple':'single'" :selected.sync="selection" <q-table :pagination="msg" :selection="mode==2?'multiple':'single'" :selected.sync="selection"
no-data-label="暂无相关数据" flat class="sticky-tow-column-table sticky-two-header-table" separator="none" no-data-label="暂无相关数据" flat class="sticky-tow-column-table sticky-two-header-table" separator="none"
:data="dataList" :columns="columns" row-key="ClassId" @update:selected="emitSel" :data="dataList" :columns="columns" row-key="ClassId" @update:selected="emitSel"
...@@ -50,15 +49,14 @@ ...@@ -50,15 +49,14 @@
} from "../../../../api/sale/sale"; } from "../../../../api/sale/sale";
export default { export default {
components: { components: {},
},
props: { props: {
select: { select: {
type: Array, type: Array,
default: () => [] default: () => []
}, },
mode: { mode: {
type: Number, //1:约课,2:班课,3-Vip type: Number, //1-班课,2-常规约课,3-Vip 1对1课程
default: 1 default: 1
}, },
}, },
...@@ -173,7 +171,6 @@ ...@@ -173,7 +171,6 @@
} }
} }
}; };
</script> </script>
<style> <style>
.table { .table {
...@@ -220,5 +217,4 @@ ...@@ -220,5 +217,4 @@
.yueke-CourseName span { .yueke-CourseName span {
color: #2961fe; color: #2961fe;
} }
</style>
</style> \ No newline at end of file
...@@ -131,7 +131,6 @@ ...@@ -131,7 +131,6 @@
queryCourseDropdownList, queryCourseDropdownList,
getCourseSubject getCourseSubject
} from '../../api/course/index' } from '../../api/course/index'
import myOrderForm from '../../components/sale/myOrder-form'
import classinfoForm from '../../components/course/classinfo-form'; import classinfoForm from '../../components/course/classinfo-form';
import orderlist from '../../components/sale/orderlist' import orderlist from '../../components/sale/orderlist'
export default { export default {
...@@ -139,7 +138,6 @@ ...@@ -139,7 +138,6 @@
title: "我的语培订单" title: "我的语培订单"
}, },
components: { components: {
myOrderForm,
classinfoForm, classinfoForm,
orderlist orderlist
}, },
......
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
</q-calendar> </q-calendar>
</div> </div>
<SubscribeForm v-model="showForm" :editType="editType" :dateObj="dateObj" :saveObj="saveObj" :auth="auth" <SubscribeForm v-model="showForm" :editType="editType" :dateObj="dateObj" :saveObj="saveObj" :auth="auth"
:teacherList="TeacherList2" @success="successHandle" /> :teacherList="TeacherList" @success="successHandle" />
</div> </div>
</template> </template>
...@@ -386,7 +386,6 @@ ...@@ -386,7 +386,6 @@
"brown", "brown",
], ],
legendList: [], legendList: [],
TeacherList2: [],
events: [], events: [],
dateObj: {}, dateObj: {},
saveObj: {}, saveObj: {},
...@@ -499,7 +498,6 @@ ...@@ -499,7 +498,6 @@
getTeacherList() { getTeacherList() {
getTeacherDropDownList({ getTeacherDropDownList({
LeaveStatus: 1, LeaveStatus: 1,
}).then(res => { }).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.TeacherList = JSON.parse(JSON.stringify(res.Data)); this.TeacherList = JSON.parse(JSON.stringify(res.Data));
...@@ -508,11 +506,6 @@ ...@@ -508,11 +506,6 @@
TId: 0 TId: 0
}; };
this.TeacherList.unshift(obj); this.TeacherList.unshift(obj);
this.TeacherList2 = JSON.parse(JSON.stringify(res.Data));
this.TeacherList2.unshift({
TeacherName: "请选择",
TId: 0
});
this.legendList = JSON.parse(JSON.stringify(res.Data)); this.legendList = JSON.parse(JSON.stringify(res.Data));
this.legendList.forEach((item, index) => { this.legendList.forEach((item, index) => {
item.bg = this.colorList[index]; item.bg = this.colorList[index];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment