{{ Number(scope.row.使用滞货数量) }}
@@ -1413,6 +1418,7 @@ export default {
this.groupValue ? check6 = 1 : check6 = 0
searchMaterial(this.pageCurrent11, this.pageSize11, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.materialName, check2, this.materialSpec, check3, this.materialModel, this.id, check4, this.projectValue, check5, this.machineValue, check6, this.groupValue, 2).then(response => {
this.tableData11 = response.data.rows
+ console.log(response.data.rows)
this.total11 = response.data.total
const remark = []
const supplier = []
diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
index 86876b4a..1edcb51b 100644
--- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
+++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
@@ -41,7 +41,15 @@
{{ item.name }}
- 时间段:
+ 组号:
+
+
+
+ 时间段:
-
+
+ 物料状态:
+
+ 物料类别:
+ 查询
+ clearable
+ @change="searchMaterialVariety">
+
+
+ 物料品种:
+
+
+
采购员:
@@ -71,18 +102,20 @@
-
- 组 号:
-
-
-
- 物料状态:
-
-
+
+ 物料名称:
+
+ 物料规格:
+
+ 物料型号:
+
+ 查询
+
-
- 物料类别:
-
-
-
- 物料品种:
-
-
-
-
-
- 物料名称:
-
- 物料规格:
-
- 物料型号:
-
-
@@ -688,6 +686,14 @@ export default {
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
picker.$emit('pick', [start, end])
}
+ }, {
+ text: '近一年',
+ onClick(picker) {
+ const end = new Date()
+ const start = new Date()
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 365)
+ picker.$emit('pick', [start, end])
+ }
}]
},
dateRange: '',
@@ -786,11 +792,19 @@ export default {
this.fetchData() // 初始化数据
this.searchUnallocatePartNumber()
this.timer2 = setInterval(this.searchUnallocatePartNumber, 20 * 60 * 1000) // 20 分钟一刷新
+ this.getDefaultTime()
},
beforeDestroy() {
clearInterval(this.timer2)
},
methods: {
+ getDefaultTime() {
+ const end = new Date()
+ const start = new Date()
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
+ end.getTime(start.getTime())
+ this.dateRange = [start, end]
+ },
// 选择机床
clickCard(project, machine) {
this.projectValue = project
@@ -1133,9 +1147,6 @@ export default {
.el-input{
width:200px
}
- span{
- margin: 10px 0 10px 10px;
- }