Browse Source

福达加运输方式描述和船名

caojunjie 1 year ago
parent
commit
797a225d34

+ 13 - 0
src/views/exportTrade/invoice/detailsPage.vue

@@ -478,6 +478,11 @@ export default {
             span: 8,
             disabled: true,
           },{
+             label: "运输方式描述",
+             prop: "transportDescription",
+             span: 8,
+             disabled: true,
+          },{
             label: "价格条款",
             prop: "priceTerms",
             span: 8,
@@ -518,6 +523,14 @@ export default {
             span: 8,
             disabled: true,
           },{
+            label: "船名",
+            prop: "shipName",
+            span: 8,
+          },{
+            label: "航次",
+            prop: "voyage",
+            span: 8,
+          },{
             label: "采购备注",
             prop: "purchaseRemark",
             type: "textarea",

+ 34 - 1
src/views/exportTrade/salesContract/detailsPage.vue

@@ -555,6 +555,7 @@ import {
 import goodsInfo from "./components/goodsInfo.vue";
 import checkSchedule from "@/components/check/checkSchedule.vue";
 import check from "@/components/check/check.vue";
+import {getDictionary} from "@/api/system/dictbiz";
 export default {
   name: "detailsPageEdit",
   data() {
@@ -717,13 +718,36 @@ export default {
                     label: "dictValue",
                     value: "dictValue"
                 },
+                dicData:[],
                 rules: [
                     {
                         required: true,
                         message: "",
                         trigger: "blur"
                     }
-                ]
+                ],
+                change:((e)=>{
+                    e.column.dicData.forEach(item => {
+                        if (e.value == item.dictValue) {
+                            this.form.transport = item.dictValue
+                            this.form.transportDescription = item.remark;
+                        }
+                    });
+                })
+            },{
+                label: "运输方式描述",
+                prop: "transportDescription",
+                span: 6,
+            },{
+                label: "船名",
+                prop: "shipName",
+                span: 6,
+                disabled: true
+            },{
+                label: "航次",
+                prop: "voyage",
+                span: 6,
+                disabled: true
             }, {
                 label: '需产地证',
                 prop: 'certificateOriginRequired',
@@ -1189,6 +1213,8 @@ export default {
     goodsInfo
   },
   async created() {
+      // 获取运输方式数据
+      this.getDictionaryfun()
     if (this.detailData.id) {
       this.getDetail(this.detailData.id);
     }
@@ -1262,6 +1288,7 @@ export default {
     getAllBoxs().then(res => {
       this.allBoxs = res.data.data;
     });
+
   },
   filters: {
     isDiscount(val) {
@@ -1278,6 +1305,12 @@ export default {
     }
   },
   methods: {
+      // 获取运输方式数据
+      getDictionaryfun(){
+          getDictionary({code:'mode_transport'}).then(res=>{
+              this.findObject(this.option.column, "transport").dicData = res.data.data
+          })
+      },
       //审核关闭
       choceScheduleFun() {
           this.checkScheduleDialog = false