Commit a8817daf authored by 黄奎's avatar 黄奎

11

parent 17318a6a
...@@ -1053,6 +1053,7 @@ ...@@ -1053,6 +1053,7 @@
@click="goFncUrl('DebitNote', subItem.FinanceId)">{{$t('objFill.jiezhidan')}}</span></p> @click="goFncUrl('DebitNote', subItem.FinanceId)">{{$t('objFill.jiezhidan')}}</span></p>
</td> </td>
<td width="80" class="_zhidan"> <td width="80" class="_zhidan">
<template v-if="myLineId==90"> <template v-if="myLineId==90">
<div style="margin:10px 0" v-for="(cur,index2) in CurrencyListMoney"> <div style="margin:10px 0" v-for="(cur,index2) in CurrencyListMoney">
<template v-for="leadr in cur.LeaderGetPriceArr" v-if=" leadr.TCNUMS == item.TCNUMS"> <template v-for="leadr in cur.LeaderGetPriceArr" v-if=" leadr.TCNUMS == item.TCNUMS">
...@@ -1071,6 +1072,9 @@ ...@@ -1071,6 +1072,9 @@
<span style="color:red;" @click="GoCompanyAlipay(item)"> {{$t('objFill.v101.dmc.yikqqydf')}}</span> <span style="color:red;" @click="GoCompanyAlipay(item)"> {{$t('objFill.v101.dmc.yikqqydf')}}</span>
</template> </template>
</template> </template>
<!-- <input type="button" value="变更报价单" class="normalBtn" @click="gotoOfferChange(leadr.OfferId)" /> -->
</div> </div>
</template> </template>
<template v-else> <template v-else>
...@@ -1098,6 +1102,7 @@ ...@@ -1098,6 +1102,7 @@
<template v-else-if="!item.hideZDBtn && index2==0"> <template v-else-if="!item.hideZDBtn && index2==0">
<span>{{$t('objFill.chaoguowtsjxzwfzd')}}</span> <span>{{$t('objFill.chaoguowtsjxzwfzd')}}</span>
</template> </template>
<!-- <input type="button" value="变更报价单" class="normalBtn" @click="gotoOfferChange(leadr.OfferId)" /> -->
</template> </template>
</div> </div>
</template> </template>
...@@ -1760,8 +1765,20 @@ ...@@ -1760,8 +1765,20 @@
err => {} err => {}
); );
}, },
//跳转报报价单
gotoOfferChange(offerId) {
if (offerId) {
this.$router.push({
name: 'OfferChange',
query: {
'offerid': offerId,
'Qtype': 3,
'blank': 'y',
}
});
}
},
ZhuiJiaTuanKuan(item) { ZhuiJiaTuanKuan(item) {
this.apipost('financestatistics_post_GetTravelPrerealContrast', { this.apipost('financestatistics_post_GetTravelPrerealContrast', {
TCID: item.TCIDS TCID: item.TCIDS
}, res => { }, res => {
...@@ -1773,14 +1790,7 @@ ...@@ -1773,14 +1790,7 @@
cancelButtonText: this.$t('pub.cancelBtn'), cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$router.push({ this.gotoOfferChange(res.data.data.OfferId);
name: 'OfferChange',
query: {
'offerid': res.data.data.OfferId,
'Qtype': 3,
'blank': 'y',
}
});
}).catch(() => { }).catch(() => {
}); });
...@@ -1790,14 +1800,7 @@ ...@@ -1790,14 +1800,7 @@
cancelButtonText: this.$t('pub.cancelBtn'), cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$router.push({ this.gotoOfferChange(res.data.data.OfferId);
name: 'OfferChange',
query: {
'offerid': res.data.data.OfferId,
'Qtype': 3,
'blank': 'y',
}
});
}).catch(() => { }).catch(() => {
}); });
...@@ -1916,14 +1919,7 @@ ...@@ -1916,14 +1919,7 @@
cancelButtonText: this.$t('pub.cancelBtn'), cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$router.push({ this.gotoOfferChange(res.data.data.OfferId)
name: 'OfferChange',
query: {
'offerid': res.data.data.OfferId,
'Qtype': 3,
'blank': 'y',
}
});
}).catch(() => { }).catch(() => {
}); });
...@@ -1933,17 +1929,8 @@ ...@@ -1933,17 +1929,8 @@
cancelButtonText: this.$t('pub.cancelBtn'), cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$router.push({ this.gotoOfferChange(res.data.data.OfferId)
name: 'OfferChange', }).catch(() => {});
query: {
'offerid': res.data.data.OfferId,
'Qtype': 3,
'blank': 'y',
}
});
}).catch(() => {
});
} }
} else { } else {
this.goDiJieZhiDan(obj, num, leadr, cur); this.goDiJieZhiDan(obj, num, leadr, cur);
...@@ -2342,7 +2329,8 @@ ...@@ -2342,7 +2329,8 @@
LeaderGetPriceT: 0, LeaderGetPriceT: 0,
ShowTotalPrice: 0, ShowTotalPrice: 0,
TCNUMS: x.TCNUMS, TCNUMS: x.TCNUMS,
TCIDS: x.TCIDS TCIDS: x.TCIDS,
OfferId: x.OfferId,
}; };
x.LeaderGetPriceList.forEach(price => { x.LeaderGetPriceList.forEach(price => {
if (cur.CurrencyId == price.CurrencyId) { if (cur.CurrencyId == price.CurrencyId) {
...@@ -3152,11 +3140,6 @@ ...@@ -3152,11 +3140,6 @@
border-collapse: collapse; border-collapse: collapse;
} }
/* table.OtherExpensesList th:first {
border: 1px solid #ccc;
padding: 8px;
background-color: #dedede ;
} */
table.OtherExpensesList th { table.OtherExpensesList th {
border: 1px solid #ccc; border: 1px solid #ccc;
padding: 8px; padding: 8px;
......
...@@ -15,11 +15,20 @@ ...@@ -15,11 +15,20 @@
<CostNewPriceAudit v-if="haveData" ref="CostNewPrice" :postConfig="postData" :OfferArray="OfferArray" <CostNewPriceAudit v-if="haveData" ref="CostNewPrice" :postConfig="postData" :OfferArray="OfferArray"
:IsEdit="IsEdit" @success="refreshPage"></CostNewPriceAudit> :IsEdit="IsEdit" @success="refreshPage"></CostNewPriceAudit>
</div> </div>
<div class="btnFixedDiv" v-if="haveData"> <div class="btnFixedDiv" v-if="haveData" style="margin:0 auto;">
<div class="toTop"> <el-button @click="SaveData(2)" :loading="saveLoading"
<i class="iconfont icon-huidaodingbu"></i> style="background-color:#ffc2c2;color:#cc1212;font-size:12px;margin-left:7px;margin-top:10px;border:none;width:45px;height:45px;padding:0;">
</div> {{$t('fnc.tijiao')}}
<div class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="SaveData(2)">{{$t('fnc.tijiao')}}</div> </el-button>
<template v-if="IsEdit==3">
<br />
<el-tooltip class="item" effect="dark" content="根据地接数据更新报价单" placement="top">
<el-button :loading="saveLoading" @click="ReCalcOffer()"
style="background-color:#ffc2c2;color:#cc1212;font-size:12px;margin-left:7px;margin-top:5px; border:none;width:45px;height:45px;padding:0;padding-top:10px;">
更新
</el-button>
</el-tooltip>
</template>
</div> </div>
</div> </div>
</template> </template>
...@@ -80,28 +89,52 @@ ...@@ -80,28 +89,52 @@
AssistantList: [], //助理OP AssistantList: [], //助理OP
PriceTeamType: 0, //团队类型, PriceTeamType: 0, //团队类型,
PriceTeamTypeName: "", //团队类型, PriceTeamTypeName: "", //团队类型,
OfferArray:[], OfferArray: [],
OfferId: 0,
}, },
pMsg: { pMsg: {
offerId: 0, offerId: 0,
// BatchNum: "",
}, },
isSubmit: true,
loading: false, loading: false,
IsEdit: 0, IsEdit: 0,
saveLoading: false,
}; };
}, },
methods: { methods: {
ReCalcOffer() {
this.saveLoading = true;
var newMsg = {
OfferId: this.pMsg.offerId,
}
this.apipost(
"travel_post_CalcChangeOffer", newMsg,
res => {
this.saveLoading = false;
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getPostData();
} else {
this.Error(res.data.message);
}
},
err => {
this.saveLoading = false;
}
);
},
//保存数据 //保存数据
SaveData(Type) { SaveData(Type) {
this.saveLoading = true;
var nObj = { var nObj = {
offerid:this.pMsg.offerId, offerid: this.pMsg.offerId,
}; };
this.loading = true; this.loading = true;
this.apipost( this.apipost(
"travel_post_SetOfferChangeAudit", nObj, "travel_post_SetOfferChangeAudit", nObj,
res => { res => {
this.loading = false; this.loading = false;
this.saveLoading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.goUrl('newQuotation'); this.goUrl('newQuotation');
...@@ -134,9 +167,13 @@ ...@@ -134,9 +167,13 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
console.log("travel_get_PriceOfferInfo",tempData);
if (tempData.ID && tempData.ID > 0) { if (tempData.ID && tempData.ID > 0) {
this.postData.ID = tempData.ID; this.postData.ID = tempData.ID;
} }
if (tempData.OfferId && tempData.OfferId > 0) {
this.postData.OfferId = tempData.OfferId;
}
if (tempData.LineId && tempData.LineId > 0) { if (tempData.LineId && tempData.LineId > 0) {
this.postData.LineId = tempData.LineId; this.postData.LineId = tempData.LineId;
} }
......
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