Commit 994b95db authored by youjie's avatar youjie

no message

parent 773e5b25
......@@ -328,7 +328,7 @@
style="float: right;margin-right: 5%;position: relative; z-index: 1;"
>
<button
v-if="titlePrice != '改价详情'&&userInfo.EmployeeId==1"
v-if="titlePrice != '改价详情'"
:class="[
changePriceMsg.ApplyForState == 2 ? 'normalBtn' : 'hollowFixedBtn'
]"
......@@ -336,8 +336,7 @@
@click="
changePriceMsg.DialogType == 1
? ''
: (changePriceMsg.ApplyForState = 2),
setChangePrice()
:setChangePrice('通过')
"
>
通过
......@@ -351,8 +350,7 @@
@click="
changePriceMsg.DialogType == 1
? ''
: (changePriceMsg.ApplyForState = 3),
setChangePrice()
:setChangePrice('拒绝')
"
>
拒绝
......@@ -410,7 +408,7 @@
</el-form-item></el-col
>
<el-col :span="8">
<el-form-item :label="userInfo.EmployeeId!=1?'拒绝理由':'审核理由'" prop="">
<el-form-item label="审核理由" prop="">
<el-input
:readonly="changePriceMsg.DialogType == 1 ? true : false"
type="textarea"
......@@ -610,10 +608,41 @@ export default {
let Money = this.RoundItUp(parseFloat(Price/100).toFixed(2))
return Money
},
setChangePrice() {
setChangePrice(type) {
if(this.titlePrice == "申请改价"){
this.changePriceMsg.ApplyForState=1
this.SetOrderChangePrice()
}
if(this.titlePrice == "应收总金额改价审核"){
if(this.changePriceObj.ApplyForState==1){
if(type=='通过') this.changePriceMsg.ApplyForState = 2
if(type=='拒绝') this.changePriceMsg.ApplyForState = 4
}
if(this.changePriceObj.ApplyForState==2&&type=='通过'){
if(type=='通过') this.changePriceMsg.ApplyForState = 3
if(type=='拒绝') this.changePriceMsg.ApplyForState = 4
}
this.ExamineOrderChangePrice()
}
},
ExamineOrderChangePrice(){
this.apipost(
"CarSingle_post_ExamineOrderChangePrice",
this.changePriceMsg,
res => {
if (res.data.resultCode == 1) {
this.changePriceMsg.setPlatDialog = true;
this.changePriceMsg.outerVisible = false;
this.changePriceMsg.outerVisible2 = false;
this.$message.info(res.data.message);
this.$emit("success");
} else {
this.$message.info(res.data.message);
}
}
);
},
SetOrderChangePrice(){
this.apipost(
"CarSingle_post_SetOrderChangePrice",
this.changePriceMsg,
......
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