Commit 0fc93bae authored by dragondean@qq.com's avatar dragondean@qq.com

空运订单

parent 88fea860
......@@ -927,6 +927,9 @@ export default {
if(this.$route.query.id != this.form.id){
this.getOrder()
}
if(this.$route.query.transportType != this.transportId){
this.set(this.form.transportId, +this.$route.query.transportType)
}
},
async created() {
......@@ -943,7 +946,9 @@ export default {
value: 2 // 1 发货人,2收货人,默认收货人,可修改
})
})
if(this.$route.query.transportType){
this.$set(this.form, 'transportId', +this.$route.query.transportType)
}
if(this.$route.query.id){
this.getOrder()
}else{
......
......@@ -120,7 +120,7 @@
<!-- 操作工具栏 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-col :span="1.5" v-if="transportId">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
v-hasPermi="['ecw:order:create']">{{$t('新增')}}</el-button>
</el-col>
......@@ -826,7 +826,7 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
this.$router.push('create')
this.$router.push('create?transportType=' + this.transportId)
},
/** 修改按钮操作 */
handleUpdate(row) {
......
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