Commit 8e2144a4 authored by 吴春's avatar 吴春

1

parent b8a73d5e
...@@ -816,13 +816,19 @@ ...@@ -816,13 +816,19 @@
<span v-show="nameShow">{{visaProduct}}</span> <span v-show="nameShow">{{visaProduct}}</span>
</div> </div>
<div v-if="visaProduct.indexOf('日本')!=-1"> <div v-if="visaProduct.indexOf('日本')!=-1">
<el-switch <el-radio-group v-model="SwitchStatus" size="mini">
<el-radio-button label="1">{{$t('objFill.v101.administrative.yijianzhidan')}}</el-radio-button>
<el-radio-button label="0" >{{$t('objFill.oneclickfinish')}}</el-radio-button>
<el-radio-button label="2">{{$t('objFill.v101.Rest.xiugaijingr')}}</el-radio-button>
<el-radio-button label="3">{{$t('objFill.v101.Rest.xiugaisongqr')}}</el-radio-button>
</el-radio-group>
<!-- <el-switch
v-model="SwitchStatus" v-model="SwitchStatus"
:active-text="$t('objFill.v101.administrative.yijianzhidan')" :active-text="$t('objFill.v101.administrative.yijianzhidan')"
in:active-text="$t('objFill.oneclickfinish')" in:active-text="$t('objFill.oneclickfinish')"
active-value="1" active-value="1"
inactive-value="0" @change="handleClear"> inactive-value="0" @change="handleClear">
</el-switch> </el-switch> -->
</div> </div>
</div> </div>
<div class="query-box" style="border:none"> <div class="query-box" style="border:none">
...@@ -874,13 +880,14 @@ ...@@ -874,13 +880,14 @@
<button class="hollowFixedBtn" @click="getList()">{{$t('pub.searchBtn')}}</button> <button class="hollowFixedBtn" @click="getList()">{{$t('pub.searchBtn')}}</button>
<button class="hollowFixedBtn" @click="goUrlCb">{{$t('objFill.v101.Rest.chakanchenb')}}</button> <button class="hollowFixedBtn" @click="goUrlCb">{{$t('objFill.v101.Rest.chakanchenb')}}</button>
<el-button v-if="IsSupperOrderEdit" class="hollowFixedBtn" <el-button v-if="IsSupperOrderEdit" class="hollowFixedBtn"
@click="SwitchStatus==0?setCompleted():setPrepareDocument()" @click="SwitchStatus==0?setCompleted():(SwitchStatus==1?setPrepareDocument():(SwitchStatus==2?setEnterTimeOrSignOutTimeDocument(1):setEnterTimeOrSignOutTimeDocument(2)))"
:loading="CompletedLoading">{{SwitchStatus==0?$t('objFill.oneclickfinish'):$t('objFill.v101.administrative.yijianzhidan')}}</el-button> :loading="CompletedLoading">{{SwitchStatus==0?$t('objFill.oneclickfinish'):(SwitchStatus==1?$t('objFill.v101.administrative.yijianzhidan'):(SwitchStatus==2?$t('objFill.v101.Rest.xiugaijingr'):$t('objFill.v101.Rest.xiugaisongqr')))}}</el-button>
<el-button v-if="IsSupperOrderEdit" class="hollowFixedBtn" @click="setEnterTimeOrSignOutTimeDocument(1)"
<!-- <el-button v-if="IsSupperOrderEdit" class="hollowFixedBtn" @click="setEnterTimeOrSignOutTimeDocument(1)"
:loading="CompletedLoading">{{$t('objFill.v101.Rest.xiugaijingr')}}</el-button> :loading="CompletedLoading">{{$t('objFill.v101.Rest.xiugaijingr')}}</el-button>
<el-button v-if="IsSupperOrderEdit" class="hollowFixedBtn" <el-button v-if="IsSupperOrderEdit" class="hollowFixedBtn"
@click="setEnterTimeOrSignOutTimeDocument(2)" @click="setEnterTimeOrSignOutTimeDocument(2)"
:loading="CompletedLoading">{{$t('objFill.v101.Rest.xiugaisongqr')}}</el-button> :loading="CompletedLoading">{{$t('objFill.v101.Rest.xiugaisongqr')}}</el-button> -->
</li> </li>
</ul> </ul>
</div> </div>
...@@ -1243,8 +1250,8 @@ ...@@ -1243,8 +1250,8 @@
@change="getTimeInfo"> @change="getTimeInfo">
</el-date-picker></span> </el-date-picker></span>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="clearEnterTimeOrSignOutTimeMsg()">取 消</el-button> <el-button @click="clearEnterTimeOrSignOutTimeMsg()" >取 消</el-button>
<el-button type="primary" @click="SetEnterTimeOrSignOutTimeMsg()">确 定</el-button> <el-button type="primary" @click="SetEnterTimeOrSignOutTimeMsg()" :loading="enterTimeOrSignOutTimeloading">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
...@@ -1259,11 +1266,12 @@ ...@@ -1259,11 +1266,12 @@
return { return {
ids: '', ids: '',
showDocumentPreparation: false, showDocumentPreparation: false,
SwitchStatus:0,//0 完结 1制单 SwitchStatus:0,//0 完结 1制单,2批量修改进馆时间,3-批量修改出签时间
titleType: null, titleType: null,
title: '', title: '',
showTransferOrder: false, showTransferOrder: false,
showEnterTimeOrSignOutTime: false,//设置进馆时间/出签时间 showEnterTimeOrSignOutTime: false,//设置进馆时间/出签时间
enterTimeOrSignOutTimeloading:false,
queryObj:null, queryObj:null,
cdState: false, cdState: false,
IsSupperOrderEdit: false, //获取总经理副总经理超级修改权限 IsSupperOrderEdit: false, //获取总经理副总经理超级修改权限
...@@ -1326,6 +1334,7 @@ ...@@ -1326,6 +1334,7 @@
this.handleClear(); this.handleClear();
}, },
SetEnterTimeOrSignOutTimeMsg(){ SetEnterTimeOrSignOutTimeMsg(){
this.enterTimeOrSignOutTimeloading=true;
this.apipost('post_visa_SetVisaOrderEnterTimeOrSignOutTime', this.EnterTimeOrSignOutTimeMsg, res => { this.apipost('post_visa_SetVisaOrderEnterTimeOrSignOutTime', this.EnterTimeOrSignOutTimeMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.clearEnterTimeOrSignOutTimeMsg(); this.clearEnterTimeOrSignOutTimeMsg();
...@@ -1334,25 +1343,31 @@ ...@@ -1334,25 +1343,31 @@
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
} }
his.enterTimeOrSignOutTimeloading=false;
}, err => {}) }, err => {})
}, },
handleClear(){ handleClear(){
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
}, },
selectable(row, index){ selectable(row, index){/// SwitchStatus 0 完结 1制单,2批量修改进馆时间,3-批量修改出签时间
console.log("SwitchStatus 0 完结 1制单,2批量修改进馆时间,3-批量修改出签时间",this.SwitchStatus);
if(this.SwitchStatus==0){ if(this.SwitchStatus==0){
if (this.dataList[index].IsFinish!=1&&this.dataList[index].Income>0&&this.dataList[index].DueInMoney==0) { if (this.dataList[index].IsFinish!=1&&this.dataList[index].Income>0&&this.dataList[index].DueInMoney==0) {
return true; return true;
} else { } else {
return false; return false;
} }
}else{ }else if(this.SwitchStatus==1){
if(this.dataList[index].FinanceList&&this.dataList[index].FinanceList.length > 0&&this.dataList[index].VisaOrderStatus==1){ if(this.dataList[index].FinanceList&&this.dataList[index].FinanceList.length > 0&&this.dataList[index].VisaOrderStatus==1){
return true return true
}else{ }else{
return false return false
} }
} }
else{
return true
}
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = JSON.parse(JSON.stringify(val)) this.multipleSelection = JSON.parse(JSON.stringify(val))
......
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