|
@@ -187,12 +187,13 @@ export default {
|
|
dataSource: [],
|
|
dataSource: [],
|
|
productForm: {
|
|
productForm: {
|
|
productName: '',
|
|
productName: '',
|
|
- productCode: ''
|
|
|
|
|
|
+ productCode: '',
|
|
|
|
+ orderBy: 'sales_bill_detail.CREATE_DATE desc'
|
|
},
|
|
},
|
|
// 表头
|
|
// 表头
|
|
columns: [
|
|
columns: [
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
- { title: '产品编码', dataIndex: 'dealerProductEntity.code', width: '13%', scopedSlots: { customRender: 'productCode' }, align: 'center', sorter: true },
|
|
|
|
|
|
+ { title: '产品编码', dataIndex: 'dealerProductEntity.code', width: '13%', scopedSlots: { customRender: 'productCode' }, align: 'center' },
|
|
{ title: '产品名称', dataIndex: 'dealerProductEntity.name', width: '13%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '产品名称', dataIndex: 'dealerProductEntity.name', width: '13%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '原厂编码', dataIndex: 'dealerProductEntity.origCode', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '原厂编码', dataIndex: 'dealerProductEntity.origCode', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '品牌', dataIndex: 'dealerProductEntity.productBrandName', width: '8%', align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
|
|
{ title: '品牌', dataIndex: 'dealerProductEntity.productBrandName', width: '8%', align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
|
|
@@ -333,7 +334,8 @@ export default {
|
|
resetForm () {
|
|
resetForm () {
|
|
this.productForm = {
|
|
this.productForm = {
|
|
productName: '',
|
|
productName: '',
|
|
- productCode: ''
|
|
|
|
|
|
+ productCode: '',
|
|
|
|
+ orderBy: 'sales_bill_detail.CREATE_DATE desc'
|
|
}
|
|
}
|
|
this.$refs.table.refresh()
|
|
this.$refs.table.refresh()
|
|
},
|
|
},
|
|
@@ -396,7 +398,8 @@ export default {
|
|
_this.resetSearchForm(true)
|
|
_this.resetSearchForm(true)
|
|
_this.productForm = {
|
|
_this.productForm = {
|
|
productName: '',
|
|
productName: '',
|
|
- productCode: ''
|
|
|
|
|
|
+ productCode: '',
|
|
|
|
+ orderBy: 'sales_bill_detail.CREATE_DATE desc'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
_this.$message.info(res.message)
|
|
_this.$message.info(res.message)
|
|
@@ -440,14 +443,16 @@ export default {
|
|
// this.$message.info('该产品已在当前销售单中存在!')
|
|
// this.$message.info('该产品已在当前销售单中存在!')
|
|
this.productForm = {
|
|
this.productForm = {
|
|
productName: '',
|
|
productName: '',
|
|
- productCode: hasRow.dealerProductEntity && hasRow.dealerProductEntity.code || ''
|
|
|
|
|
|
+ productCode: hasRow.dealerProductEntity && hasRow.dealerProductEntity.code || '',
|
|
|
|
+ orderBy: 'sales_bill_detail.CREATE_DATE desc'
|
|
}
|
|
}
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
return
|
|
return
|
|
} else {
|
|
} else {
|
|
this.productForm = {
|
|
this.productForm = {
|
|
productName: '',
|
|
productName: '',
|
|
- productCode: ''
|
|
|
|
|
|
+ productCode: '',
|
|
|
|
+ orderBy: 'sales_bill_detail.CREATE_DATE desc'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|