|
@@ -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
|