diff --git a/src/api/ManufacturingCenter/ProductionPlanQuery.js b/src/api/ManufacturingCenter/ProductionPlanQuery.js
index f2f4a098..8951b484 100644
--- a/src/api/ManufacturingCenter/ProductionPlanQuery.js
+++ b/src/api/ManufacturingCenter/ProductionPlanQuery.js
@@ -25,8 +25,8 @@ export function searchtable() {
ModularID: router.currentRoute.path,
type: '1',
name: '车间生产管理工艺_生产计划_查询零件',
- param: `机床流水号=${arguments[0]}&零件图号_check=${arguments[1]}&零件图号=${arguments[2]}&投产时间_check=${arguments[3]}&开始时间=${arguments[4]}&结束时间=${arguments[5]}&加急_check=${arguments[6]}`,
- pagination: arguments[7] + '&' + arguments[8]
+ param: `机床流水号_check=${arguments[0]}&机床流水号=${arguments[1]}&零件图号_check=${arguments[2]}&零件图号=${arguments[3]}&投产时间_check=${arguments[4]}&开始时间=${arguments[5]}&结束时间=${arguments[6]}&加急_check=${arguments[7]}`,
+ pagination: arguments[8] + '&' + arguments[9]
}
})
}
diff --git a/src/api/ManufacturingCenter/RequestApprovalQuery.js b/src/api/ManufacturingCenter/RequestApprovalQuery.js
index 6e9f60f8..e36c94cd 100644
--- a/src/api/ManufacturingCenter/RequestApprovalQuery.js
+++ b/src/api/ManufacturingCenter/RequestApprovalQuery.js
@@ -25,7 +25,7 @@ export function searchTable1(radio, check1, supplier, check2, start, end, check3
ModularID: router.currentRoute.path,
type: '1',
name: '采购管理_情况审核查询_查询数据',
- param: '查询全部=' + radio + '&供应商名称_check=' + check1 + '&供应商名称=' + supplier + '&时间段_check=' + check2 + '&开始时间=' + start + '&结束时间=' + end + '&人员编号_check=' + check3 + '&人员编号=' + name,
+ param: '查询全部=' + radio + '&供应商流水号_check=' + check1 + '&供应商流水号=' + supplier + '&时间段_check=' + check2 + '&开始时间=' + start + '&结束时间=' + end + '&人员编号_check=' + check3 + '&人员编号=' + name,
Pagination: pageCurrent + '&' + pageSize
}
})
@@ -44,3 +44,16 @@ export function searchTable2(num) {
}
})
}
+// 查询供应商
+export function searchSupplier() {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ UserID: state.state.user.id,
+ ModularID: router.currentRoute.path,
+ type: '1',
+ name: '采购管理_供应商_查询数据_根据条件'
+ }
+ })
+}
diff --git a/src/api/PurchasingCenter/InvoiceSettlementApprove.js b/src/api/PurchasingCenter/InvoiceSettlementApprove.js
index 59060016..516102a5 100644
--- a/src/api/PurchasingCenter/InvoiceSettlementApprove.js
+++ b/src/api/PurchasingCenter/InvoiceSettlementApprove.js
@@ -12,7 +12,7 @@ export function searchTable1(...group) {
ModularID: router.currentRoute.path,
type: '1',
name: '采购管理_发票结算申请单_查询数据',
- param: `时间段_check=${group[0]}&开始日期=${group[1]}&结束日期=${group[2]}&是否提交=1&角色编号=${group[5]}`,
+ param: `时间段_check=${group[0]}&开始日期=${group[1]}&结束日期=${group[2]}&是否提交=1&角色编号=${group[5]}&供应商_check=${group[6]}&供应商流水号=${group[7]}`,
Pagination: group[3] + '&' + group[4]
}
})
@@ -45,3 +45,17 @@ export function excuteApprove(...data) {
}
})
}
+// 查询供应商
+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({
+ url: '',
+ method: 'post',
+ data: {
+ UserID: state.state.user.id,
+ ModularID: router.currentRoute.path,
+ type: '1',
+ name: '采购管理_供应商_查询数据_根据条件',
+ param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12
+ }
+ })
+}
diff --git a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue
index d667ecf7..1a46b381 100644
--- a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue
+++ b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue
@@ -427,6 +427,11 @@
{{ scope.row.操作员 }}
+
+
+ {{ scope.row.完成数量 }}
+
+
已完成
@@ -434,11 +439,14 @@
未完成
-
+
- 合格
- 不合格
- 未检测
+ {{ scope.row.数量 }}
+
+
+
+
+ {{ scope.row.不合格数量 }}
diff --git a/src/views/Inventory/MaterialOut/index.vue b/src/views/Inventory/MaterialOut/index.vue
index 121a4b9f..2f84e1a2 100644
--- a/src/views/Inventory/MaterialOut/index.vue
+++ b/src/views/Inventory/MaterialOut/index.vue
@@ -210,7 +210,7 @@
-
+
-
+
+ 查询
全部
通过
未过
- 查询
导出
-
+
{{ scope.row.采购合同编号 }}
@@ -97,7 +97,7 @@
-
+
diff --git a/src/views/ManufacturingCenter/ContractApprovalQuery1/index.vue b/src/views/ManufacturingCenter/ContractApprovalQuery1/index.vue
new file mode 100644
index 00000000..cdacd5eb
--- /dev/null
+++ b/src/views/ManufacturingCenter/ContractApprovalQuery1/index.vue
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+
+
+
+ 查询
+ 导出
+
+
+
+
+
+ {{ 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.加工完成时间 }}
+
+
+
+
+ {{ scope.row.图号及规格 }}
+
+
+
+
+ {{ scope.row.制品名称 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/ManufacturingCenter/GroupMatching/index.vue b/src/views/ManufacturingCenter/GroupMatching/index.vue
index e54cbb55..9584fff2 100644
--- a/src/views/ManufacturingCenter/GroupMatching/index.vue
+++ b/src/views/ManufacturingCenter/GroupMatching/index.vue
@@ -53,11 +53,16 @@
{{ scope.row.类别 }}
-
+
{{ scope.row.计划完成时间 }}
+
+
+ {{ scope.row.机加工实际完成时间 }}
+
+
{{ scope.row.入库时间 }}
@@ -122,7 +127,7 @@
- 采购时间
+ {{ scope.row.创建日期 }}
@@ -130,11 +135,6 @@
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.已到货数量 || scope.row.离线到货数量 || '—' }}
-
-
- 到货时间
-
-
-
+
{{ scope.row.零件数量 || '—' }}
-
+
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.数量 || scope.row.离线采购数量 || '—' }}
+
+
+ {{ scope.row.创建日期 }}
+
+
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.已到货数量 || scope.row.离线到货数量 || '—' }}
@@ -255,11 +260,6 @@
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.已到货数量 || '—' }}
-
-
- 到货时间
-
-
+
+
+ {{ scope.row.进程 }}
+
+
{{ scope.row.机床图号 }}
@@ -86,6 +91,16 @@
{{ scope.row.工艺完成 }}
+
+
+ {{ scope.row.工艺分配时间 ? scope.row.工艺分配时间.split( ' ')[0] : '' }}
+
+
+
+
+ {{ scope.row.操作时间 .split( ' ')[0] }}
+
+
{
+ searchtable(check, this.machineNameValue, this.partNamecheck, this.partName, check7, this.outTime[0], this.outTime[1], check8, this.pageCurrent, this.pageSize).then(response => {
this.tableData = response.data.rows
this.total = response.data.total
this.loading = false
})
} else {
- this.$message.warning('请先选择机床')
+ this.$message.warning('请输入筛选条件')
}
},
tableRowClassName({ row }) {
diff --git a/src/views/ManufacturingCenter/RequestApprovalQuery/index.vue b/src/views/ManufacturingCenter/RequestApprovalQuery/index.vue
index c0967360..866393c0 100644
--- a/src/views/ManufacturingCenter/RequestApprovalQuery/index.vue
+++ b/src/views/ManufacturingCenter/RequestApprovalQuery/index.vue
@@ -1,8 +1,15 @@
-
-
+
+
+
+
+
+ 查询
全部
通过
未过
- 查询
导出
-
+
{{ scope.row.供应商名称 }}
@@ -83,7 +90,7 @@
-
+
{{ scope.row.采购合同编号 ? scope.row.采购合同编号 : scope.row.离线合同编号 }}
@@ -110,7 +117,7 @@
diff --git a/src/views/ManufacturingCenter/ShopScheduling/index.vue b/src/views/ManufacturingCenter/ShopScheduling/index.vue
index f72be551..0a8e34d1 100644
--- a/src/views/ManufacturingCenter/ShopScheduling/index.vue
+++ b/src/views/ManufacturingCenter/ShopScheduling/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -25,11 +25,6 @@
{{ scope.row.图号及规格 }}
-
-
- {{ scope.row.图号及规格 }}
-
-
{{ scope.row.零件名称 }}
diff --git a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
index 4129dcb0..5f557e88 100644
--- a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
+++ b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
@@ -234,6 +234,7 @@ export default {
交货期组: [],
备注组: [],
companyAddress: '',
+ count: 0,
sendAddress: ''
}
},
@@ -738,6 +739,7 @@ export default {
`
},
async editContract() { // 选择一个询价单,整成合同明细
+ console.log(this.tableData1, 'tableData')
this.openDeal = false
const date = new Date()
this.year = date.getFullYear()
@@ -854,55 +856,65 @@ export default {
// this.content = `自定义`
// },
generateContract() { // 生成采购合同
- this.content = this.contentNew.replace(/ /g, '')
- this.content = this.content.replace(/\n/g, '')
- this.content = this.content.replace(/==/g, '= =') // 更新tinymce中的东西到html中,后续会用到
- this.组件零件流水号组 = []
- this.组件零件基本件流水号组 = []
- this.数量组 = []
- this.单价组 = []
- this.交货期组 = []
- this.hasTax === '含税' ? this.单价是否含税 = 1 : this.单价是否含税 = 0
- const inquiryDetailNum_old = [] // 需要转移到新询价单的物料的询价单明细流水号
- this.tableData1.map(v => {
- if ((this.hasTax === '含税' && Number(v.含税单价)) || (this.hasTax === '未税' && Number(v.未税单价))) { // 筛掉未询到价格的物料
- this.组件零件流水号组.push(v.组件零件流水号)
- this.组件零件基本件流水号组.push(v.组件零件基本件流水号)
- this.数量组.push(v.数量)
- this.hasTax === '含税' ? this.单价组.push(v.含税单价) : this.单价组.push(v.未税单价)
- this.交货期组.push(v.交货期)
- this.备注组.push(v.备注)
- } else { // 获取未询到价格的物料的询价单明细流水号们
- inquiryDetailNum_old.push(v.询价单明细流水号)
- }
- })
- if (this.contractNumValue) {
- if (this.demoRadio) {
- this.$confirm('此采购合同将递交审核,递交后该合同不可删除,确认完成编辑?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- doneContract(this.contractNum, this.contractName, this.deliveryDate, this.payDate, this.payMethod, this.invoiceInfo, this.otherInfo, this.actualTotal, this.id, this.supplierValue, this.单价是否含税, this.组件零件流水号组, this.组件零件基本件流水号组, this.数量组, this.单价组, this.交货期组, this.content, this.taxRate * 100, inquiryDetailNum_old, this.备注组).then(response => {
- if (response.data[0].result === '1') {
- this.$message.success('合同生成成功')
- this.openDeal = true
- this.reload()
- } else {
- this.$message.error('生成合同失败')
- }
- })
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '已取消操作'
- })
- })
- } else {
- this.$message.warning('请先选择模板进行预览')
+ for (let i = 0; i < this.tableData1.length; i++) {
+ if (this.tableData1[i].含税单价 === '') {
+ console.log(this.tableData1[i].含税单价, '含税单价')
+ this.count++
}
+ }
+ if (this.count === this.tableData1.length) {
+ this.$message.error('该合同未绑定物料信息')
} else {
- this.$message.warning('请先选择合同进行编辑')
+ this.content = this.contentNew.replace(/ /g, '')
+ this.content = this.content.replace(/\n/g, '')
+ this.content = this.content.replace(/==/g, '= =') // 更新tinymce中的东西到html中,后续会用到
+ this.组件零件流水号组 = []
+ this.组件零件基本件流水号组 = []
+ this.数量组 = []
+ this.单价组 = []
+ this.交货期组 = []
+ this.hasTax === '含税' ? this.单价是否含税 = 1 : this.单价是否含税 = 0
+ const inquiryDetailNum_old = [] // 需要转移到新询价单的物料的询价单明细流水号
+ this.tableData1.map(v => {
+ if ((this.hasTax === '含税' && Number(v.含税单价)) || (this.hasTax === '未税' && Number(v.未税单价))) { // 筛掉未询到价格的物料
+ this.组件零件流水号组.push(v.组件零件流水号)
+ this.组件零件基本件流水号组.push(v.组件零件基本件流水号)
+ this.数量组.push(v.数量)
+ this.hasTax === '含税' ? this.单价组.push(v.含税单价) : this.单价组.push(v.未税单价)
+ this.交货期组.push(v.交货期)
+ this.备注组.push(v.备注)
+ } else { // 获取未询到价格的物料的询价单明细流水号们
+ inquiryDetailNum_old.push(v.询价单明细流水号)
+ }
+ })
+ if (this.contractNumValue) {
+ if (this.demoRadio) {
+ this.$confirm('此采购合同将递交审核,递交后该合同不可删除,确认完成编辑?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ doneContract(this.contractNum, this.contractName, this.deliveryDate, this.payDate, this.payMethod, this.invoiceInfo, this.otherInfo, this.actualTotal, this.id, this.supplierValue, this.单价是否含税, this.组件零件流水号组, this.组件零件基本件流水号组, this.数量组, this.单价组, this.交货期组, this.content, this.taxRate * 100, inquiryDetailNum_old, this.备注组).then(response => {
+ if (response.data[0].result === '1') {
+ this.$message.success('合同生成成功')
+ this.openDeal = true
+ this.reload()
+ } else {
+ this.$message.error('生成合同失败')
+ }
+ })
+ }).catch(() => {
+ this.$message({
+ type: 'info',
+ message: '已取消操作'
+ })
+ })
+ } else {
+ this.$message.warning('请先选择模板进行预览')
+ }
+ } else {
+ this.$message.warning('请先选择合同进行编辑')
+ }
}
}
}
diff --git a/src/views/PurchasingCenter/InvoiceSettlementApprove/index.vue b/src/views/PurchasingCenter/InvoiceSettlementApprove/index.vue
index 9efc43bc..c2e126bf 100644
--- a/src/views/PurchasingCenter/InvoiceSettlementApprove/index.vue
+++ b/src/views/PurchasingCenter/InvoiceSettlementApprove/index.vue
@@ -2,46 +2,53 @@
+
+
+
申请时间:
~
- 查询
+ 查询
- 发票结算申请单
+
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.已付款项 }}
-
-
- {{ scope.row.尚欠金额 }}
-
-
- {{ scope.row.备注 }}
-
-
-
-
- {{ scope.row.是否费用类 }}
-
-
- {{ scope.row.税额 }}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ scope.row.供应商名称 }}
@@ -102,17 +109,17 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -160,7 +167,7 @@