Commit 71ee3ebe authored by zhengke's avatar zhengke

修改

parent eaa5185e
...@@ -297,9 +297,14 @@ ...@@ -297,9 +297,14 @@
<q-item-label @click="showContinueClass(item)">续课</q-item-label> <q-item-label @click="showContinueClass(item)">续课</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
<q-item clickable v-close-popup v-close-popup v-if="AuthorityObj.isShowTransOrder"> <q-item clickable v-close-popup v-close-popup v-if="AuthorityObj.isShowTransClassOrder">
<q-item-section> <q-item-section>
<q-item-label @click="transferClass(item)">转班</q-item-label> <q-item-label @click="transferClass(item,1)">转班</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup v-if="AuthorityObj.isShowSeparater">
<q-item-section>
<q-item-label @click="transferClass(item,2)">分拆</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
</q-list> </q-list>
...@@ -812,7 +817,7 @@ ...@@ -812,7 +817,7 @@
@success="refreshOrder"></continueclass-form> @success="refreshOrder"></continueclass-form>
<!-- 转班申请 --> <!-- 转班申请 -->
<transferclass-form v-if="isShowTransferClass" :save-obj="orderObj" @close="closeTransferClassForm" <transferclass-form v-if="isShowTransferClass" :save-obj="orderObj" :ChangeType="ChangeType" @close="closeTransferClassForm"
@success="refreshOrder"></transferclass-form> @success="refreshOrder"></transferclass-form>
<!-- 查看报价单 --> <!-- 查看报价单 -->
...@@ -936,6 +941,7 @@ ...@@ -936,6 +941,7 @@
isShowContract: true, //是否显示合同 isShowContract: true, //是否显示合同
isShowEdit: true, //是否显示修改订单按钮 isShowEdit: true, //是否显示修改订单按钮
isShowTransClassOrder: false, //是否显示转班按钮 isShowTransClassOrder: false, //是否显示转班按钮
isShowSeparater:false //是否显示分拆
}, },
isShowEduForm: false, //是否显示新增修改合同弹窗 isShowEduForm: false, //是否显示新增修改合同弹窗
...@@ -947,7 +953,8 @@ ...@@ -947,7 +953,8 @@
isEditOrder: false, //是否有【总经理】修改订单但权限 isEditOrder: false, //是否有【总经理】修改订单但权限
newModityOrderType: 0, newModityOrderType: 0,
isChaBan: 0, //是否插班(0-正常报入,1-插班报入) isChaBan: 0, //是否插班(0-正常报入,1-插班报入)
isShowTransferClass: false //是否显示转班 isShowTransferClass: false, //是否显示转班
ChangeType:1 //1-转班 2-分拆
} }
}, },
created() { created() {
...@@ -1038,6 +1045,9 @@ ...@@ -1038,6 +1045,9 @@
if (this.authObj.isShowTransClassOrder != null && this.authObj.isShowTransClassOrder) { if (this.authObj.isShowTransClassOrder != null && this.authObj.isShowTransClassOrder) {
this.AuthorityObj.isShowTransClassOrder = this.authObj.isShowTransClassOrder; this.AuthorityObj.isShowTransClassOrder = this.authObj.isShowTransClassOrder;
} }
if (this.authObj.isShowSeparater !=null && this.authObj.isShowSeparater){
this.AuthorityObj.isShowSeparater = this.authObj.isShowSeparater;
}
} }
}, },
//关闭报价单 //关闭报价单
...@@ -1090,8 +1100,9 @@ ...@@ -1090,8 +1100,9 @@
}, },
//转班 //转班
transferClass(item) { transferClass(item,type) {
this.orderObj = item; this.orderObj = item;
this.ChangeType = type;
this.isShowTransferClass = true; this.isShowTransferClass = true;
}, },
......
...@@ -110,7 +110,8 @@ ...@@ -110,7 +110,8 @@
<template v-if="isShowTuike"> <template v-if="isShowTuike">
<q-card-section> <q-card-section>
<div class="text-h6"> <div class="text-h6">
转班申请<span class="Title_remark">注:找不到学员?请确认学员是否已退课或已续班</span> {{transMsg.ChangeType==1?'转班申请':'分拆'}}
<span class="Title_remark">注:找不到学员?请确认学员是否已退课或已续班</span>
</div> </div>
</q-card-section> </q-card-section>
<div style="margin:20px;border-bottom:1px solid #E2E2E2"> <div style="margin:20px;border-bottom:1px solid #E2E2E2">
...@@ -124,9 +125,13 @@ ...@@ -124,9 +125,13 @@
</span> </span>
<span style="width:10%">{{item.GuestStateStr}}</span> <span style="width:10%">{{item.GuestStateStr}}</span>
<span style="width:20%;" class="guest_Status"> <span style="width:20%;" class="guest_Status">
<span v-if="item.GuestState==1" @click="clickItem(item)">转班</span> <span v-if="item.GuestState==1" @click="clickItem(item)">
{{transMsg.ChangeType==1?'转班':'分拆'}}
</span>
<template v-if="chooseItem&&chooseItem.Id==item.Id"> <template v-if="chooseItem&&chooseItem.Id==item.Id">
<span style="margin-left:10px;" @click="cancelApply">取消转班</span> <span style="margin-left:10px;" @click="cancelApply">
取消{{transMsg.ChangeType==1?'转班':'分拆'}}
</span>
</template> </template>
</span> </span>
</div> </div>
...@@ -162,6 +167,7 @@ ...@@ -162,6 +167,7 @@
<td></td> <td></td>
</tr> </tr>
</table> </table>
<template v-if="transMsg.ChangeType==1">
<div class="row" style="margin-top:20px;"> <div class="row" style="margin-top:20px;">
<q-input filled v-model="transMsg.OutTime" class="col-6 q-pr-lg" mask="date" label="转出日期"> <q-input filled v-model="transMsg.OutTime" class="col-6 q-pr-lg" mask="date" label="转出日期">
<template v-slot:append> <template v-slot:append>
...@@ -182,13 +188,14 @@ ...@@ -182,13 +188,14 @@
</template> </template>
</q-input> </q-input>
</div> </div>
</template>
<q-input filled stack-label :dense="false" v-model="transMsg.Remarks" style="margin-top: 20px" type="textarea" <q-input filled stack-label :dense="false" v-model="transMsg.Remarks" style="margin-top: 20px" type="textarea"
class="col-12" label="转班原因" /> class="col-12" :label="transMsg.ChangeType==1?'转班原因':'分拆原因'" />
<q-separator /> <q-separator />
</div> </div>
<q-card-actions align="right" class="bg-white"> <q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="closeContinueClassForm" /> <q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="closeContinueClassForm" />
<q-btn label="确认转班" color="accent" class="q-px-md" style="font-weight:400 !important" <q-btn :label="transMsg.ChangeType==1?'确认转班':'确认分拆'" color="accent" class="q-px-md" style="font-weight:400 !important"
@click="setRenewOrder" /> @click="setRenewOrder" />
</q-card-actions> </q-card-actions>
</template> </template>
...@@ -312,6 +319,10 @@ ...@@ -312,6 +319,10 @@
type: Object, type: Object,
default: null, default: null,
}, },
ChangeType: {
type: Number,
default: null
}
}, },
data() { data() {
return { return {
...@@ -367,6 +378,7 @@ ...@@ -367,6 +378,7 @@
this.continueClassMsg.OrderId = this.saveObj.OrderId; this.continueClassMsg.OrderId = this.saveObj.OrderId;
this.continueClassMsg.ClassId = this.saveObj.ClassId; this.continueClassMsg.ClassId = this.saveObj.ClassId;
this.classMsg.ClassId = this.saveObj.ClassId; this.classMsg.ClassId = this.saveObj.ClassId;
this.transMsg.ChangeType = this.ChangeType;
this.getSchool(); this.getSchool();
this.GetClassTypeList(); this.GetClassTypeList();
......
...@@ -170,6 +170,7 @@ ...@@ -170,6 +170,7 @@
isShowBackClass: true, //显示退课按钮 isShowBackClass: true, //显示退课按钮
isShowRenewClass: true, //显示续课按钮 isShowRenewClass: true, //显示续课按钮
isShowTransClassOrder:true,//现在转班按钮 isShowTransClassOrder:true,//现在转班按钮
isShowSeparater: true //显示分拆按钮
} }
} }
}, },
......
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