代码提交

master
zhangdi 2 weeks ago
parent 9506218e2e
commit b5a4e50455
  1. 27
      src/views/firstOrder/components/inDialog.vue
  2. 19
      vue.config.js

@ -412,22 +412,21 @@ export default {
console.log(file); console.log(file);
const fileUrl = file.url || (file.response && file.response.result && file.response.result.fileUrl); const fileUrl = file.url || (file.response && file.response.result && file.response.result.fileUrl);
if (!fileUrl) return; if (!fileUrl) return;
// Token URL Token
// const token = this.$store.getters.access_token;
// const previewUrl = `${fileUrl}?token=${token}`;
// OSS
window.open(fileUrl, '_blank'); window.open(fileUrl, '_blank');
}, },
handleExceed(files, fileList) { handleExceed(files, fileList) {
this.$message.warning(`当前限制选择 6 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`); this.$message.warning(`当前限制选择 6 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
}, },
beforeRemove(file, fileList) { beforeRemove(file, fileList) {
return this.$confirm(`确定移除 ${file.name}`); return this.$confirm(`确定移除 ${file.name}`);
}, },
handleUploadSuccess(response, file, fileList) { handleUploadSuccess(response, file, fileList) {
this.fileList = fileList; console.log(response, file, fileList);
this.fileList.push({
...response.data.result,
name:response.data.result.fileName
})
}, },
beforeAvatarUpload(file) { beforeAvatarUpload(file) {
// 1. // 1.
@ -472,7 +471,8 @@ export default {
stat.theInboundQuantity = detail.theInboundQuantity; // stat.theInboundQuantity = detail.theInboundQuantity; //
stat.totalQuantity = stat.num + detail.theInboundQuantity; stat.totalQuantity = stat.num + detail.theInboundQuantity;
stat.unitPrice = detail.unitPrice; stat.unitPrice = detail.unitPrice;
} else { }
if (stat.type == "NY" && stat.num != 0) {
stat.theInboundQuantity = 0; // stat.theInboundQuantity = 0; //
stat.unitPrice = stat.unitPrice; stat.unitPrice = stat.unitPrice;
stat.totalQuantity = stat.num + detail.theInboundQuantity; stat.totalQuantity = stat.num + detail.theInboundQuantity;
@ -493,6 +493,7 @@ export default {
(item) => (item) =>
item.materialId === stat.materialId && item.type === stat.type item.materialId === stat.materialId && item.type === stat.type
); );
console.log(detail,'detail',this.sizeForm.singleData);
if (stat.type == "YH") { if (stat.type == "YH") {
stat.theInboundQuantity = detail.theInboundQuantity; // stat.theInboundQuantity = detail.theInboundQuantity; //
stat.totalQuantity = stat.num + detail.theInboundQuantity; stat.totalQuantity = stat.num + detail.theInboundQuantity;
@ -502,7 +503,8 @@ export default {
stat.theInboundQuantity = detail.theInboundQuantity; // stat.theInboundQuantity = detail.theInboundQuantity; //
stat.totalQuantity = stat.num + detail.theInboundQuantity; stat.totalQuantity = stat.num + detail.theInboundQuantity;
stat.unitPrice = detail.unitPrice; stat.unitPrice = detail.unitPrice;
} else { }
if (stat.type == "NY" && stat.num != 0) {
stat.theInboundQuantity = 0; // stat.theInboundQuantity = 0; //
stat.unitPrice = stat.unitPrice; stat.unitPrice = stat.unitPrice;
stat.totalQuantity = stat.num + detail.theInboundQuantity; stat.totalQuantity = stat.num + detail.theInboundQuantity;
@ -836,13 +838,12 @@ export default {
this.sizeForm.onePutStorageFilesList = [] this.sizeForm.onePutStorageFilesList = []
this.fileList.forEach(item => { this.fileList.forEach(item => {
this.sizeForm.onePutStorageFilesList.push({ this.sizeForm.onePutStorageFilesList.push({
fileName: item.response.result.fileName, fileName: item.fileName,
fileUrl: item.response.result.fileUrl, fileUrl: item.fileUrl,
mediaId: item.response.result.mediaId, mediaId: item.mediaId,
}) })
}) })
} }
console.log(this.sizeForm, 99);
try { try {
const res = await submitData(this.sizeForm); const res = await submitData(this.sizeForm);
if (res.data.success) { if (res.data.success) {

@ -27,7 +27,7 @@ module.exports = {
'/api': { '/api': {
//本地服务接口地址 //本地服务接口地址
// target: 'http://192.168.1.4:8088', // target: 'http://192.168.1.4:8088',
target: 'http://124.221.142.15:8090/api', target: 'http://124.221.142.15:8333/api',
//远程演示服务地址,可用于直接启动项目 //远程演示服务地址,可用于直接启动项目
// target: 'https://saber.bladex.cn/api', // target: 'https://saber.bladex.cn/api',
ws: true, ws: true,
@ -35,28 +35,29 @@ module.exports = {
'^/api': '/' '^/api': '/'
} }
}, },
'/smartpark': { '/smartparkAPP/': {
//本地服务接口地址 //本地服务接口地址
// target: 'http://192.168.1.4:8088', // target: 'http://192.168.1.4:8333',
target: 'http://atcflight.com:10094/6583e0b6-a422-4c74-aa40-df48e059b4de/lowDurableWebTestFront/smartpark', target: 'http://atcflight.com:10094/6583e0b6-a422-4c74-aa40-df48e059b4de/lowDurableTest',
//远程演示服务地址,可用于直接启动项目 //远程演示服务地址,可用于直接启动项目
// target: 'https://saber.bladex.cn/api', // target: 'https://saber.bladex.cn/api',
ws: true, ws: true,
pathRewrite: { pathRewrite: {
'^/smartpark/': '/' '^/smartparkAPP/': '/'
} }
}, },
'/smartparkAPP': { '/smartpark': {
//本地服务接口地址 //本地服务接口地址
// target: 'http://192.168.1.4:8088', // target: 'http://192.168.1.4:8333',
target: 'http://atcflight.com:10094/6583e0b6-a422-4c74-aa40-df48e059b4de/lowDurableTest', target: 'http://atcflight.com:10094/6583e0b6-a422-4c74-aa40-df48e059b4de/lowDurableWebTestFront/smartpark',
//远程演示服务地址,可用于直接启动项目 //远程演示服务地址,可用于直接启动项目
// target: 'https://saber.bladex.cn/api', // target: 'https://saber.bladex.cn/api',
ws: true, ws: true,
pathRewrite: { pathRewrite: {
'^/smartpark/': '/' '^/smartpark/': '/'
} }
} },
} }
} }
}; };

Loading…
Cancel
Save