Commit 48600ea5 authored by dcy's avatar dcy

费用申请bug修复

parent a98b01d2
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<el-form-item label="订单号:"><div class="content"> <el-form-item label="订单号:"><div class="content">
{{orderDetails.orderNo}} {{orderDetails.orderNo}}
</div></el-form-item> </div></el-form-item>
<el-form-item label="发货人:"><div class="content">{{orderDetails.consignorVO.name}}</div></el-form-item> <el-form-item label="发货人:"><div class="content">{{orderDetails.consignorVO ? orderDetails.consignorVO.name :''}}</div></el-form-item>
<el-form-item label="唛头"><div class="content">{{orderDetails.marks}}</div></el-form-item> <el-form-item label="唛头"><div class="content">{{orderDetails.marks}}</div></el-form-item>
<el-form-item> <el-button @click="addCost">添加申请</el-button></el-form-item> <el-form-item> <el-button @click="addCost">添加申请</el-button></el-form-item>
</el-form> </el-form>
...@@ -85,7 +85,9 @@ export default { ...@@ -85,7 +85,9 @@ export default {
}, },
created() { created() {
getOrder(this.orderId).then(r =>{ getOrder(this.orderId).then(r =>{
this.orderDetails = r.data if(r.code === 0){
this.orderDetails = r.data
}
}) })
this.getOrderList() this.getOrderList()
this.getDictDatas(this.DICT_TYPE.AUDIT_STATUS).forEach( e =>{ this.getDictDatas(this.DICT_TYPE.AUDIT_STATUS).forEach( e =>{
...@@ -128,7 +130,7 @@ export default { ...@@ -128,7 +130,7 @@ export default {
} }
}) })
}else { }else {
if(this.list[this.list.length - 1].status !== 0){ if(this.list[this.list.length - 1].status === 0){
feeApplicationCreate( {...this.list[this.list.length - 1],status:1}).then(r=>{ feeApplicationCreate( {...this.list[this.list.length - 1],status:1}).then(r=>{
if(r.code === 0){ if(r.code === 0){
this.getOrderList(); this.getOrderList();
......
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