其他原因
@@ -156,11 +156,12 @@ export default {
bcPath:[],
activeIndex:'',
batchCode:'',
+ selectedOption:''
}
},
created() {
this.id = this.$route.params.id;
- // this.id=27
+ this.id=27
this.activeIndex=this.$route.params.index;
this.batchCode=this.$route.params.batchCode
console.log(" this.batchCode", this.batchCode,this.activeIndex)
@@ -170,6 +171,12 @@ export default {
this.$nextTick(() => {
this.initMap();
});
+ /* const selectElement = document.getElementById('mySelect');
+ selectElement.addEventListener('change', function() {
+ const selectedValue = selectElement.value;
+ this.other=selectedValue
+ });
+ console.log("this.other",this.other)*/
},
methods:{
goPrePage(){
@@ -265,7 +272,7 @@ export default {
this.$toast('审核结果必选')
return
}
- if(this.states == 1 && !this.other){
+ if(this.states != 2 && !this.other){
this.$toast('审核不通过原因必填')
return
}
@@ -273,29 +280,34 @@ export default {
this.$toast('审核不通过原因是其他时审核原因必填')
return
}
- let res = await reimburseOrderAudit({
- id:this.id,
- state:this.state,
- auditRemark:this.other=='其他' ? this.other+ '/' + this.otherReason : this.other,
- })
+ let res=''
+ try {
+ res = await reimburseOrderAudit({
+ id: this.id,
+ state: this.state,
+ auditRemark: this.other == '其他' ? this.other + '/' + this.otherReason : this.other,
+ })
+ } catch (e) {
+ // this.$toast(e.error)
+ }
if(res.code == 200){
this.$toast("提交成功")
+ this.goPrePage()
}else{
this.$toast(res.msg)
}
},
isUse(e){
- console.log("eeee",e)
- this.states=e
- if(this.states == 1){
- this.state=2
- }else if(this.states == 2){
- if(this.detailInfo.secondAudit){
- this.state=4
- }else{
- this.state=3
- }
- }
+ this.state=e
+ // if(this.states == 1){
+ // this.state=2
+ // }else if(this.states == 2){
+ // if(this.detailInfo.secondAudit){
+ // this.state=4
+ // }else{
+ // this.state=3
+ // }
+ // }
},
async getOrderDetail(){
let res=await reimburseOrderDetail({
@@ -324,6 +336,44 @@ export default {
@include wh(100%,100%);
box-sizing: border-box;
}
+.mySelect{
+ @include fontWeightSize(bold,13px);
+ color: #323643;
+ appearance: none;
+ padding-right: 16px;
+ background: url('@/assets/arrow_bot.png') no-repeat right center / 15px 14px;
+ text-align: right; /* 将下拉列表的文本右对齐 */
+}
+.itemContent{
+ @include flexColBet;
+ line-height: 56px;
+ box-sizing: border-box;
+ padding-right: 25px;
+ .titleType{
+ @include fontWeightSize(bold,14px);
+ color: #323643;
+ }
+ .isJoin{
+ display: flex;
+ .joinWrap, .item{
+ @include flexCenter;
+ }
+ img{
+ @include widHeiMar(16px,16px,6px)
+ }
+ }
+ .startImg{
+ @include widHeiMar(6px,6px,3px);
+ vertical-align: super;
+ }
+ input{
+ border: none;
+ text-align: right;
+ @include fontWeightSize(bold,13px);
+ opacity: .5;
+ }
+
+}
.navBar{
margin-bottom: 46px;
}
@@ -453,6 +503,17 @@ export default {
color: #FF0808;
@include fontWeightSize(bold,13px);
}
+ .isJoin{
+ display: flex;
+ position: relative;
+ z-index: 11;
+ .joinWrap, .item{
+ @include flexCenter;
+ }
+ img{
+ @include widHeiMar(16px,16px,6px)
+ }
+ }
.multipleTxt{
@include wh(100%,87px);
background: #FAFAFA;
@@ -465,6 +526,7 @@ export default {
content: '该案件为二次提交,审核不通过后司机无法再次申请报销。';
color: red;
position: absolute;
+ z-index: 1;
line-height: 70px;
font-size: 10px;
}
@@ -511,15 +573,6 @@ export default {
color: #9C9C9C;
font-weight: 600;
}
-.isJoin{
- display: flex;
- .joinWrap, .item{
- @include flexCenter;
- }
- img{
- @include widHeiMar(16px,16px,6px)
- }
-}
::v-deep .amap-copyright{
display: none !important;
}