Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2ee7d7a1
authored
Feb 23, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
生效日期选择今日之后
1 parent
1ecc234b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
35 deletions
src/components/glsx-combi-form/common.js
src/components/glsx-combi-form/index.vue
src/views/ghPreSale/editEquity.vue
src/components/glsx-combi-form/common.js
View file @
2ee7d7a
...
...
@@ -18,3 +18,13 @@ export const afterRangePickerOptions = {
return
false
}
}
export
const
afterTodayRangePickerOptions
=
{
disabledDate
(
date
)
{
const
yesterday
=
new
Date
(
new
Date
().
setDate
(
new
Date
().
getDate
()))
if
(
date
<
yesterday
)
{
return
true
}
return
false
}
}
src/components/glsx-combi-form/index.vue
View file @
2ee7d7a
...
...
@@ -111,14 +111,15 @@
</template>
<
script
>
import
{
beforeRangePickerOptions
,
afterRangePickerOptions
}
from
'./common'
import
{
beforeRangePickerOptions
,
afterRangePickerOptions
,
afterTodayRangePickerOptions
}
from
'./common'
export
default
{
name
:
'glsx-combi-form'
,
data
()
{
return
{
pickerOption
:
{
beforeRangePickerOptions
:
beforeRangePickerOptions
,
afterRangePickerOptions
:
afterRangePickerOptions
afterRangePickerOptions
:
afterRangePickerOptions
,
afterTodayRangePickerOptions
},
isImgVisible
:
false
,
dialogObj
:
{
...
...
src/views/ghPreSale/editEquity.vue
View file @
2ee7d7a
...
...
@@ -399,7 +399,7 @@ export default {
type
:
'datePicker'
,
dateType
:
'date'
,
valueFormat
:
'yyyy-MM-dd'
,
pickerOptions
:
'afterRangePickerOptions'
,
pickerOptions
:
'after
Today
RangePickerOptions'
,
customPickerOptions
:
{
disabledDate
(
date
)
{
const
yesterday
=
new
Date
(
new
Date
().
setDate
(
new
Date
().
getDate
()))
...
...
@@ -515,15 +515,13 @@ export default {
watch
:
{
'editForm.vehicle.invoicePrice'
(
newValue
,
oldValue
)
{
this
.
editForm
.
vehicle
.
invoicePrice
=
limitPrice
(
newValue
,
oldValue
,
7
,
2
,
0
,
2000000
)
this
.
packageToPrice
()
},
'editForm.actualSalesPrice'
(
newValue
,
oldValue
)
{
this
.
editForm
.
actualSalesPrice
=
limitPrice
(
newValue
,
oldValue
,
7
,
2
)
},
'editFormPro.additional_price'
(
newValue
,
oldValue
)
{
this
.
editFormPro
.
additional_price
=
limitPrice
(
newValue
,
oldValue
,
6
,
2
)
},
'editForm.vehicle.invoicePrice'
(
newValue
,
oldValue
)
{
this
.
packageToPrice
()
}
},
...
...
@@ -750,36 +748,7 @@ export default {
})
}
}
// if (item.attributeList[0].attributeName === 'additional_price') {
// this.editRulePro[item.attributeList[0].attributeName] = [
// {
// validator: (rule, value, callback) => {
// return +this.editForm.vehicle.invoicePrice*0.1 < + value ? callback(new Error('输入价格有误')) : callback()
// },
// trigger: 'change'
// }
// ]
// }
})
// const targetObj = this.editFormDataPro[0].optionList.find(item => {
// return item.packageCode === this.editForm.packageCode
// })
// if(targetObj?.editFormData && Array.isArray(targetObj.editFormData) && targetObj.editFormData[targetObj.editFormData.length-1].addHtml ==='table'){
// const tableList = targetObj.editFormData[targetObj.editFormData.length-1].tableList
// tableList.forEach(item => {
// item.forEach(sonItem => {
// if(sonItem.required===1){
// this.editRulePro[sonItem.name] = [
// {
// required: true,
// message: '请输入',
// trigger: 'change'
// }
// ]
// }
// })
// })
// }
if
(
recovery
)
{
this
.
recoveryEditFormPro
()
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment