Commit 93472477 authored by youjie's avatar youjie

复制签证产品

parent e7a366c8
......@@ -994,6 +994,9 @@ getCompanyList() {
let data=res.data.data;
data.RB_Branch_Id = String(data.RB_Branch_Id)
this.addMsg=res.data.data;
if(this.$route.query.copy){
this.addMsg.Name = '【复制】'+this.addMsg.Name
}
this.PriceDates.push(data.EffectiveStartDate)
this.PriceDates.push(data.SendVisaDate)
let val=data.VisaCountryId;
......@@ -1087,6 +1090,9 @@ getCompanyList() {
// this.Error(`价格有效结束日期请选择${SendVisaDate}之前日期!`);
// return;
// }
if(this.$route.query.copy){
this.addMsg.Id = 0
}
this.apipost(
"dmc_post_visa_SetVisaProduct_V1",
this.addMsg,
......
......@@ -518,7 +518,18 @@
@click="updateVisaStatus(scope.row)"
></el-button>
</el-tooltip>
<el-tooltip
effect="dark"
:content="$t('objFill.copy')"
placement="top-start"
>
<el-button
type="primary"
style="background:#F0A748; border-color:#F0A748"
icon="el-icon-document-copy"
@click="EditVisaProduct(scope.row,'copy')"
></el-button>
</el-tooltip>
</el-button-group>
</template>
</el-table-column>
......@@ -723,8 +734,20 @@ export default {
}
});
},
// 修改签证产品
EditVisaProduct(item){
// 修改/复制签证产品
EditVisaProduct(item,type){
if(type&&type=='copy'){
return this.$router.push({
name: "ModifyVisaProduct",
query: {
Id:item.Id,
copy: 1,
blank: "y",
tab: "配置签证产品",
copy:true
}
});
}
this.$router.push({
name: "ModifyVisaProduct",
query: {
......
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