+
@@ -505,6 +507,37 @@ import { ExcelWaiGou } from '@/utils/request'
export default {
data() {
return {
+ check1: 0,
+ check2: 0,
+ dateRange: '',
+ expands: [],
+ pickerOptions: {
+ shortcuts: [{
+ text: '上季度',
+ onClick(picker) {
+ const end = new Date()
+ const start = new Date()
+ start.setTime(end.getTime() - 3600 * 1000 * 24 * 30 * 3)
+ picker.$emit('pick', [start, end])
+ }
+ }, {
+ text: '过去半年',
+ onClick(picker) {
+ const end = new Date()
+ const start = new Date()
+ start.setTime(end.getTime() - 3600 * 1000 * 24 * 366 / 2)
+ picker.$emit('pick', [start, end])
+ }
+ }, {
+ text: '过去一年',
+ onClick(picker) {
+ const end = new Date()
+ const start = new Date()
+ start.setTime(end.getTime() - 3600 * 1000 * 24 * 365)
+ picker.$emit('pick', [start, end])
+ }
+ }]
+ },
excle_row: [],
supplierNameValue: '',
supplierName: [], // 供应商
@@ -517,11 +550,11 @@ export default {
planTypes: [
{
value: 0,
- label: '采购计划'
+ label: '备料采购计划'
},
{
value: 1,
- label: '离线采购计划'
+ label: '备料(离线)采购计划'
}
],
arrest: [],
@@ -628,7 +661,7 @@ export default {
created() {
this.fetchdata()
this.searchTable2()
- this.searchTable4()
+ // this.searchTable4()
},
methods: {
saveData(row) {
@@ -711,7 +744,7 @@ export default {
const sums = []
columns.forEach((column, index) => {
if (index === 1) {
- sums[index] = '总数量:'
+ sums[index] = '总重量:'
return
} else if (index === 2) {
const values = data.map(item => Number(item['数量']))
@@ -728,6 +761,9 @@ export default {
} else {
sums[index] = 'N/A'
}
+ } else if (index === 3) {
+ sums[index] = 'KG'
+ return
} else if (index === 4) {
sums[index] = '总金额:'
return
@@ -804,12 +840,13 @@ export default {
this.tableData5 = []
this.tableData6 = []
this.supplierNameValue ? this.check = 1 : this.check = 0
+ this.dateRange ? this.check1 = 1 : (this.check1 = 0, this.dateRange = '')
if (this.PickingValue === 0 || this.PickingValue === 1) {
this.check2 = 1
} else {
this.check2 = 0
}
- searchArriveOrder(this.check, this.supplierNameValue, this.check2, this.PickingValue, this.pageCurrent4, this.pageSize4).then(response => {
+ searchArriveOrder(this.check, this.supplierNameValue, this.check2, this.PickingValue, this.check1, this.dateRange[0], this.dateRange[1], this.pageCurrent4, this.pageSize4).then(response => {
this.tableData4 = response.data.rows
this.total4 = response.data.total
})
diff --git a/src/views/WorkshopProcurement/OfflineProcurement/index.vue b/src/views/WorkshopProcurement/OfflineProcurement/index.vue
index 2bddfa61..c81b7196 100644
--- a/src/views/WorkshopProcurement/OfflineProcurement/index.vue
+++ b/src/views/WorkshopProcurement/OfflineProcurement/index.vue
@@ -25,19 +25,19 @@
查询
-
+
{{ scope.row.机床图号 }}
-
+
{{ scope.row.组号 }}
-
+
{{ scope.row.零件图号 }}
@@ -52,7 +52,7 @@
{{ scope.row.批次数量 }}
-
+
{{ scope.row.材料 }}
@@ -71,8 +71,8 @@
- 离线采购计划编号:
-
+ 离线备料单号:
+
供应商:
{
+ getTable(this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, '', '', this.pageCurrent10, this.pageSize10, this.ordername, this.order).then(response => {
if (response.data.rows.length !== 0) {
for (let i = 0; i < response.data.rows.length; i++) {
this.tableData10.push({
diff --git a/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue b/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue
index 49d42f0f..8592ba4f 100644
--- a/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue
+++ b/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue
@@ -121,7 +121,7 @@
:disabled="Number(scope.row.是否请款)===1"
type="text"
size="mini"
- icon="el-icon-delete"
+ icon="el-icon-right"
style="margin-left: 20px"
@click="deleteTable1(scope.row)"/>