|
@@ -6,7 +6,7 @@
|
|
<template slot="subTitle">
|
|
<template slot="subTitle">
|
|
<a id="purchaseReturnEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
<a id="purchaseReturnEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
<span style="margin: 0 15px;color: #666;">供应商名称:箭冠营销中心</span>
|
|
<span style="margin: 0 15px;color: #666;">供应商名称:箭冠营销中心</span>
|
|
- <span style="margin: 0 15px;color: #666;">退货类别:{{detailData&&detailData.goodFlagDictValue||'--'}}</span>
|
|
|
|
|
|
+ <span style="margin: 0 15px;color: #666;">退货类别:{{ detailData&&detailData.goodFlagDictValue||'--' }}</span>
|
|
</template>
|
|
</template>
|
|
<!-- 操作区,位于 title 行的行尾 -->
|
|
<!-- 操作区,位于 title 行的行尾 -->
|
|
<template slot="extra" v-if="$hasPermissions('B_purchaseReturnApplyPrint')">
|
|
<template slot="extra" v-if="$hasPermissions('B_purchaseReturnApplyPrint')">
|
|
@@ -221,8 +221,11 @@
|
|
<div><returnReason size="large" :goodFlag="goodFlag" v-model="plReturnReason"></returnReason></div>
|
|
<div><returnReason size="large" :goodFlag="goodFlag" v-model="plReturnReason"></returnReason></div>
|
|
</div>
|
|
</div>
|
|
<div style="line-height: 24px;margin-top:10px;">
|
|
<div style="line-height: 24px;margin-top:10px;">
|
|
|
|
+ <a-checkbox :checked="showEditRemarks" @change="e => showEditRemarks=!showEditRemarks">是否设置备注</a-checkbox>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="line-height: 24px;margin-top:10px;" v-if="showEditRemarks">
|
|
<div>备注</div>
|
|
<div>备注</div>
|
|
- <div><a-input size="large" :maxLength="10" placeholder="请输入备注(最多50字符)" v-model="plReturnRemark"></a-input></div>
|
|
|
|
|
|
+ <div><a-input size="large" :maxLength="50" placeholder="请输入备注(最多50字符)" v-model="plReturnRemark"></a-input></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</commonModal>
|
|
</commonModal>
|
|
@@ -310,7 +313,8 @@ export default {
|
|
detailData: null,
|
|
detailData: null,
|
|
rowSelectionInfo: null,
|
|
rowSelectionInfo: null,
|
|
plReturnReason: undefined,
|
|
plReturnReason: undefined,
|
|
- plReturnRemark: '',
|
|
|
|
|
|
+ plReturnRemark: undefined,
|
|
|
|
+ showEditRemarks: false,
|
|
showPlModal: false
|
|
showPlModal: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -318,7 +322,8 @@ export default {
|
|
showPlModal (newValue, oldValue) {
|
|
showPlModal (newValue, oldValue) {
|
|
if (!newValue) {
|
|
if (!newValue) {
|
|
this.plReturnReason = undefined
|
|
this.plReturnReason = undefined
|
|
- this.plReturnRemark = ''
|
|
|
|
|
|
+ this.plReturnRemark = undefined
|
|
|
|
+ this.showEditRemarks = false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -326,7 +331,7 @@ export default {
|
|
selNums () {
|
|
selNums () {
|
|
return this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length || 0
|
|
return this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length || 0
|
|
},
|
|
},
|
|
- goodFlag() {
|
|
|
|
|
|
+ goodFlag () {
|
|
return this.detailData && this.detailData.goodFlag || ''
|
|
return this.detailData && this.detailData.goodFlag || ''
|
|
},
|
|
},
|
|
columns () {
|
|
columns () {
|
|
@@ -523,21 +528,21 @@ export default {
|
|
},
|
|
},
|
|
// 已选产品 退货原因修改
|
|
// 已选产品 退货原因修改
|
|
returnReasonChange (val, record, type) {
|
|
returnReasonChange (val, record, type) {
|
|
- console.log(val,record,type)
|
|
|
|
|
|
+ console.log(val, record, type)
|
|
const params = {
|
|
const params = {
|
|
purchaseReturnApplyDetailSn: record.purchaseReturnApplyDetailSn,
|
|
purchaseReturnApplyDetailSn: record.purchaseReturnApplyDetailSn,
|
|
purchaseReturnApplySn: this.$route.params.sn,
|
|
purchaseReturnApplySn: this.$route.params.sn,
|
|
goodFlag: this.goodFlag
|
|
goodFlag: this.goodFlag
|
|
}
|
|
}
|
|
// 退货原因
|
|
// 退货原因
|
|
- if(type == 0){
|
|
|
|
|
|
+ if (type == 0) {
|
|
const rows = this.returnReasonlist.find(item => item.code == val)
|
|
const rows = this.returnReasonlist.find(item => item.code == val)
|
|
- params.returnReasonCode = val||''
|
|
|
|
|
|
+ params.returnReasonCode = val || ''
|
|
params.returnReason = rows ? rows.dispName : ''
|
|
params.returnReason = rows ? rows.dispName : ''
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
// 备注
|
|
// 备注
|
|
params.returnReasonRemarks = val.target.value
|
|
params.returnReasonRemarks = val.target.value
|
|
- if(!params.returnReasonRemarks){
|
|
|
|
|
|
+ if (!params.returnReasonRemarks) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -547,7 +552,7 @@ export default {
|
|
this.$message.success(res.message)
|
|
this.$message.success(res.message)
|
|
this.$refs.chooseTable.refresh()
|
|
this.$refs.chooseTable.refresh()
|
|
} else {
|
|
} else {
|
|
- if(type == 0){
|
|
|
|
|
|
+ if (type == 0) {
|
|
record.returnReasonCode = record.returnReasonBackups
|
|
record.returnReasonCode = record.returnReasonBackups
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -596,14 +601,14 @@ export default {
|
|
getDetail (flag) {
|
|
getDetail (flag) {
|
|
purchaseReturnDetail({ sn: this.$route.params.sn }).then(res => {
|
|
purchaseReturnDetail({ sn: this.$route.params.sn }).then(res => {
|
|
this.detailData = res.data ? res.data : null
|
|
this.detailData = res.data ? res.data : null
|
|
- if(res.data.goodFlag == 'DEFECTIVE_PRODUCT_RETURN'){
|
|
|
|
|
|
+ if (res.data.goodFlag == 'DEFECTIVE_PRODUCT_RETURN') {
|
|
this.returnReasonlist = this.$store.state.app.defectiveReturnReason
|
|
this.returnReasonlist = this.$store.state.app.defectiveReturnReason
|
|
}
|
|
}
|
|
// 良品
|
|
// 良品
|
|
- if(res.data.goodFlag == 'GOOD_PRODUCT_RETURN'){
|
|
|
|
|
|
+ if (res.data.goodFlag == 'GOOD_PRODUCT_RETURN') {
|
|
this.returnReasonlist = this.$store.state.app.goodReturnReason
|
|
this.returnReasonlist = this.$store.state.app.goodReturnReason
|
|
}
|
|
}
|
|
- if(flag){
|
|
|
|
|
|
+ if (flag) {
|
|
this.$refs.chooseTable.refresh(true)
|
|
this.$refs.chooseTable.refresh(true)
|
|
this.resetSearchForm()
|
|
this.resetSearchForm()
|
|
}
|
|
}
|