| | |
| | | <template> |
| | | <div> |
| | | <Header style="position: sticky;top: 0;z-index: 1999;" /> |
| | | <div class="contanier"> |
| | | <el-form ref="form" :rules="rules" :model="form" label-width="80px"> |
| | | <!-- card-one --> |
| | |
| | | <div @click="activeTab = 2" :class="activeTab == 2 ? 'active ml-56' : 'noactive ml-56'"> |
| | | 价格信息 |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="flex"> |
| | | |
| | | <div v-if="activeTab == 1"> |
| | | <div class="flex"> |
| | | <el-form-item label="" class="label1" prop="container" label-width="0"> |
| | | <div class="flex"> |
| | | <div class="box"> |
| | |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | | <div class="bg"> |
| | | <div v-else> |
| | | <DetailInfoTop /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="bg" v-if="activeTab == 1"> |
| | | <span>如果是OT/FR等特种柜型,请提供具体包装明细</span> |
| | | <span>Pls supply detailed packing list for an OT or FR conainer</span> |
| | | </div> |
| | | </el-card> |
| | | <div v-if="activeTab == 1"> |
| | | <!-- card-two --> |
| | | |
| | | <el-card class="box-card mt-13"> |
| | | <div slot="header" class="clearfix"> |
| | | <span class="clearfix_text">货柜信息 | Container Det</span> |
| | |
| | | </div> |
| | | </el-card> |
| | | <!-- card-three --> |
| | | |
| | | <el-card class="box-card mt-13"> |
| | | <div slot="header" class="clearfix"> |
| | | <span class="clearfix_text">收件人信息 | Consignee</span> |
| | |
| | | </div> |
| | | <div class="box_text3">Other Information</div> |
| | | </div> |
| | | <quill-editor class="editor" v-model="content" ref="myQuillEditor" :options="editorOption" |
| | | <quill-editor class="editor" v-model="form.specialRequest" ref="myQuillEditor" :options="editorOption" |
| | | @blur="onEditorBlur($event)" @focus="onEditorFocus($event)" @change="onEditorChange($event)"> |
| | | </quill-editor> |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | <div class="flex " style="padding-bottom: 27px;"> |
| | |
| | | </div> |
| | | <div class="box_text3">Remark</div> |
| | | </div> |
| | | <quill-editor class="editor" v-model="content" ref="myQuillEditor" :options="editorOption" |
| | | <quill-editor class="editor" v-model="form.remark" ref="myQuillEditor" :options="editorOption" |
| | | @blur="onEditorBlur($event)" @focus="onEditorFocus($event)" @change="onEditorChange($event)"> |
| | | </quill-editor> |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | |
| | | </el-card> |
| | | |
| | | <el-card class="box-card mt-13"> |
| | | <div slot="header" class="clearfix"> |
| | | <span class="clearfix_text">附件</span> |
| | |
| | | <div class="flex"> |
| | | <el-form-item label="Do:" class="mr-129" prop="DOFileUrl" label-width="88px"> |
| | | <el-upload class="upload-demo" action="https://jsonplaceholder.typicode.com/posts/" |
| | | :on-preview="handlePreview" :on-remove="handleRemove" :before-remove="beforeRemove" multiple :limit="3" |
| | | :on-exceed="handleExceed" :file-list="fileList"> |
| | | :on-preview="handlePreview" :on-remove="handleRemove" :before-remove="beforeRemove" multiple |
| | | :limit="3" :on-exceed="handleExceed" :file-list="fileList"> |
| | | <div class="upload_btn">+上传附件</div> |
| | | </el-upload> |
| | | </el-form-item> |
| | | <el-form-item label="PU#:" class="mr-129" prop="PUFileUrl" label-width="88px"> |
| | | <el-upload class="upload-demo" action="https://jsonplaceholder.typicode.com/posts/" |
| | | :on-preview="handlePreview" :on-remove="handleRemove" :before-remove="beforeRemove" multiple :limit="3" |
| | | :on-exceed="handleExceed" :file-list="fileList"> |
| | | :on-preview="handlePreview" :on-remove="handleRemove" :before-remove="beforeRemove" multiple |
| | | :limit="3" :on-exceed="handleExceed" :file-list="fileList"> |
| | | <div class="upload_btn">+上传附件</div> |
| | | </el-upload> |
| | | </el-form-item> |
| | |
| | | <div class="flex"> |
| | | <el-form-item label="POD:" class="mr-129" prop="PODFileUrls" label-width="88px"> |
| | | <el-upload class="upload-demo" action="https://jsonplaceholder.typicode.com/posts/" |
| | | :on-preview="handlePreview" :on-remove="handleRemove" :before-remove="beforeRemove" multiple :limit="3" |
| | | :on-exceed="handleExceed" :file-list="fileList"> |
| | | :on-preview="handlePreview" :on-remove="handleRemove" :before-remove="beforeRemove" multiple |
| | | :limit="3" :on-exceed="handleExceed" :file-list="fileList"> |
| | | <div class="upload_btn">+上传附件</div> |
| | | </el-upload> |
| | | </el-form-item> |
| | | <el-form-item label="其他附件:" class="" prop="otherFileUrls" label-width="88px"> |
| | | <el-upload class="upload-demo" action="https://jsonplaceholder.typicode.com/posts/" |
| | | :on-preview="handlePreview" :on-remove="handleRemove" :before-remove="beforeRemove" multiple :limit="3" |
| | | :on-exceed="handleExceed" :file-list="fileList"> |
| | | :on-preview="handlePreview" :on-remove="handleRemove" :before-remove="beforeRemove" multiple |
| | | :limit="3" :on-exceed="handleExceed" :file-list="fileList"> |
| | | <div class="upload_btn">+上传附件</div> |
| | | </el-upload> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | | <!-- 详情的table --> |
| | | <DetailInfo v-else /> |
| | | |
| | | <div class="btn"> |
| | | <div class="btn_close">关闭</div> |
| | | <div class="btn_comfirm" @click="submitForm('form')">确认</div> |
| | | <div v-if="activeTab == 1" class="btn_comfirm" @click="submitForm('form')">确认</div> |
| | | </div> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | |
| | | import { quillEditor, Quill } from 'vue-quill-editor' //引入插件 |
| | | |
| | | |
| | | import DetailInfoTop from '@/component/detailInfoTop' |
| | | import DetailInfo from '../component/detailInfo.vue' |
| | | import Header from '@/component/Header.vue' |
| | | |
| | | export default { |
| | | components: { |
| | | quillEditor |
| | | quillEditor, DetailInfoTop, DetailInfo, Header |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | // 设置上传的请求头部 |
| | | // headers: { Authorization: "Bearer " + getToken() }, |
| | | // 上传的地址 |
| | | // url: process.env.VUE_APP_BASE_API + "/common/upload" |
| | | url: 'http://47.108.239.173:2020' + "/api/oss/new_temp_upload" |
| | | }, |
| | | fileList: [], |
| | | options: [ |
| | | { |
| | | value: "20GP", |
| | |
| | | } |
| | | }); |
| | | }, |
| | | handleFileSuccesspicture(resp, file, fileList) { |
| | | console.log(resp, file, fileList); |
| | | |
| | | |
| | | }, |
| | | |
| | | handlePreview(e) { |
| | | console.log(e, 'e'); |
| | | |
| | | }, |
| | | |
| | | handleRemove(e) { |
| | | console.log(e, 'e'); |
| | | |
| | | |
| | | }, |
| | | beforeRemove(e) { |
| | | console.log(e, 'e'); |
| | | |
| | | }, |
| | | handleExceed(e) { |
| | | console.log(e, 'e'); |
| | | |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | .tab{ |
| | | padding-bottom: 35px; |
| | | } |
| | | |
| | | .noactive { |
| | | font-weight: 500; |
| | | font-size: 18px; |
| | |
| | | text-align: left; |
| | | font-style: normal; |
| | | } |
| | | |
| | | .ml-56{ |
| | | margin-left: 56px; |
| | | } |