feat(product): 移除进销存相关接口
This commit is contained in:
parent
a6f0ffef45
commit
589d509fd2
|
@ -9,56 +9,56 @@ import request from '@/utils/request'
|
||||||
export function findAll() {
|
export function findAll() {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/specsType/find-all',
|
url: '/sale/manage/specsType/find-all',
|
||||||
method: 'get',
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 查询所有规格jxc
|
// 查询所有规格jxc
|
||||||
export function findAllJxc() {
|
export function findAllJxc() {
|
||||||
return request({
|
return request({
|
||||||
url: 'scm/manage/product-bas/find-all',
|
url: 'scm/manage/product-bas/find-all',
|
||||||
method: 'get',
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 产品属性枚举
|
// 产品属性枚举
|
||||||
export function productType() {
|
export function productType() {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/pub/enums/get-product-attr-type',
|
url: '/system/pub/enums/get-product-attr-type',
|
||||||
method: 'get',
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 发货类型
|
// 发货类型
|
||||||
export function getShipping() {
|
export function getShipping() {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/pub/enums/get-shipping-channel',
|
url: '/system/pub/enums/get-shipping-channel',
|
||||||
method: 'get',
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 单位
|
// 单位
|
||||||
export function getUnit() {
|
export function getUnit() {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/pub/enums/get-unit',
|
url: '/system/pub/enums/get-unit',
|
||||||
method: 'get',
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 销售模式
|
// 销售模式
|
||||||
export function saleModel() {
|
export function saleModel() {
|
||||||
return request({
|
return request({
|
||||||
url: 'system/pub/enums/sale-model',
|
url: 'system/pub/enums/sale-model',
|
||||||
method: 'get',
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 所属分类
|
// 所属分类
|
||||||
export function classifyAll() {
|
export function classifyAll() {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/classify/find-all',
|
url: '/sale/manage/classify/find-all',
|
||||||
method: 'get',
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 运输方式
|
// 运输方式
|
||||||
export function transportType() {
|
export function transportType() {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/pub/enums/manager-transport-type',
|
url: '/system/pub/enums/manager-transport-type',
|
||||||
method: 'get',
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 产品新增
|
// 产品新增
|
||||||
|
@ -129,14 +129,14 @@ export function productListJxc(params) {
|
||||||
export function productDel(id) {
|
export function productDel(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/product/' + id,
|
url: '/sale/manage/product/' + id,
|
||||||
method: 'delete',
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 删除产品jxc
|
// 删除产品jxc
|
||||||
export function productDelJxc(id) {
|
export function productDelJxc(id) {
|
||||||
return request({
|
return request({
|
||||||
url: 'scm/manage/product-bas/' + id,
|
url: 'scm/manage/product-bas/' + id,
|
||||||
method: 'delete',
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 产品详情
|
// 产品详情
|
||||||
|
@ -215,7 +215,7 @@ export function classifyUpdate(data) {
|
||||||
export function classifyDel(id) {
|
export function classifyDel(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/classify/' + id,
|
url: '/sale/manage/classify/' + id,
|
||||||
method: 'delete',
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 规格类型列表
|
// 规格类型列表
|
||||||
|
@ -254,7 +254,7 @@ export function specsTypeUpdate(data) {
|
||||||
export function specsTypeDel(id) {
|
export function specsTypeDel(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/specsType/' + id,
|
url: '/sale/manage/specsType/' + id,
|
||||||
method: 'delete',
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 导出产品分类
|
// 导出产品分类
|
||||||
|
@ -285,7 +285,7 @@ export function areaClassIfyList(params) {
|
||||||
export function areaClassifyDel(id) {
|
export function areaClassifyDel(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/area-classify/' + id,
|
url: '/sale/manage/area-classify/' + id,
|
||||||
method: 'delete',
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -325,7 +325,7 @@ export function getAreaClassify(params) {
|
||||||
export function getEWaresPermissionTypeList() {
|
export function getEWaresPermissionTypeList() {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/pub/enums/getEWaresPermissionTypeList',
|
url: '/system/pub/enums/getEWaresPermissionTypeList',
|
||||||
method: 'get',
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 根据id查询商品规格
|
// 根据id查询商品规格
|
||||||
|
@ -364,14 +364,14 @@ export function get_hierarchy_list(params) {
|
||||||
export function presale_status() {
|
export function presale_status() {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/pub/enums/presale-status',
|
url: '/system/pub/enums/presale-status',
|
||||||
method: 'get',
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 查询供应方式
|
// 查询供应方式
|
||||||
export function supply_way() {
|
export function supply_way() {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/pub/enums/supply-way',
|
url: '/system/pub/enums/supply-way',
|
||||||
method: 'get',
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 标签分类
|
// 标签分类
|
||||||
|
@ -431,7 +431,7 @@ export function waresList(params) {
|
||||||
export function waresDel(id) {
|
export function waresDel(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/wares/' + id,
|
url: '/sale/manage/wares/' + id,
|
||||||
method: 'delete',
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 商品新增
|
// 商品新增
|
||||||
|
@ -496,7 +496,7 @@ export function postageList(params) {
|
||||||
export function postageDel(id) {
|
export function postageDel(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/postage/' + id,
|
url: '/sale/manage/postage/' + id,
|
||||||
method: 'delete',
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 计费方式
|
// 计费方式
|
||||||
|
@ -527,7 +527,7 @@ export function findAllArea(params) {
|
||||||
export function orderType() {
|
export function orderType() {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/pub/enums/special-area',
|
url: '/system/pub/enums/special-area',
|
||||||
method: 'get',
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -555,7 +555,7 @@ export function postageDetail(params) {
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//获取产品编号
|
// 获取产品编号
|
||||||
export function getProductCode(params) {
|
export function getProductCode(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/product/create-product-code',
|
url: '/sale/manage/product/create-product-code',
|
||||||
|
@ -563,7 +563,7 @@ export function getProductCode(params) {
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//获取产品编号
|
// 获取产品编号
|
||||||
export function getWaresCode(params) {
|
export function getWaresCode(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/wares/create-wares-code',
|
url: '/sale/manage/wares/create-wares-code',
|
||||||
|
@ -571,7 +571,7 @@ export function getWaresCode(params) {
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//获取最大排序
|
// 获取最大排序
|
||||||
export function getMaxSort(params) {
|
export function getMaxSort(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/product/get-max-sort',
|
url: '/sale/manage/product/get-max-sort',
|
||||||
|
@ -579,7 +579,7 @@ export function getMaxSort(params) {
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//单位列表
|
// 单位列表
|
||||||
export function unitList(params) {
|
export function unitList(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/unit/list',
|
url: '/sale/manage/unit/list',
|
||||||
|
@ -587,7 +587,7 @@ export function unitList(params) {
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//单位新增
|
// 单位新增
|
||||||
export function unitSave(data) {
|
export function unitSave(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/unit/save',
|
url: '/sale/manage/unit/save',
|
||||||
|
@ -595,7 +595,7 @@ export function unitSave(data) {
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//单位编辑
|
// 单位编辑
|
||||||
export function unitUpdate(data) {
|
export function unitUpdate(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/unit/update',
|
url: '/sale/manage/unit/update',
|
||||||
|
@ -603,7 +603,7 @@ export function unitUpdate(data) {
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//单位详情
|
// 单位详情
|
||||||
export function unitDetail(params) {
|
export function unitDetail(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/unit/detail',
|
url: '/sale/manage/unit/detail',
|
||||||
|
@ -615,11 +615,11 @@ export function unitDetail(params) {
|
||||||
export function unitDel(id) {
|
export function unitDel(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/unit/' + id,
|
url: '/sale/manage/unit/' + id,
|
||||||
method: 'delete',
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//单位data
|
// 单位data
|
||||||
export function unitAll(params) {
|
export function unitAll(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sale/manage/unit/find-all',
|
url: '/sale/manage/unit/find-all',
|
||||||
|
@ -741,14 +741,7 @@ export function productFind(params) {
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 产品基本信息1
|
|
||||||
export function productFind1(params) {
|
|
||||||
return request({
|
|
||||||
url: 'scm/manage/product-bas/find-by-bas-all',
|
|
||||||
method: 'get',
|
|
||||||
params
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// 供应商商品列表
|
// 供应商商品列表
|
||||||
export function thProductList(params) {
|
export function thProductList(params) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
@ -366,70 +366,7 @@
|
||||||
{{ '确认' }}</el-button>
|
{{ '确认' }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 产品弹框 -->
|
|
||||||
<el-dialog
|
|
||||||
:title="'添加'"
|
|
||||||
:visible.sync="dialogVisible"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
width="50%"
|
|
||||||
center
|
|
||||||
:before-close="handleClose1"
|
|
||||||
>
|
|
||||||
<div class="cpHeight">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="22">
|
|
||||||
<el-input
|
|
||||||
v-model="select.query"
|
|
||||||
clearable
|
|
||||||
:placeholder="'请输入'"
|
|
||||||
prefix-icon="el-icon-search"
|
|
||||||
@keyup.enter.native="getProduct"
|
|
||||||
/>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="2">
|
|
||||||
<el-button type="primary" size="small" @click="getProduct">
|
|
||||||
{{ '搜索' }}</el-button>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<div style="height: 10px" />
|
|
||||||
<el-table
|
|
||||||
ref="multipleTable"
|
|
||||||
:data="productList"
|
|
||||||
height="500px"
|
|
||||||
style="width: 100%"
|
|
||||||
:header-cell-style="{ background: '#EEEEEE' }"
|
|
||||||
:row-class-name="tableRowClassName"
|
|
||||||
@select-all="onSelectAll"
|
|
||||||
@select="selected"
|
|
||||||
>
|
|
||||||
<el-table-column type="selection" width="55" />
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="productName"
|
|
||||||
:label="'产品名称'"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="productCode"
|
|
||||||
:label="'产品编号'"
|
|
||||||
/>
|
|
||||||
<el-table-column align="center" prop="unitStr" :label="'单位'" />
|
|
||||||
</el-table>
|
|
||||||
</div>
|
|
||||||
<pagination
|
|
||||||
v-show="total > 0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="queryParams.pageNum"
|
|
||||||
:limit.sync="queryParams.pageSize"
|
|
||||||
@pagination="getProduct"
|
|
||||||
/>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="handleClose1">{{ '取消' }}</el-button>
|
|
||||||
<el-button type="primary" @click="sureProduct">{{
|
|
||||||
'确认'
|
|
||||||
}}</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
<!-- 规格 -->
|
<!-- 规格 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="'添加'"
|
:title="'添加'"
|
||||||
|
@ -659,7 +596,7 @@ export default {
|
||||||
// 获取排序
|
// 获取排序
|
||||||
this.getSort()
|
this.getSort()
|
||||||
// 获取产品
|
// 获取产品
|
||||||
this.getProduct()
|
// this.getProduct()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
sureProduct() {
|
sureProduct() {
|
||||||
|
@ -682,12 +619,7 @@ export default {
|
||||||
opProduct() {
|
opProduct() {
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
},
|
},
|
||||||
getProduct() {
|
|
||||||
api.productFind1(Object.assign({}, this.queryParams, this.select)).then((res) => {
|
|
||||||
this.productList = res.rows
|
|
||||||
this.total = res.total
|
|
||||||
})
|
|
||||||
},
|
|
||||||
getRepurchaseType() {
|
getRepurchaseType() {
|
||||||
api.repurchaseType().then((res) => {
|
api.repurchaseType().then((res) => {
|
||||||
this.repurchaseTypeList = res.data
|
this.repurchaseTypeList = res.data
|
||||||
|
|
|
@ -519,70 +519,7 @@
|
||||||
> {{ '确认' }}</el-button>
|
> {{ '确认' }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 产品弹框 -->
|
|
||||||
<el-dialog
|
|
||||||
:title="'添加'"
|
|
||||||
:visible.sync="dialogVisible"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
width="50%"
|
|
||||||
center
|
|
||||||
:before-close="handleClose1"
|
|
||||||
>
|
|
||||||
<div class="cpHeight">
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="22">
|
|
||||||
<el-input
|
|
||||||
v-model="select.query"
|
|
||||||
clearable
|
|
||||||
:placeholder="'请输入'"
|
|
||||||
prefix-icon="el-icon-search"
|
|
||||||
@keyup.enter.native="getProduct"
|
|
||||||
/>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="2">
|
|
||||||
<el-button type="primary" size="small" @click="getProduct">
|
|
||||||
{{ '搜索' }}</el-button>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<div style="height: 10px" />
|
|
||||||
<el-table
|
|
||||||
ref="multipleTable"
|
|
||||||
:data="productList"
|
|
||||||
height="500px"
|
|
||||||
style="width: 100%"
|
|
||||||
:header-cell-style="{ background: '#EEEEEE' }"
|
|
||||||
:row-class-name="tableRowClassName"
|
|
||||||
@select-all="onSelectAll"
|
|
||||||
@select="selected"
|
|
||||||
>
|
|
||||||
<el-table-column type="selection" width="55" />
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="productName"
|
|
||||||
:label="'产品名称'"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
align="center"
|
|
||||||
prop="productCode"
|
|
||||||
:label="'产品编号'"
|
|
||||||
/>
|
|
||||||
<el-table-column align="center" prop="unitStr" :label="'单位'" />
|
|
||||||
</el-table>
|
|
||||||
</div>
|
|
||||||
<pagination
|
|
||||||
v-show="total > 0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="queryParams.pageNum"
|
|
||||||
:limit.sync="queryParams.pageSize"
|
|
||||||
@pagination="getProduct"
|
|
||||||
/>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="handleClose1">{{ '取消' }}</el-button>
|
|
||||||
<el-button type="primary" @click="sureProduct">{{
|
|
||||||
'确认'
|
|
||||||
}}</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
<!-- 规格 -->
|
<!-- 规格 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="'添加'"
|
:title="'添加'"
|
||||||
|
@ -824,7 +761,6 @@ export default {
|
||||||
this.getTransportType()
|
this.getTransportType()
|
||||||
// 复购类型
|
// 复购类型
|
||||||
this.getRepurchaseType()
|
this.getRepurchaseType()
|
||||||
this.getProduct()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
sureProduct() {
|
sureProduct() {
|
||||||
|
@ -844,15 +780,7 @@ export default {
|
||||||
handleClose1() {
|
handleClose1() {
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
},
|
},
|
||||||
opProduct() {
|
|
||||||
this.dialogVisible = true
|
|
||||||
},
|
|
||||||
getProduct() {
|
|
||||||
api.productFind1(Object.assign({}, this.queryParams, this.select)).then((res) => {
|
|
||||||
this.productList = res.rows
|
|
||||||
this.total = res.total
|
|
||||||
})
|
|
||||||
},
|
|
||||||
getRepurchaseType() {
|
getRepurchaseType() {
|
||||||
api.repurchaseType().then((res) => {
|
api.repurchaseType().then((res) => {
|
||||||
this.repurchaseTypeList = res.data
|
this.repurchaseTypeList = res.data
|
||||||
|
|
Loading…
Reference in New Issue