diff --git a/src/api/PurchasingCenter/CreateInquirySheet.js b/src/api/PurchasingCenter/CreateInquirySheet.js
index 1fd165f9..5cd99a83 100644
--- a/src/api/PurchasingCenter/CreateInquirySheet.js
+++ b/src/api/PurchasingCenter/CreateInquirySheet.js
@@ -11,7 +11,7 @@ export function initInquiryState() {
}
})
}
-// 根据续表查物料表
+// 查询分配后的标准件和外购件
export function searchMaterial(pageCurrent, pageSize, check1, num1, check2, num2, person) {
return request({
url: '',
@@ -24,6 +24,19 @@ export function searchMaterial(pageCurrent, pageSize, check1, num1, check2, num2
}
})
}
+// 查询分配后的基本件
+export function searchPart(pageCurrent, pageSize, check1, num1, person) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '采购管理_采购部采购_查询物料_基本件_分配后',
+ param: `询价状态编号_check=${check1}&询价状态编号=${num1}&人员编号=${person}`,
+ Pagination: pageCurrent + '&' + pageSize
+ }
+ })
+}
// 查询供应商
export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) {
return request({
@@ -69,7 +82,7 @@ export function searchSheetDetail(num2) {
data: {
type: '1',
name: '采购管理_询价单明细_查询数据',
- param: '询价单流水号_check=1&询价单流水号=' + num2
+ param: '询价单流水号=' + num2
}
})
}
@@ -97,27 +110,39 @@ export function deleteInquirySheet(num1) {
}
})
}
-// 追加现有询价单
-export function addInquirySheet(num1, num2, num3, num4, remark) {
+// 将标准件和外购件追加现有询价单
+export function addInquirySheet1(num1, num2, num3) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '采购管理_询价单明细_增加数据',
- param: '询价单流水号=' + num1 + '&组件零件流水号=' + num2 + '&总数量=' + num3 + '&备量=' + num4 + '&备注=' + remark + '&identity=1=output'
+ param: '询价单流水号=' + num1 + '&组件零件流水号=' + num2 + '&数量=' + num3
+ }
+ })
+}
+// 将基本件追加现有询价单
+export function addInquirySheet2(num1, num2, num3) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '2',
+ name: '采购管理_询价单明细_增加数据',
+ param: '询价单流水号=' + num1 + '&组件零件基本件流水号=' + num2 + '&数量=' + num3
}
})
}
// 移出询价单
-export function outInquirySheet(num1, num2) {
+export function outInquirySheet(num1, num2, num3) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '采购管理_询价单明细_删除数据',
- param: '询价单流水号=' + num1 + '&组件零件流水号=' + num2
+ param: '询价单明细流水号=' + num1 + '&组件零件流水号=' + num2 + '&组件零件基本件流水号=' + num3
}
})
}
diff --git a/src/api/PurchasingCenter/PurchaseTaskAllocate.js b/src/api/PurchasingCenter/PurchaseTaskAllocate.js
index 7d5119dc..22b17376 100644
--- a/src/api/PurchasingCenter/PurchaseTaskAllocate.js
+++ b/src/api/PurchasingCenter/PurchaseTaskAllocate.js
@@ -46,7 +46,7 @@ export function initBuyer() {
}
})
}
-// 查询表1
+// 查询表1标准件和外购件
export function searchTable1(...params) {
return request({
url: '',
@@ -59,8 +59,21 @@ export function searchTable1(...params) {
}
})
}
-// 分配任务
-export function allocateTask(group, person) {
+// 查询表1基本件
+export function searchTable2(...params) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '采购管理_采购部采购_查询物料_基本件',
+ param: `项目流水号_check=${params[2]}&项目流水号=${params[3]}&分配状态=${params[4]}`,
+ Pagination: params[0] + '&' + params[1]
+ }
+ })
+}
+// 分配任务1标准件和外购件
+export function allocateTask1(group, person) {
return request({
url: '',
method: 'post',
@@ -70,8 +83,21 @@ export function allocateTask(group, person) {
param: `标准件和外购件流水号组=${group}&人员编号=${person}`
}
})
-}// 执行退回
-export function executeReturn(...params) {
+}
+// 分配任务2基本件
+export function allocateTask2(group, person) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '2',
+ name: '采购部采购_分配任务_基本件',
+ param: `基本件流水号组=${group}&人员编号=${person}`
+ }
+ })
+}
+// 执行退回1标准件和外购件
+export function executeReturn1(...params) {
return request({
url: '',
method: 'post',
@@ -82,3 +108,15 @@ export function executeReturn(...params) {
}
})
}
+// 执行退回1基本件
+export function executeReturn2(...params) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '2',
+ name: '采购部采购_退回物料_基本件',
+ param: `基本件流水号组=${params[0]}&组件零件基本件流水号组=${params[1]}`
+ }
+ })
+}
diff --git a/src/views/PurchasingCenter/CreateInquirySheet/index.vue b/src/views/PurchasingCenter/CreateInquirySheet/index.vue
index 41f7f8b0..00e4b564 100644
--- a/src/views/PurchasingCenter/CreateInquirySheet/index.vue
+++ b/src/views/PurchasingCenter/CreateInquirySheet/index.vue
@@ -1,102 +1,214 @@
-
- 询价状态:
-
-
-
- 物料名称:
-
- 查询
-
+
+
+
+ 询价状态:
+
+
+
+ 物料名称:
+
+ 查询
+
+
+
+
+
+
+ 物料变更
+
+
+
+
+ 未询价
+ 已询价
+ 已采购
+
+
+
+
+ {{ scope.row.物料计划到货时间.split(' ')[0] }}
+
+
+
+
+ {{ scope.row.项目名称 }}
+
+
+
+
+ {{ scope.row.物料类别 }}
+
+
+
+
+ {{ scope.row.物料品种 }}
+
+
+
+
+ {{ scope.row.物料型号 }}
+
+
+
+
+ {{ scope.row.物料名称 }}
+
+
+
+
+ {{ scope.row.物料规格 }}
+
+
+
+
+ {{ scope.row.零件数量 }}
+
+
+
+
+ {{ scope.row.备注 }}
+
+
+
+
+ {{ scope.row.供货商 }}
+
+
+
+
+
+
+
+
+
+
+ 询价状态:
+
+
+
+ 查询
+
+
+
+
+
+
+ 零件变更
+
+
+
+
+ 未询价
+ 已询价
+ 已采购
+
+
+
+
+ {{ scope.row.物料计划到货时间.split(' ')[0] }}
+
+
+
+
+ {{ scope.row.项目名称 }}
+
+
+
+
+ {{ scope.row.零件图号 }}
+
+
+
+
+ {{ scope.row.零件名称 }}
+
+
+
+
+ {{ scope.row.规格 }}
+
+
+
+
+ {{ scope.row.材料 }}
+
+
+
+
+ {{ scope.row.数量 }}
+
+
+
+
+ {{ scope.row.备注 }}
+
+
+
+
+ {{ scope.row.供货商 }}
+
+
+
+
+
+
+
+
+
-
-
-
-
-
- 物料变更
-
-
-
-
- 未询价
- 已询价
- 已采购
-
-
-
-
- {{ scope.row.项目名称 }}
-
-
-
-
- {{ scope.row.物料名称 }}
-
-
-
-
- {{ scope.row.物料规格 }}
-
-
-
-
- {{ scope.row.物料型号 }}
-
-
-
-
- {{ scope.row.供货商 }}
-
-
-
-
- {{ scope.row.零件数量 }}
-
-
-
-
- {{ scope.row.物料计划到货时间.split(' ')[0] }}
-
-
-
-
- {{ scope.row.库存量 }}
-
-
-
-
-
-
-
-
-
+
询价单号:
供应商:
@@ -168,24 +280,24 @@
@current-change="handleCurrentChange2"/>
-
+
- {{ scope.row.物料名称 }}
+ {{ scope.row.组件零件流水号 ? scope.row.物料型号 : scope.row.零件图号 }}
-
+
- {{ scope.row.物料规格 }}
+ {{ scope.row.组件零件流水号 ? scope.row.物料名称 : scope.row.零件名称 }}
-
+
- {{ scope.row.物料型号 }}
+ {{ scope.row.组件零件流水号 ? scope.row.物料规格 : scope.row.规格 }}
-
+
- {{ scope.row.零件数量 }}
+ {{ scope.row.数量 }}
@@ -312,7 +424,7 @@
-
+
@@ -379,8 +491,8 @@