|
@@ -7,7 +7,7 @@
|
|
<a id="custConfirm-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
<a id="custConfirm-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
<span style="margin: 0 15px;color: #666;">客户名称:{{ ordeDetail&&ordeDetail.buyerName || '--' }}</span>
|
|
<span style="margin: 0 15px;color: #666;">客户名称:{{ ordeDetail&&ordeDetail.buyerName || '--' }}</span>
|
|
<span style="margin: 0 10px;color: #666;">
|
|
<span style="margin: 0 10px;color: #666;">
|
|
- 退货类别:{{ordeDetail&&ordeDetail.goodFlagDictValue}}
|
|
|
|
|
|
+ 退货类别:{{ ordeDetail&&ordeDetail.goodFlagDictValue }}
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
</a-page-header>
|
|
</a-page-header>
|
|
@@ -30,7 +30,7 @@
|
|
<a-button style="margin-left:5px;" :loading="loading" @click="openPlSetReason">批量设置退货原因</a-button>
|
|
<a-button style="margin-left:5px;" :loading="loading" @click="openPlSetReason">批量设置退货原因</a-button>
|
|
<span style="margin-left:10px;" v-if="selNums">已选{{ selNums }}项</span>
|
|
<span style="margin-left:10px;" v-if="selNums">已选{{ selNums }}项</span>
|
|
<a-button type="primary" :loading="loading" class="button-info" @click="setNewSalesRetrunOrder">生成新销退单</a-button>
|
|
<a-button type="primary" :loading="loading" class="button-info" @click="setNewSalesRetrunOrder">生成新销退单</a-button>
|
|
- <div style="float:right;color:#999;margin-top:8px;">说明:红色行表示收货时新增的产品;黄色表示客服确认时新增的产品;退货原因文字显示红色表示退货原因和退货类别不一致;</div>
|
|
|
|
|
|
+ <div style="float:right;color:#999;margin-top:8px;">说明:红色行表示收货时新增的产品;黄色行表示客服确认时新增的产品;退货原因文字显示红色表示退货原因和退货类别不一致;</div>
|
|
</div>
|
|
</div>
|
|
<!-- 已选配件列表 -->
|
|
<!-- 已选配件列表 -->
|
|
<s-table
|
|
<s-table
|
|
@@ -120,11 +120,17 @@
|
|
<!-- 退货原因 -->
|
|
<!-- 退货原因 -->
|
|
<template slot="returnReason" slot-scope="text, record">
|
|
<template slot="returnReason" slot-scope="text, record">
|
|
<returnReason v-if="record.isEdit" v-model="record.returnReasonCode"></returnReason>
|
|
<returnReason v-if="record.isEdit" v-model="record.returnReasonCode"></returnReason>
|
|
- <span v-else>{{ record.returnReason||'--' }}</span>
|
|
|
|
|
|
+ <span v-else title="退货原因和退货类别不一致" :style="{color:record.needHandleFlag==1?'red':''}">{{ record.returnReason||'--' }}</span>
|
|
</template>
|
|
</template>
|
|
<!-- 备注 -->
|
|
<!-- 备注 -->
|
|
<template slot="remarks" slot-scope="text, record">
|
|
<template slot="remarks" slot-scope="text, record">
|
|
- <a-input v-if="record.isEdit" size="small" :maxlength="50" v-model.trim="record.returnReasonRemarks" allowClear placeholder="请输入备注信息(最多50字符)"/>
|
|
|
|
|
|
+ <a-input
|
|
|
|
+ v-if="record.isEdit"
|
|
|
|
+ size="small"
|
|
|
|
+ :maxlength="50"
|
|
|
|
+ v-model.trim="record.returnReasonRemarks"
|
|
|
|
+ allowClear
|
|
|
|
+ placeholder="请输入备注信息(最多50字符)"/>
|
|
<span v-else>{{ record.returnReasonRemarks||'--' }}</span>
|
|
<span v-else>{{ record.returnReasonRemarks||'--' }}</span>
|
|
</template>
|
|
</template>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
@@ -284,7 +290,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- goodFlag() {
|
|
|
|
|
|
+ goodFlag () {
|
|
return this.ordeDetail && this.ordeDetail.goodFlag || ''
|
|
return this.ordeDetail && this.ordeDetail.goodFlag || ''
|
|
},
|
|
},
|
|
selNums () {
|
|
selNums () {
|
|
@@ -336,7 +342,7 @@ export default {
|
|
arr.map(item => {
|
|
arr.map(item => {
|
|
snList.push(item.salesReturnDetailSn)
|
|
snList.push(item.salesReturnDetailSn)
|
|
})
|
|
})
|
|
- salesReturnAgainCreate({ sourceBillSn: _this.orderSn,salesReturnBillDetailSnList: snList }).then(res => {
|
|
|
|
|
|
+ salesReturnAgainCreate({ sourceBillSn: _this.orderSn, salesReturnBillDetailSnList: snList }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
_this.resetSearchForm(false)
|
|
_this.resetSearchForm(false)
|
|
}
|
|
}
|
|
@@ -360,6 +366,7 @@ export default {
|
|
const params = {
|
|
const params = {
|
|
'salesReturnBillSn': this.orderSn,
|
|
'salesReturnBillSn': this.orderSn,
|
|
'salesReturnBillNo': this.ordeDetail.salesReturnBillNo,
|
|
'salesReturnBillNo': this.ordeDetail.salesReturnBillNo,
|
|
|
|
+ 'goodFlag': this.goodFlag,
|
|
...data
|
|
...data
|
|
}
|
|
}
|
|
insertByCustomerService(params).then(res => {
|
|
insertByCustomerService(params).then(res => {
|
|
@@ -411,7 +418,7 @@ export default {
|
|
})
|
|
})
|
|
salesReturnDetailSetReason({
|
|
salesReturnDetailSetReason({
|
|
salesReturnBillDetailSnList: snList,
|
|
salesReturnBillDetailSnList: snList,
|
|
- salesReturnBillSn : this.orderSn,
|
|
|
|
|
|
+ salesReturnBillSn: this.orderSn,
|
|
returnReason: rows ? rows.dispName : '',
|
|
returnReason: rows ? rows.dispName : '',
|
|
returnReasonCode: this.plReturnReason,
|
|
returnReasonCode: this.plReturnReason,
|
|
returnReasonRemarks: this.plReturnRemark
|
|
returnReasonRemarks: this.plReturnRemark
|
|
@@ -481,8 +488,8 @@ export default {
|
|
getOrderDetail () {
|
|
getOrderDetail () {
|
|
salesReturnDetail({ sn: this.orderSn }).then(res => {
|
|
salesReturnDetail({ sn: this.orderSn }).then(res => {
|
|
this.ordeDetail = res.data || null
|
|
this.ordeDetail = res.data || null
|
|
- if(res.data){
|
|
|
|
- this.returnReasonlist = [...this.$store.state.app.goodReturnReason,...this.$store.state.app.defectiveReturnReason]
|
|
|
|
|
|
+ if (res.data) {
|
|
|
|
+ this.returnReasonlist = [...this.$store.state.app.goodReturnReason, ...this.$store.state.app.defectiveReturnReason]
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|