|
@@ -1,5 +1,75 @@
|
|
<template>
|
|
<template>
|
|
- <div>
|
|
|
|
-
|
|
|
|
|
|
+ <!-- 添加码头信息 -->
|
|
|
|
+ <div class="addWagonLoad">
|
|
|
|
+ <PageTitle>返回</PageTitle>
|
|
|
|
+ <div class="form-box">
|
|
|
|
+ <dil-form :formId="366" v-model="form1" ref="from1"></dil-form>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="button-box">
|
|
|
|
+ <el-button @click="cancel">取消</el-button>
|
|
|
|
+ <el-button type="primary" @click="makeSure">确定</el-button>
|
|
</div>
|
|
</div>
|
|
-</template>
|
|
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+import PageTitle from "@/components/Page/Title";
|
|
|
|
+export default {
|
|
|
|
+ components: { PageTitle },
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ form1: {},
|
|
|
|
+ value: undefined,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ mounted() {},
|
|
|
|
+ methods: {
|
|
|
|
+ makeSure() {
|
|
|
|
+ console.log(this.form1)
|
|
|
|
+ // let RmsCapacity = {
|
|
|
|
+
|
|
|
|
+ // };
|
|
|
|
+ let RmsCapacity=this.form1;
|
|
|
|
+ console.log(RmsCapacity)
|
|
|
|
+ if (
|
|
|
|
+ RmsCapacity.warehouseName==null||
|
|
|
|
+ RmsCapacity.portId==null
|
|
|
|
+ ) this.$message.error("存在空值!");
|
|
|
|
+ else
|
|
|
|
+ this.axios
|
|
|
|
+ .post(
|
|
|
|
+ "/api/v1/rms/insertPortYard",
|
|
|
|
+ RmsCapacity
|
|
|
|
+ )
|
|
|
|
+ .then((res) => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: "success",
|
|
|
|
+ message: "新增成功!",
|
|
|
|
+ });
|
|
|
|
+ // this.$refs.table.refreshData();
|
|
|
|
+ this.$router.go(-1);
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("新增失败,可能存在重复!");
|
|
|
|
+ }
|
|
|
|
+ this.$refs['table'].resetField();
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ // 取消
|
|
|
|
+ cancel() {
|
|
|
|
+ this.$router.go(-1);
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+</script>
|
|
|
|
+<style lang='scss' scoped>
|
|
|
|
+.form-box,
|
|
|
|
+.button-box{
|
|
|
|
+ display: flex;
|
|
|
|
+ text-align: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ margin-top: 0.3125rem;
|
|
|
|
+ margin-bottom: 1.25rem;
|
|
|
|
+}
|
|
|
|
+</style>
|