Commit ae8c07dc authored by Jennie Shi's avatar Jennie Shi

修改切图和issue

parent e1a56224
...@@ -102,5 +102,6 @@ ...@@ -102,5 +102,6 @@
<plugin name="cordova-plugin-device" spec="2.0.2" /> <plugin name="cordova-plugin-device" spec="2.0.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" /> <plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" /> <plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
<engine name="android" spec="~6.2.0" /> <engine name="ios" />
<engine name="android" spec="^6.2.0" />
</widget> </widget>
...@@ -12,6 +12,6 @@ module.exports = merge(prodEnv, { ...@@ -12,6 +12,6 @@ module.exports = merge(prodEnv, {
rootPath: '"http://180.104.121.66:8088/r/api"', rootPath: '"http://180.104.121.66:8088/r/api"',
filePath: '"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&"', filePath: '"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&"',
ocrPath: '"http://180.104.121.66:8088/r/api"', ocrPath: '"http://180.104.121.66:8088/r/api"',
appId: '"com.xcmg.app.dev"', appId: '"com.xcmg.app"',
currentVersion: '"1.6.3"', currentVersion: '"1.7.1"',
}) })
This diff is collapsed.
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
"js-base64": "^2.5.1", "js-base64": "^2.5.1",
"pdfjs-dist": "^2.2.228", "pdfjs-dist": "^2.2.228",
"vue": "^2.5.2", "vue": "^2.5.2",
"vue-pdf": "^4.0.7",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vuex": "^2.1.1", "vuex": "^2.1.1",
"vuex-i18n": "^1.3.1", "vuex-i18n": "^1.3.1",
......
{ {
"prepare_queue": { "prepare_queue": {
"installed": [], "installed": [],
"uninstalled": [] "uninstalled": []
}, },
"config_munge": { "config_munge": {
"files": {} "files": {}
}, },
"installed_plugins": { "installed_plugins": {
"com.handmobile.cordovaplugin.hotpatch": { "com.handmobile.cordovaplugin.hotpatch": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-baidumaplocation": { "cordova-plugin-baidumaplocation": {
"ANDROID_KEY": "q4W0FynBkTd4v44ZM8m4MxUpuXBqGIqQ", "ANDROID_KEY": "q4W0FynBkTd4v44ZM8m4MxUpuXBqGIqQ",
"IOS_KEY": "hhouKKwxALvC7MBZmnfwgSacHOfFOlNu", "IOS_KEY": "hhouKKwxALvC7MBZmnfwgSacHOfFOlNu",
"IOS_LOCATION_DESC": "请点击'好'以允许访问。", "IOS_LOCATION_DESC": "请点击'好'以允许访问。",
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-camera": { "cordova-plugin-camera": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-compat": { "cordova-plugin-compat": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-crosswalk-webview": { "cordova-plugin-crosswalk-webview": {
"XWALK_VERSION": "22+", "XWALK_VERSION": "22+",
"XWALK_LITEVERSION": "xwalk_core_library_canary:17+", "XWALK_LITEVERSION": "xwalk_core_library_canary:17+",
"XWALK_COMMANDLINE": "--disable-pull-to-refresh-effect", "XWALK_COMMANDLINE": "--disable-pull-to-refresh-effect",
"XWALK_MODE": "embedded", "XWALK_MODE": "embedded",
"XWALK_MULTIPLEAPK": "true", "XWALK_MULTIPLEAPK": "true",
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-datepicker": { "cordova-plugin-datepicker": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-device": { "cordova-plugin-device": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-dialogs": { "cordova-plugin-dialogs": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-file": { "cordova-plugin-file": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-file-transfer": { "cordova-plugin-file-transfer": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-hrms-faceidentify": { "cordova-plugin-hls-cloudroom": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-image-picker": { "cordova-plugin-hrms-faceidentify": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-inappbrowser": { "cordova-plugin-image-picker": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-jcore": { "cordova-plugin-inappbrowser": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-media-capture": { "cordova-plugin-jcore": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-network-information": { "cordova-plugin-media-capture": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-splashscreen": { "cordova-plugin-network-information": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-statusbar": { "cordova-plugin-splashscreen": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-themeablebrowser": { "cordova-plugin-statusbar": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-touch-id": { "cordova-plugin-touch-id": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-whitelist": { "cordova-plugin-whitelist": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"ionic-plugin-keyboard": { "ionic-plugin-keyboard": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"jmessage-phonegap-plugin": { "jmessage-phonegap-plugin": {
"APP_KEY": "bef4fd44dcf54b79b8ab27c3", "APP_KEY": "bef4fd44dcf54b79b8ab27c3",
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"jpush-phonegap-plugin": { "jpush-phonegap-plugin": {
"APP_KEY": "bef4fd44dcf54b79b8ab27c3", "APP_KEY": "bef4fd44dcf54b79b8ab27c3",
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
} }
}, },
"dependent_plugins": { "dependent_plugins": {
"cordova-plugin-3dtouch": { "cordova-plugin-3dtouch": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-contacts": { "cordova-plugin-contacts": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-fingerprint": { "cordova-plugin-fingerprint": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-x-toast": { "cordova-plugin-themeablebrowser": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
}, },
"es6-promise-plugin": { "cordova-plugin-x-toast": {
"PACKAGE_NAME": "com.xcmg.app.dev" "PACKAGE_NAME": "com.xcmg.app"
} },
"es6-promise-plugin": {
"PACKAGE_NAME": "com.xcmg.app"
} }
}
} }
\ No newline at end of file
...@@ -34,7 +34,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" ...@@ -34,7 +34,7 @@ xmlns:android="http://schemas.android.com/apk/res/android"
<engine name="cordova-android" version=">=6.2.0" /> <engine name="cordova-android" version=">=6.2.0" />
</engines> </engines>
<dependency id="cordova-plugin-file" version="^6.0.0" /> <dependency id="cordova-plugin-file" version="^4.0.0" />
<js-module src="www/CameraConstants.js" name="MediaCapture"> <js-module src="www/CameraConstants.js" name="MediaCapture">
<clobbers target="MediaCapture" /> <clobbers target="MediaCapture" />
......
resources/android/splash/drawable-land-hdpi-screen.png

258 KB | W: | H:

resources/android/splash/drawable-land-hdpi-screen.png

237 KB | W: | H:

resources/android/splash/drawable-land-hdpi-screen.png
resources/android/splash/drawable-land-hdpi-screen.png
resources/android/splash/drawable-land-hdpi-screen.png
resources/android/splash/drawable-land-hdpi-screen.png
  • 2-up
  • Swipe
  • Onion skin
resources/android/splash/drawable-land-ldpi-screen.png

62.1 KB | W: | H:

resources/android/splash/drawable-land-ldpi-screen.png

58.7 KB | W: | H:

resources/android/splash/drawable-land-ldpi-screen.png
resources/android/splash/drawable-land-ldpi-screen.png
resources/android/splash/drawable-land-ldpi-screen.png
resources/android/splash/drawable-land-ldpi-screen.png
  • 2-up
  • Swipe
  • Onion skin
resources/android/splash/drawable-land-mdpi-screen.png

118 KB | W: | H:

resources/android/splash/drawable-land-mdpi-screen.png

110 KB | W: | H:

resources/android/splash/drawable-land-mdpi-screen.png
resources/android/splash/drawable-land-mdpi-screen.png
resources/android/splash/drawable-land-mdpi-screen.png
resources/android/splash/drawable-land-mdpi-screen.png
  • 2-up
  • Swipe
  • Onion skin
resources/android/splash/drawable-port-hdpi-screen.png

230 KB | W: | H:

resources/android/splash/drawable-port-hdpi-screen.png

210 KB | W: | H:

resources/android/splash/drawable-port-hdpi-screen.png
resources/android/splash/drawable-port-hdpi-screen.png
resources/android/splash/drawable-port-hdpi-screen.png
resources/android/splash/drawable-port-hdpi-screen.png
  • 2-up
  • Swipe
  • Onion skin
resources/android/splash/drawable-port-ldpi-screen.png

58.2 KB | W: | H:

resources/android/splash/drawable-port-ldpi-screen.png

55.3 KB | W: | H:

resources/android/splash/drawable-port-ldpi-screen.png
resources/android/splash/drawable-port-ldpi-screen.png
resources/android/splash/drawable-port-ldpi-screen.png
resources/android/splash/drawable-port-ldpi-screen.png
  • 2-up
  • Swipe
  • Onion skin
resources/android/splash/drawable-port-mdpi-screen.png

107 KB | W: | H:

resources/android/splash/drawable-port-mdpi-screen.png

100 KB | W: | H:

resources/android/splash/drawable-port-mdpi-screen.png
resources/android/splash/drawable-port-mdpi-screen.png
resources/android/splash/drawable-port-mdpi-screen.png
resources/android/splash/drawable-port-mdpi-screen.png
  • 2-up
  • Swipe
  • Onion skin
resources/android/splash/drawable-port-xhdpi-screen.png

477 KB | W: | H:

resources/android/splash/drawable-port-xhdpi-screen.png

434 KB | W: | H:

resources/android/splash/drawable-port-xhdpi-screen.png
resources/android/splash/drawable-port-xhdpi-screen.png
resources/android/splash/drawable-port-xhdpi-screen.png
resources/android/splash/drawable-port-xhdpi-screen.png
  • 2-up
  • Swipe
  • Onion skin
resources/ios/splash/Default-568h@2x~iphone.png

391 KB | W: | H:

resources/ios/splash/Default-568h@2x~iphone.png

356 KB | W: | H:

resources/ios/splash/Default-568h@2x~iphone.png
resources/ios/splash/Default-568h@2x~iphone.png
resources/ios/splash/Default-568h@2x~iphone.png
resources/ios/splash/Default-568h@2x~iphone.png
  • 2-up
  • Swipe
  • Onion skin
resources/ios/splash/Default-667h.png

511 KB | W: | H:

resources/ios/splash/Default-667h.png

464 KB | W: | H:

resources/ios/splash/Default-667h.png
resources/ios/splash/Default-667h.png
resources/ios/splash/Default-667h.png
resources/ios/splash/Default-667h.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
resources/ios/splash/Default-Landscape~ipad.png

435 KB | W: | H:

resources/ios/splash/Default-Landscape~ipad.png

397 KB | W: | H:

resources/ios/splash/Default-Landscape~ipad.png
resources/ios/splash/Default-Landscape~ipad.png
resources/ios/splash/Default-Landscape~ipad.png
resources/ios/splash/Default-Landscape~ipad.png
  • 2-up
  • Swipe
  • Onion skin
resources/ios/splash/Default-Portrait~ipad.png

403 KB | W: | H:

resources/ios/splash/Default-Portrait~ipad.png

367 KB | W: | H:

resources/ios/splash/Default-Portrait~ipad.png
resources/ios/splash/Default-Portrait~ipad.png
resources/ios/splash/Default-Portrait~ipad.png
resources/ios/splash/Default-Portrait~ipad.png
  • 2-up
  • Swipe
  • Onion skin
resources/ios/splash/Default@2x~iphone.png

334 KB | W: | H:

resources/ios/splash/Default@2x~iphone.png

320 KB | W: | H:

resources/ios/splash/Default@2x~iphone.png
resources/ios/splash/Default@2x~iphone.png
resources/ios/splash/Default@2x~iphone.png
resources/ios/splash/Default@2x~iphone.png
  • 2-up
  • Swipe
  • Onion skin
resources/ios/splash/Default~iphone.png

107 KB | W: | H:

resources/ios/splash/Default~iphone.png

104 KB | W: | H:

resources/ios/splash/Default~iphone.png
resources/ios/splash/Default~iphone.png
resources/ios/splash/Default~iphone.png
resources/ios/splash/Default~iphone.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
<template>
<div v-if="hidden" style="height: 75vh;overflow-y: auto;overflow-x: hidden;">
<pdf :src="src"/>
</div>
</template>
<script>
import axios from 'axios'
import pdf from 'vue-pdf'
export default {
components: {pdf},
data () {
return {
src: '',
hidden: false,
}
},
methods: {
// 预览pdf
previewPDF (url) {
this.src = pdf.createLoadingTask(url)
},
// 下载PDF
downloadPDF (url, fileName) {
axios({
method: 'get',
responseType: 'arraybuffer',
url: url,
}).then(function (res) {
// 调用下载方法,把后端传过来的流传给fileDownload方法
this.fileDownload(res.data, fileName)
}.bind(this)
)
.catch(
function (error) {
hlsPopup.showLongCenter('网络请求出错')
console.log(error)
}
)
},
fileDownload: function (data, fileName) {
let blob = new Blob([data], {
// type类型后端返回来的数据中会有,根据自己实际进行修改
// type: 'application/vnd.ms-excel',
type: 'application/json',
})
let filename = fileName + '.pdf' || '合同.pdf'
if (typeof window.navigator.msSaveBlob !== 'undefined') {
window.navigator.msSaveBlob(blob, filename)
} else {
var blobURL = window.URL.createObjectURL(blob)
// 创建隐藏<a>标签进行下载
var tempLink = document.createElement('a')
tempLink.style.display = 'none'
tempLink.href = blobURL
tempLink.setAttribute('download', filename)
if (typeof tempLink.download === 'undefined') {
tempLink.setAttribute('target', '_blank')
}
document.body.appendChild(tempLink)
tempLink.click()
document.body.removeChild(tempLink)
window.URL.revokeObjectURL(blobURL)
}
},
},
}
</script>
<style lang="less" scoped>
</style>
...@@ -58,7 +58,7 @@ import Jpush from './scripts/jpushService' ...@@ -58,7 +58,7 @@ import Jpush from './scripts/jpushService'
import Jmessage from './scripts/jmessageService' import Jmessage from './scripts/jmessageService'
if (process.env.CONFIG_ENV === 'uat') { if (process.env.CONFIG_ENV === 'dev') {
const VConsole = require('vconsole') const VConsole = require('vconsole')
new VConsole() // eslint-disable-line new VConsole() // eslint-disable-line
} }
......
...@@ -129,39 +129,6 @@ ...@@ -129,39 +129,6 @@
</div> </div>
</div> </div>
</div> </div>
<!-- <div v-show="tabNum===1">
<list-item :item-height="56" class="contract-text" style="background-color:rgb(250,250,250);">
<item :proportion="[7,1]">
<div slot="name" class="aguremrnt-list">
<img src="@/assets/constractSigning/npack.png" alt class="pics" >
<p class="second first">承租人确认意见</p>
</div>
<div slot="content" class="in-detail" @click="goContractContent('承租人确认意见')">
<img src="@/assets/constractSigning/detail.png" alt >
</div>
</item>
<item :proportion="[7,1]">
<div slot="name" class="aguremrnt-list">
<img src="@/assets/constractSigning/pack.png" alt class="pics" >
<p class="second">融资租赁合同</p>
<img :src="leasePic" alt class="read" >
</div>
<div slot="content" class="in-detail" @click="goContractContent('融资租赁合同')">
<img src="@/assets/constractSigning/detail.png" alt >
</div>
</item>
<item :proportion="[7,1]">
<div slot="name" class="aguremrnt-list">
<img src="@/assets/constractSigning/pack.png" alt class="pics" >
<p class="second">租赁物所有权转移及接收确认书</p>
<img :src="agentPic" alt class="read" >
</div>
<div slot="content" class="in-detail" @click="goContractContent('租赁物所有权转移及接收确认书')">
<img src="@/assets/constractSigning/detail.png" alt >
</div>
</item>
</list-item>
</div>-->
<div v-show="tabNum===1"> <div v-show="tabNum===1">
<list-item <list-item
:item-height="56" :item-height="56"
...@@ -174,6 +141,13 @@ ...@@ -174,6 +141,13 @@
<p class="second first">{{ item.attachment_file }}</p> <p class="second first">{{ item.attachment_file }}</p>
<img v-if="item.read_status === 'N'" class="unread" src="@/assets/constractSigning/unread.png" > <img v-if="item.read_status === 'N'" class="unread" src="@/assets/constractSigning/unread.png" >
<img v-if="item.read_status === 'Y'" class="unread" src="@/assets/constractSigning/read.png" > <img v-if="item.read_status === 'Y'" class="unread" src="@/assets/constractSigning/read.png" >
<div
v-if="item.template_code === 'PRE_ABC_PAYMENT'"
class="wrap-img"
@click="entryInfo"
>
<img src="@/assets/constractSigning/scan.png" >
</div>
</div> </div>
<div slot="content" class="in-detail" @click="goContent(item,index)"> <div slot="content" class="in-detail" @click="goContent(item,index)">
<img src="@/assets/constractSigning/detail.png" alt > <img src="@/assets/constractSigning/detail.png" alt >
...@@ -307,11 +281,9 @@ export default { ...@@ -307,11 +281,9 @@ export default {
vm.attachUrl = item.attachment_file_path vm.attachUrl = item.attachment_file_path
let url = process.env.basePath + 'prj_content_status_save' let url = process.env.basePath + 'prj_content_status_save'
let param = { let param = {
parameter: { master: {
master: { content_id: item.content_id,
content_id: item.content_id, read_status: 'Y',
auth_credit_flag: 'Y',
},
}, },
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
...@@ -664,17 +636,32 @@ export default { ...@@ -664,17 +636,32 @@ export default {
.trans-leave-active { .trans-leave-active {
opacity: 0; opacity: 0;
} }
.aguremrnt-list { .aguremrnt-list {
display: flex; display: flex;
display: -webkit-flex; display: -webkit-flex;
flex-direction: row; align-items: center;
-webkit-flex-direction:row; -webkit-align-items: center;
align-items:center; width: 100%;
-webkit-align-items:center; height: 100%;
.unread { .unread {
width: 34px; width: 34px;
height: 20px; height: 20px;
margin: 8px 0 0 4px; margin: 0 10px;
}
.wrap-img {
width: 12%;
height: 100%;
display: flex;
display: -webkit-flex;
align-items: center;
-webkit-align-items: center;
justify-content: center;
-webkit-justify-content:center;
background: rgb(254, 251, 233);
img {
width: 22px;
height: 20px;
}
} }
.pic { .pic {
margin-left: -3px; margin-left: -3px;
...@@ -703,6 +690,7 @@ export default { ...@@ -703,6 +690,7 @@ export default {
.first { .first {
margin-left: 13px; margin-left: 13px;
width: 60%;
} }
} }
......
...@@ -345,6 +345,7 @@ export default { ...@@ -345,6 +345,7 @@ export default {
name: 'CreateBaseInfo', name: 'CreateBaseInfo',
params: { params: {
bp_id: item.bp_id, bp_id: item.bp_id,
project_status: item.project_status,
}, },
}) })
}, },
......
...@@ -282,8 +282,8 @@ ...@@ -282,8 +282,8 @@
<span>{{ item.int_rate_n }}</span> <span>{{ item.int_rate_n }}</span>
</p> </p>
<p> <p>
<span>&nbsp;&nbsp;&nbsp;</span> <!-- <span>&nbsp;&nbsp;&nbsp;</span>
<span>{{ item.lease_times }}</span> <span>{{ item.lease_times }}</span> -->
</p> </p>
</div> </div>
</div> </div>
...@@ -539,7 +539,8 @@ export default { ...@@ -539,7 +539,8 @@ export default {
vm.saveInfo.penalty_rate = e.penalty_rate vm.saveInfo.penalty_rate = e.penalty_rate
vm.saveInfo.deposit_ratio = e.deposit_ratio vm.saveInfo.deposit_ratio = e.deposit_ratio
vm.saveInfo.deposit_ratio_n = e.deposit_ratio_n vm.saveInfo.deposit_ratio_n = e.deposit_ratio_n
vm.saveInfo.lease_times = e.lease_times // vm.saveInfo.lease_times = e.lease_times
vm.saveInfo.lease_times = ''
setTimeout(() => { setTimeout(() => {
vm.showModalBusiness = false vm.showModalBusiness = false
}, 100) }, 100)
......
...@@ -152,22 +152,22 @@ ...@@ -152,22 +152,22 @@
<div slot="name" class="required">设备价值</div> <div slot="name" class="required">设备价值</div>
<span slot="content">{{ saveInfo.equip_value }}</span> <span slot="content">{{ saveInfo.equip_value }}</span>
</item> </item>
<item v-if="!fromPutted" class="check" @click.native="checked=!checked"> <item v-if="!fromPutted&&showSpecialFlag&&project_status==='REJECT'" class="check" @click.native="checked=!checked">
<div slot="name" class="required">农行代扣</div> <div slot="name" class="required">农行代扣</div>
<img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checked" slot="content" /> <span v-if="!checked" slot="content" />
</item> </item>
<item v-if="fromPutted" class="check"> <item v-if="fromPutted&&showSpecialFlag&&project_status==='REJECT'" class="check">
<div slot="name" class="required">农行代扣</div> <div slot="name" class="required">农行代扣</div>
<img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checked" slot="content" /> <span v-if="!checked" slot="content" />
</item> </item>
<item v-if="!fromPutted" class="check" @click.native="checkedApproved=!checkedApproved"> <item v-if="!fromPutted&&showSpecialFlag&&project_status==='REJECT'" class="check" @click.native="checkedApproved=!checkedApproved">
<div slot="name" class="required">是否特批</div> <div slot="name" class="required">是否特批</div>
<img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checkedApproved" slot="content" /> <span v-if="!checkedApproved" slot="content" />
</item> </item>
<item v-if="fromPutted" class="check"> <item v-if="fromPutted&&showSpecialFlag&&project_status==='REJECT'" class="check">
<div slot="name" class="required">是否特批</div> <div slot="name" class="required">是否特批</div>
<img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checkedApproved" slot="content" /> <span v-if="!checkedApproved" slot="content" />
...@@ -299,22 +299,22 @@ ...@@ -299,22 +299,22 @@
<div slot="name" class="required">设备价值</div> <div slot="name" class="required">设备价值</div>
<input slot="content" v-model="saveInfo.equip_value" placeholder="请选择" readonly > <input slot="content" v-model="saveInfo.equip_value" placeholder="请选择" readonly >
</item> </item>
<item v-if="!fromPutted" class="check" @click.native="checked=!checked"> <item v-if="!fromPutted&&showSpecialFlag&&project_status==='REJECT'" class="check" @click.native="checked=!checked">
<div slot="name">农行代扣</div> <div slot="name">农行代扣</div>
<img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checked" slot="content" /> <span v-if="!checked" slot="content" />
</item> </item>
<item v-if="fromPutted" class="check"> <item v-if="fromPutted&&showSpecialFlag&&project_status==='REJECT'" class="check">
<div slot="name" class="required">农行代扣</div> <div slot="name" class="required">农行代扣</div>
<img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checked" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checked" slot="content" /> <span v-if="!checked" slot="content" />
</item> </item>
<item v-if="!fromPutted" class="check" @click.native="checkedApproved=!checkedApproved"> <item v-if="!fromPutted&&showSpecialFlag&&project_status==='REJECT'" class="check" @click.native="checkedApproved=!checkedApproved">
<div slot="name" class="required">是否特批</div> <div slot="name" class="required">是否特批</div>
<img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checkedApproved" slot="content" /> <span v-if="!checkedApproved" slot="content" />
</item> </item>
<item v-if="fromPutted" class="check"> <item v-if="fromPutted&&showSpecialFlag&&project_status==='REJECT'" class="check">
<div slot="name" class="required">是否特批</div> <div slot="name" class="required">是否特批</div>
<img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" > <img v-if="checkedApproved" slot="content" src="@/assets/contractCreate/selected.png" >
<span v-if="!checkedApproved" slot="content" /> <span v-if="!checkedApproved" slot="content" />
...@@ -389,11 +389,13 @@ export default { ...@@ -389,11 +389,13 @@ export default {
checkedApproved: false, // 是否特批 checkedApproved: false, // 是否特批
bp_class: '', bp_class: '',
showModalValue: false, showModalValue: false,
showSpecialFlag: false,
fromPutted: false, // 为true为从已提交进来 fromPutted: false, // 为true为从已提交进来
isClick: false, isClick: false,
keyWord: '', keyWord: '',
bp_agent_id: '', bp_agent_id: '',
pageNum: 1, pageNum: 1,
project_status: this.$route.params.project_status,
pageNumSearch: 1, pageNumSearch: 1,
status: '', // 是否为已提交 status: '', // 是否为已提交
BussinessSituationList: [], // 行业情况 BussinessSituationList: [], // 行业情况
...@@ -522,6 +524,7 @@ export default { ...@@ -522,6 +524,7 @@ export default {
} else if (from.name === 'ContractCreateList' && vm.status === 'false') { } else if (from.name === 'ContractCreateList' && vm.status === 'false') {
vm.fromPutted = false vm.fromPutted = false
vm.saveInfo.bp_id = vm.$route.params.bp_id vm.saveInfo.bp_id = vm.$route.params.bp_id
vm.showSpecialFlag = true // 是否展示农行代扣和是否特批
vm.selectUdertake = [] vm.selectUdertake = []
setTimeout(() => { setTimeout(() => {
vm.getSaveInfo() vm.getSaveInfo()
...@@ -578,6 +581,7 @@ export default { ...@@ -578,6 +581,7 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
hlsPopup.showLongCenter('删除成功')
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -688,6 +692,19 @@ export default { ...@@ -688,6 +692,19 @@ export default {
} }
}, },
save () { save () {
let vm = this
// 校验是否特批
if (vm.checkedApproved) {
if (!vm.saveInfo.special_matter) {
hlsPopup.showLongCenter('请输入特批事项!')
} else {
vm.nextStep()
}
} else {
vm.nextStep()
}
},
nextStep () {
let vm = this let vm = this
if (vm.fromPutted) { if (vm.fromPutted) {
vm.$router.push({ vm.$router.push({
......
...@@ -386,6 +386,9 @@ export default { ...@@ -386,6 +386,9 @@ export default {
loadItemList () { loadItemList () {
let vm = this let vm = this
let bp_id_tenant = window.localStorage.getItem('bp_id_tenant') let bp_id_tenant = window.localStorage.getItem('bp_id_tenant')
if (bp_id_tenant === 'undefined') {
bp_id_tenant = null
}
let url = process.env.basePath + 'prj_cdd_check_list' let url = process.env.basePath + 'prj_cdd_check_list'
let group = '' let group = ''
if (vm.bpClass === 'NP') { if (vm.bpClass === 'NP') {
...@@ -545,8 +548,10 @@ export default { ...@@ -545,8 +548,10 @@ export default {
let vm = this let vm = this
let url = process.env.basePath + 'prj_project_submit' let url = process.env.basePath + 'prj_project_submit'
let param = { let param = {
project_id: window.localStorage.project_id, master: {
phone: window.localStorage.getItem('user_phone'), project_id: window.localStorage.project_id,
phone: window.localStorage.getItem('user_phone'),
},
} }
vm.hlsPopup.showLoading('请稍候') vm.hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
......
...@@ -600,8 +600,10 @@ export default { ...@@ -600,8 +600,10 @@ export default {
} }
p.orange { p.orange {
width: 30%;
border: 1px solid #FDB62F; border: 1px solid #FDB62F;
color: #FDB62F; color: #FDB62F;
white-space: nowrap;
} }
p.blue { p.blue {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
</h-header> </h-header>
<h-content class="repay-content"> <h-content ref="content" class="repay-content">
<div class="header"> <div class="header">
合同单据 合同单据
<div class="download" @click="downLoad">电子版下载 <img src="@/assets/contractInquire/download.png" alt=""></div> <div class="download" @click="downLoad">电子版下载 <img src="@/assets/contractInquire/download.png" alt=""></div>
...@@ -91,17 +91,18 @@ ...@@ -91,17 +91,18 @@
</item> </item>
</list-item> </list-item>
</scroll> </scroll>
</h-content> </h-content>
<PDFDown ref="pdf"/>
</h-view> </h-view>
</template> </template>
<script> <script>
import PDFDown from '@/components/PDFDownload'
export default { export default {
name: 'RepayDetail', name: 'RepayDetail',
components: { components: {
PDFDown,
}, },
filters: { filters: {
lengthCheck: function (value) { lengthCheck: function (value) {
...@@ -116,7 +117,9 @@ export default { ...@@ -116,7 +117,9 @@ export default {
return { return {
lists: [], lists: [],
pagenum: 1, pagenum: 1,
hidden: false,
detailInfo: {}, detailInfo: {},
fileArray: [],
} }
}, },
computed: { computed: {
...@@ -154,12 +157,24 @@ export default { ...@@ -154,12 +157,24 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.url = res.info.fileUrl vm.fileArray = res.info
vm.pdfDownload()
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
}) })
}, },
pdfDownload () {
// 下载pdf文件
let vm = this
vm.fileArray.forEach(element => {
if (element.fileUrl) {
console.log('vm.$refs.pdf' + vm.$refs.pdf)
debugger
vm.$refs.pdf.downloadPDF(element.fileUrl, element.fileName)
}
})
},
// 合同明细 // 合同明细
detailQuery () { detailQuery () {
let vm = this let vm = this
......
...@@ -123,8 +123,23 @@ ...@@ -123,8 +123,23 @@
<div slot="name" class="aguremrnt-list"> <div slot="name" class="aguremrnt-list">
<img src="@/assets/constractSigning/npack.png" alt class="pics" > <img src="@/assets/constractSigning/npack.png" alt class="pics" >
<p class="second first">{{ item.attachment_file }}</p> <p class="second first">{{ item.attachment_file }}</p>
<img v-if="item.read_status === 'N'" class="unread" src="@/assets/constractSigning/unread.png" > <img
<img v-if="item.read_status === 'Y'" class="unread" src="@/assets/constractSigning/read.png" > v-if="item.read_status === 'N'"
class="unread"
src="@/assets/constractSigning/unread.png"
>
<img
v-if="item.read_status === 'Y'"
class="unread"
src="@/assets/constractSigning/read.png"
>
<div
v-if="item.template_code === 'PRE_ABC_PAYMENT'"
class="wrap-img"
@click="entryInfo"
>
<img src="@/assets/constractSigning/scan.png" >
</div>
</div> </div>
<div slot="content" class="in-detail" @click="goContent(item,index)"> <div slot="content" class="in-detail" @click="goContent(item,index)">
<img src="@/assets/constractSigning/detail.png" alt > <img src="@/assets/constractSigning/detail.png" alt >
...@@ -134,7 +149,7 @@ ...@@ -134,7 +149,7 @@
<!-- <iframe <!-- <iframe
v-if="attachFlag" :src="attachUrl" v-if="attachFlag" :src="attachUrl"
frameborder="0" scrolling="yes" width="100%" frameborder="0" scrolling="yes" width="100%"
height="100%" /> --> height="100%" />-->
</h-content> </h-content>
<h-content v-if="num === 1"> <h-content v-if="num === 1">
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
...@@ -285,6 +300,7 @@ import unCheck3 from '@/assets/constractSigning/unLease.png' ...@@ -285,6 +300,7 @@ import unCheck3 from '@/assets/constractSigning/unLease.png'
import LegalPerson from '@/pages/distributorSign/legal-person' import LegalPerson from '@/pages/distributorSign/legal-person'
import Personal from '@/pages/distributorSign/personal' import Personal from '@/pages/distributorSign/personal'
import bodyCheck from './body-check' import bodyCheck from './body-check'
import axios from 'axios'
export default { export default {
name: 'ContractDetail', name: 'ContractDetail',
components: { components: {
...@@ -435,7 +451,7 @@ export default { ...@@ -435,7 +451,7 @@ export default {
// vm.hlsPopup.showLongCenter(res.message) // vm.hlsPopup.showLongCenter(res.message)
} }
}, },
goContent (item, index) { async goContent (item, index) {
// 详情 // 详情
// 合同状态更新保存 // 合同状态更新保存
let vm = this let vm = this
...@@ -443,25 +459,25 @@ export default { ...@@ -443,25 +459,25 @@ export default {
vm.attachUrl = item.attachment_file_path vm.attachUrl = item.attachment_file_path
let url = process.env.basePath + 'prj_content_status_save' let url = process.env.basePath + 'prj_content_status_save'
let param = { let param = {
parameter: { master: {
master: { content_id: item.content_id,
content_id: item.content_id, read_status: 'Y',
auth_credit_flag: 'Y',
},
}, },
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(res => { let res = await vm.hlsHttp.post(url, param)
hlsPopup.hideLoading() hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
let temp = vm.attachArray[index] let temp = vm.attachArray[index]
temp.read_status = 'Y' temp.read_status = 'Y'
vm.$router.push({name: 'previewPdf', params: {attachUrl: vm.attachUrl}}) vm.$router.push({
vm.attachArray.splice(vm.attachArray[index], 1, temp) name: 'previewPdf',
} else { params: { attachUrl: vm.attachUrl },
vm.hlsPopup.showLongCenter(res.message) })
} vm.attachArray.splice(vm.attachArray[index], 1, temp)
}) } else {
vm.hlsPopup.showLongCenter(res.message)
}
}, },
// 合同文本详情附件查询 // 合同文本详情附件查询
getAttachment () { getAttachment () {
...@@ -1344,14 +1360,29 @@ export default { ...@@ -1344,14 +1360,29 @@ export default {
.aguremrnt-list { .aguremrnt-list {
display: flex; display: flex;
display: -webkit-flex; display: -webkit-flex;
flex-direction: row; align-items: center;
-webkit-flex-direction:row; -webkit-align-items: center;
align-items:center; width: 100%;
-webkit-align-items:center; height: 100%;
.unread{ .unread {
width:34px; width: 34px;
height: 20PX; height: 20px;
margin:8px 0 0 4px; margin: 0 10px;
}
.wrap-img {
width: 12%;
height: 100%;
display: flex;
display: -webkit-flex;
align-items: center;
-webkit-align-items: center;
justify-content: center;
-webkit-justify-content:center;
background: rgb(254, 251, 233);
img {
width: 22px;
height: 20px;
}
} }
.pic { .pic {
margin-left: -3px; margin-left: -3px;
...@@ -1380,6 +1411,7 @@ export default { ...@@ -1380,6 +1411,7 @@ export default {
.first { .first {
margin-left: 13px; margin-left: 13px;
width: 60%;
} }
} }
......
...@@ -155,6 +155,36 @@ ...@@ -155,6 +155,36 @@
</div> </div>
</h-content> </h-content>
<h-content v-if="tabNum === 2"> <h-content v-if="tabNum === 2">
<list-item :item-height="56" class="contract-text" style="background-color:rgb(250,250,250);">
<item v-for="(item,index) in attachArray" :proportion="[7,1]" :key="index+'attach'">
<div slot="name" class="aguremrnt-list">
<img src="@/assets/constractSigning/npack.png" alt class="pics" >
<p class="second first">{{ item.attachment_file }}</p>
<img
v-if="item.read_status === 'N'"
class="unread"
src="@/assets/constractSigning/unread.png"
>
<img
v-if="item.read_status === 'Y'"
class="unread"
src="@/assets/constractSigning/read.png"
>
<div
v-if="item.template_code === 'PRE_ABC_PAYMENT'"
class="wrap-img"
@click="entryInfo"
>
<img src="@/assets/constractSigning/scan.png" >
</div>
</div>
<div slot="content" class="in-detail" @click="goContent(item,index)">
<img src="@/assets/constractSigning/detail.png" alt >
</div>
</item>
</list-item>
</h-content>
<!-- <h-content v-if="tabNum === 2">
<list-item :item-height="56"> <list-item :item-height="56">
<item :proportion="[7,1]"> <item :proportion="[7,1]">
<div slot="name" class="aguremrnt-list"> <div slot="name" class="aguremrnt-list">
...@@ -166,7 +196,7 @@ ...@@ -166,7 +196,7 @@
</item> </item>
</list-item> </list-item>
</h-content> </h-content> -->
<bottom-tab v-if="confirm_status!=='APPROVED'" class="add-box"> <bottom-tab v-if="confirm_status!=='APPROVED'" class="add-box">
<tab-button class="before" @click.native="takePhonto"> <tab-button class="before" @click.native="takePhonto">
<img src="@/assets/constractSigning/certification.png" >认证 <img src="@/assets/constractSigning/certification.png" >认证
...@@ -198,10 +228,12 @@ export default { ...@@ -198,10 +228,12 @@ export default {
showModalValue: false, showModalValue: false,
info: {}, // 租赁信息 info: {}, // 租赁信息
tabNum: 0, tabNum: 0,
num: 0,
baseInfo: {}, // 基本信息 baseInfo: {}, // 基本信息
project_id: '', project_id: '',
bp_flag: false, bp_flag: false,
guarantorInfo: [], // 担保人信息 guarantorInfo: [], // 担保人信息
attachArray: [], // 附件数组
bp_class: '', // 商业伙伴类型 bp_class: '', // 商业伙伴类型
confirm_status: '', // 签约状态 confirm_status: '', // 签约状态
faceListUpload: [], // 自拍照上传 faceListUpload: [], // 自拍照上传
...@@ -253,6 +285,7 @@ export default { ...@@ -253,6 +285,7 @@ export default {
vm.getGuarantor() vm.getGuarantor()
} }
vm.getLease() vm.getLease()
vm.getAttachment()
} else if (from.name === 'ContractContent') { } else if (from.name === 'ContractContent') {
vm.tabNum = 2 vm.tabNum = 2
vm.agentPic = vm.readed vm.agentPic = vm.readed
...@@ -261,6 +294,24 @@ export default { ...@@ -261,6 +294,24 @@ export default {
}, },
created () {}, created () {},
methods: { methods: {
// 合同文本详情附件查询
getAttachment () {
let vm = this
let url = process.env.basePath + 'get_content_app'
let param = {
confirm_id: vm.confirm_id,
data_class: 'PRJ_PREVIEW',
}
hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then(res => {
hlsPopup.hideLoading()
if (res.result === 'S') {
vm.attachArray = res.attachments
} else {
vm.hlsPopup.showLongCenter(res.message)
}
})
},
// 签约校验 // 签约校验
async signCheck () { async signCheck () {
let vm = this let vm = this
...@@ -326,7 +377,34 @@ export default { ...@@ -326,7 +377,34 @@ export default {
}) })
} }
}, },
async goContent (item, index) {
// 详情
// 合同状态更新保存
let vm = this
vm.attachFlag = true
vm.attachUrl = item.attachment_file_path
let url = process.env.basePath + 'prj_content_status_save'
let param = {
master: {
content_id: item.content_id,
read_status: 'Y',
},
}
hlsPopup.showLoading('请稍候')
let res = await vm.hlsHttp.post(url, param)
hlsPopup.hideLoading()
if (res.result === 'S') {
let temp = vm.attachArray[index]
temp.read_status = 'Y'
vm.$router.push({
name: 'previewPdf',
params: { attachUrl: vm.attachUrl },
})
vm.attachArray.splice(vm.attachArray[index], 1, temp)
} else {
vm.hlsPopup.showLongCenter(res.message)
}
},
takePhonto () { takePhonto () {
let vm = this let vm = this
hlsPopup.showConfirm({ hlsPopup.showConfirm({
...@@ -786,32 +864,62 @@ export default { ...@@ -786,32 +864,62 @@ export default {
} }
.aguremrnt-list { .aguremrnt-list {
display: flex; display: flex;
flex-direction: row; display: -webkit-flex;
align-items: center;
-webkit-align-items: center;
width: 100%;
height: 100%;
.unread {
width: 34px;
height: 20px;
margin: 0 10px;
}
.wrap-img {
width: 12%;
height: 100%;
display: flex;
display: -webkit-flex;
align-items: center;
-webkit-align-items: center;
justify-content: center;
-webkit-justify-content:center;
background: rgb(254, 251, 233);
img {
width: 22px;
height: 20px;
}
}
.pic { .pic {
margin-left: -3px; margin-left: -3px;
} }
.pics { .pics {
// width: 21px; // width: 21px;
height: 30px; height: 30px;
} }
.read { .read {
height: 16px; height: 16px;
margin-top: 8px; margin-top: 8px;
margin-left: 12.5px; margin-left: 6px;
} }
.second { .second {
height: 32px; // height: 32px;
line-height: 32px; // line-height: 32px;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 14px; font-size: 14px;
margin-left: 21px; margin-left: 16px;
color: #383F45; color: #383f45;
letter-spacing: 0.43px; letter-spacing: 0.43px;
} }
.first { .first {
margin-left: 13px; margin-left: 13px;
width: 60%;
} }
} }
.footer-button { .footer-button {
.approve { .approve {
width: 358.6px; width: 358.6px;
......
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
</item> </item>
<item> <item>
<div slot="name" class="font-color">联系地址</div> <div slot="name" class="font-color">联系地址</div>
<input slot="content" v-model="baseInfo.living_address" readonly> <!-- <input slot="content" v-model="baseInfo.living_address" readonly> -->
<span slot="content">{{ baseInfo.living_address }}</span>
</item> </item>
<item> <item>
<div slot="name" class="font-color">户籍地址</div> <div slot="name" class="font-color">户籍地址</div>
......
...@@ -239,6 +239,7 @@ export default { ...@@ -239,6 +239,7 @@ export default {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.info = res.info vm.info = res.info
vm.info.lease_times = '' // 租赁期数置空
vm.annual_pay_times = res.info.annual_pay_times vm.annual_pay_times = res.info.annual_pay_times
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
......
...@@ -48,8 +48,8 @@ ...@@ -48,8 +48,8 @@
<span>{{ item.int_rate_n }}</span> <span>{{ item.int_rate_n }}</span>
</p> </p>
<p> <p>
<span>&nbsp;&nbsp;&nbsp;</span> <!-- <span>&nbsp;&nbsp;&nbsp;</span>
<span>{{ item.lease_times }}</span> <span>{{ item.lease_times }}</span> -->
</p> </p>
</div> </div>
</div> </div>
......
...@@ -678,10 +678,18 @@ export default { ...@@ -678,10 +678,18 @@ export default {
getMultipleRole () { getMultipleRole () {
let vm = this let vm = this
let url = process.env.basePath + 'bp_role_query' let url = process.env.basePath + 'bp_role_query'
let bpId = window.localStorage.getItem('bp_id')
let bpType = window.localStorage.getItem('bp_type')
if (bpId === 'undefined') {
bpId = null
}
if (bpType === 'undefined') {
bpType = null
}
let param = { let param = {
master: { master: {
bp_id: window.localStorage.getItem('bp_id'), bp_id: bpId,
bp_type: window.localStorage.getItem('bp_type'), bp_type: bpType,
}, },
} }
vm.hlsHttp.post(url, param).then(function (res) { vm.hlsHttp.post(url, param).then(function (res) {
...@@ -883,6 +891,7 @@ export default { ...@@ -883,6 +891,7 @@ export default {
vm.user_bp_class = res.info.user_bp_class vm.user_bp_class = res.info.user_bp_class
vm.bp_id = res.info.user_bp_id vm.bp_id = res.info.user_bp_id
vm.bp_identity = res.info.bp_identity vm.bp_identity = res.info.bp_identity
window.localStorage.removeItem('bp_id')
window.localStorage.setItem('bp_id', res.info.user_bp_id) window.localStorage.setItem('bp_id', res.info.user_bp_id)
window.localStorage.setItem('user_bp_status', res.info.user_bp_status) window.localStorage.setItem('user_bp_status', res.info.user_bp_status)
window.localStorage.setItem('bp_name', res.info.user_bp_name) window.localStorage.setItem('bp_name', res.info.user_bp_name)
......
...@@ -755,6 +755,9 @@ export default { ...@@ -755,6 +755,9 @@ export default {
let bpId = vm.from let bpId = vm.from
? vm.$route.params.bp_id ? vm.$route.params.bp_id
: window.localStorage.getItem('bp_id') : window.localStorage.getItem('bp_id')
if (bpId === 'undefined') {
bpId = null
}
let url = process.env.basePath + 'prj_cdd_check_list' let url = process.env.basePath + 'prj_cdd_check_list'
let param = { let param = {
master: { master: {
......
...@@ -1649,6 +1649,9 @@ export default { ...@@ -1649,6 +1649,9 @@ export default {
loadItemList () { loadItemList () {
let vm = this let vm = this
let bpId = vm.from ? vm.$route.params.bp_id : vm.bp_id let bpId = vm.from ? vm.$route.params.bp_id : vm.bp_id
if (bpId === 'undefined') {
bpId = null
}
let url = process.env.basePath + 'prj_cdd_check_list' let url = process.env.basePath + 'prj_cdd_check_list'
let param = { let param = {
master: { master: {
......
...@@ -874,6 +874,9 @@ export default { ...@@ -874,6 +874,9 @@ export default {
let vm = this let vm = this
vm.dowload_list = [] vm.dowload_list = []
let bpId = window.localStorage.getItem('bp_id') let bpId = window.localStorage.getItem('bp_id')
if (bpId === 'undefined') {
bpId = null
}
let url = process.env.basePath + 'prj_cdd_check_list' let url = process.env.basePath + 'prj_cdd_check_list'
let param = { let param = {
master: { master: {
......
...@@ -681,6 +681,9 @@ export default { ...@@ -681,6 +681,9 @@ export default {
loadItemList () { loadItemList () {
let vm = this let vm = this
let bpId = window.localStorage.getItem('bp_id') let bpId = window.localStorage.getItem('bp_id')
if (bpId === 'undefined') {
bpId = null
}
let url = process.env.basePath + 'prj_cdd_check_list' let url = process.env.basePath + 'prj_cdd_check_list'
let param = { let param = {
master: { master: {
......
...@@ -1626,6 +1626,9 @@ export default { ...@@ -1626,6 +1626,9 @@ export default {
loadItemList () { loadItemList () {
let vm = this let vm = this
let bpId = vm.from ? vm.$route.params.bp_id : vm.bp_id let bpId = vm.from ? vm.$route.params.bp_id : vm.bp_id
if (bpId === 'undefined') {
bpId = null
}
let url = process.env.basePath + 'prj_cdd_check_list' let url = process.env.basePath + 'prj_cdd_check_list'
let param = { let param = {
master: { master: {
......
...@@ -913,9 +913,13 @@ export default { ...@@ -913,9 +913,13 @@ export default {
loadItemList () { loadItemList () {
let vm = this let vm = this
let url = process.env.basePath + 'prj_cdd_check_list' let url = process.env.basePath + 'prj_cdd_check_list'
let bpId = vm.bp_id
if (bpId === 'undefined') {
bpId = null
}
let param = { let param = {
master: { master: {
'document_id': vm.bp_id, 'document_id': bpId,
'document_table': 'HLS_BP_MASTER', 'document_table': 'HLS_BP_MASTER',
'tab_group': window.localStorage.authFlag ? 'HLS_ORG_NAUTH' : 'HLS_ORG_AUTH', 'tab_group': window.localStorage.authFlag ? 'HLS_ORG_NAUTH' : 'HLS_ORG_AUTH',
}, },
......
export default (Vue) => { export default (Vue) => {
Vue.filter('currency', function (val) { Vue.filter('currency', function (val) {
if (!val) return '0.00' if (!val) return '¥0.00'
// var intPart = Number(val).toFixed(0) // 获取整数部分 // var intPart = Number(val).toFixed(0) // 获取整数部分
var intPart = val.toString().split('.')[0] var intPart = val.toString().split('.')[0]
var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断 var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
...@@ -14,12 +14,12 @@ export default (Vue) => { ...@@ -14,12 +14,12 @@ export default (Vue) => {
floatPart = value2Array[1].toString() // 拿到小数部分 floatPart = value2Array[1].toString() // 拿到小数部分
if (floatPart.length === 1) { // 补0,实际上用不着 if (floatPart.length === 1) { // 补0,实际上用不着
return intPartFormat + '.' + floatPart + '0' return '¥' + intPartFormat + '.' + floatPart + '0'
} else { } else {
return intPartFormat + '.' + floatPart return '¥' + intPartFormat + '.' + floatPart
} }
} else { } else {
return intPartFormat + floatPart return '¥' + intPartFormat + floatPart
} }
}) })
Vue.filter('datetime', timestamp => { Vue.filter('datetime', timestamp => {
......
<!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.d9d652113ef586c3a6d929a9a74e4e32.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.75679805cfd6269119a3.js></script><script type=text/javascript src=./static/js/vendor.5967fb6c1e3ff49ccff1.js></script><script type=text/javascript src=./static/js/app.35e44e25fa61dd015374.js></script></body></html>
\ 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