-
选入零件
+
选入零件
导出任务单
- 提交
+ 提交
@@ -116,7 +116,7 @@
- 移出
+ 移出
@@ -263,6 +263,7 @@ export default {
children: 'children',
label: 'label'
},
+ jinyong: '',
process: [[]],
returns: [],
零件图号: [],
@@ -373,6 +374,7 @@ export default {
},
// 点击表2 查询表3
searchProcess(row) {
+ row.单据状态 === '成交' ? this.jinyong = true : this.jinyong = false
this.loading = true
this.List3 = []
this.Number = row.外协加工任务单流水号
@@ -554,6 +556,7 @@ export default {
外协加工任务单明细流水号: response.data[i].外协加工任务单明细流水号,
加工价格_成交: response.data[i].加工价格_成交.toFixed(2),
机加工开始时间: response.data[i].机加工开始时间 ? response.data[i].机加工开始时间.split(' ')[0] : '',
+ 到货日期: response.data[i].到货日期,
零件图号: response.data[i].零件图号,
零件名称: response.data[i].零件名称,
批次数量: response.data[i].批次数量,
@@ -591,6 +594,7 @@ export default {
外协加工任务单明细流水号: response.data[i].外协加工任务单明细流水号,
加工价格_成交: response.data[i].加工价格_成交.toFixed(2),
机加工开始时间: response.data[i].机加工开始时间 ? response.data[i].机加工开始时间.split(' ')[0] : '',
+ 到货日期: response.data[i].到货日期,
零件图号: response.data[i].零件图号,
零件名称: response.data[i].零件名称,
批次数量: response.data[i].批次数量,
@@ -670,6 +674,7 @@ export default {
外协加工任务单明细流水号: response.data[i].外协加工任务单明细流水号,
加工价格_成交: response.data[i].加工价格_成交.toFixed(2),
机加工开始时间: response.data[i].机加工开始时间 ? response.data[i].机加工开始时间.split(' ')[0] : '',
+ 到货日期: response.data[i].到货日期,
零件图号: response.data[i].零件图号,
零件名称: response.data[i].零件名称,
批次数量: response.data[i].批次数量,
diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue
index 9e9463e7..51297208 100644
--- a/src/views/PurchasingCenter/OfflineContract/index.vue
+++ b/src/views/PurchasingCenter/OfflineContract/index.vue
@@ -322,9 +322,9 @@
{{ scope.row.物料型号 ? scope.row.物料型号 : scope.row.零件图号 }}
-
+
-
+
{{ scope.row.数量 }}
@@ -344,9 +344,20 @@
{{ (scope.row.单价 / (1 + taxRate)).toFixed(2) }}
-
+
-
+
{{ (scope.row.未税单价 * (1 + taxRate)).toFixed(2) }}
@@ -844,6 +855,23 @@ export default {
this.initDirection()
},
methods: {
+ changefixed(val, index, date) {
+ console.log(index, 6666)
+ let value = '' + val
+ value = value
+ .replace(/[^\d.]/g, '') // 清除“数字”和“.”以外的字符
+ .replace(/\.{2,}/g, '.') // 只保留第一个. 清除多余的
+ .replace('.', '$#$')
+ .replace(/\./g, '')
+ .replace('$#$', '.')
+ .replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3') // 只能输入两个小数
+ if (value.indexOf('.') < 0 && value !== '') {
+ value = parseFloat(value).toFixed(2)
+ }
+ console.log(value, this.tableData3[index][date])
+ this.tableData3[index][date] = value
+ console.log(this.tableData3[index][date], 'this.tableData3[index][date]')
+ },
handleSelection(val, row) {
console.log(row, 123)
this.tableData00.forEach((item, i) => {
@@ -1294,13 +1322,14 @@ export default {
this.离线合同状态 = row.离线合同状态
this.loading4 = true
searchMateriel(this.offlineContractNum).then(response => {
- console.log(response.data)
+ console.log(response, 'response')
this.tableData3 = response.data
this.tableData3.map(v => {
this.$set(v, '未税总额', 0)
this.$set(v, '含税总额', 0)
- !v.单价 ? v.单价 = v.参考价格 : v.单价
- this.$set(v, '未税单价', v.单价 / (1 + this.taxRate))
+ this.$set(v, '单价', (v.单价).toFixed(2))
+ !v.单价 ? v.单价 = parseFloat(v.参考价格).toFixed(2) : parseFloat(v.单价).toFixed(2)
+ this.$set(v, '未税单价', (v.单价 / (1 + this.taxRate)).toFixed(2))
})
console.log(this.tableData3, 'tableData31')
this.loading4 = false
@@ -1372,7 +1401,7 @@ export default {
this.$set(v, '未税总额', 0)
this.$set(v, '含税总额', 0)
!v.单价 ? v.单价 = v.参考价格 : v.单价
- this.$set(v, '未税单价', v.单价 / (1 + this.taxRate))
+ this.$set(v, '未税单价', (v.单价 / (1 + this.taxRate)).toFixed(2))
})
})
} else { this.$message.error('选入失败') }
@@ -1395,7 +1424,7 @@ export default {
this.$set(v, '未税总额', 0)
this.$set(v, '含税总额', 0)
!v.单价 ? v.单价 = v.参考价格 : v.单价
- this.$set(v, '未税单价', v.单价 / (1 + this.taxRate))
+ this.$set(v, '未税单价', (v.单价 / (1 + this.taxRate)).toFixed(2))
})
})
if (this.tabName === '外购件' || this.tabName === '标准件') {
@@ -1768,6 +1797,13 @@ export default {
width:150px;
margin-right: 10px;
}
+ .editWorkTime input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
+ -webkit-appearance: none;
+ text-align: center;
+ }
+ .editWorkTime input[type="number"]{
+ -moz-appearance: textfield;
+ }
+
diff --git a/src/views/WorkshopProcurement/PurchaseSituationSearchMetalworking/index.vue b/src/views/WorkshopProcurement/PurchaseSituationSearchMetalworking/index.vue
new file mode 100644
index 00000000..ffc3ff77
--- /dev/null
+++ b/src/views/WorkshopProcurement/PurchaseSituationSearchMetalworking/index.vue
@@ -0,0 +1,153 @@
+
+
+
+
+
+ 查询
+
+
+
+
+
+ {{ 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.采购员 }}
+
+
+
+
+ {{ scope.row.零件数量 }}
+
+
+
+
+ {{ scope.row.已到货数量 }}
+
+
+
+
+ {{ scope.row.到货时间 ? scope.row.到货时间.split(' ')[0] : '' }}
+
+
+
+
+ {{ scope.row.供应商名称 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/WorkshopProcurement/RequestApprovalQuery2/index.vue b/src/views/WorkshopProcurement/RequestApprovalQuery2/index.vue
index c9a83f26..62a6dbb5 100644
--- a/src/views/WorkshopProcurement/RequestApprovalQuery2/index.vue
+++ b/src/views/WorkshopProcurement/RequestApprovalQuery2/index.vue
@@ -36,7 +36,7 @@
-
+
{{ scope.row.供应商名称 }}
@@ -46,7 +46,7 @@
{{ scope.row.姓名 }}
-
+
{{ scope.row.请款金额 }}
@@ -71,16 +71,16 @@
-
-
- {{ scope.row.审批时间 ? scope.row.审批时间.split(' ')[0] : '' }}
-
-
{{ scope.row.审批人 }}
+
+
+ {{ scope.row.审批时间 ? scope.row.审批时间.split(' ')[0] : '' }}
+
+
{{ scope.row.审批情况内容 }}
@@ -101,7 +101,7 @@
{{ scope.row.付款时间 ? scope.row.付款时间.split(' ')[0] : '' }}
-
+
{{ scope.row.付款情况内容 }}
@@ -226,6 +226,7 @@ export default {
},
searchTable2(row) { // 查看详情(请款信息包含的合同)
this.gridData = []
+ this.dialogFormVisible = true
searchRequsetFundDetail(row.采购合同请款流水号).then(response => {
this.gridData = response.data
})