|
@@ -85,8 +85,9 @@
|
|
:data="uploadData"
|
|
:data="uploadData"
|
|
multiple
|
|
multiple
|
|
:before-upload="uploadFile"
|
|
:before-upload="uploadFile"
|
|
- :on-success="handleSuccess2"
|
|
+ :on-success="handleSuccess"
|
|
- :on-preview="onPreviewFile2">
|
|
+ :on-preview="onPreviewFile"
|
|
|
|
+ >
|
|
<el-button>选择</el-button>
|
|
<el-button>选择</el-button>
|
|
</el-upload>
|
|
</el-upload>
|
|
</div>
|
|
</div>
|
|
@@ -117,8 +118,15 @@
|
|
placeholder="国家"
|
|
placeholder="国家"
|
|
filterable
|
|
filterable
|
|
@change="(val) => getCityData(val, '20', true)"
|
|
@change="(val) => getCityData(val, '20', true)"
|
|
- :no-match-text="'无数据,请联系管理员添加'">
|
|
+ :no-match-text="'无数据,请联系管理员添加'"
|
|
- <el-option v-for="item in countryData" :key="item.id" :label="item.chineseName + '(' + item.name + ')'" :value="item.id"> </el-option>
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in countryData"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.chineseName + '(' + item.name + ')'"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -716,7 +724,6 @@ const rules = ref({
|
|
],
|
|
],
|
|
});
|
|
});
|
|
|
|
|
|
-
|
|
|
|
const getDict = () => {
|
|
const getDict = () => {
|
|
proxy.getDictOne(["account_currency", "funds_payment_method"]).then((res) => {
|
|
proxy.getDictOne(["account_currency", "funds_payment_method"]).then((res) => {
|
|
accountCurrency.value = res["account_currency"].map((x) => ({
|
|
accountCurrency.value = res["account_currency"].map((x) => ({
|
|
@@ -1067,27 +1074,16 @@ const uploadFile = async (file) => {
|
|
return true;
|
|
return true;
|
|
};
|
|
};
|
|
|
|
|
|
-const handleSuccess2 = (any, UploadFile) => {
|
|
|
|
- console.log(any, UploadFile);
|
|
|
|
- console.log(formData.data)
|
|
|
|
- formData.data.fileList.push({
|
|
|
|
- id: UploadFile.raw.id,
|
|
|
|
- fileName: UploadFile.raw.fileName,
|
|
|
|
- fileUrl: UploadFile.raw.fileUrl,
|
|
|
|
- uploadState: UploadFile.raw.uploadState,
|
|
|
|
- });
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
const handleSuccess = (any, UploadFile) => {
|
|
const handleSuccess = (any, UploadFile) => {
|
|
UploadFile.raw.uploadState = false;
|
|
UploadFile.raw.uploadState = false;
|
|
};
|
|
};
|
|
|
|
|
|
-const onPreviewFile2 = (file) => {
|
|
|
|
- window.open(file.fileUrl, "_blank");
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
const onPreviewFile = (file) => {
|
|
const onPreviewFile = (file) => {
|
|
- window.open(file.raw.fileUrl, "_blank");
|
|
+ if (file.fileUrl) {
|
|
|
|
+ window.open(file.fileUrl, "_blank");
|
|
|
|
+ } else {
|
|
|
|
+ window.open(file.raw.fileUrl, "_blank");
|
|
|
|
+ }
|
|
};
|
|
};
|
|
const submitHandoverForm = () => {
|
|
const submitHandoverForm = () => {
|
|
formData.data.serviceContractProductList[productIndex.value].remark =
|
|
formData.data.serviceContractProductList[productIndex.value].remark =
|
|
@@ -1277,18 +1273,16 @@ watch(
|
|
["10", "20", "30"].includes(route.query.processType)
|
|
["10", "20", "30"].includes(route.query.processType)
|
|
) {
|
|
) {
|
|
for (var text in props.queryData) {
|
|
for (var text in props.queryData) {
|
|
-
|
|
|
|
formData.data[text] = props.queryData[text];
|
|
formData.data[text] = props.queryData[text];
|
|
-
|
|
|
|
}
|
|
}
|
|
formData.data.fileList = formData.data.fileList.map((item) => {
|
|
formData.data.fileList = formData.data.fileList.map((item) => {
|
|
return {
|
|
return {
|
|
name: item.fileName,
|
|
name: item.fileName,
|
|
url: item.fileUrl,
|
|
url: item.fileUrl,
|
|
- ...item
|
|
+ ...item,
|
|
- }
|
|
+ };
|
|
});
|
|
});
|
|
- console.log(formData.data)
|
|
+ console.log(formData.data);
|
|
if (formData.data.countryId) {
|
|
if (formData.data.countryId) {
|
|
getCityData(formData.data.countryId, "20");
|
|
getCityData(formData.data.countryId, "20");
|
|
}
|
|
}
|