Commit 2465c0fa by 张立顺

Merge branch 'SAAS+V4.56.0-0908' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.56.0-0908
2 parents b6bb04e2 aa47ff43
...@@ -1475,7 +1475,8 @@ export const scheduling_inviteStatus = [ ...@@ -1475,7 +1475,8 @@ export const scheduling_inviteStatus = [
{ confId: 1, confValue: "待预约" }, { confId: 1, confValue: "待预约" },
{ confId: 2, confValue: "已预约" }, { confId: 2, confValue: "已预约" },
{ confId: 3, confValue: "取消预约" }, { confId: 3, confValue: "取消预约" },
{ confId: 4, confValue: "超时未到店" }, { confId: 4, confValue: "已施工" },
{ confId: 5, confValue: "已施工" }, { confId: 5, confValue: "超时未到店" },
{ confId: 6, confValue: "已撤销" } { confId: 6, confValue: "已撤销" },
{ confId: 7, confValue: "已支付" }
] ]
...@@ -202,6 +202,12 @@ export default { ...@@ -202,6 +202,12 @@ export default {
params.inviteDateStr = params.dateTime + ' ' + params.times + ':00' params.inviteDateStr = params.dateTime + ' ' + params.times + ':00'
delete params.dateTime delete params.dateTime
delete params.times delete params.times
const targetTime = new Date(params.inviteDateStr).getTime() // 转为时间戳
const now = new Date().getTime() // 当前时间戳
if (targetTime < now) {
this.$message.warning('预约时间不能选择已过去的时间')
return
}
dateUpdate(params).then(res => { dateUpdate(params).then(res => {
this.notice.okTips('操作成功') this.notice.okTips('操作成功')
this.dialogShow = true this.dialogShow = true
......
...@@ -69,8 +69,20 @@ ...@@ -69,8 +69,20 @@
</div> </div>
<template slot="auth-button" <template slot="auth-button"
slot-scope="scope"> slot-scope="scope">
<auth-button :show-btn-ids="['9030607', '9030608']" <!-- <auth-button :show-btn-ids="['9030607', '9030608']"
:data="scope.scope" /> :data="scope.scope" /> -->
<!-- 预约时间 -->
<span style="margin-right: 10px;"
v-if="[1,2,3,5].includes(scope.scope.inviteStatus)">
<auth-button :data="scope.scope"
:show-btn-ids="['9030607']" />
</span>
<!-- 备注 -->
<span style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9030608']" />
</span>
</template> </template>
</d2-table> </d2-table>
</div> </div>
...@@ -209,9 +221,10 @@ export default { ...@@ -209,9 +221,10 @@ export default {
1: 'orgenSpot', 1: 'orgenSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'redSpot', 3: 'redSpot',
4: 'redSpot', 4: 'greenSpot',
5: 'greenSpot', 5: 'redSpot',
6: 'ashSpot' 6: 'ashSpot',
7: 'greenSpot'
}[cellValue.inviteStatus] }[cellValue.inviteStatus]
} }
}, { }, {
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
@change="inviteStationSetGet"> @change="inviteStationSetGet">
<el-option v-for="(item, key) in baseData.yqMerchantList" <el-option v-for="(item, key) in baseData.yqMerchantList"
:key="key" :key="key"
:label="item.merchantName" :label="item.yqMerchantName"
:value="item.merchantId"> :value="item.yqMerchantId">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -168,10 +168,20 @@ export default { ...@@ -168,10 +168,20 @@ export default {
this.infoForm.saturdayFlag = item.saturdayFlag this.infoForm.saturdayFlag = item.saturdayFlag
this.infoForm.sundayFlag = item.sundayFlag this.infoForm.sundayFlag = item.sundayFlag
}) })
} else {
this.resetData() // 如果返回数据为空,则重置数据
} }
}) })
}, },
resetData() {
this.infoForm.saturdayFlag = 'N'
this.infoForm.sundayFlag = 'N'
this.infoForm.workItem.forEach(item => {
item.maxCount = 0
})
},
yqMerchantPage() { yqMerchantPage() {
yqMerchantPage({ currentPage: 1, pageSize: 99999 }).then((res) => { yqMerchantPage({ currentPage: 1, pageSize: 99999 }).then((res) => {
this.baseData.yqMerchantList = res.list this.baseData.yqMerchantList = res.list
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="月开票总额上限/元:" <el-form-item label="月开票总额上限/元:"
prop="monthlyLimit"> prop="monthlyLimit">
<el-input placeholder="请填写" <el-input placeholder="请填写(单位:元)"
v-model="infoForm.monthlyLimit" v-model="infoForm.monthlyLimit"
class="default-width" class="default-width"
clearable clearable
...@@ -67,13 +67,11 @@ ...@@ -67,13 +67,11 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="预警通知邮箱:" <el-form-item label="预警通知邮箱:"
prop="warningEmails"> prop="warningEmails">
<el-input placeholder="请输入邮箱地址,多个用英文逗号分隔" <el-input placeholder="请填写(多邮箱用逗号隔开,最多五个)"
v-model="infoForm.warningEmails" v-model="infoForm.warningEmails"
class="default-width" class="default-width"
maxlength="200" maxlength="200"
show-word-limit clearable>
clearable
@change="changeEmails">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -84,7 +82,7 @@ ...@@ -84,7 +82,7 @@
<div class="div-optShow-content"> <div class="div-optShow-content">
当前开票主体<span class="contentSpan">{{ infoForm.invoiceSubjectName }}</span>, 当前开票主体<span class="contentSpan">{{ infoForm.invoiceSubjectName }}</span>,
月开票额上限达到<span class="contentSpan">{{ infoForm.monthlyLimitShow }}</span>时, 月开票额上限达到<span class="contentSpan">{{ infoForm.monthlyLimitShow }}</span>时,
切换开票主体为<span class="contentSpan">{{ infoForm.switchSubjectName }}</span>时, 切换开票主体为<span class="contentSpan">{{ infoForm.switchSubjectName }}</span>,
并邮件通知<span class="contentSpan">{{ infoForm.warningEmailsShow }}</span> 并邮件通知<span class="contentSpan">{{ infoForm.warningEmailsShow }}</span>
</div> </div>
</div> </div>
...@@ -157,8 +155,10 @@ export default { ...@@ -157,8 +155,10 @@ export default {
mounted() { mounted() {
this.getSaleCompany() this.getSaleCompany()
if (this.paramsObj) { if (this.paramsObj) {
this.dialogConfig.config.title = "修改规则"
this.getByIdForRule() this.getByIdForRule()
} else { } else {
this.dialogConfig.config.title = "新增规则"
this.loading = false this.loading = false
} }
}, },
...@@ -199,13 +199,8 @@ export default { ...@@ -199,13 +199,8 @@ export default {
} }
return { return {
dialogConfig: { dialogConfig: {
// setting: {
// showClose: true,
// appendToBody: false,
// btnList: []
// },
config: { config: {
title: "新增/修改规则", title: '',
width: "1080px" width: "1080px"
} }
}, },
...@@ -268,6 +263,23 @@ export default { ...@@ -268,6 +263,23 @@ export default {
actionOpt: deepClone(actionOpt) actionOpt: deepClone(actionOpt)
} }
}, },
watch: {
'infoForm.monthlyLimit'(val) {
// 实时更新展示值,即使未失去焦点
if (val) {
this.infoForm.monthlyLimitShow = val
} else {
this.infoForm.monthlyLimitShow = '__________'
}
},
'infoForm.warningEmails'(val) {
if (val) {
this.infoForm.warningEmailsShow = val
} else {
this.infoForm.warningEmailsShow = '__________'
}
}
},
methods: { methods: {
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve) => { return new Promise((resolve) => {
...@@ -280,8 +292,8 @@ export default { ...@@ -280,8 +292,8 @@ export default {
getByIdForRule() { getByIdForRule() {
getByIdForRule({ id: this.paramsObj.id }).then((res) => { getByIdForRule({ id: this.paramsObj.id }).then((res) => {
this.infoForm = res this.infoForm = res
this.infoForm.monthlyLimitShow = deepClone(this.infoForm.monthlyLimit) this.infoForm.monthlyLimitShow = deepClone(res.monthlyLimit)
this.infoForm.warningEmailsShow = deepClone(this.infoForm.warningEmails) this.infoForm.warningEmailsShow = deepClone(res.warningEmails)
this.loading = false this.loading = false
}) })
}, },
...@@ -298,13 +310,6 @@ export default { ...@@ -298,13 +310,6 @@ export default {
changeSwitchSubject(val) { changeSwitchSubject(val) {
this.infoForm.switchSubjectName = this.options.find(item => item.companyCode === val).companyName this.infoForm.switchSubjectName = this.options.find(item => item.companyCode === val).companyName
}, },
changeEmails(val) {
if (val) {
this.infoForm.warningEmailsShow = val
} else {
this.infoForm.warningEmailsShow = '__________'
}
},
handleUpgradeNum(newVal) { handleUpgradeNum(newVal) {
this.infoForm.monthlyLimit = limitPrice( this.infoForm.monthlyLimit = limitPrice(
...@@ -316,11 +321,6 @@ export default { ...@@ -316,11 +321,6 @@ export default {
999999999999999999 999999999999999999
) )
this.oldVal.monthlyLimit = this.infoForm.monthlyLimit this.oldVal.monthlyLimit = this.infoForm.monthlyLimit
if (this.infoForm.monthlyLimit) {
this.infoForm.monthlyLimitShow = this.infoForm.monthlyLimit
} else {
this.infoForm.monthlyLimitShow = '__________'
}
}, },
handleAddConfirm() { handleAddConfirm() {
...@@ -329,7 +329,6 @@ export default { ...@@ -329,7 +329,6 @@ export default {
var params = deepClone(this.infoForm) var params = deepClone(this.infoForm)
// 提交前清理末尾逗号 // 提交前清理末尾逗号
params.warningEmails = params.warningEmails.trim().replace(/,+$/, '') params.warningEmails = params.warningEmails.trim().replace(/,+$/, '')
// return console.log('params', params)
if (this.paramsObj && this.paramsObj.id) { if (this.paramsObj && this.paramsObj.id) {
params.id = this.paramsObj.id params.id = this.paramsObj.id
updateRule(params).then(res => { updateRule(params).then(res => {
......
...@@ -132,17 +132,19 @@ export default { ...@@ -132,17 +132,19 @@ export default {
contrastValue() { contrastValue() {
const val = this.userInput const val = this.userInput
if (Array.isArray(val)) { if (Array.isArray(val)) {
if(val[0] == '-') { if (val[0] == '-') {
val[0] = null val[0] = null
} }
if(val[1] == '-') { if (val[1] == '-') {
val[1] = null val[1] = null
} }
if (+val[0] > +val[1]) { if (val[0] && val[1]) {
val[1] = null if (+val[0] > +val[1]) {
this.tipsShow = true val[1] = null
} else { this.tipsShow = true
this.tipsShow = false } else {
this.tipsShow = false
}
} }
} }
} }
......
...@@ -254,8 +254,8 @@ export default { ...@@ -254,8 +254,8 @@ export default {
delete this.searchFormSearch.endDate delete this.searchFormSearch.endDate
} }
if (this.searchFormSearch.monthlyLimit && this.searchFormSearch.monthlyLimit.length > 0) { if (this.searchFormSearch.monthlyLimit && this.searchFormSearch.monthlyLimit.length > 0) {
this.searchFormSearch.monthlyLimitMin = this.searchFormSearch.monthlyLimit[0] this.searchFormSearch.monthlyLimitMin = this.searchFormSearch.monthlyLimit[0] || ''
this.searchFormSearch.monthlyLimitMax = this.searchFormSearch.monthlyLimit[1] this.searchFormSearch.monthlyLimitMax = this.searchFormSearch.monthlyLimit[1] || ''
} else { } else {
delete this.searchFormSearch.monthlyLimitMin delete this.searchFormSearch.monthlyLimitMin
delete this.searchFormSearch.monthlyLimitMax delete this.searchFormSearch.monthlyLimitMax
......
...@@ -972,9 +972,16 @@ export default { ...@@ -972,9 +972,16 @@ export default {
}, },
handleCarFileUpload(obj) { handleCarFileUpload(obj) {
// console.log('url', url) this.$confirm('是否确定下载文件?', '提示', {
// url && downLoadFile(url) confirmButtonText: '确定',
this.downloadPDF(obj) cancelButtonText: '取消',
type: 'warning',
closeOnClickModal: false
}).then(() => {
this.downloadPDF(obj)
}).catch(err => {
console.log(err)
})
}, },
handleCarFilePreview(url) { handleCarFilePreview(url) {
...@@ -1210,4 +1217,20 @@ export default { ...@@ -1210,4 +1217,20 @@ export default {
opacity: 1; opacity: 1;
background: #f4f6f7; background: #f4f6f7;
} }
.m-l-md {
margin-left: 20px;
}
.import-btn {
position: relative;
}
.import-input {
opacity: 0;
position: absolute;
right: 0;
top: 0;
width: 98px;
height: 36px;
cursor: pointer;
font-size: 0;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!