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 = [
{ confId: 1, confValue: "待预约" },
{ confId: 2, confValue: "已预约" },
{ confId: 3, confValue: "取消预约" },
{ confId: 4, confValue: "超时未到店" },
{ confId: 5, confValue: "已施工" },
{ confId: 6, confValue: "已撤销" }
{ confId: 4, confValue: "已施工" },
{ confId: 5, confValue: "超时未到店" },
{ confId: 6, confValue: "已撤销" },
{ confId: 7, confValue: "已支付" }
]
......@@ -202,6 +202,12 @@ export default {
params.inviteDateStr = params.dateTime + ' ' + params.times + ':00'
delete params.dateTime
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 => {
this.notice.okTips('操作成功')
this.dialogShow = true
......
......@@ -69,8 +69,20 @@
</div>
<template slot="auth-button"
slot-scope="scope">
<auth-button :show-btn-ids="['9030607', '9030608']"
:data="scope.scope" />
<!-- <auth-button :show-btn-ids="['9030607', '9030608']"
: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>
</d2-table>
</div>
......@@ -209,9 +221,10 @@ export default {
1: 'orgenSpot',
2: 'greenSpot',
3: 'redSpot',
4: 'redSpot',
5: 'greenSpot',
6: 'ashSpot'
4: 'greenSpot',
5: 'redSpot',
6: 'ashSpot',
7: 'greenSpot'
}[cellValue.inviteStatus]
}
}, {
......
......@@ -20,8 +20,8 @@
@change="inviteStationSetGet">
<el-option v-for="(item, key) in baseData.yqMerchantList"
:key="key"
:label="item.merchantName"
:value="item.merchantId">
:label="item.yqMerchantName"
:value="item.yqMerchantId">
</el-option>
</el-select>
</el-form-item>
......@@ -168,10 +168,20 @@ export default {
this.infoForm.saturdayFlag = item.saturdayFlag
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({ currentPage: 1, pageSize: 99999 }).then((res) => {
this.baseData.yqMerchantList = res.list
......
......@@ -37,7 +37,7 @@
<el-col :span="12">
<el-form-item label="月开票总额上限/元:"
prop="monthlyLimit">
<el-input placeholder="请填写"
<el-input placeholder="请填写(单位:元)"
v-model="infoForm.monthlyLimit"
class="default-width"
clearable
......@@ -67,13 +67,11 @@
<el-col :span="12">
<el-form-item label="预警通知邮箱:"
prop="warningEmails">
<el-input placeholder="请输入邮箱地址,多个用英文逗号分隔"
<el-input placeholder="请填写(多邮箱用逗号隔开,最多五个)"
v-model="infoForm.warningEmails"
class="default-width"
maxlength="200"
show-word-limit
clearable
@change="changeEmails">
clearable>
</el-input>
</el-form-item>
</el-col>
......@@ -84,7 +82,7 @@
<div class="div-optShow-content">
当前开票主体<span class="contentSpan">{{ infoForm.invoiceSubjectName }}</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>
</div>
</div>
......@@ -157,8 +155,10 @@ export default {
mounted() {
this.getSaleCompany()
if (this.paramsObj) {
this.dialogConfig.config.title = "修改规则"
this.getByIdForRule()
} else {
this.dialogConfig.config.title = "新增规则"
this.loading = false
}
},
......@@ -199,13 +199,8 @@ export default {
}
return {
dialogConfig: {
// setting: {
// showClose: true,
// appendToBody: false,
// btnList: []
// },
config: {
title: "新增/修改规则",
title: '',
width: "1080px"
}
},
......@@ -268,6 +263,23 @@ export default {
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: {
beforeSearchFn() {
return new Promise((resolve) => {
......@@ -280,8 +292,8 @@ export default {
getByIdForRule() {
getByIdForRule({ id: this.paramsObj.id }).then((res) => {
this.infoForm = res
this.infoForm.monthlyLimitShow = deepClone(this.infoForm.monthlyLimit)
this.infoForm.warningEmailsShow = deepClone(this.infoForm.warningEmails)
this.infoForm.monthlyLimitShow = deepClone(res.monthlyLimit)
this.infoForm.warningEmailsShow = deepClone(res.warningEmails)
this.loading = false
})
},
......@@ -298,13 +310,6 @@ export default {
changeSwitchSubject(val) {
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) {
this.infoForm.monthlyLimit = limitPrice(
......@@ -316,11 +321,6 @@ export default {
999999999999999999
)
this.oldVal.monthlyLimit = this.infoForm.monthlyLimit
if (this.infoForm.monthlyLimit) {
this.infoForm.monthlyLimitShow = this.infoForm.monthlyLimit
} else {
this.infoForm.monthlyLimitShow = '__________'
}
},
handleAddConfirm() {
......@@ -329,7 +329,6 @@ export default {
var params = deepClone(this.infoForm)
// 提交前清理末尾逗号
params.warningEmails = params.warningEmails.trim().replace(/,+$/, '')
// return console.log('params', params)
if (this.paramsObj && this.paramsObj.id) {
params.id = this.paramsObj.id
updateRule(params).then(res => {
......
......@@ -132,17 +132,19 @@ export default {
contrastValue() {
const val = this.userInput
if (Array.isArray(val)) {
if(val[0] == '-') {
if (val[0] == '-') {
val[0] = null
}
if(val[1] == '-') {
if (val[1] == '-') {
val[1] = null
}
if (+val[0] > +val[1]) {
val[1] = null
this.tipsShow = true
} else {
this.tipsShow = false
if (val[0] && val[1]) {
if (+val[0] > +val[1]) {
val[1] = null
this.tipsShow = true
} else {
this.tipsShow = false
}
}
}
}
......
......@@ -254,8 +254,8 @@ export default {
delete this.searchFormSearch.endDate
}
if (this.searchFormSearch.monthlyLimit && this.searchFormSearch.monthlyLimit.length > 0) {
this.searchFormSearch.monthlyLimitMin = this.searchFormSearch.monthlyLimit[0]
this.searchFormSearch.monthlyLimitMax = this.searchFormSearch.monthlyLimit[1]
this.searchFormSearch.monthlyLimitMin = this.searchFormSearch.monthlyLimit[0] || ''
this.searchFormSearch.monthlyLimitMax = this.searchFormSearch.monthlyLimit[1] || ''
} else {
delete this.searchFormSearch.monthlyLimitMin
delete this.searchFormSearch.monthlyLimitMax
......
......@@ -972,9 +972,16 @@ export default {
},
handleCarFileUpload(obj) {
// console.log('url', url)
// url && downLoadFile(url)
this.downloadPDF(obj)
this.$confirm('是否确定下载文件?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
closeOnClickModal: false
}).then(() => {
this.downloadPDF(obj)
}).catch(err => {
console.log(err)
})
},
handleCarFilePreview(url) {
......@@ -1210,4 +1217,20 @@ export default {
opacity: 1;
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>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!