Commit 8a5d8fb3 by Tang

feat: 变更记录

parent 214e424d
......@@ -24,6 +24,11 @@ const searchInternalProduct = (params = {}) => {
return POST(`${Prefix}/office/production/api/search`, params)
}
// 条码查询—查询商品变更记录
const searchCompanyChange = (params = {}) => {
return POST(`${Prefix}/office/codeSearch/api/domesticCodeUpdateList`, params)
}
// 条码查询—自行车企业代码公告查询
const searchBike = (params = {}) => {
return POST(`${Prefix}/office/bikefirm/api/getBikeFirm`, params)
......@@ -39,6 +44,7 @@ export default {
searchGetList,
searchInternal,
searchInternalProduct,
searchCompanyChange,
searchBike,
searchGlossary,
}
......@@ -301,8 +301,8 @@ export default {
changeDetail: [
{
changeDate: '2021-12-11',
before: '公司名称AAAAA',
after: '公司名称BBBBB',
before: '',
after: '',
}
],
changeDialogVisible: false,
......@@ -362,9 +362,18 @@ export default {
}
},
// 查看变更详情
handleCheckChange(row) {
async handleCheckChange(row) {
console.log(row);
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() {
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