|
|
@@ -1053,65 +1053,65 @@ export default {
|
|
|
//删除合同附件
|
|
|
handleRemoveContract(file, fileList) {
|
|
|
var self = this
|
|
|
- if (self.contractList) {
|
|
|
- const loading = this.$loading({
|
|
|
- lock: true,
|
|
|
- text: 'Loading',
|
|
|
- spinner: 'el-icon-loading',
|
|
|
- background: 'rgba(0, 0, 0, 0.7)'
|
|
|
- });
|
|
|
- delFile(file.id).then(function () {
|
|
|
+ // if (self.contractList) {
|
|
|
+ // const loading = this.$loading({
|
|
|
+ // lock: true,
|
|
|
+ // text: 'Loading',
|
|
|
+ // spinner: 'el-icon-loading',
|
|
|
+ // background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ // });
|
|
|
+ // delFile(file.id).then(function () {
|
|
|
self.contractList = self.contractList.reduce((total, current) => {
|
|
|
current.id !== file.id && total.push(current);
|
|
|
return total;
|
|
|
}, []);
|
|
|
- loading.close();
|
|
|
- }).catch(() => {
|
|
|
- loading.close();
|
|
|
- });
|
|
|
- }
|
|
|
+ // loading.close();
|
|
|
+ // }).catch(() => {
|
|
|
+ // loading.close();
|
|
|
+ // });
|
|
|
+ // }
|
|
|
},
|
|
|
//删除物流附件
|
|
|
handleRemoveLogistics(file, fileList) {
|
|
|
- var self = this
|
|
|
- if (this.logisticsList) {
|
|
|
- const loading = this.$loading({
|
|
|
- lock: true,
|
|
|
- text: 'Loading',
|
|
|
- spinner: 'el-icon-loading',
|
|
|
- background: 'rgba(0, 0, 0, 0.7)'
|
|
|
- });
|
|
|
- delFile(file.id).then(function () {
|
|
|
+ // var self = this
|
|
|
+ // if (this.logisticsList) {
|
|
|
+ // const loading = this.$loading({
|
|
|
+ // lock: true,
|
|
|
+ // text: 'Loading',
|
|
|
+ // spinner: 'el-icon-loading',
|
|
|
+ // background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ // });
|
|
|
+ // delFile(file.id).then(function () {
|
|
|
self.logisticsList = self.logisticsList.reduce((total, current) => {
|
|
|
current.id !== file.id && total.push(current);
|
|
|
return total;
|
|
|
}, []);
|
|
|
- loading.close();
|
|
|
- }).catch(() => {
|
|
|
- loading.close();
|
|
|
- });
|
|
|
- }
|
|
|
+ // loading.close();
|
|
|
+ // }).catch(() => {
|
|
|
+ // loading.close();
|
|
|
+ // });
|
|
|
+ // }
|
|
|
},
|
|
|
//删除其他附件
|
|
|
handleRemoveOther(file, fileList) {
|
|
|
- var self = this
|
|
|
- if (this.otherList) {
|
|
|
- const loading = this.$loading({
|
|
|
- lock: true,
|
|
|
- text: 'Loading',
|
|
|
- spinner: 'el-icon-loading',
|
|
|
- background: 'rgba(0, 0, 0, 0.7)'
|
|
|
- });
|
|
|
- delFile(file.id).then(function () {
|
|
|
+ // var self = this
|
|
|
+ // if (this.otherList) {
|
|
|
+ // const loading = this.$loading({
|
|
|
+ // lock: true,
|
|
|
+ // text: 'Loading',
|
|
|
+ // spinner: 'el-icon-loading',
|
|
|
+ // background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ // });
|
|
|
+ // delFile(file.id).then(function () {
|
|
|
self.otherList = self.otherList.reduce((total, current) => {
|
|
|
current.id !== file.id && total.push(current);
|
|
|
return total;
|
|
|
}, []);
|
|
|
- loading.close();
|
|
|
- }).catch(() => {
|
|
|
- loading.close();
|
|
|
- });
|
|
|
- }
|
|
|
+ // loading.close();
|
|
|
+ // }).catch(() => {
|
|
|
+ // loading.close();
|
|
|
+ // });
|
|
|
+ // }
|
|
|
},
|
|
|
//删除附件
|
|
|
delFile(row) {
|
|
|
@@ -1135,20 +1135,20 @@ export default {
|
|
|
if (item.uid !== file.uid) {
|
|
|
return item;
|
|
|
} else {
|
|
|
- const loading = this.$loading({
|
|
|
- lock: true,
|
|
|
- text: 'Loading',
|
|
|
- spinner: 'el-icon-loading',
|
|
|
- background: 'rgba(0, 0, 0, 0.7)'
|
|
|
- });
|
|
|
- delFile(item.id)
|
|
|
- .then(function () {
|
|
|
- loading.close();
|
|
|
- this.msgSuccess("删除成功");
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- loading.close();
|
|
|
- });
|
|
|
+ // const loading = this.$loading({
|
|
|
+ // lock: true,
|
|
|
+ // text: 'Loading',
|
|
|
+ // spinner: 'el-icon-loading',
|
|
|
+ // background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ // });
|
|
|
+ // delFile(item.id)
|
|
|
+ // .then(function () {
|
|
|
+ // loading.close();
|
|
|
+ // this.msgSuccess("删除成功");
|
|
|
+ // })
|
|
|
+ // .catch(() => {
|
|
|
+ // loading.close();
|
|
|
+ // });
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -1163,12 +1163,12 @@ export default {
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning",
|
|
|
})
|
|
|
- .then(function () {
|
|
|
- self.fullscreenLoading = true;
|
|
|
- return delFile(ids);
|
|
|
- })
|
|
|
+ // .then(function () {
|
|
|
+ // self.fullscreenLoading = true;
|
|
|
+ // return delFile(ids);
|
|
|
+ // })
|
|
|
.then(() => {
|
|
|
- self.fullscreenLoading = false;
|
|
|
+ // self.fullscreenLoading = false;
|
|
|
ids.forEach((element) => {
|
|
|
self.fileList = self.fileList.reduce((total, current) => {
|
|
|
current.id !== element && total.push(current);
|