Commit 22a5400f authored by linxin's avatar linxin

add

parent c9b25214
Pipeline #4760 canceled with stages
...@@ -11,5 +11,5 @@ module.exports = { ...@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"', ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="', fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app"', appId: '"com.xcmg.app"',
currentVersion: '"1.3.7"' currentVersion: '"1.3.8"'
} }
...@@ -327,8 +327,10 @@ export default { ...@@ -327,8 +327,10 @@ export default {
}) })
}, },
changeBase (item) { changeBase (item) {
let time = (item.project_start_date).replace(/\//g, '-')
window.localStorage.setItem('bp_name_tenant', item.bp_name) window.localStorage.setItem('bp_name_tenant', item.bp_name)
window.localStorage.setItem('credit_id', item.credit_id) window.localStorage.setItem('credit_id', item.credit_id)
window.localStorage.setItem('signDate', time)
if (this.num === 1) { if (this.num === 1) {
window.localStorage.setItem('contractReadonly', false) window.localStorage.setItem('contractReadonly', false)
window.localStorage.setItem('fromPage', 'list') window.localStorage.setItem('fromPage', 'list')
......
...@@ -798,8 +798,13 @@ export default { ...@@ -798,8 +798,13 @@ export default {
}, */ }, */
showTime (format) { // 预计付款日 showTime (format) { // 预计付款日
let vm = this let vm = this
let signDate = new Date(window.localStorage.getItem('signDate').replace(/-/, '/'))
var iToDay = signDate.getDate()
var iToMon = signDate.getMonth()
var iToYear = signDate.getFullYear()
var newDay = new Date(iToYear, iToMon, (iToDay + 30))
hlsPopup.showTime({ hlsPopup.showTime({
nowDate: (new Date()).format('yyyy-MM-dd'), nowDate: newDay.format('yyyy-MM-dd'),
format: format, format: format,
callback: (date) => { callback: (date) => {
vm.saveInfo.lease_start_date = date vm.saveInfo.lease_start_date = date
......
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
</h-content> </h-content>
<bottom-tab class="add-box"> <bottom-tab class="add-box">
<tab-button v-if="!isReadOnly" class="before" @click.native="handSave">保存</tab-button> <tab-button v-if="!isReadOnly" class="before" @click.native="$routeGo()">上一步</tab-button>
<tab-button v-if="!isReadOnly" class="next" @click.native="isSubmit">提交</tab-button> <tab-button v-if="!isReadOnly" class="next" @click.native="isSubmit">提交</tab-button>
<tab-button v-if="isReadOnly" class="before" @click.native="$routeGo()">上一步</tab-button> <tab-button v-if="isReadOnly" class="before" @click.native="$routeGo()">上一步</tab-button>
</bottom-tab> </bottom-tab>
......
...@@ -251,7 +251,12 @@ export default { ...@@ -251,7 +251,12 @@ export default {
nowDate: (new Date()).format('yyyy-MM-dd'), nowDate: (new Date()).format('yyyy-MM-dd'),
format: format, format: format,
callback: (date) => { callback: (date) => {
vm.salesInfo.sale_date = date if (date >= (new Date()).format('yyyy-MM-dd')) {
vm.salesInfo.sale_date = date
window.localStorage.setItem('signDate', vm.salesInfo.sale_date)
} else {
hlsPopup.showLongCenter(`签约日期不能小于${(new Date()).format('yyyy-MM-dd')}`)
}
}, },
}) })
}, },
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"></script><title>徐工金服</title><link href=./static/css/app.c48e3248ece1212b45ae37f8feae0ca9.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.5b23605dc2d9cfefc737.js></script><script type=text/javascript src=./static/js/vendor.9516a64f4eb2c109f0d8.js></script><script type=text/javascript src=./static/js/app.f8ddf463f428ce7e4821.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"></script><title>徐工金服</title><link href=./static/css/app.c48e3248ece1212b45ae37f8feae0ca9.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.5b23605dc2d9cfefc737.js></script><script type=text/javascript src=./static/js/vendor.9516a64f4eb2c109f0d8.js></script><script type=text/javascript src=./static/js/app.6d5bf8e7ca915f0ca540.js></script></body></html>
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment