Commit b43ee9e3 authored by 我在何方's avatar 我在何方

客户延期回显更新

parent 773bfaf5
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<!-- 只有不需要预付才需要审核 --> <!-- 只有不需要预付才需要审核 -->
<template> <template>
<div class="page-title">{{$t('审批流程')}}</div> <div class="page-title">{{$t('审批流程')}}</div>
<work-flow xmlkey="quotation_customer_delay_public" v-model="handlerParams.ccIds" /> <work-flow xmlkey="quotation_customer_delay_public" v-model="ccIdArr" />
</template> </template>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<!-- bpmStatus <!-- bpmStatus
...@@ -81,9 +81,15 @@ ...@@ -81,9 +81,15 @@
showWorkFlow: false, // 是否显示工作流 showWorkFlow: false, // 是否显示工作流
dateRangeCreateTime:[], dateRangeCreateTime:[],
pickerOptions: { pickerOptions: {
} },
ccIdArr:[]
}; };
}, },
watch:{
ccIdArr(){
this.$set(this.handlerParams, 'ccIds', this.ccIdArr.join(','))
}
},
created() { created() {
if(this.$route.query.id){ if(this.$route.query.id){
this.getData(this.$route.query.id) this.getData(this.$route.query.id)
...@@ -105,6 +111,16 @@ ...@@ -105,6 +111,16 @@
if(!that.handlerParams.orgEstimateEnterOpenSeaTime){ if(!that.handlerParams.orgEstimateEnterOpenSeaTime){
that.handlerParams.orgEstimateEnterOpenSeaTime = that.getNowDate(that.customerData.enterOpenSeaTime) that.handlerParams.orgEstimateEnterOpenSeaTime = that.getNowDate(that.customerData.enterOpenSeaTime)
} }
if(that.handlerParams.estimateEnterOpenSeaTime){
that.handlerParams.estimateEnterOpenSeaTime = that.getTime(that.handlerParams.estimateEnterOpenSeaTime)
}
if(that.handlerParams.ccIds){
var ids = that.handlerParams.ccIds.split(',')
ids.map(v=>{
that.ccIdArr.push(parseInt(v))
})
}
console.log(that.handlerParams) console.log(that.handlerParams)
}else{ }else{
that.handlerParams = { that.handlerParams = {
...@@ -134,8 +150,8 @@ ...@@ -134,8 +150,8 @@
// return // return
// } // }
var params = Object.assign({},this.handlerParams) var params = Object.assign({},this.handlerParams)
var ccIds = Array.isArray(this.handlerParams.ccIds) ? this.handlerParams.ccIds.join(',') : this.handlerParams.ccIds // var ccIds = Array.isArray(this.handlerParams.ccIds) ? this.handlerParams.ccIds.join(',') : this.handlerParams.ccIds
params.ccIds = ccIds // params.ccIds = ccIds
params.voucher = Array.isArray(this.handlerParams.voucher) ? this.handlerParams.voucher.join(',') : this.handlerParams.voucher params.voucher = Array.isArray(this.handlerParams.voucher) ? this.handlerParams.voucher.join(',') : this.handlerParams.voucher
this.$set(this.handlerParams,'createTime',this.formatDate()) this.$set(this.handlerParams,'createTime',this.formatDate())
params.estimateEnterOpenSeaTime = this.getNowDate(this.handlerParams.estimateEnterOpenSeaTime) params.estimateEnterOpenSeaTime = this.getNowDate(this.handlerParams.estimateEnterOpenSeaTime)
...@@ -144,6 +160,10 @@ ...@@ -144,6 +160,10 @@
this.$store.dispatch('tagsView/delCurrentView') this.$store.dispatch('tagsView/delCurrentView')
}) })
}, },
getTime(dateTime){
var date = new Date(dateTime);
return date.getTime()
},
getNowDate(time) { getNowDate(time) {
if(time){ if(time){
var date = new Date(time); var date = new Date(time);
......
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