diff --git a/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js b/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js index 1c57210f..470c27a3 100644 --- a/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js +++ b/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js @@ -56,3 +56,24 @@ export function deleteTable(number) { } }) } +export function setUp(time) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_设备能力_系数有效时间设定', + param: '系数有效时间=' + time + } + }) +} +export function generate() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_设备加工能力_生成设备能力表' + } + }) +} diff --git a/src/api/WorkshopProcurement/CreatingProcurementContracts.js b/src/api/WorkshopProcurement/CreatingProcurementContracts.js index 1ac2a3ec..f66f7185 100644 --- a/src/api/WorkshopProcurement/CreatingProcurementContracts.js +++ b/src/api/WorkshopProcurement/CreatingProcurementContracts.js @@ -1,16 +1,5 @@ import request from '@/utils/request' -// 初始化付款方式 -export function initPayMethod() { - return request({ - url: '', - method: 'post', - data: { - type: '1', - name: '采购管理_付款方式_查询数据' - } - }) -} // 查询合同模板 export function searchContractDemo(num1 = null) { return request({ @@ -77,17 +66,6 @@ export function update(num, time, remarks) { } }) } -// 初始化付款时间节点 -export function initPayTimeNode() { - return request({ - url: '', - method: 'post', - data: { - type: '1', - name: '采购管理_付款时间节点_查询数据' - } - }) -} // 查询供应商 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({ @@ -100,54 +78,6 @@ export function searchSupplier(check1, value1, check2, value2, check3, value3, c } }) } -// 查询询价单列表 表1 -export function searchInquirySheet(check1, value1, check2, value2, check3, id) { - return request({ - url: '', - method: 'post', - data: { - type: '1', - name: '采购管理_询价单_查询数据', - param: `供应商流水号_check=${check1}&供应商流水号=${value1}&询价单编号_check=${check2}&询价单编号=${value2}&采购员流水号_check=${check3}&采购员流水号=${id}` - } - }) -} -// 根据询价单流水号查询询价单详情 -export function searchSheetDetail(num2) { - return request({ - url: '', - method: 'post', - data: { - type: '1', - name: '采购管理_询价单明细_查询数据', - param: '询价单流水号_check=1&询价单流水号=' + num2 - } - }) -} -// 移出询价单1 -export function outInquirySheet(num1, num2) { - return request({ - url: '', - method: 'post', - data: { - type: '2', - name: '采购管理_询价单明细_删除数据', - param: '询价单流水号=' + num1 + '&组件零件流水号=' + num2 - } - }) -} -// 根据询价单流水号查询询价单详情(合同内容) -export function searchSheetContract(num1) { - return request({ - url: '', - method: 'post', - data: { - type: '1', - name: '采购管理_询价单明细_查询数据_根据询价单', - param: '询价单流水号=' + num1 - } - }) -} // 生成采购合同 export function doneContract(num1, RequisitionNumber, name1, time1, time2, num2, text, freight, num3, partsNum, priceGroup, taxGroup, currency, num4, id, AdvanceCharge) { return request({ diff --git a/src/api/WorkshopProcurement/ReceiptConnectionSheet.js b/src/api/WorkshopProcurement/ReceiptConnectionSheet.js index 45b771a6..11c45928 100644 --- a/src/api/WorkshopProcurement/ReceiptConnectionSheet.js +++ b/src/api/WorkshopProcurement/ReceiptConnectionSheet.js @@ -14,38 +14,38 @@ export function searchInvoice(pageCurrent, pageSize, check1, num1, check2, time, }) } // 发票增加 -export function addInvoice(num1, num2, time1, money, send, receive, remark, time2) { +export function addInvoice(num1, num2, time1, money, send, receive, remark, time2, money1) { return request({ url: '', method: 'post', data: { type: '2', name: '采购管理_发票_增加数据', - param: '采购合同流水号=' + num1 + '&发票号=' + num2 + '&开票时间=' + time1 + '&开票金额=' + money + '&传送人=' + send + '&接收人=' + receive + '&备注=' + remark + '&操作时间=' + time2 + '&identity_receiptLiushuihao=1=int=output' + param: '采购合同流水号=' + num1 + '&发票号=' + num2 + '&开票时间=' + time1 + '&开票金额=' + money + '&传送人=' + send + '&接收人=' + receive + '&备注=' + remark + '&扣除金额=' + money1 + '&操作时间=' + time2 + '&identity_receiptLiushuihao=1=int=output' } }) } // 发票编辑 -export function editInvoice(num1, num2, num3, time1, money, send, receive, remark) { +export function editInvoice(num1, num2, num3, time1, money, send, receive, remark, money1) { return request({ url: '', method: 'post', data: { type: '2', name: '采购管理_发票_修改数据', - param: '发票流水号=' + num1 + '&采购合同流水号=' + num2 + '&发票号=' + num3 + '&开票时间=' + time1 + '&开票金额=' + money + '&传送人=' + send + '&接收人=' + receive + '&备注=' + remark + param: '发票流水号=' + num1 + '&采购合同流水号=' + num2 + '&发票号=' + num3 + '&开票时间=' + time1 + '&开票金额=' + money + '&传送人=' + send + '&接收人=' + receive + '&备注=' + remark + '&扣除金额=' + money1 } }) } // 发票删除 -export function deleteInvoice(num1) { +export function deleteInvoice(num1, num2) { return request({ url: '', method: 'post', data: { type: '2', name: '采购管理_发票_删除数据', - param: '发票流水号=' + num1 + param: '发票流水号=' + num1 + '&采购合同流水号=' + num2 } }) } diff --git a/src/vendor/exportExcel.js b/src/vendor/exportExcel.js index cecba6b0..43ec8c71 100644 --- a/src/vendor/exportExcel.js +++ b/src/vendor/exportExcel.js @@ -20,7 +20,7 @@ export function Cleanup() { } const tableToExcel = (function() { const uri = 'data:application/vnd.ms-excel;base64,' - const template = '{table}
' + const template = `{worksheet}{table}
` const base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) } const format = function(s, c) { return s.replace(/{(\w+)}/g, diff --git a/src/views/ManufacturingCenter/PartAssignment/index.vue b/src/views/ManufacturingCenter/PartAssignment/index.vue index daf11a83..fff04203 100644 --- a/src/views/ManufacturingCenter/PartAssignment/index.vue +++ b/src/views/ManufacturingCenter/PartAssignment/index.vue @@ -717,7 +717,8 @@ export default { }, purchaseRequisition() { if (this.RequisitionList !== '') { - if (this.time !== '') { + console.log(this.time) + if (this.time !== '' && this.time !== null) { if (this.BasicPartsNumber.length !== 0 || this.StandardPartsAndOutsourcing.length !== 0) { this.result = 0 if (this.PartType === '基本件') { @@ -794,7 +795,7 @@ export default { } }, PurchasingDepartment() { - if (this.time !== '') { + if (this.time !== '' && this.time !== null) { if (this.BasicPartsNumber.length !== 0 || this.StandardPartsAndOutsourcing.length !== 0) { if (this.PartType === '基本件') { purchaseRequisition2(this.projectFloatValue, this.machineFloatValue, this.groupFloatValue, this.BasicPartsNumber, this.NumberOfParts, this.time).then(response => { @@ -813,11 +814,11 @@ export default { this.tableData6 = response.data }) } else { - this.$message.success('请购失败') + this.$message.error('请购失败') } }) } else { - PurchasingDepartment(this.groupFloatValue, this.StandardPartsAndOutsourcing, this.time, this.MaterialNum, this.NumberOfParts, this.NumberOfParts, this.projectFloatValue, this.machineFloatValue).then(response => { + PurchasingDepartment(this.groupFloatValue, this.StandardPartsAndOutsourcing, this.time, this.MaterialNum, this.NumberOfParts, this.projectFloatValue, this.machineFloatValue).then(response => { if (response.data[0].result !== '0') { this.$message.success('请购成功') if (this.PartType === '外购件') { @@ -830,7 +831,7 @@ export default { }) } } else { - this.$message.success('请购失败') + this.$message.error('请购失败') } }) } diff --git a/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue b/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue index 80447156..875468b5 100644 --- a/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue +++ b/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue @@ -77,6 +77,17 @@ @current-change="handleCurrentChange"/> + + 有效时间: + + 设定 + 生成设备加工能力 + @@ -163,13 +174,14 @@ + + + diff --git a/src/views/WorkshopProcurement/PayStateSearch/index.vue b/src/views/WorkshopProcurement/PayStateSearch/index.vue index c5369aba..1cc8fffa 100644 --- a/src/views/WorkshopProcurement/PayStateSearch/index.vue +++ b/src/views/WorkshopProcurement/PayStateSearch/index.vue @@ -74,7 +74,7 @@ diff --git a/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue b/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue index 6003c704..b0068019 100644 --- a/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue +++ b/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue @@ -34,17 +34,17 @@ height="300px" highlight-current-row @row-click="searchTable2"> - + - + - + @@ -54,22 +54,22 @@ {{ scope.row.供应商名称 }} - + - + - + - + diff --git a/src/views/WorkshopProcurement/ProcurementContractEnquiry/index.vue b/src/views/WorkshopProcurement/ProcurementContractEnquiry/index.vue index 7030453e..8bb276d3 100644 --- a/src/views/WorkshopProcurement/ProcurementContractEnquiry/index.vue +++ b/src/views/WorkshopProcurement/ProcurementContractEnquiry/index.vue @@ -43,17 +43,17 @@ height="300px" highlight-current-row @row-click="searchTable2"> - + - + - + @@ -63,33 +63,34 @@ {{ scope.row.供应商名称 }} - + - + - + - + - + - + @@ -110,131 +111,133 @@
- - - - - - - - - - - - - - - - - -
GAOJING产品销售合同
需方江苏高精机电装备有限公司合同编号{{ contract }}
供方{{ supplier }}签订地点江苏盐城
-
根据《中华人民共和国合同法》的有关规定,经供需双方友好协商,在平等自愿的基础上定立本合同,以便供需双方共同遵守。
-
一、 产品名称、规格型号、材质、数量、单价和交货期:
- - - - - - - - - - - - - -
零件名称零件图号材料交货期备注数量单价总价
-
- - - - - - - - - - - - - - +
+
物料名称物料规格物料型号交货期备注数量单价总价
- - + + - - + + + + - -
总价: (人民币){{ RMB }}(未税) {{ TotalAmount }}GAOJING产品销售合同
总价: (人民币){{ RMB1 }}(含{{ taxRate }}增值税) {{ TotalAmount1 }}需方江苏高精机电装备有限公司合同编号{{ contract }}
-
以上价格为含税增值税价格,供方开具真实有效的16%增值税发票
-
- - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
供 方需 方
供方{{ supplier }}签订地点江苏盐城
单位名称(章) - 单位名称(章)江苏高精
法定代表人 - 法定代表人 -
委托代理人 - 委托代理人 -
电话 - 电话 -
传真 - 传真 -
开户银行 - 开户银行 -
账号 - 账号 -
税号 - 税号 -
邮政编码 - 邮政编码 -
-
签订时间:____年__月__日
-
有效期限:____年__月__日至____年__月__日
+ +
根据《中华人民共和国合同法》的有关规定,经供需双方友好协商,在平等自愿的基础上定立本合同,以便供需双方共同遵守。
+
一、 产品名称、规格型号、材质、数量、单价和交货期:
+ + + + + + + + + + + + + +
零件名称零件图号材料交货期备注数量单价总价
+
+ + + + + + + + + + + + + + + + + + + + + + + +
物料名称物料规格物料型号交货期备注数量单价总价
总价: (人民币){{ RMB }}(未税) {{ TotalAmount }}
总价: (人民币){{ RMB1 }}(含{{ taxRate }}增值税) {{ TotalAmount1 }}
+
以上价格为含税增值税价格,供方开具真实有效的16%增值税发票
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
供 方需 方
单位名称(章) + 单位名称(章)江苏高精
法定代表人 + 法定代表人 +
委托代理人 + 委托代理人 +
电话 + 电话 +
传真 + 传真 +
开户银行 + 开户银行 +
账号 + 账号 +
税号 + 税号 +
邮政编码 + 邮政编码 +
+
签订时间:____年__月__日
+
有效期限:____年__月__日至____年__月__日
+
@@ -279,6 +282,7 @@