| | |
| | | <el-card class=""> |
| | | <div slot="header" class="clearfix"> |
| | | <span class="clearfix_text">添加订单</span> |
| | | <img class="clearfix_img" src="@/assets/addOrder/img2x.png" alt="" /> |
| | | <img class="clearfix_img" src="@/assets/addOrder/img2x.png" @click="$router.go(-1)" alt="" /> |
| | | </div> |
| | | <div class="box-cards"> |
| | | <div class="flex tab" v-if="type=='detail'"> |
| | |
| | | </div> |
| | | <div class="box_text2">Contain#</div> |
| | | </div> |
| | | <el-input v-model="form.container" placeholder="请输入"></el-input> |
| | | <el-input :disabled="type == 'detail'" v-model="form.container" placeholder="请输入"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | |
| | |
| | | </div> |
| | | <div class="box_text2">BOLI#</div> |
| | | </div> |
| | | <el-input v-model="form.bol" placeholder="请输入"></el-input> |
| | | <el-input :disabled="type == 'detail'" v-model="form.bol" placeholder="请输入"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | |
| | |
| | | </div> |
| | | <div class="box_text2">Cargo Type</div> |
| | | </div> |
| | | <el-select v-model="form.cargoType" clearable placeholder="请选择" prop="type"> |
| | | <el-select :disabled="type == 'detail'" v-model="form.cargoType" clearable placeholder="请选择" |
| | | prop="type"> |
| | | <el-option :label="item.label" :value="item.value" v-for="item in options" |
| | | :key="item.value"></el-option> |
| | | </el-select> |
| | |
| | | </div> |
| | | <div class="box_text2">Carrier</div> |
| | | </div> |
| | | <el-select v-model="form.carrier" clearable placeholder="请选择"> |
| | | <el-select :disabled="type == 'detail'" v-model="form.carrier" clearable placeholder="请选择"> |
| | | <el-option :label="item.label" :value="item.value" v-for="item in optionsSc" |
| | | :key="item.value"></el-option> |
| | | </el-select> |
| | |
| | | </div> |
| | | <div class="box_text2">Vessel & Voyage</div> |
| | | </div> |
| | | <el-input v-model="form.vesselAndVoyage" placeholder="请输入"></el-input> |
| | | <el-input :disabled="type == 'detail'" v-model="form.vesselAndVoyage" placeholder="请输入"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="" class="label3" prop="pickupLocation" label-width="0px"> |
| | |
| | | </div> |
| | | <div class="box_text2">Pickup Location</div> |
| | | </div> |
| | | <el-select v-model="form.pickupLocation" clearable placeholder="请选择"> |
| | | <el-select :disabled="type == 'detail'" v-model="form.pickupLocation" clearable placeholder="请选择"> |
| | | <el-option :label="item.label" :value="item.value" v-for="item in optionsPL" |
| | | :key="item.value"></el-option> |
| | | </el-select> |
| | |
| | | </div> |
| | | <div class="box_text2">ETA</div> |
| | | </div> |
| | | <el-date-picker type="datetime" suffix-icon="el-icon-date" placeholder="选择日期" v-model="form.ETA" |
| | | style="width: 100%"> |
| | | <el-date-picker :disabled="type == 'detail'" type="datetime" suffix-icon="el-icon-date" |
| | | placeholder="选择日期" v-model="form.ETA" style="width: 100%"> |
| | | <div></div> |
| | | </el-date-picker> |
| | | </div> |
| | |
| | | <div class="box_text1">SOC:</div> |
| | | </div> |
| | | </div> |
| | | <el-radio-group text-color="#014099" fill="#014099" v-model="form.SOC"> |
| | | <el-radio-group :disabled="type == 'detail'" text-color="#014099" fill="#014099" v-model="form.SOC"> |
| | | <el-radio label="是"></el-radio> |
| | | <el-radio label="否"></el-radio> |
| | | </el-radio-group> |
| | |
| | | <div class="box_text1">DG:</div> |
| | | </div> |
| | | </div> |
| | | <el-radio-group text-color="#014099" fill="#014099" v-model="form.DG"> |
| | | <el-radio-group :disabled="type == 'detail'" text-color="#014099" fill="#014099" v-model="form.DG"> |
| | | <el-radio label="是"></el-radio> |
| | | <el-radio label="否"></el-radio> |
| | | </el-radio-group> |
| | |
| | | </div> |
| | | <div class="box_text1 mr-14">Over Weight</div> |
| | | </div> |
| | | <el-radio-group text-color="#014099" fill="#014099" v-model="form.overweight"> |
| | | <el-radio-group :disabled="type == 'detail'" text-color="#014099" fill="#014099" |
| | | v-model="form.overweight"> |
| | | <el-radio label="是"></el-radio> |
| | | <el-radio label="否"></el-radio> |
| | | </el-radio-group> |
| | |
| | | </div> |
| | | <div class="box_text1">Customs Inspection</div> |
| | | </div> |
| | | <el-radio-group text-color="#014099" fill="#014099" v-model="form.customsInspection"> |
| | | <el-radio-group :disabled="type == 'detail'" text-color="#014099" fill="#014099" |
| | | v-model="form.customsInspection"> |
| | | <el-radio label="是"></el-radio> |
| | | <el-radio label="否"></el-radio> |
| | | </el-radio-group> |
| | |
| | | <div class="box_text1">DROP/LIVE:</div> |
| | | </div> |
| | | </div> |
| | | <el-radio-group text-color="#014099" fill="#014099" v-model="form.dropOrLive"> |
| | | <el-radio-group :disabled="type == 'detail'" text-color="#014099" fill="#014099" |
| | | v-model="form.dropOrLive"> |
| | | <el-radio label="Drop"></el-radio> |
| | | <el-radio label="Live"></el-radio> |
| | | </el-radio-group> |
| | |
| | | </div> |
| | | <div class="box_text2">Clinet Order#</div> |
| | | </div> |
| | | <el-input v-model="form.clientOrder" placeholder="请输入"></el-input> |
| | | <el-input :disabled="type == 'detail'" v-model="form.clientOrder" placeholder="请输入"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | |
| | |
| | | </div> |
| | | <div class="box_text2">Product</div> |
| | | </div> |
| | | <el-input v-model="form.product" placeholder="请输入"></el-input> |
| | | <el-input :disabled="type == 'detail'" v-model="form.product" placeholder="请输入"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | |
| | |
| | | </div> |
| | | <div class="box_text2">QTY</div> |
| | | </div> |
| | | <el-input v-model="form.QTY" placeholder="请输入"></el-input> |
| | | <el-input :disabled="type == 'detail'" v-model="form.QTY" placeholder="请输入"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="" class="label4" prop="QTYUnit" label-width="0"> |
| | |
| | | </div> |
| | | <div class="box_text2">QTY Unit</div> |
| | | </div> |
| | | <el-select v-model="form.QTYUnit" clearable placeholder="请选择"> |
| | | <el-select :disabled="type == 'detail'" v-model="form.QTYUnit" clearable placeholder="请选择"> |
| | | <el-option :label="item.label" :value="item.value" v-for="item in optionsUs" |
| | | :key="item.value"></el-option> |
| | | </el-select> |
| | |
| | | </div> |
| | | <div class="box_text2">Weight</div> |
| | | </div> |
| | | <el-input v-model="form.weight" @input="onInput" placeholder="请输入"> |
| | | <el-input :disabled="type == 'detail'" v-model="form.weight" @input="onInput" placeholder="请输入"> |
| | | <div style="line-height: 50px;" slot="prefix-icon">KG</div> |
| | | </el-input> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="box_text2">Voume</div> |
| | | </div> |
| | | <el-input v-model="form.volume" placeholder="请输入"> |
| | | <el-input :disabled="type == 'detail'" v-model="form.volume" placeholder="请输入"> |
| | | <div style="line-height: 50px;" slot="suffix">CMB</div> |
| | | </el-input> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="box_text2">Contact</div> |
| | | </div> |
| | | <el-input v-model="form.contact" placeholder="请输入"></el-input> |
| | | <el-input :disabled="type == 'detail'" v-model="form.contact" placeholder="请输入"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | |
| | |
| | | </div> |
| | | <div class="box_text2">Consignee-Company</div> |
| | | </div> |
| | | <el-input v-model="form.consigneeCompany" placeholder="请输入"></el-input> |
| | | <el-input :disabled="type == 'detail'" v-model="form.consigneeCompany" placeholder="请输入"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | |
| | |
| | | <div class="box_text2">Post</div> |
| | | </div> |
| | | |
| | | <el-input v-model="form.post" placeholder="请输入"></el-input> |
| | | <el-input :disabled="type == 'detail'" v-model="form.post" placeholder="请输入"></el-input> |
| | | |
| | | </div> |
| | | </el-form-item> |
| | |
| | | </div> |
| | | <div class="box_text2">Address</div> |
| | | </div> |
| | | <el-input v-model="form.address" placeholder="请输入"></el-input> |
| | | <el-input :disabled="type == 'detail'" v-model="form.address" placeholder="请输入"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="box_text2">Tel</div> |
| | | </div> |
| | | <el-input v-model="form.tel" placeholder="请输入"></el-input> |
| | | <el-input :disabled="type == 'detail'" v-model="form.tel" placeholder="请输入"></el-input> |
| | | |
| | | </div> |
| | | </el-form-item> |
| | |
| | | </div> |
| | | <div class="box_text2">Email</div> |
| | | </div> |
| | | <el-input v-model="form.email" placeholder="请输入"></el-input> |
| | | <el-input :disabled="type == 'detail'" v-model="form.email" placeholder="请输入"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | <div class="tip"> |
| | |
| | | </div> |
| | | <div class="box_text3">Other Information</div> |
| | | </div> |
| | | <quill-editor class="editor" v-model="form.specialRequest" ref="myQuillEditor" :options="editorOption" |
| | | @blur="onEditorBlur($event)" @focus="onEditorFocus($event)" @change="onEditorChange($event)"> |
| | | <quill-editor :disabled="type == 'detail'" 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="box_text3">Remark</div> |
| | | </div> |
| | | <quill-editor class="editor" v-model="form.remark" ref="myQuillEditor" :options="editorOption" |
| | | @blur="onEditorBlur($event)" @focus="onEditorFocus($event)" @change="onEditorChange($event)"> |
| | | <quill-editor :disabled="type == 'detail'" class="editor" v-model="form.remark" ref="myQuillEditor" |
| | | :options="editorOption" @blur="onEditorBlur($event)" @focus="onEditorFocus($event)" |
| | | @change="onEditorChange($event)"> |
| | | </quill-editor> |
| | | </div> |
| | | |
| | |
| | | <div class="flex"> |
| | | <el-form-item label="Do:" class="w-316" prop="DOFileUrl" label-width="88px"> |
| | | |
| | | <el-upload class="upload-demo" :on-preview="handlePreview" :http-request="handleUpload1" action="#" |
| | | :on-remove="handleRemove1" :on-exceed="handleExceed" :file-list="fileList1"> |
| | | <el-upload :disabled="type == 'detail'" class="upload-demo" :on-preview="handlePreview" |
| | | :http-request="handleUpload1" action="#" :on-remove="handleRemove1" :on-exceed="handleExceed" |
| | | :file-list="fileList1"> |
| | | <div class="upload_btn" v-if="form.DOFileUrl == ''">+上传附件</div> |
| | | </el-upload> |
| | | </el-form-item> |
| | | <el-form-item label="PU#:" class="w-316" prop="PUFileUrl" label-width="88px"> |
| | | <el-upload class="upload-demo" :on-preview="handlePreview" :on-remove="handleRemove2" |
| | | :http-request="handleUpload2" action="#" :on-exceed="handleExceed" :file-list="fileList2"> |
| | | <el-upload :disabled="type == 'detail'" class="upload-demo" :on-preview="handlePreview" |
| | | :on-remove="handleRemove2" :http-request="handleUpload2" action="#" :on-exceed="handleExceed" |
| | | :file-list="fileList2"> |
| | | <div class="upload_btn" v-if="form.PUFileUrl == ''">+上传附件</div> |
| | | </el-upload> |
| | | </el-form-item> |
| | | <el-form-item label="PU说明:" class="" prop="PUExplain" label-width="80px"> |
| | | <el-input v-model="form.PUExplain" placeholder="请输入"></el-input> |
| | | <el-input :disabled="type == 'detail'" v-model="form.PUExplain" placeholder="请输入"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="flex"> |
| | | <el-form-item label="POD:" class=" w-316" prop="PODFileUrls" label-width="88px"> |
| | | <el-upload class="upload-demo" :on-preview="handlePreview" :on-remove="handleRemove3" |
| | | :http-request="handleUpload3" action="#" :on-exceed="handleExceed" :file-list="fileList3"> |
| | | <el-upload :disabled="type == 'detail'" class="upload-demo" :on-preview="handlePreview" |
| | | :on-remove="handleRemove3" :http-request="handleUpload3" action="#" :on-exceed="handleExceed" |
| | | :file-list="fileList3"> |
| | | <div class="upload_btn" v-if="form.PODFileUrl == ''">+上传附件</div> |
| | | </el-upload> |
| | | </el-form-item> |
| | | <el-form-item label="其他附件:" class="w-316" prop="otherFileUrls" label-width="88px"> |
| | | <el-upload class="upload-demo" :on-preview="handlePreview" :on-remove="handleRemove4" |
| | | :http-request="handleUpload4" action="#" :on-exceed="handleExceed" :file-list="fileList4"> |
| | | <el-upload :disabled="type == 'detail'" class="upload-demo" :on-preview="handlePreview" |
| | | :on-remove="handleRemove4" :http-request="handleUpload4" action="#" :on-exceed="handleExceed" |
| | | :file-list="fileList4"> |
| | | <div class="upload_btn" v-if="form.otherFileUrl == ''">+上传附件</div> |
| | | </el-upload> |
| | | </el-form-item> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { addOrder, getaddress } from './addservier' |
| | | import { addOrder, getaddress, edit, getDetail } from './addservier' |
| | | import 'quill/dist/quill.core.css' |
| | | import 'quill/dist/quill.snow.css' |
| | | import 'quill/dist/quill.bubble.css' |
| | |
| | | post: "", //目的地邮编 |
| | | address: "", //地址 |
| | | tel: "", //联系电话 |
| | | QTYUnit: '',//单位 |
| | | email: "", //邮箱 |
| | | PUExplain: '',//PU说明 |
| | | PUFileUrl: '',//PU附件 |
| | |
| | | specialRequest: '',//特殊要求 |
| | | remark: '',//备注 |
| | | }, |
| | | orderId: '', |
| | | editorOption: { |
| | | modules: { |
| | | toolbar: [ |
| | |
| | | }, |
| | | |
| | | |
| | | // 导入参数 |
| | | upload: { |
| | | data: {}, |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否禁用上传 |
| | | isUploading: false, |
| | | // 是否更新已经存在的数据 |
| | | updateSupport: 0, |
| | | // 设置上传的请求头部 |
| | | // headers: { Authorization: "Bearer " + getToken() }, |
| | | // 上传的地址 |
| | | url: 'http://47.108.239.173:2020' + "/api/oss/new_temp_upload" |
| | | }, |
| | | |
| | | fileList1: [], |
| | | fileList2: [], |
| | | fileList3: [], |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | |
| | | this.orderId = this.$route.query.orderId |
| | | this.type = this.$route.query.type ? this.$route.query.type : 'add' |
| | | if (this.orderId) { |
| | | getDetail({ |
| | | orderId: this.orderId |
| | | }).then(resp => { |
| | | this.form = resp.data |
| | | this.form.DOFileUrl = resp.data.DOFileUrl ? resp.data.DOFileUrl : '' |
| | | this.form.PUFileUrl = resp.data.PUFileUrl ? resp.data.PUFileUrl : '' |
| | | this.form.PODFileUrl = resp.data.PODFileUrl ? resp.data.PODFileUrl : '' |
| | | this.form.otherFileUrl = resp.data.otherFileUrl ? resp.data.otherFileUrl : '' |
| | | if (resp.data.DOFileUrl) { |
| | | this.fileList1.push({ url: resp.data.DOFileUrl, name: resp.data.DOFileUrl.split('ownload/')[1] }) |
| | | |
| | | } |
| | | if (resp.data.PUFileUrl) { |
| | | this.fileList2.push({ url: resp.data.PUFileUrl, name: resp.data.PUFileUrl.split('ownload/')[1] }) |
| | | |
| | | } |
| | | if (resp.data.PODFileUrl) { |
| | | this.fileList3.push({ url: resp.data.PODFileUrl, name: resp.data.PODFileUrl.split('ownload/')[1] }) |
| | | |
| | | } |
| | | if (resp.data.otherFileUrl) { |
| | | this.fileList4.push({ url: resp.data.otherFileUrl, name: resp.data.otherFileUrl.split('ownload/')[1] }) |
| | | |
| | | } |
| | | |
| | | |
| | | }) |
| | | } |
| | | |
| | | getaddress({ |
| | | extra: JSON.parse(localStorage.getItem('userInfo')).extra |
| | | }).then(resp => { |
| | |
| | | |
| | | } else { |
| | | // 添加订单 |
| | | if (this.type === 'add') { |
| | | addOrder({ |
| | | ...this.form, |
| | | extra: JSON.parse(localStorage.getItem('userInfo')).extra |
| | |
| | | this.fileList2=[] |
| | | this.fileList3=[] |
| | | this.fileList4=[] |
| | | this.$router.go(-1) |
| | | |
| | | } |
| | | |
| | | }) |
| | | } else { |
| | | edit({ |
| | | ...this.form, |
| | | extra: JSON.parse(localStorage.getItem('userInfo')).extra, |
| | | orderId: this.orderId |
| | | }).then(resp => { |
| | | if (resp.data.status === 'SUCCESS') { |
| | | this.$message.success('编辑成功'); |
| | | this.form = { |
| | | container: "", //集装箱号 |
| | | bol: "", //提单号 |
| | | cargoType: "", //货柜类型 |
| | | carrier: "", //船司 |
| | | vesselAndVoyage: "", //航名航次 |
| | | pickupLocation: "", //提柜地 |
| | | ETA: "", //预计到达日期 |
| | | SOC: "", //SOC |
| | | DG: "", //DG |
| | | overweight: "", //超重 |
| | | customsInspection: "", //查验 |
| | | dropOrLive: "", //DROP/LIVE |
| | | clientOrder: "", //客户订单号 |
| | | product: "", //品名 |
| | | QTY: "", //包装数量 |
| | | weight: "", //重量 |
| | | poundWeight: "", //≈重量(磅) |
| | | volume: "", //体积 |
| | | contact: "", //收件人 |
| | | consigneeCompany: "", //收件人公司 |
| | | post: "", //目的地邮编 |
| | | address: "", //地址 |
| | | tel: "", //联系电话 |
| | | email: "", //邮箱 |
| | | PUExplain: '',//PU说明 |
| | | PUFileUrl: '',//PU附件 |
| | | DOFileUrl: '',//DO附件 |
| | | PODFileUrl: '',//POD附件 |
| | | otherFileUrl: '',//其他附件 |
| | | specialRequest: '',//特殊要求 |
| | | remark: '',//备注 |
| | | |
| | | } |
| | | this.fileList1 = [] |
| | | this.fileList2 = [] |
| | | this.fileList3 = [] |
| | | this.fileList4 = [] |
| | | this.$router.go(-1) |
| | | |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | | } |
| | | |
| | | } else { |
| | |
| | | }, |
| | | handleRemove2(e) { |
| | | console.log(e, 'e'); |
| | | this.form.DOFileUrl = ''; |
| | | this.form.PUFileUrl = ''; |
| | | }, |
| | | handleRemove3(e) { |
| | | console.log(e, 'e'); |
| | | this.form.DOFileUrl = ''; |
| | | this.form.PODFileUrl = ''; |
| | | }, |
| | | handleRemove4(e) { |
| | | console.log(e, 'e'); |
| | | this.form.DOFileUrl = ''; |
| | | this.form.otherFileUrl = ''; |
| | | }, |
| | | |
| | | handleExceed(e) { |
| | | console.log(e, 'e'); |
| | | |
| | | }, |
| | | async toArrayBuffer(file) { |
| | | return new Promise((resolve, reject) => { |
| | | // 读取文件 |
| | | const fileReader = new FileReader(); |
| | | setTimeout(() => { |
| | | fileReader.readAsArrayBuffer(file); |
| | | }); |
| | | |
| | | fileReader.onerror = (e) => { |
| | | reject(e); |
| | | }; |
| | | |
| | | // 读取完成 |
| | | // fileReader.onload = (e) => { |
| | | // resolve(e.target?.result); |
| | | // }; |
| | | }); |
| | | }, |
| | | async upFileAsArrayBuffer( |
| | | url, |
| | | file, |
| | | options, |
| | | ){ |
| | | // 读取文件 |
| | | const arrayBuffer = await this.toArrayBuffer(file); |
| | | |
| | | // 上传文件 |
| | | return axios({ |
| | | url, |
| | | method: options?.method || 'POST', |
| | | withCredentials: Boolean(options?.withCredentials), |
| | | |
| | | // 二进制数据 |
| | | data: arrayBuffer, |
| | | |
| | | // 请求头 |
| | | headers: { |
| | | 'Content-Type': 'application/octet-stream', |
| | | 'file-name': encodeURIComponent(options?.fileName || file.name), |
| | | }, |
| | | |
| | | // 上传进度 |
| | | onUploadProgress: ({ total, loaded }) => { |
| | | const onProgress = options?.onProgress; |
| | | if (!isFunction(onProgress)) return; |
| | | |
| | | onProgress({ |
| | | percent: Math.ceil((loaded / total) * 100), |
| | | }); |
| | | }, |
| | | }); |
| | | }, |
| | | uploadFile(e, obj, value) { |
| | | axios.post('http://47.108.239.173:2020/api/oss/new_temp_upload', obj).then(res => { |
| | | if (res.status == 200) { |
| | | const fileName = new FormData(); |
| | | fileName.append('file', e.file); |
| | | axios.post('http://47.108.239.173:2020/api/oss/upload_file', fileName, { |
| | | headers: { |
| | | 'File-Name': res.data.data |
| | | } |
| | | }).then(resp => { |
| | | console.log(resp, value, 'asdasdasdasdas'); |
| | | if (resp.data.status === 0) { |
| | | if (value == 1) { |
| | | this.form.DOFileUrl = 'http://47.108.239.173:2020/api/oss/download/' + res.data.data |
| | | } else if (value == 2) { |
| | | this.form.PUFileUrl = 'http://47.108.239.173:2020/api/oss/download/' + res.data.data |
| | | } else if (value == 3) { |
| | | this.form.PODFileUrl = 'http://47.108.239.173:2020/api/oss/download/' + res.data.data |
| | | } else { |
| | | this.form.otherFileUrl = 'http://47.108.239.173:2020/api/oss/download/' + res.data.data |
| | | } |
| | | } |
| | | |
| | | this.upFileAsArrayBuffer('http://47.108.239.173:2020/api/oss/upload_file', e.file).then(resp=>{ |
| | | console.log(resp,'asdasdsad'); |
| | | |
| | | }) |
| | | // axios.post('http://47.108.239.173:2020/api/oss/upload_file', fileName, { |
| | | // headers: { |
| | | // 'File-Name': res.data.data |
| | | // } |
| | | // }).then(resp => { |
| | | // console.log(resp, value, 'asdasdasdasdas'); |
| | | // if (resp.data.status === 0) { |
| | | // if (value == 1) { |
| | | // this.form.DOFileUrl = 'http://47.108.239.173:2020/api/oss/download/' + res.data.data |
| | | // console.log(this.fileList1, 'this.fileList1'); |
| | | |
| | | // } else if (value == 2) { |
| | | // this.form.PUFileUrl = 'http://47.108.239.173:2020/api/oss/download/' + res.data.data |
| | | // console.log(this.form.PUFileUrl, 'this.form.PUFileUrl'); |
| | | |
| | | // } else if (value == 3) { |
| | | // this.form.PODFileUrl = 'http://47.108.239.173:2020/api/oss/download/' + res.data.data |
| | | // } else { |
| | | // this.form.otherFileUrl = 'http://47.108.239.173:2020/api/oss/download/' + res.data.data |
| | | // } |
| | | // this.$forceUpdate() |
| | | // } |
| | | |
| | | // }) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | |
| | | ::v-deep .el-form-item__label { |
| | | text-align: left !important; |
| | | width: 88px !important; |
| | | flex-shrink: 0; |
| | | } |
| | | } |
| | | |
| | |
| | | left: 110px !important; |
| | | } |
| | | } |
| | | |
| | | .label7{ |
| | | ::v-deep .el-form-item__error { |
| | | left: 205px !important; |
| | | } |
| | | } |
| | | |
| | | .label8{ |
| | | ::v-deep .el-form-item__error { |
| | | left: 188px !important; |