From 6bf8b8db0a4ee0160dbf814274b08d7b3eb04fdd Mon Sep 17 00:00:00 2001
From: zhangdingyu <974548713@qq.com>
Date: Mon, 1 Apr 2019 11:07:15 +0800
Subject: [PATCH 01/10] =?UTF-8?q?=E5=BA=93=E5=AD=98=E6=9F=A5=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/Inventory/OutPartSelect.js | 0
src/views/Inventory/OutPartSelect/index.vue | 189 ++++++++++++++++++++
src/views/Inventory/StockInquiry/index.vue | 57 +-----
3 files changed, 191 insertions(+), 55 deletions(-)
create mode 100644 src/api/Inventory/OutPartSelect.js
create mode 100644 src/views/Inventory/OutPartSelect/index.vue
diff --git a/src/api/Inventory/OutPartSelect.js b/src/api/Inventory/OutPartSelect.js
new file mode 100644
index 00000000..e69de29b
diff --git a/src/views/Inventory/OutPartSelect/index.vue b/src/views/Inventory/OutPartSelect/index.vue
new file mode 100644
index 00000000..4eefd4e4
--- /dev/null
+++ b/src/views/Inventory/OutPartSelect/index.vue
@@ -0,0 +1,189 @@
+
+
+
+ 机床号:
+
+
+ {{ item.label }}
+ {{ item.value2 }}
+
+
+ 组号:
+
+
+
+ 零件图号:
+
+ 查询
+
+
+
+
+
+
+
+ {{ scope.row.零件名称 }}
+
+
+
+
+ {{ scope.row.零件图号 }}
+
+
+
+
+ {{ scope.row.入库数量 }}
+
+
+
+
+ {{ scope.row.机床图号 }}
+
+
+
+
+ {{ scope.row.组号 }}
+
+
+
+
+ {{ scope.row.仓库名称 }}
+
+
+
+
+ {{ scope.row.货位名称 }}
+
+
+
+
+ {{ scope.row.入库时间 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Inventory/StockInquiry/index.vue b/src/views/Inventory/StockInquiry/index.vue
index 20d9c1a8..a3669cdb 100644
--- a/src/views/Inventory/StockInquiry/index.vue
+++ b/src/views/Inventory/StockInquiry/index.vue
@@ -95,66 +95,16 @@ import { getMachines, getGroups, getTable } from '@/api/Inventory/StockInquiry'
export default {
data() {
return {
- startTime: '',
- endTime: '',
- startTime_check: 0,
- endTime_check: 0,
- liushuihao: '',
- // value2: null,
- radioList: '0',
- length: 0,
- listLoading1: false,
- tableData1: [],
- project: '',
- projects: [],
Machine: '',
Machines: [],
Group: '',
Groups: [],
- part: '',
- parts: [{
- value: 0,
- label: '全部零件'
- }, {
- value: 1,
- label: '自家生产'
- }, {
- value: 2,
- label: '外协生产'
- }],
- Speed: '',
- Speeds: [{
- value: 5,
- label: '全部'
- }, {
- value: 1,
- label: '拖期'
- }, {
- value: 2,
- label: '即将拖期'
- }, {
- value: 3,
- label: '如期'
- }, {
- value: 4,
- label: '工序外协'
- }],
number: '',
- checkbox_project: false,
checkbox_Machine: false,
checkbox_Group: false,
- checkbox_part: false,
checkbox_number: false,
- 零件图号: [],
- 零件名称: [],
- 投产数量: [],
- result: [],
- process: [[]],
- planDate: [[]],
- worker: [[]],
- colorCode: [[]],
- realDate: [[]],
- // waixie: [[]],
+ tableData1: [],
+ listLoading1: false,
total: 0, // 总条数
pageSize: 10,
pageCurrent: 1
@@ -215,9 +165,6 @@ export default {
if (response.data.total === 0) {
this.listLoading1 = false
} else {
- // for (let i = 0; i < response.data.rows.length; i++) {
- // response.data.rows[i].入库时间 = response.data.rows[i].入库时间.split(' ')[0]
- // }
this.tableData1 = response.data.rows
this.total = response.data.total
this.listLoading1 = false
From 4caac39b103976e7f4ba579988df585f10310b9c Mon Sep 17 00:00:00 2001
From: zhangdingyu <974548713@qq.com>
Date: Mon, 1 Apr 2019 13:51:53 +0800
Subject: [PATCH 02/10] =?UTF-8?q?=E5=87=BA=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/Inventory/OutPartSelect.js | 39 +++++++++++++++++++++
src/views/Inventory/OutPartSelect/index.vue | 5 +--
2 files changed, 40 insertions(+), 4 deletions(-)
diff --git a/src/api/Inventory/OutPartSelect.js b/src/api/Inventory/OutPartSelect.js
index e69de29b..70438de1 100644
--- a/src/api/Inventory/OutPartSelect.js
+++ b/src/api/Inventory/OutPartSelect.js
@@ -0,0 +1,39 @@
+import request from '@/utils/request'
+
+// 机床查询
+export function getMachines(check, num) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: 'PDM_机床名称_查询数据',
+ param: '项目流水号_check=' + check + '=int&项目流水号=' + num
+ }
+ })
+}
+// 分组查询
+export function getGroups(machineNumber) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: 'PDM_组件名称_查询数据',
+ param: '机床流水号=' + machineNumber
+ }
+ })
+}
+// 主表查询
+export function getTable(num1, num2, num3, num4, num5, num6, pageCurrent, pageSize) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '车间生产管理工艺_库存管理_基本件库存查询',
+ param: '机床流水号_check=' + num1 + '&机床流水号=' + num2 + '&组件流水号_check=' + num3 + '&组件流水号=' + num4 + '&零件图号_check=' + num5 + '&零件图号=' + num6,
+ Pagination: pageCurrent + '&' + pageSize
+ }
+ })
+}
diff --git a/src/views/Inventory/OutPartSelect/index.vue b/src/views/Inventory/OutPartSelect/index.vue
index 4eefd4e4..fe742779 100644
--- a/src/views/Inventory/OutPartSelect/index.vue
+++ b/src/views/Inventory/OutPartSelect/index.vue
@@ -90,7 +90,7 @@