|
@@ -56,6 +56,17 @@
|
|
></v-select>
|
|
></v-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="产品类别">
|
|
|
|
+ <v-select
|
|
|
|
+ v-model="queryParam.returnProductType"
|
|
|
|
+ ref="returnProductType"
|
|
|
|
+ id="purchaseReturnList-returnProductType"
|
|
|
|
+ code="RETURN_PRODUCT_TYPE"
|
|
|
|
+ placeholder="请选择产品类别"
|
|
|
|
+ allowClear></v-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
</template>
|
|
</template>
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="purchaseReturnList-refresh">查询</a-button>
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="purchaseReturnList-refresh">查询</a-button>
|
|
@@ -157,6 +168,18 @@
|
|
placeholder="请选择退货类别"
|
|
placeholder="请选择退货类别"
|
|
allowClear></v-select>
|
|
allowClear></v-select>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div style="display:flex;align-items: center;padding-top: 20px;">
|
|
|
|
+ <span style="color:red;">*</span>
|
|
|
|
+ <span>产品类别:</span>
|
|
|
|
+ <v-select
|
|
|
|
+ id="purchaseReturnList-goodFlag-btn"
|
|
|
|
+ style="width:250px;"
|
|
|
|
+ showType="radio"
|
|
|
|
+ v-model="returnProductType"
|
|
|
|
+ code="RETURN_PRODUCT_TYPE"
|
|
|
|
+ placeholder="请选择产品类别"
|
|
|
|
+ allowClear></v-select>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</common-modal>
|
|
</common-modal>
|
|
</a-card>
|
|
</a-card>
|
|
@@ -193,9 +216,11 @@ export default {
|
|
billSource: undefined, // 单据来源
|
|
billSource: undefined, // 单据来源
|
|
goodFlag: undefined, // 退货类别
|
|
goodFlag: undefined, // 退货类别
|
|
beginAuditDate: '', // 审核开始时间
|
|
beginAuditDate: '', // 审核开始时间
|
|
- endAuditDate: '' // 审核结束时间
|
|
|
|
|
|
+ endAuditDate: '', // 审核结束时间
|
|
|
|
+ returnProductType: undefined// 产品类别
|
|
},
|
|
},
|
|
goodFlag: 'DEFECTIVE_PRODUCT_RETURN', // 退货类别默认值
|
|
goodFlag: 'DEFECTIVE_PRODUCT_RETURN', // 退货类别默认值
|
|
|
|
+ returnProductType: undefined, // 产品类别
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
tableHeight: 0, // 表格高度
|
|
tableHeight: 0, // 表格高度
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
@@ -228,6 +253,7 @@ export default {
|
|
{ title: '采购退货申请单号', scopedSlots: { customRender: 'purchaseReturnApplyNo' }, width: '14%', align: 'center' },
|
|
{ title: '采购退货申请单号', scopedSlots: { customRender: 'purchaseReturnApplyNo' }, width: '14%', align: 'center' },
|
|
{ title: '供应商', dataIndex: 'returnTargetName', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '供应商', dataIndex: 'returnTargetName', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '退货类别', dataIndex: 'goodFlagDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '退货类别', dataIndex: 'goodFlagDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '产品类别', dataIndex: 'returnProductTypeDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '申请退货数量', dataIndex: 'totalInitialQty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '申请退货数量', dataIndex: 'totalInitialQty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '总公司实收数量', dataIndex: 'totalReceiveQty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '总公司实收数量', dataIndex: 'totalReceiveQty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '业务状态', dataIndex: 'billStatusDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '业务状态', dataIndex: 'billStatusDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
@@ -300,7 +326,7 @@ export default {
|
|
handleEdit (row) {
|
|
handleEdit (row) {
|
|
const _this = this
|
|
const _this = this
|
|
if (row) { // 编辑
|
|
if (row) { // 编辑
|
|
- _this.$router.push({ name: 'purchaseReturnApplyFormEdit', params: { sn: row.purchaseReturnApplySn } })
|
|
|
|
|
|
+ _this.$router.push({ name: 'purchaseReturnApplyFormEdit', params: { sn: row.purchaseReturnApplySn, val: row.returnProductType } })
|
|
} else { // 新增
|
|
} else { // 新增
|
|
_this.openTipsModal = true
|
|
_this.openTipsModal = true
|
|
}
|
|
}
|
|
@@ -315,7 +341,7 @@ export default {
|
|
const _this = this
|
|
const _this = this
|
|
if (_this.goodFlag) {
|
|
if (_this.goodFlag) {
|
|
_this.spinning = true
|
|
_this.spinning = true
|
|
- purchaseReturnSave({ goodFlag: _this.goodFlag }).then(res => {
|
|
|
|
|
|
+ purchaseReturnSave({ goodFlag: _this.goodFlag, returnProductType: _this.returnProductType }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
const data = res.data
|
|
const data = res.data
|
|
_this.spinning = false
|
|
_this.spinning = false
|
|
@@ -323,7 +349,7 @@ export default {
|
|
// 重置查询条件
|
|
// 重置查询条件
|
|
_this.resetData()
|
|
_this.resetData()
|
|
// 进入编辑页面
|
|
// 进入编辑页面
|
|
- _this.$router.push({ name: 'purchaseReturnApplyFormEdit', params: { sn: data.purchaseReturnApplySn } })
|
|
|
|
|
|
+ _this.$router.push({ name: 'purchaseReturnApplyFormEdit', params: { sn: data.purchaseReturnApplySn, val: data.returnProductType } })
|
|
} else {
|
|
} else {
|
|
_this.spinning = false
|
|
_this.spinning = false
|
|
}
|
|
}
|