diff --git a/hb_client/src/api/sam.js b/hb_client/src/api/sam.js
index cc378cd..0672a32 100644
--- a/hb_client/src/api/sam.js
+++ b/hb_client/src/api/sam.js
@@ -73,6 +73,13 @@ export function createOrder(data) {
data
})
}
+export function getOrder(id) {
+ return request({
+ url: `/sam/order/${id}/`,
+ method: 'get'
+ })
+}
+
export function updateOrder(id, data) {
return request({
url: `/sam/order/${id}/`,
@@ -93,4 +100,75 @@ export function getordertoplan() {
url: '/sam/order/toplan/',
method: 'get',
})
-}
\ No newline at end of file
+}
+//销售记录列表
+export function getSaleList(query) {
+ return request({
+ url: '/sam/sale/',
+ method: 'get',
+ params: query
+ })
+}
+
+//销售记录创建
+export function createSale(data) {
+ return request({
+ url: '/sam/sale/',
+ method: 'post',
+ data
+ })
+}
+
+
+export function deleteSale(id, data) {
+ return request({
+ url: `/sam/sale/${id}/`,
+ method: 'delete',
+ data
+ })
+}
+
+
+export function getSale(id) {
+ return request({
+ url: `/sam/sale/${id}/`,
+ method: 'get'
+ })
+}
+
+//销售记录列表
+export function getSaleproductList(query) {
+ return request({
+ url: '/sam/sale_product/',
+ method: 'get',
+ params: query
+ })
+}
+
+//删除销售记录关联产品
+export function deleteSaleproduct(id, data) {
+ return request({
+ url: `/sam/sale_product/${id}/`,
+ method: 'delete',
+ data
+ })
+}
+
+//军检
+export function saleMtest(id, data) {
+ return request({
+ url: `/sam/sale_product/${id}/mtest/`,
+ method: 'POST',
+ data
+ })
+}
+//审核
+export function saleAudit(id) {
+ return request({
+ url: `/sam/sale/${id}/audit/`,
+ method: 'POST',
+
+ })
+}
+
+
diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js
index 2aa5dcb..bb1f9c7 100644
--- a/hb_client/src/router/index.js
+++ b/hb_client/src/router/index.js
@@ -262,7 +262,7 @@ export const asyncRoutes = [
component: Layout,
redirect: '/sam/customer',
name: 'sam',
- meta: { title: '合同管理', icon: 'example', perms: ['equipment_set'] },
+ meta: { title: '销售管理', icon: 'example', perms: ['equipment_set'] },
children: [
{
path: 'customer',
@@ -284,6 +284,21 @@ export const asyncRoutes = [
component: () => import('@/views/sam/order'),
meta: { title: '订单信息', icon: 'example', perms: ['index_manage'] }
}
+ ,
+ {
+ path: 'sales',
+ name: 'sales',
+ component: () => import('@/views/sam/sales'),
+ meta: { title: '销售信息', icon: 'example', perms: ['index_manage'] }
+ }
+ ,
+ {
+ path: 'salesdetail/:id',
+ name: 'salesdetail',
+ component: () => import('@/views/sam/salesdetail'),
+ meta: { title: '销售详情', perms: ['vendor_manage'] },
+ hidden: true
+ }
]
}
,
diff --git a/hb_client/src/views/inm/fifo.vue b/hb_client/src/views/inm/fifo.vue
index 8147c52..b0e0a92 100644
--- a/hb_client/src/views/inm/fifo.vue
+++ b/hb_client/src/views/inm/fifo.vue
@@ -49,7 +49,7 @@
- {{
+ {{
scope.row.create_by_.name
}}
diff --git a/hb_client/src/views/sam/contract.vue b/hb_client/src/views/sam/contract.vue
index 571996b..86a3547 100644
--- a/hb_client/src/views/sam/contract.vue
+++ b/hb_client/src/views/sam/contract.vue
@@ -98,7 +98,6 @@
{{ scope.row.delivery_date }}
+
+ {{ scope.row.delivered_count }}
+
+
{{ scope.row.create_time }}
diff --git a/hb_client/src/views/sam/sales.vue b/hb_client/src/views/sam/sales.vue
new file mode 100644
index 0000000..f5fe5f9
--- /dev/null
+++ b/hb_client/src/views/sam/sales.vue
@@ -0,0 +1,404 @@
+
+
+
+
+ 新增销售记录
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+ {{ scope.row.product_.name }}
+
+
+ {{ scope.row.product_.specification }}
+
+
+ {{ scope.row.customer_.name }}
+
+
+ {{ scope.row.order_.number }}
+
+
+
+ {{ scope.row.order_.contract_.name }}
+
+
+
+ 否
+ 是
+
+
+
+
+ 详情
+
+ 审核
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
+
diff --git a/hb_client/src/views/sam/salesdetail.vue b/hb_client/src/views/sam/salesdetail.vue
new file mode 100644
index 0000000..b766830
--- /dev/null
+++ b/hb_client/src/views/sam/salesdetail.vue
@@ -0,0 +1,192 @@
+
+
+
+
+
+ {{salesdetail.customer_.name}}
+ {{salesdetail.product_.name}}
+ {{salesdetail.product_.specification}}
+ {{salesdetail.order_.number}}
+ {{salesdetail.order_.contract_.name}}
+
+
+
+ 关联产品信息
+
+
+
+
+
+
+ {{ scope.row.number }}
+
+
+
+ {{ scope.row.iproduct_.material_.name }}
+
+
+ {{ scope.row.iproduct_.batch }}
+
+
+ {{ scope.row.iproduct_.warehouse_.name }}
+
+
+
+
+
+ 未军检
+ 已军检
+
+
+
+
+
+
+
+ 不合格
+ 合格
+
+
+
+
+
+
+
+ 军检
+ 删除
+
+
+
+
+
+
+
+
+
+ 合格
+ 不合格
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
+
diff --git a/hb_client/src/views/wpm/operationdo.vue b/hb_client/src/views/wpm/operationdo.vue
index 30526a8..d3da9da 100644
--- a/hb_client/src/views/wpm/operationdo.vue
+++ b/hb_client/src/views/wpm/operationdo.vue
@@ -3,6 +3,7 @@
基本信息
+ 查看作业指导书
{