Commit 8a5d8fb3 by Tang

feat: 变更记录

parent 214e424d
...@@ -24,6 +24,11 @@ const searchInternalProduct = (params = {}) => { ...@@ -24,6 +24,11 @@ const searchInternalProduct = (params = {}) => {
return POST(`${Prefix}/office/production/api/search`, params) return POST(`${Prefix}/office/production/api/search`, params)
} }
// 条码查询—查询商品变更记录
const searchCompanyChange = (params = {}) => {
return POST(`${Prefix}/office/codeSearch/api/domesticCodeUpdateList`, params)
}
// 条码查询—自行车企业代码公告查询 // 条码查询—自行车企业代码公告查询
const searchBike = (params = {}) => { const searchBike = (params = {}) => {
return POST(`${Prefix}/office/bikefirm/api/getBikeFirm`, params) return POST(`${Prefix}/office/bikefirm/api/getBikeFirm`, params)
...@@ -39,6 +44,7 @@ export default { ...@@ -39,6 +44,7 @@ export default {
searchGetList, searchGetList,
searchInternal, searchInternal,
searchInternalProduct, searchInternalProduct,
searchCompanyChange,
searchBike, searchBike,
searchGlossary, searchGlossary,
} }
...@@ -301,8 +301,8 @@ export default { ...@@ -301,8 +301,8 @@ export default {
changeDetail: [ changeDetail: [
{ {
changeDate: '2021-12-11', changeDate: '2021-12-11',
before: '公司名称AAAAA', before: '',
after: '公司名称BBBBB', after: '',
} }
], ],
changeDialogVisible: false, changeDialogVisible: false,
...@@ -362,9 +362,18 @@ export default { ...@@ -362,9 +362,18 @@ export default {
} }
}, },
// 查看变更详情 // 查看变更详情
handleCheckChange(row) { async handleCheckChange(row) {
console.log(row); console.log(row);
this.changeDialogVisible = true const searchGlnRes = await this.$api.search.searchCompanyChange({code: row.code});
console.log(searchGlnRes)
const {data} = searchGlnRes;
if (searchGlnRes.success) {
console.log(data)
this.changeDetail = data
this.changeDialogVisible = true
} else {
alert(searchGlnRes.returnMsg || '网络错误,请稍后再试')
}
}, },
async handleSearchCompany() { async handleSearchCompany() {
this.showResult = true; this.showResult = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment