Commit 7738646c by 王志慧

Merge branch 'yc_v1.0.0' of http://192.168.3.233:8090/saas/scrm-micro-charge into yc_v1.0.0

2 parents 85368aab b7ce5611
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
<a href="javascript:void(0);" @click="exportLink">下载模板</a> <a href="javascript:void(0);" @click="exportLink">下载模板</a>
</div> </div>
</el-form-item> </el-form-item>
<div class="tip">支持扩展名:xlsx、xls、csv</div> <div v-if="batchForm.exportUrl" class="tip" style="color: #333;">{{ batchForm.exportName }}</div>
<div v-else class="tip">支持扩展名:xlsx、xls</div>
</el-form> </el-form>
</template> </template>
<div v-else class="file-info"> <div v-else class="file-info">
...@@ -314,7 +315,6 @@ export default { ...@@ -314,7 +315,6 @@ export default {
if (res) { if (res) {
this.batchForm.exportName = file.name this.batchForm.exportName = file.name
this.batchForm.exportUrl = res this.batchForm.exportUrl = res
this.handleSaveImport()
} }
this.$refs.file.value = '' this.$refs.file.value = ''
}) })
...@@ -358,7 +358,7 @@ export default { ...@@ -358,7 +358,7 @@ export default {
}, },
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.increaseTime&&this.searchForm.increaseTime.length) { if (this.searchForm.increaseTime && this.searchForm.increaseTime.length) {
params.startIncreaseTime = dayjs(this.searchForm.increaseTime[0]).format('YYYY-MM-DD') + ' 00:00:00' params.startIncreaseTime = dayjs(this.searchForm.increaseTime[0]).format('YYYY-MM-DD') + ' 00:00:00'
params.endIncreaseTime = dayjs(this.searchForm.increaseTime[1]).format('YYYY-MM-DD') + ' 23:59:59' params.endIncreaseTime = dayjs(this.searchForm.increaseTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
......
...@@ -64,7 +64,8 @@ ...@@ -64,7 +64,8 @@
<a :href="tempUrl" target="_blank">下载模板</a> <a :href="tempUrl" target="_blank">下载模板</a>
</div> </div>
</el-form-item> </el-form-item>
<div class="tip">支持扩展名:xlsx、xls</div> <div v-if="batchForm.exportUrl" class="tip" style="color: #333;">{{ batchForm.exportName }}</div>
<div v-else class="tip">支持扩展名:xlsx、xls</div>
</el-form> </el-form>
</template> </template>
<div v-else class="file-info"> <div v-else class="file-info">
...@@ -415,7 +416,9 @@ export default { ...@@ -415,7 +416,9 @@ export default {
}, },
{ {
label: '车位备注', label: '车位备注',
prop: 'parkingRemark' prop: 'parkingRemark',
line: 1,
width: 200
}, },
{ {
label: '操作', label: '操作',
...@@ -451,7 +454,6 @@ export default { ...@@ -451,7 +454,6 @@ export default {
this.$apis.parkingSpace this.$apis.parkingSpace
.importParkingSpaceApi(params) .importParkingSpaceApi(params)
.then(res => { .then(res => {
console.log(res, 'exporres')
this.$message({ this.$message({
message: res.code == '0' ? '导入成功' : res.message, message: res.code == '0' ? '导入成功' : res.message,
type: res.code == '0' ? 'success' : 'error', type: res.code == '0' ? 'success' : 'error',
...@@ -503,7 +505,6 @@ export default { ...@@ -503,7 +505,6 @@ export default {
if (res) { if (res) {
this.batchForm.exportName = file.name this.batchForm.exportName = file.name
this.batchForm.exportUrl = res this.batchForm.exportUrl = res
this.handleSaveImport()
} }
this.$refs.file.value = '' this.$refs.file.value = ''
}) })
...@@ -649,6 +650,7 @@ export default { ...@@ -649,6 +650,7 @@ export default {
for (const key in this.basicForm) { for (const key in this.basicForm) {
this.basicForm[key] = row[key] this.basicForm[key] = row[key]
} }
this.basicForm.merchantId = this.basicForm.merchantId ? this.basicForm.merchantId + '' : ''
this.parkingPlaceVisible = true this.parkingPlaceVisible = true
}, },
handleOk() { handleOk() {
...@@ -682,6 +684,7 @@ export default { ...@@ -682,6 +684,7 @@ export default {
parkingRemark: '' parkingRemark: ''
} }
this.parkingPlaceVisible = false this.parkingPlaceVisible = false
this.$refs.parkingPlaceRef?.$refs?.formRef?.clearValidate()
}, },
setTableFinishFun() { setTableFinishFun() {
this.$refs.infoTableRef.data.length ? (this.$refs.infoTableRef.tableHeightValues = '') : this.$refs.infoTableRef.setTableHeightFun() this.$refs.infoTableRef.data.length ? (this.$refs.infoTableRef.tableHeightValues = '') : this.$refs.infoTableRef.setTableHeightFun()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!