Commit 0c88c1e6 authored by houjn@hikoon.cn's avatar houjn@hikoon.cn

空运agent同步海运试试

parent 5f7df710
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<div> <div>
<el-form ref="agentForm" :model="agentObj" :rules="rules" label-width="120px"> <el-form ref="agentForm" :model="agentObj" :rules="rules" label-width="120px">
<el-form-item :label="$t('代理商Agent')" prop="agentId"> <el-form-item :label="$t('代理商Agent')" prop="agentId">
<supplierSelect v-model="agentObj.agentId" :companyType="'1'" :areaType="1" :placeholder="$t('请选择代理商')" :allSupplier="this.$attrs.allSupplier" /> <supplierOutSelect v-model="agentObj.agentId" :companyType="'1'" :areaType="1" :placeholder="$t('请选择代理商')" :allSupplier="this.$attrs.allSupplier" />
<el-button v-hasPermi="['ecw:supplier:query']" type="text" style="font-size: 13px; margin-left: 240px;" @click="SupplierDetail">{{$t('查看代理商详情')}}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row class="operate-button"> <el-row class="operate-button">
...@@ -14,7 +15,7 @@ ...@@ -14,7 +15,7 @@
<script> <script>
import { agentSet } from "@/api/ecw/boxSea"; import { agentSet } from "@/api/ecw/boxSea";
import supplierSelect from "./common/supplierSelect.vue"; import supplierOutSelect from "./common/supplierOutSelect.vue";
import { formatStringNumber, serviceMsg } from "../utils"; import { formatStringNumber, serviceMsg } from "../utils";
/** /**
* agent * agent
...@@ -22,7 +23,7 @@ import { formatStringNumber, serviceMsg } from "../utils"; ...@@ -22,7 +23,7 @@ import { formatStringNumber, serviceMsg } from "../utils";
export default { export default {
name: "agent", name: "agent",
inheritAttrs: false, inheritAttrs: false,
components: { supplierSelect }, components: { supplierOutSelect },
data() { data() {
return { return {
// agent对象 // agent对象
...@@ -31,6 +32,7 @@ export default { ...@@ -31,6 +32,7 @@ export default {
rules: { rules: {
agentId: [{ required: true, message: this.$t("必填"), trigger: "change" }], agentId: [{ required: true, message: this.$t("必填"), trigger: "change" }],
}, },
supplierId: 0
}; };
}, },
created() { created() {
...@@ -60,6 +62,10 @@ export default { ...@@ -60,6 +62,10 @@ export default {
cancel(type) { cancel(type) {
this.$emit("closeDialog", type); this.$emit("closeDialog", type);
}, },
SupplierDetail(){
this.supplierId = this.agentObj.agentId
this.$router.push('/supplier/detail?id='+this.supplierId)
},
}, },
}; };
</script> </script>
......
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