Commit 601b7c44 by wangzhihui

```

feat(purchase): 新增供应商和产品别名字段显示

- 在采购详情页面新增供应商名称和供应商编码字段
- 在采购详情页面新增产品别名字段
- 在采购列表页面新增供应商名称和供应商编码列
- 在采购列表页面新增产品别名列
- 调整代码格式和缩进
```
1 parent b2837930
...@@ -65,8 +65,13 @@ export default { ...@@ -65,8 +65,13 @@ export default {
label: '产品名称', label: '产品名称',
value: 'upgradeGoodsName' value: 'upgradeGoodsName'
}, },
{
label: '供应商名称',
value: 'thirdPartyName'
},
{ label: '产品编码', value: 'type' }, { label: '产品编码', value: 'type' },
{ label: '规格', value: 'specificationData' }, { label: '规格', value: 'specificationData' },
{ label: '供应商编码', value: 'thirdPartyCode' },
{ {
label: '采购数量', label: '采购数量',
value: 'goodsNumber', value: 'goodsNumber',
...@@ -97,6 +102,10 @@ export default { ...@@ -97,6 +102,10 @@ export default {
} }
}, },
{ {
label: '产品别名',
value: 'purchaseGoodsName'
},
{
label: '单价', label: '单价',
value: 'upgradePurchasePrice', value: 'upgradePurchasePrice',
formatter: row => { formatter: row => {
...@@ -110,7 +119,7 @@ export default { ...@@ -110,7 +119,7 @@ export default {
return '¥' + row.goodsTotalPrice return '¥' + row.goodsTotalPrice
} }
}, },
{ {
label: '备注', label: '备注',
value: 'remark' value: 'remark'
} }
...@@ -158,7 +167,7 @@ export default { ...@@ -158,7 +167,7 @@ export default {
const debouncedSearch = utils.debounce( const debouncedSearch = utils.debounce(
val => { val => {
this.StockList = [] this.StockList = []
this.keyword = val this.keyword = val
this.page.currentPage = 1 this.page.currentPage = 1
this.getList() this.getList()
}, },
......
...@@ -90,8 +90,10 @@ export default { ...@@ -90,8 +90,10 @@ export default {
detailVisible: false, detailVisible: false,
tableColumns: [ tableColumns: [
{ label: '产品名称', prop: 'upgradeGoodsName', width: '120px' }, { label: '产品名称', prop: 'upgradeGoodsName', width: '120px' },
{ label: '供应商名称', prop: 'thirdPartyName', width: '120px' },
{ label: '产品编码', prop: 'type', width: '100px' }, { label: '产品编码', prop: 'type', width: '100px' },
{ label: '规格', prop: 'specificationData', width: '90px' }, { label: '规格', prop: 'specificationData', width: '90px' },
{ label: '供应商编码', prop: 'thirdPartyCode', width: '90px' },
{ {
label: '采购数量', label: '采购数量',
prop: 'goodsNumber', prop: 'goodsNumber',
...@@ -128,6 +130,7 @@ export default { ...@@ -128,6 +130,7 @@ export default {
return (row.purchaseNumber || 0) + unit return (row.purchaseNumber || 0) + unit
} }
}, },
{ label: '产品别名', prop: 'purchaseGoodsName', width: '100px' },
{ {
label: '单价', label: '单价',
prop: 'upgradePurchasePrice', prop: 'upgradePurchasePrice',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!