Commit c94fb031 by 杨北旺

添加状态判断

1 parent bcdd8719
...@@ -402,7 +402,7 @@ export default { ...@@ -402,7 +402,7 @@ export default {
// 通过订单 // 通过订单
toPassOrder() { toPassOrder() {
this.isSave = false this.isSave = false
if (this.orderMsg.status == 12 || this.orderMsg.status == 2) { if (this.orderMsg.status == 12 || this.orderMsg.status == 2 || this.orderMsg.status == 26) {
const isPass = this.verifyImages(this.claimsAttachmentConfigs) const isPass = this.verifyImages(this.claimsAttachmentConfigs)
if (!isPass) { if (!isPass) {
this.$message({ this.$message({
...@@ -599,7 +599,7 @@ export default { ...@@ -599,7 +599,7 @@ export default {
// 案件补充说明 // 案件补充说明
handlerExplain() { handlerExplain() {
let obj = {} let obj = {}
if (this.orderMsg.status == 12 || this.orderMsg.status == 2) { if (this.orderMsg.status == 12 || this.orderMsg.status == 2 || this.orderMsg.status == 26) {
this.repotData.supplementList2.forEach((item, index) => { this.repotData.supplementList2.forEach((item, index) => {
let idx = `supplementList2[${index}].id` let idx = `supplementList2[${index}].id`
let claimsId = `supplementList2[${index}].claimsId` let claimsId = `supplementList2[${index}].claimsId`
...@@ -639,7 +639,7 @@ export default { ...@@ -639,7 +639,7 @@ export default {
hanlerImg() { hanlerImg() {
let imgs = [] let imgs = []
let serviceImgs = [] let serviceImgs = []
if (this.orderMsg.status == 12 || this.orderMsg.status == 2) { if (this.orderMsg.status == 12 || this.orderMsg.status == 2 || this.orderMsg.status == 26) {
this.claimsAttachmentConfigs.forEach((item, index) => { this.claimsAttachmentConfigs.forEach((item, index) => {
if (item.firstClassifyName.indexOf('其他') != -1) { if (item.firstClassifyName.indexOf('其他') != -1) {
item.secondClassifyList.forEach(el => { item.secondClassifyList.forEach(el => {
...@@ -690,7 +690,7 @@ export default { ...@@ -690,7 +690,7 @@ export default {
imgs = [...serviceImgs, ...imgs] imgs = [...serviceImgs, ...imgs]
} }
let obj = {} let obj = {}
let type = this.orderMsg.status == 12 || this.orderMsg.status == 2 ? 2 : 1 let type = this.orderMsg.status == 12 || this.orderMsg.status == 2 || this.orderMsg.status == 26 ? 2 : 1
imgs.forEach((item, index) => { imgs.forEach((item, index) => {
let idx = `attachments${type}[${index}].id` let idx = `attachments${type}[${index}].id`
let claimsId = `attachments${type}[${index}].claimsId` let claimsId = `attachments${type}[${index}].claimsId`
...@@ -790,13 +790,13 @@ export default { ...@@ -790,13 +790,13 @@ export default {
writeOffCode: this.repotData.writeOffCode, writeOffCode: this.repotData.writeOffCode,
...imgObj ...imgObj
} }
return this.orderMsg.status == 12 || this.orderMsg.status == 2 ? claims : para return this.orderMsg.status == 12 || this.orderMsg.status == 2 || this.orderMsg.status == 26 ? claims : para
}, },
// 保存订单 // 保存订单
toSaveOrder() { toSaveOrder() {
this.isSave = true this.isSave = true
let para = this.savePara() let para = this.savePara()
const name = this.orderMsg.status == 12 || this.orderMsg.status == 2 ? 'saveClaimsCG' : 'saveCG' const name = this.orderMsg.status == 12 || this.orderMsg.status == 2 || this.orderMsg.status == 26 ? 'saveClaimsCG' : 'saveCG'
let loading = this.createLoading() let loading = this.createLoading()
this.$apis.claims[name](para).then(res => { this.$apis.claims[name](para).then(res => {
loading.close() loading.close()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!