|
@@ -63,21 +63,51 @@
|
|
|
<div class="search-btn" @click="getVoyageList()">查询</div>
|
|
<div class="search-btn" @click="getVoyageList()">查询</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="df aic">
|
|
<div class="df aic">
|
|
|
- <el-upload
|
|
|
|
|
- class="upload-demo"
|
|
|
|
|
- :action="this.$store.state.fydi"
|
|
|
|
|
- :show-file-list="false"
|
|
|
|
|
- :on-success="upFYDISuccess"
|
|
|
|
|
- :before-upload="beforeFYDI"
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ @click="FYDIModalVisable = true"
|
|
|
|
|
+ class="mr20"
|
|
|
|
|
+ size="medium"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ >上传FYDI指数</el-button
|
|
|
>
|
|
>
|
|
|
- <el-button
|
|
|
|
|
- class="mr20"
|
|
|
|
|
- size="medium"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- :loading="isUpLoading"
|
|
|
|
|
- >上传FYDI指数</el-button
|
|
|
|
|
- >
|
|
|
|
|
- </el-upload>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ title="上传FYDI指数"
|
|
|
|
|
+ v-model="FYDIModalVisable"
|
|
|
|
|
+ @close="FYDIModalClose"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template v-slot:default>
|
|
|
|
|
+ <div class="df aic jcsa">
|
|
|
|
|
+ <RemoteSearch
|
|
|
|
|
+ api="getUserSelect"
|
|
|
|
|
+ v-model="cargoOwnerCompanyStr"
|
|
|
|
|
+ placeholder="公司名称/联系人/手机号"
|
|
|
|
|
+ :params="{
|
|
|
|
|
+ identity: 2,
|
|
|
|
|
+ }"
|
|
|
|
|
+ @selectItem="selectCargoOwnerUpload($event)"
|
|
|
|
|
+ class="mb10"
|
|
|
|
|
+ ></RemoteSearch>
|
|
|
|
|
+ <el-upload
|
|
|
|
|
+ v-if="FYDIParams.cargoOwnerId"
|
|
|
|
|
+ class="upload-demo"
|
|
|
|
|
+ :action="this.$store.state.fydi"
|
|
|
|
|
+ :show-file-list="false"
|
|
|
|
|
+ :data="FYDIParams"
|
|
|
|
|
+ :on-success="upFYDISuccess"
|
|
|
|
|
+ :before-upload="beforeFYDI"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ class="mr20"
|
|
|
|
|
+ size="medium"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :loading="isUpLoading"
|
|
|
|
|
+ >上传FYDI指数</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-upload>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
<el-button
|
|
<el-button
|
|
|
class="mr20"
|
|
class="mr20"
|
|
|
size="medium"
|
|
size="medium"
|
|
@@ -644,7 +674,6 @@ export default {
|
|
|
|
|
|
|
|
let isUpLoading = ref(false);
|
|
let isUpLoading = ref(false);
|
|
|
function upFYDISuccess(e) {
|
|
function upFYDISuccess(e) {
|
|
|
- console.log(e);
|
|
|
|
|
if (e.status == 0) {
|
|
if (e.status == 0) {
|
|
|
ElNotification.success({
|
|
ElNotification.success({
|
|
|
title: "成功",
|
|
title: "成功",
|
|
@@ -659,12 +688,31 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
isUpLoading.value = false;
|
|
isUpLoading.value = false;
|
|
|
|
|
+ FYDIModalVisable.value = false;
|
|
|
|
|
+ FYDIParams.value.cargoOwnerId = "";
|
|
|
|
|
+ cargoOwnerCompanyStr.value = "";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function beforeFYDI() {
|
|
function beforeFYDI() {
|
|
|
isUpLoading.value = true;
|
|
isUpLoading.value = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ let FYDIModalVisable = ref(false);
|
|
|
|
|
+ let FYDIParams = ref({
|
|
|
|
|
+ cargoOwnerId: "",
|
|
|
|
|
+ });
|
|
|
|
|
+ let cargoOwnerCompanyStr = ref("");
|
|
|
|
|
+ function selectCargoOwnerUpload(item) {
|
|
|
|
|
+ FYDIParams.value.cargoOwnerId = item.key;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function FYDIModalClose() {
|
|
|
|
|
+ isUpLoading.value = false;
|
|
|
|
|
+ FYDIModalVisable.value = false;
|
|
|
|
|
+ FYDIParams.value.cargoOwnerId = "";
|
|
|
|
|
+ cargoOwnerCompanyStr.value = "";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
getVoyageList();
|
|
getVoyageList();
|
|
|
onMounted(() => {});
|
|
onMounted(() => {});
|
|
|
|
|
|
|
@@ -697,6 +745,11 @@ export default {
|
|
|
upFYDISuccess,
|
|
upFYDISuccess,
|
|
|
beforeFYDI,
|
|
beforeFYDI,
|
|
|
isUpLoading,
|
|
isUpLoading,
|
|
|
|
|
+ FYDIModalVisable,
|
|
|
|
|
+ FYDIParams,
|
|
|
|
|
+ cargoOwnerCompanyStr,
|
|
|
|
|
+ selectCargoOwnerUpload,
|
|
|
|
|
+ FYDIModalClose,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|