|
|
|
@ -92,17 +92,17 @@ |
|
|
|
</el-pagination> |
|
|
|
|
|
|
|
<!-- 导入弹窗 - rqrq --> |
|
|
|
<el-dialog title="导入TID_EPC日志" :close-on-click-modal="false" v-drag :visible.sync="importModalFlag" width="500px" @close="closeImportModal"> |
|
|
|
<el-form :inline="true" label-position="top" :model="importData" ref="importForm"> |
|
|
|
<el-row> |
|
|
|
<el-dialog title="导入TID_EPC日志" :close-on-click-modal="false" v-drag :visible.sync="importModalFlag" width="400px" @close="closeImportModal"> |
|
|
|
<el-form :inline="true" label-position="top" :model="importData" ref="importForm" style="width: 100%"> |
|
|
|
<el-row style="width: 100%"> |
|
|
|
<!-- <el-col :span="12">--> |
|
|
|
<!-- <el-form-item label="Site" prop="site" :rules="[{required: true, message: '请选择Site', trigger: 'change'}]">--> |
|
|
|
<!-- <el-input v-model="importData.site" disabled style="width: 200px"></el-input>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- </el-col>--> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="BU" prop="buNo" :rules="[{required: true, message: '请选择BU', trigger: 'change'}]"> |
|
|
|
<el-select v-model="importData.buNo" placeholder="请选择" @change="buChange" style="width: 200px"> |
|
|
|
<el-select v-model="importData.buNo" placeholder="请选择" @change="buChange" style="width: 360px"> |
|
|
|
<el-option |
|
|
|
v-for="i in userBuList" |
|
|
|
:key="i.buNo" |
|
|
|
@ -117,14 +117,14 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-row style="width: 100%"> |
|
|
|
<el-col :span="24" > |
|
|
|
<el-form-item label="备注" > |
|
|
|
<el-input v-model="importData.remark" type="textarea" :rows="2" resize="none" placeholder="请输入备注(可选)" style="width: 430px"></el-input> |
|
|
|
<el-input v-model="importData.remark" type="textarea" :rows="2" resize="none" placeholder="请输入备注(可选)" style="width: 360px" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row style="margin-top: 10px;"> |
|
|
|
<el-row style="margin-top: 30px;"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-upload |
|
|
|
class="upload-demo" |
|
|
|
@ -360,9 +360,13 @@ |
|
|
|
|
|
|
|
this.importLoading = true |
|
|
|
|
|
|
|
// 从选中的BU对象中获取site - rqrq |
|
|
|
const selectedBu = this.userBuList.find(item => item.buNo === this.importData.buNo) |
|
|
|
const site = selectedBu ? selectedBu.site : this.importData.site |
|
|
|
|
|
|
|
const formData = new FormData() |
|
|
|
formData.append('file', this.fileList[0].raw) |
|
|
|
formData.append('site', this.importData.site) |
|
|
|
formData.append('site', site) |
|
|
|
formData.append('buNo', this.importData.buNo) |
|
|
|
formData.append('remark', this.importData.remark || '') |
|
|
|
formData.append('username', this.$store.state.user.name) |
|
|
|
|