|
|
|
@ -214,6 +214,7 @@
|
|
|
|
|
:before-close="beforeClose" |
|
|
|
|
:close-on-click-modal="false" |
|
|
|
|
append-to-body |
|
|
|
|
|
|
|
|
|
> |
|
|
|
|
<div v-loading="loadingObj.submitLoading"> |
|
|
|
|
<el-form :disabled="view" ref="form" :model="form" :rules="rules" label-width="120px"> |
|
|
|
@ -511,6 +512,7 @@ export default {
|
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
excelForm: {}, |
|
|
|
|
fromloading:true, |
|
|
|
|
excelBox: false, |
|
|
|
|
excelOption: { |
|
|
|
|
submitBtn: false, |
|
|
|
@ -527,7 +529,7 @@ export default {
|
|
|
|
|
res: 'data', |
|
|
|
|
}, |
|
|
|
|
tip: '请上传 .xls,.xlsx 标准格式文件', |
|
|
|
|
action: '/api/logpm-basicdata/basicdataClient/import-basicDataClient', |
|
|
|
|
action: '/api/blade-resource/oss/endpoint/put-file', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '模板下载', |
|
|
|
@ -580,7 +582,17 @@ export default {
|
|
|
|
|
sortable: true, |
|
|
|
|
head: false, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
prop: 'brandName', |
|
|
|
|
label: '品牌', |
|
|
|
|
type: 2, |
|
|
|
|
values: '', |
|
|
|
|
width: '130', |
|
|
|
|
checkarr: [], |
|
|
|
|
fixed: false, |
|
|
|
|
sortable: true, |
|
|
|
|
head: false, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
prop: 'linkman', |
|
|
|
|
label: '联系人', |
|
|
|
@ -870,10 +882,9 @@ export default {
|
|
|
|
|
'Blade-Auth': 'Bearer ' + getToken(), |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
// action() { |
|
|
|
|
// return '/api/blade-resource/oss/endpoint/put-file'; |
|
|
|
|
// // return '/api/blade-resource/oss/endpoint/put-file-attach' |
|
|
|
|
// }, |
|
|
|
|
action() { |
|
|
|
|
return '/api/blade-resource/oss/endpoint/put-file'; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
uploadAfter(res, done, loading, column) { |
|
|
|
@ -1263,7 +1274,22 @@ export default {
|
|
|
|
|
this.form.bladeRegionCityId = this.form.bladeRegionProvinceId[1]; |
|
|
|
|
this.form.bladeRegionAreaId = this.form.bladeRegionProvinceId[2]; |
|
|
|
|
this.form.bladeRegionProvinceId = this.form.bladeRegionProvinceId[0]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log('上传llll>>>', this.form); |
|
|
|
|
// 将日期字符串转换为日期对象 |
|
|
|
|
const startTime = new Date(this.form.contractStartTime);//开始时间 |
|
|
|
|
const endTime = new Date(this.form.contractEntTime);//结束时间 |
|
|
|
|
|
|
|
|
|
// 检查开始时间是否大于结束时间 |
|
|
|
|
if (startTime.getTime() > endTime.getTime()) { |
|
|
|
|
// 开始时间大于结束时间的处理逻辑 |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'warning', |
|
|
|
|
message: '结束时间不能小于开始时间!', |
|
|
|
|
}); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
await add(this.form); |
|
|
|
|
this.box = false; |
|
|
|
|
this.onLoad(this.page); |
|
|
|
@ -1292,6 +1318,18 @@ export default {
|
|
|
|
|
this.form.bladeRegionCityId = this.form.bladeRegionProvinceId[1]; |
|
|
|
|
this.form.bladeRegionAreaId = this.form.bladeRegionProvinceId[2]; |
|
|
|
|
this.form.bladeRegionProvinceId = this.form.bladeRegionProvinceId[0]; |
|
|
|
|
// 将日期字符串转换为日期对象 |
|
|
|
|
const startTime = new Date(this.form.contractStartTime);//开始时间 |
|
|
|
|
const endTime = new Date(this.form.contractEntTime);//结束时间 |
|
|
|
|
// 检查开始时间是否大于结束时间 |
|
|
|
|
if (startTime.getTime() > endTime.getTime()) { |
|
|
|
|
// 开始时间大于结束时间的处理逻辑 |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'warning', |
|
|
|
|
message: '结束时间不能小于开始时间!', |
|
|
|
|
}); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
await update(this.form); |
|
|
|
|
this.box = false; |
|
|
|
|
this.onLoad(this.page); |
|
|
|
|