|
@@ -803,6 +803,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
apply_subscribeData:{},
|
|
|
+ isApplyEx4:true,
|
|
|
myHeight:document.documentElement.clientHeight - 85- 150
|
|
|
}
|
|
|
},
|
|
@@ -1490,6 +1491,19 @@ export default {
|
|
|
console.log('查看下方table数据', response.data.list)
|
|
|
this.listSee = response.data.list
|
|
|
this.listAdd = response.data.list
|
|
|
+ var sumPrices = 0
|
|
|
+ response.data.list.forEach(function(i,j){
|
|
|
+ sumPrices = sumPrices + i["sumPrice"]
|
|
|
+ })
|
|
|
+ console.log("总价sumPrices",sumPrices)
|
|
|
+ var priceObj = response.data.list.find(obj => obj.price >= 500)
|
|
|
+ console.log("priceObj",priceObj)
|
|
|
+ //总价大于2000 或单价>500
|
|
|
+ if(sumPrices >= 2000 || priceObj){
|
|
|
+ this.isApplyEx4 = true
|
|
|
+ } else {
|
|
|
+ this.isApplyEx4 = false
|
|
|
+ }
|
|
|
for (let i = 0; i < response.data.list.length; i++) {
|
|
|
if (response.data.list[i].srcpath !== null && response.data.list[i].picpath !== null && response.data.list[i].srcpath !== undefined && response.data.list[i].picpath !== undefined) {
|
|
|
console.log(process.env.VUE_APP_BASE_API + response.data.list[i].srcpath, '=======1')
|
|
@@ -1891,9 +1905,17 @@ export default {
|
|
|
this.requestParam.parammaps = {}
|
|
|
this.requestParam.parammaps.id = this.examineTemp.id
|
|
|
if (this.examineTemp.statue == 1) {
|
|
|
- this.requestParam.parammaps.statue = 5
|
|
|
+ if(this.isApplyEx4 == true){
|
|
|
+ this.requestParam.parammaps.statue = 5
|
|
|
+ }else{
|
|
|
+ this.requestParam.parammaps.statue = 11
|
|
|
+ }
|
|
|
} else if (this.examineTemp.statue == 2) {
|
|
|
- this.requestParam.parammaps.statue = 6
|
|
|
+ if(this.isApplyEx4 == true){
|
|
|
+ this.requestParam.parammaps.statue = 6
|
|
|
+ }else{
|
|
|
+ this.requestParam.parammaps.statue = 12
|
|
|
+ }
|
|
|
}
|
|
|
this.requestParam.parammaps.empId = Cookies.get('employeid')
|
|
|
this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
|