|
@@ -204,16 +204,21 @@
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: '采购订单详情'
|
|
|
})
|
|
|
+
|
|
|
// 查明细
|
|
|
if(option.purchaseSn){
|
|
|
+ this.purchaseSn = option.purchaseSn
|
|
|
this.getDetail()
|
|
|
}else{
|
|
|
// 从列表过来不需要查
|
|
|
const data = this.$store.state.vuex_tempOrderData //获取订单信息
|
|
|
if(data){
|
|
|
+ this.purchaseSn = data.purchaseSn
|
|
|
this.pageInit(data)
|
|
|
}
|
|
|
}
|
|
|
+ // 获取明细列表
|
|
|
+ this.getDetailList()
|
|
|
},
|
|
|
onUnload() {
|
|
|
this.$store.state.vuex_tempOrderData = null
|
|
@@ -245,10 +250,9 @@
|
|
|
data.payOk = data.payOnlineFlag==1&&data.payInfo&&data.payInfo.payState=='FINISH'
|
|
|
this.info = data
|
|
|
if(this.info.payInfo){
|
|
|
- this.info.payInfo.payDate = moment(this.info.payInfo.payDate).format('YYYY-MM-DD hh:mm:ss')
|
|
|
+ this.info.payInfo.payDate = moment(this.info.payInfo.payDate).format('YYYY-MM-DD HH:mm:ss')
|
|
|
}
|
|
|
this.state = data.billStatus
|
|
|
- this.purchaseSn = data.purchaseSn
|
|
|
const stateText = {'WAIT_AUDIT':'待审核','WAIT_PAY':'待付款','AUDIT_REJECT':'审核不通过','WAIT_OUT_WAREHOUSE':'待收货','WAIT_RECEIVE':'待收货','FINISH':'已完结','CANCEL':'已取消'}
|
|
|
this.statusText = stateText[this.state]
|
|
|
this.statusIcon = this.state == 'FINISH' ? 'checkmark-circle' : ((this.state == 'AUDIT_REJECT'||this.state == 'CANCEL')?'close-circle':'hourglass')
|
|
@@ -258,8 +262,6 @@
|
|
|
frontColor: '#ffffff',
|
|
|
backgroundColor: this.state!= 'error'&&this.state!= 'AUDIT_REJECT'&&this.state!= 'CANCEL'&&this.state!= 'WAIT_PAY' ? '#066cff':'#e61100',
|
|
|
})
|
|
|
- // 获取明细列表
|
|
|
- this.getDetailList()
|
|
|
},
|
|
|
// 实时查询详情
|
|
|
getDetail(){
|
|
@@ -271,6 +273,7 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 下一页
|
|
|
getRow(pageNo){
|
|
|
this.pageNo = pageNo
|
|
|
this.getDetailList()
|