Commit 916251f9 authored by 吴春's avatar 吴春

报价单新增暂存

parent a6a37710
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
:IsEdit="IsEdit" @success="refreshPage"></CostNewPriceAudit> :IsEdit="IsEdit" @success="refreshPage"></CostNewPriceAudit>
</div> </div>
<div class="btnFixedDiv" v-if="haveData" style="margin:0 auto;"> <div class="btnFixedDiv" v-if="haveData" style="margin:0 auto;">
<el-button @click="SaveTemporaryStorageData(5)" :loading="saveLoading"
style="background-color:#ffc2c2;color:#cc1212;font-size:12px;margin-left:7px;margin-top:10px;border:none;width:45px;height:45px;padding:0;">
暂存
</el-button>
<el-button @click="SaveData(2)" :loading="saveLoading" <el-button @click="SaveData(2)" :loading="saveLoading"
style="background-color:#ffc2c2;color:#cc1212;font-size:12px;margin-left:7px;margin-top:10px;border:none;width:45px;height:45px;padding:0;"> style="background-color:#ffc2c2;color:#cc1212;font-size:12px;margin-left:7px;margin-top:10px;border:none;width:45px;height:45px;padding:0;">
{{$t('fnc.tijiao')}} {{$t('fnc.tijiao')}}
...@@ -144,6 +148,28 @@ ...@@ -144,6 +148,28 @@
}, },
err => {} err => {}
); );
},
//保存数据
SaveTemporaryStorageData(Type) {
this.saveLoading = true;
var nObj = {
offerid: this.pMsg.offerId,
};
this.loading = true;
this.apipost(
"travel_post_SetTemporaryStorageAudit", nObj,
res => {
this.loading = false;
this.saveLoading = false;
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.goUrl('newQuotation');
} else {
this.Error(res.data.message);
}
},
err => {}
);
}, },
goUrl(path) { goUrl(path) {
this.$router.push({ this.$router.push({
......
...@@ -407,7 +407,7 @@ ...@@ -407,7 +407,7 @@
</template> </template>
</div> </div>
<div style="width:134px;"> <div style="width:134px;">
<template v-if="item.TravelState==1||item.TravelState==2||item.TravelState==4||item.TravelState==5"> <template v-if="item.TravelState==1||item.TravelState==2||item.TravelState==4">
<template v-if="item.OfferList&&item.OfferList.length>1"> <template v-if="item.OfferList&&item.OfferList.length>1">
<span class="bianji newAopbdd" @click="goMakeQuo('QuotationNewPrice',item,0)"> <span class="bianji newAopbdd" @click="goMakeQuo('QuotationNewPrice',item,0)">
<el-tooltip class="item" effect="dark" content="系列修改" placement="top-start" popper-class="max-w250"> <el-tooltip class="item" effect="dark" content="系列修改" placement="top-start" popper-class="max-w250">
...@@ -424,7 +424,7 @@ ...@@ -424,7 +424,7 @@
</template> </template>
<span class="QT-delete newAopbdd" @click="delQuotation(item)" <span class="QT-delete newAopbdd" @click="delQuotation(item)"
v-if="item.TravelState==1||item.TravelState==4||item.TravelState==5"> v-if="item.TravelState==1||item.TravelState==4">
<el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start" <el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start"
popper-class="max-w250"> popper-class="max-w250">
<i class="iconfont icon-shanchu"></i> <i class="iconfont icon-shanchu"></i>
...@@ -436,8 +436,7 @@ ...@@ -436,8 +436,7 @@
<i @click="goUrl('QuotationAduit',item,1)" class="iconfont icon-view"></i> <i @click="goUrl('QuotationAduit',item,1)" class="iconfont icon-view"></i>
</el-tooltip> </el-tooltip>
</span> </span>
<span class="bianji newAopbdd" v-if="item.TravelState==3||item.TravelState==5||item.TravelState==7||item.TravelState==8">
<span class="bianji newAopbdd" v-if="item.TravelState==3||item.TravelState==7||item.TravelState==8">
<el-tooltip class="item" effect="dark" :content="$t('objFill.v101.baojdbgen')" placement="top-start" <el-tooltip class="item" effect="dark" :content="$t('objFill.v101.baojdbgen')" placement="top-start"
popper-class="max-w250"> popper-class="max-w250">
<i @click="goUrl('OfferChange',item,3)" class="el-icon-edit" circle></i> <i @click="goUrl('OfferChange',item,3)" class="el-icon-edit" circle></i>
......
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