|
@@ -1,4 +1,4 @@
|
|
|
-import { physics } from '@/api/scan/config'
|
|
|
+import { venders } from '@/api/scan/config'
|
|
|
import http from '@/api/scan/httpUtil'
|
|
|
|
|
|
/**** 修改 */
|
|
@@ -6,110 +6,110 @@ import http from '@/api/scan/httpUtil'
|
|
|
|
|
|
//生产商修改
|
|
|
function updateVenderManufacturer(param, success) {
|
|
|
- let url = `${physics}/venders/manufacturer/update`
|
|
|
+ let url = `${venders}/manufacturer/update`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
//保险商修改
|
|
|
function updateVenderInsurer(param, success) {
|
|
|
- let url = `${physics}/venders/insurance/update`
|
|
|
+ let url = `${venders}/insurance/update`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
//保险商修改
|
|
|
function updateVenderMaintainer(param, success) {
|
|
|
- let url = `${physics}/venders/maintainer/update`
|
|
|
+ let url = `${venders}/maintainer/update`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
//供应商修改
|
|
|
function updateVenderSupplier(param, success) {
|
|
|
- let url = `${physics}/venders/supplier/update`
|
|
|
+ let url = `${venders}/supplier/update`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
//品牌修改
|
|
|
function updateVenderBrand(param, success) {
|
|
|
- let url = `${physics}/venders/manufacturer/brand/update`
|
|
|
+ let url = `${venders}/manufacturer/brand/update`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
//型号修改
|
|
|
function updateVenderSpecification(param, success) {
|
|
|
- let url = `${physics}/venders/manufacturer/specification/update`
|
|
|
+ let url = `${venders}/manufacturer/specification/update`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
/** 获取 */
|
|
|
function getList(param, success) {
|
|
|
- let url = `${physics}/venders/basic/vender/query`
|
|
|
+ let url = `${venders}/basic/vender/query`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
function getManufacturer(param, success) {
|
|
|
- let url = `${physics}/venders/manufacturer/brand/findOne`
|
|
|
+ let url = `${venders}/manufacturer/brand/findOne`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
function getSpecification(param, success) {
|
|
|
- let url = `${physics}/venders/manufacturer/specification/findOne`
|
|
|
+ let url = `${venders}/manufacturer/specification/findOne`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
/** 创建 */
|
|
|
//创建品牌
|
|
|
function createBrand(param, success) {
|
|
|
- let url = `${physics}/venders/manufacturer/brand/create`
|
|
|
+ let url = `${venders}/manufacturer/brand/create`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
//创建生产商
|
|
|
function createManufacturer(param, success) {
|
|
|
- let url = `${physics}/venders/manufacturer/create`
|
|
|
+ let url = `${venders}/manufacturer/create`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
//创建供应商
|
|
|
function createSupplier(param, success) {
|
|
|
- let url = `${physics}/venders/supplier/create`
|
|
|
+ let url = `${venders}/supplier/create`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
//创建保险商
|
|
|
function createInsurance(param, success) {
|
|
|
- let url = `${physics}/venders/insurance/create`
|
|
|
+ let url = `${venders}/insurance/create`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
//创建维修商
|
|
|
function createMaintainance(param, success) {
|
|
|
- let url = `${physics}/venders/maintainance/create`
|
|
|
+ let url = `${venders}/maintainance/create`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
//创建产品
|
|
|
function createProduct(param, success) {
|
|
|
- let url = `${physics}/venders/manufacturer/product/create`
|
|
|
+ let url = `${venders}/manufacturer/product/create`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
//创建型号
|
|
|
function createSpecification(param, success) {
|
|
|
- let url = `${physics}/venders/manufacturer/specification/create`
|
|
|
+ let url = `${venders}/manufacturer/specification/create`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
/*** 联系人信息 */
|
|
|
//添加修改维修商联系信息
|
|
|
function updateMaintainance(param, success) {
|
|
|
- let url = `${physics}/venders/maintainance/link/create`
|
|
|
+ let url = `${venders}/maintainance/link/create`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
//修改创建供应商联系人
|
|
|
function updateSupplier(param, success) {
|
|
|
- let url = `${physics}/venders/supplier/link/create`
|
|
|
+ let url = `${venders}/supplier/link/create`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
//修改创建保险商联系人
|
|
|
function updateInsurance(param, success) {
|
|
|
- let url = `${physics}/venders/insurance/link/create`
|
|
|
+ let url = `${venders}/insurance/link/create`
|
|
|
http.postJson(url, param, success)
|
|
|
}
|
|
|
|