|
@@ -1,16 +1,30 @@
|
|
<template>
|
|
<template>
|
|
- <div class="salesReturnCheck-wrap">
|
|
|
|
|
|
+ <div class="custConfirm-wrap">
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
- <a-page-header :ghost="false" :backIcon="false" class="salesReturnCheck-back" >
|
|
|
|
|
|
+ <a-page-header :ghost="false" :backIcon="false" class="custConfirm-back" >
|
|
<!-- 自定义的二级文字标题 -->
|
|
<!-- 自定义的二级文字标题 -->
|
|
<template slot="subTitle">
|
|
<template slot="subTitle">
|
|
- <a id="salesReturnCheck-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>
|
|
</template>
|
|
</template>
|
|
</a-page-header>
|
|
</a-page-header>
|
|
- <a-card size="small" :bordered="false" class="salesReturnCheck-cont">
|
|
|
|
- <div>
|
|
|
|
- <a-button type="primary" :loading="loading" class="button-error" @click="backStock">批量返库</a-button>
|
|
|
|
|
|
+ <a-card size="small" :bordered="false" class="custConfirm-cont">
|
|
|
|
+ <a-form layout="inline" style="margin-bottom:10px;" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
|
+ <a-form-item label="产品编码" prop="productCode">
|
|
|
|
+ <a-input id="custConfirm-productCode" v-model.trim="queryParam.productCode" placeholder="请输入产品编码" allowClear />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ <a-form-item label="产品名称" prop="productName">
|
|
|
|
+ <a-input id="custConfirm-productName" v-model.trim="queryParam.productName" placeholder="请输入产品名称" allowClear />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ <a-form-item>
|
|
|
|
+ <a-button type="primary" class="button-info" @click="$refs.table.refresh(true)" :disabled="disabled" id="custConfirm-refresh">查询</a-button>
|
|
|
|
+ <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="custConfirm-reset">重置</a-button>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-form>
|
|
|
|
+ <div style="border-top:1px solid #eee;padding-top:10px;">
|
|
|
|
+ <a-button type="primary" :loading="loading" class="button-info" @click="handleAdd">新增产品</a-button>
|
|
|
|
+ <a-button type="primary" :loading="loading" class="button-error" @click="handlePlss">批量设置退货单价</a-button>
|
|
|
|
+ <div style="float:right;color:#999;margin-top:8px;">说明:红色行表示收货时新增的产品;黄色表示客服确认时新增的产品</div>
|
|
</div>
|
|
</div>
|
|
<!-- 已选配件列表 -->
|
|
<!-- 已选配件列表 -->
|
|
<s-table
|
|
<s-table
|
|
@@ -26,7 +40,7 @@
|
|
:scroll="{ y: tableHeight }"
|
|
:scroll="{ y: tableHeight }"
|
|
:defaultLoadData="false"
|
|
:defaultLoadData="false"
|
|
bordered>
|
|
bordered>
|
|
- <!-- 返库数量 -->
|
|
|
|
|
|
+ <!-- 仓库实收数量 -->
|
|
<template slot="backStockQty" slot-scope="text, record">
|
|
<template slot="backStockQty" slot-scope="text, record">
|
|
<a-input-number
|
|
<a-input-number
|
|
id="salesReturn-backStockQty"
|
|
id="salesReturn-backStockQty"
|
|
@@ -39,6 +53,25 @@
|
|
@blur="e => onCellBlur(e.target.value, record)"
|
|
@blur="e => onCellBlur(e.target.value, record)"
|
|
style="width: 100%;" />
|
|
style="width: 100%;" />
|
|
</template>
|
|
</template>
|
|
|
|
+ <!-- 退货原因 -->
|
|
|
|
+ <template slot="returnYy" slot-scope="text, record">
|
|
|
|
+ <v-select
|
|
|
|
+ style="width:100%;"
|
|
|
|
+ v-model="queryParam.billStatus"
|
|
|
|
+ ref="billStatus"
|
|
|
|
+ code="SALES_RETURN_BILL_STATUS"
|
|
|
|
+ placeholder="请选择业退货原因"
|
|
|
|
+ allowClear></v-select>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 操作 -->
|
|
|
|
+ <template slot="action" slot-scope="text, record">
|
|
|
|
+ <a-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="link"
|
|
|
|
+ class="button-warning"
|
|
|
|
+ @click="handleDel(record)"
|
|
|
|
+ id="salesReturn-eexamine-btn">删除</a-button>
|
|
|
|
+ </template>
|
|
</s-table>
|
|
</s-table>
|
|
</a-card>
|
|
</a-card>
|
|
</a-spin>
|
|
</a-spin>
|
|
@@ -50,7 +83,7 @@
|
|
type="primary"
|
|
type="primary"
|
|
class="button-primary"
|
|
class="button-primary"
|
|
@click="handleSubmit()"
|
|
@click="handleSubmit()"
|
|
- id="salesReturn-handleSubmit">提交</a-button>
|
|
|
|
|
|
+ id="salesReturn-handleSubmit">审核通过</a-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -107,7 +140,11 @@ export default {
|
|
return data
|
|
return data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- rowSelectionInfo: null
|
|
|
|
|
|
+ rowSelectionInfo: null,
|
|
|
|
+ queryParam: {
|
|
|
|
+ productCode: '',
|
|
|
|
+ productName: ''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -116,15 +153,18 @@ export default {
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
{ title: '产品编码', dataIndex: 'productEntity.code', align: 'center', width: '23%', customRender: function (text) { return text || '--' } },
|
|
{ title: '产品编码', dataIndex: 'productEntity.code', align: 'center', width: '23%', customRender: function (text) { return text || '--' } },
|
|
{ title: '产品名称', dataIndex: 'productEntity.name', width: '25%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '产品名称', dataIndex: 'productEntity.name', width: '25%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
- { title: '退货数量', dataIndex: 'qty', align: 'center', width: '10%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
|
- { title: '坏件数量', dataIndex: 'badQty', align: 'center', width: '10%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
|
- { title: '返库数量', dataIndex: 'backStockQty', width: '10%', align: 'center', scopedSlots: { customRender: 'backStockQty' } },
|
|
|
|
- { title: '单位', dataIndex: 'productEntity.unit', width: '8%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
|
- // { title: '售价', dataIndex: 'price', align: 'center', width: '10%', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
|
|
|
|
+ { title: '单位', dataIndex: 'productEntity.unit', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '申请退货数量', dataIndex: 'qty', align: 'center', width: '10%', scopedSlots: { customRender: 'backStockQty' } },
|
|
|
|
+ { title: '仓库实收数量', dataIndex: 'qty', align: 'center', width: '10%', scopedSlots: { customRender: 'backStockQty' } },
|
|
|
|
+ { title: '坏件数量', dataIndex: 'qty', align: 'center', width: '10%', scopedSlots: { customRender: 'backStockQty' } },
|
|
|
|
+ { title: '良品数量', dataIndex: 'qty', align: 'center', width: '10%', scopedSlots: { customRender: 'backStockQty' } },
|
|
|
|
+ { title: '返库数量', dataIndex: 'qty', align: 'center', width: '10%', scopedSlots: { customRender: 'backStockQty' } },
|
|
|
|
+ { title: '实际退货单价', dataIndex: 'badQty', align: 'center', width: '10%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
|
+ { title: '实际退货金额', dataIndex: 'badQty', align: 'center', width: '10%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
|
+ { title: '退货单价说明', dataIndex: 'backStockQty', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
+ { title: '退货原因', dataIndex: 'backStockQty', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
+ { title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
]
|
|
]
|
|
- if (this.$hasPermissions('B_isShowPrice')) { // 售价权限
|
|
|
|
- arr.splice(7, 0, { title: '售价', dataIndex: 'price', align: 'center', width: '10%', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|
|
|
|
- }
|
|
|
|
return arr
|
|
return arr
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -135,10 +175,18 @@ export default {
|
|
},
|
|
},
|
|
// 返回
|
|
// 返回
|
|
handleBack () {
|
|
handleBack () {
|
|
- this.$router.push({ path: '/salesManagement/salesReturn/list', query: { closeLastOldTab: true } })
|
|
|
|
|
|
+ this.$router.push({ name: 'receiveCheckList' })
|
|
|
|
+ },
|
|
|
|
+ // 添加
|
|
|
|
+ handleAdd (row) {
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ // 删除
|
|
|
|
+ handleDel (row) {
|
|
|
|
+
|
|
},
|
|
},
|
|
// 批量返库
|
|
// 批量返库
|
|
- backStock () {
|
|
|
|
|
|
+ handlePlss () {
|
|
const _this = this
|
|
const _this = this
|
|
if (!_this.rowSelectionInfo || (_this.rowSelectionInfo && _this.rowSelectionInfo.selectedRowKeys.length < 1)) {
|
|
if (!_this.rowSelectionInfo || (_this.rowSelectionInfo && _this.rowSelectionInfo.selectedRowKeys.length < 1)) {
|
|
_this.$message.warning('请先选择产品!')
|
|
_this.$message.warning('请先选择产品!')
|
|
@@ -146,7 +194,7 @@ export default {
|
|
}
|
|
}
|
|
this.$confirm({
|
|
this.$confirm({
|
|
title: '提示',
|
|
title: '提示',
|
|
- content: '确认要批量返库吗?',
|
|
|
|
|
|
+ content: '确认要批量实收吗?',
|
|
centered: true,
|
|
centered: true,
|
|
onOk () {
|
|
onOk () {
|
|
const obj = []
|
|
const obj = []
|
|
@@ -156,7 +204,6 @@ export default {
|
|
backStockQty: item.qty
|
|
backStockQty: item.qty
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- console.log(obj)
|
|
|
|
_this.submitCheck(obj)
|
|
_this.submitCheck(obj)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -243,7 +290,7 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|
|
<style lang="less">
|
|
- .salesReturnCheck-wrap{
|
|
|
|
|
|
+ .custConfirm-wrap{
|
|
position: relative;
|
|
position: relative;
|
|
height: 100%;
|
|
height: 100%;
|
|
padding-bottom: 51px;
|
|
padding-bottom: 51px;
|
|
@@ -252,7 +299,7 @@ export default {
|
|
overflow-y: scroll;
|
|
overflow-y: scroll;
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
- .salesReturnCheck-cont{
|
|
|
|
|
|
+ .custConfirm-cont{
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
.sTable{
|
|
.sTable{
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|