Commit ef9a429f authored by linxin's avatar linxin

add

parent 1a0543f4
Pipeline #4722 canceled with stages
...@@ -8,9 +8,9 @@ module.exports = merge(prodEnv, { ...@@ -8,9 +8,9 @@ module.exports = merge(prodEnv, {
debug: true, debug: true,
isMobilePlatform: false, isMobilePlatform: false,
loginPath: '"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" ', loginPath: '"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" ',
basePath: '"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_UAT&apiName="', basePath: '"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_DEV&apiName="',
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_UAT&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"', appId: '"com.xcmg.app"',
currentVersion: '"1.7.6"', currentVersion: '"1.7.6"',
......
...@@ -14,41 +14,41 @@ ...@@ -14,41 +14,41 @@
</div> </div>
<list-item :item-height="44"> <list-item :item-height="44">
<item> <item>
<div slot="name">车架号</div> <div slot="name" class="required">车架号</div>
<input slot="content" v-model="info.frame_number" :readonly="flag" placeholder="自动识别车架号" > <input slot="content" v-model="info.frame_number" :readonly="flag" placeholder="自动识别车架号" >
</item> </item>
<item> <item>
<div slot="name">发动机号</div> <div slot="name" class="required">发动机号</div>
<input slot="content" v-model="info.engine" :readonly="flag" placeholder="自动识别发动机号" > <input slot="content" v-model="info.engine" :readonly="flag" placeholder="自动识别发动机号" >
</item> </item>
<item> <item>
<div slot="name">车辆型号 </div> <div slot="name" class="required">车辆型号 </div>
<input slot="content" v-model="info.vehicle_model" :readonly="flag" placeholder="自动识别车辆型号" > <input slot="content" v-model="info.vehicle_model" :readonly="flag" placeholder="自动识别车辆型号" >
</item> </item>
<item> <item>
<div slot="name">合格证编号 </div> <div slot="name" class="required">合格证编号 </div>
<input slot="content" v-model="info.certificate_number" :readonly="flag" placeholder="自动识别合格证编号" > <input slot="content" v-model="info.certificate_number" :readonly="flag" placeholder="自动识别合格证编号" >
</item> </item>
<item v-if="!flag"> <item v-if="!flag">
<div slot="name">发车日期</div> <div slot="name" class="required">发车日期</div>
<input <input
slot="content" v-model="info.departure_date" readonly placeholder="请输入发车日期" slot="content" v-model="info.departure_date" readonly placeholder="请输入发车日期"
@click="showTime('YYYY-MM-DD')"> @click="showTime('YYYY-MM-DD')">
</item> </item>
<item v-if="flag"> <item v-if="flag">
<div slot="name">发车日期</div> <div slot="name" class="required">发车日期</div>
<input <input
slot="content" v-model="info.departure_date" readonly placeholder="请输入发车日期" slot="content" v-model="info.departure_date" readonly placeholder="请输入发车日期"
> >
</item> </item>
<item v-if="!flag"> <item v-if="!flag">
<div slot="name">开票日期</div> <div slot="name" class="required">开票日期</div>
<input <input
slot="content" v-model="info.invoice_date" readonly placeholder="请输入开票日期" slot="content" v-model="info.invoice_date" readonly placeholder="请输入开票日期"
@click="showTimeInvoice('YYYY-MM-DD')"> @click="showTimeInvoice('YYYY-MM-DD')">
</item> </item>
<item v-if="flag"> <item v-if="flag">
<div slot="name">开票日期</div> <div slot="name" class="required">开票日期</div>
<input <input
slot="content" v-model="info.invoice_date" readonly placeholder="请输入开票日期" slot="content" v-model="info.invoice_date" readonly placeholder="请输入开票日期"
> >
...@@ -588,15 +588,29 @@ export default { ...@@ -588,15 +588,29 @@ export default {
vm.save_picture(list) vm.save_picture(list)
}, },
isSave () { isSave () {
this.hlsPopup.showConfirm({ if (!this.info.frame_number) {
title: '提示', hlsPopup.showLongCenter('请输入车架号')
content: '您确定保存吗?', } else if (!this.info.engine) {
onConfirm: data => { hlsPopup.showLongCenter('请输入发动机号')
if (data === 1) { } else if (!this.info.vehicle_model) {
this.save() hlsPopup.showLongCenter('请输入车辆型号')
} } else if (!this.info.certificate_number) {
}, hlsPopup.showLongCenter('请输入合格证编号')
}) } else if (!this.info.departure_date) {
hlsPopup.showLongCenter('请输入发车日期')
} else if (!this.info.invoice_date) {
hlsPopup.showLongCenter('请输入开票日期')
} else {
this.hlsPopup.showConfirm({
title: '提示',
content: '您确定保存吗?',
onConfirm: data => {
if (data === 1) {
this.save()
}
},
})
}
}, },
checkStatus () { checkStatus () {
let mantained = this.equip.filter(i => { let mantained = this.equip.filter(i => {
......
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
<span class="number-left">发票号码 {{ list.invoice_no }}</span> <span class="number-left">发票号码 {{ list.invoice_no }}</span>
<div class="number-right"> <div class="number-right">
<img src="@/assets/invoice/download.png"> <img src="@/assets/invoice/download.png">
<span class="invoice-download">发票下载</span> <span class="invoice-download" @click="downLoad(list.file_url)">发票下载</span>
<!-- <a href="https://180.104.121.66:8090/dump_dir/032001700611_84582415.pdf">发票下载</a> -->
</div> </div>
</div> </div>
</div> </div>
...@@ -64,6 +65,9 @@ export default { ...@@ -64,6 +65,9 @@ export default {
loadMore () { loadMore () {
this.getList() this.getList()
}, },
downLoad (a) {
cordova.InAppBrowser.open(a, '_blank', 'location=yes')
},
getList () { getList () {
let vm = this let vm = this
let url = process.env.basePath + 'user_invoice_query' let url = process.env.basePath + 'user_invoice_query'
......
...@@ -211,6 +211,7 @@ export default { ...@@ -211,6 +211,7 @@ export default {
bp_id: bp_id, bp_id: bp_id,
company_id: '2145', company_id: '2145',
bp_class: 'NP', bp_class: 'NP',
bp_type: window.localStorage.getItem('bp_type'),
business_num: window.localStorage.getItem('business_num'), business_num: window.localStorage.getItem('business_num'),
}, },
} }
......
...@@ -297,6 +297,7 @@ export default { ...@@ -297,6 +297,7 @@ export default {
bp_id: this.$route.params.bp_id, bp_id: this.$route.params.bp_id,
company_id: '2145', company_id: '2145',
bp_class: 'ORG', bp_class: 'ORG',
bp_type: window.localStorage.getItem('bp_type'),
business_num: window.localStorage.getItem('business_num'), business_num: window.localStorage.getItem('business_num'),
}, },
} }
......
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