Commit 1d603b67 by 杨北旺

添加状态判断

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