Merge branch 'master' of http://123.56.95.229:10010/r/高精
This commit is contained in:
@@ -49,15 +49,14 @@ export function deletePurchaseOrder(PurchaseOrderNameValue) {
|
||||
})
|
||||
}
|
||||
// 查询采购单
|
||||
export function searchPurchaseOrder(pageCurrent, pageSize, check1, num, check3, name2) {
|
||||
export function searchPurchaseOrder(check1, num, check3, name2) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '备料管理_离线采购计划_查询数据',
|
||||
param: `离线采购计划编号_check=${check1}&离线采购计划编号=${num}&供应商流水号_check=${check3}&供应商流水号=${name2}`,
|
||||
Pagination: pageCurrent + '&' + pageSize
|
||||
param: `离线采购计划编号_check=${check1}&离线采购计划编号=${num}&供应商流水号_check=${check3}&供应商流水号=${name2}`
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -109,15 +108,14 @@ export function getGroups(stepNumber) {
|
||||
})
|
||||
}
|
||||
|
||||
export function getTable(checkbox_Machine, Machine, checkbox_Group, Group, checkbox_number, number, k, m, pageCurrent, pageSize, ordername, order) {
|
||||
export function getTable(checkbox_Machine, Machine, checkbox_Group, Group, checkbox_number, number, k, m, ordername, order) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_横向赋值新建存储过程_新',
|
||||
param: '项目流水号_check=0=string&机床流水号_check=' + checkbox_Machine + '=string&机床流水号=' + Machine + '=string&组件流水号_check=' + checkbox_Group + '=string&组件流水号=' + Group + '=string&零件图号_check=' + checkbox_number + '=string&零件图号=' + number + '=string&是否查询全部数据=1=string&单件是否外协=1=string&考核状态=6=int&开始时间_check=0&开始时间=' + k + '&结束时间_check=0&结束时间=' + m + '&排序名称=' + ordername + '&排序方式=' + order,
|
||||
Pagination: pageCurrent + '&' + pageSize
|
||||
param: '项目流水号_check=0=string&机床流水号_check=' + checkbox_Machine + '=string&机床流水号=' + Machine + '=string&组件流水号_check=' + checkbox_Group + '=string&组件流水号=' + Group + '=string&零件图号_check=' + checkbox_number + '=string&零件图号=' + number + '=string&是否查询全部数据=1=string&单件是否外协=1=string&考核状态=6=int&开始时间_check=0&开始时间=' + k + '&结束时间_check=0&结束时间=' + m + '&排序名称=' + ordername + '&排序方式=' + order
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -13,27 +13,29 @@ export function searchSupplier(check1, value1, check2, value2, check3, value3, c
|
||||
})
|
||||
}
|
||||
// 查询备料
|
||||
export function searchTable(check, supplierNameValue, check1, partNumber, check2, MaterialsValue, pageSize, pageCurrent) {
|
||||
export function searchTable(check, supplierNameValue, check1, partNumber, check2, MaterialsValue, check3, starttime, endtime, ordername, order, pageSize, pageCurrent) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '备料管理_外购备料_综合查询数据',
|
||||
param: '供应商流水号_check=' + check + '&供应商流水号=' + supplierNameValue + '&零件图号_check=' + check1 + '&零件图号=' + partNumber + '&备料状态_check=' + check2 + '&备料状态=' + MaterialsValue,
|
||||
param: '供应商流水号_check=' + check + '&供应商流水号=' + supplierNameValue + '&零件图号_check=' + check1 + '&零件图号=' + partNumber + '&备料状态_check=' + check2 + '&备料状态=' + MaterialsValue +
|
||||
'&下单时间_check=' + check3 + '&开始时间=' + starttime + '&结束时间=' + endtime + '&排序名称=' + ordername + '&排序方式=' + order,
|
||||
Pagination: pageCurrent + '&' + pageSize
|
||||
}
|
||||
})
|
||||
}
|
||||
// 导出
|
||||
export function searchTablesheet(check, supplierNameValue, check1, partNumber, check2, MaterialsValue, pageSize, pageCurrent) {
|
||||
export function searchTablesheet(check, supplierNameValue, check1, partNumber, check2, MaterialsValue, check3, starttime, endtime, ordername, order) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '备料管理_外购备料_综合查询数据',
|
||||
param: '供应商流水号_check=' + check + '&供应商流水号=' + supplierNameValue + '&零件图号_check=' + check1 + '&零件图号=' + partNumber + '&备料状态_check=' + check2 + '&备料状态=' + MaterialsValue
|
||||
param: '供应商流水号_check=' + check + '&供应商流水号=' + supplierNameValue + '&零件图号_check=' + check1 + '&零件图号=' + partNumber + '&备料状态_check=' + check2 + '&备料状态=' + MaterialsValue +
|
||||
'&下单时间_check=' + check3 + '&开始时间=' + starttime + '&结束时间=' + endtime + '&排序名称=' + ordername + '&排序方式=' + order
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
BIN
src/assets/img/blueTWinkle.gif
Normal file
BIN
src/assets/img/blueTWinkle.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 103 B |
BIN
src/assets/img/grayTwinkle.gif
Normal file
BIN
src/assets/img/grayTwinkle.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 103 B |
BIN
src/assets/img/greenTwinkle.gif
Normal file
BIN
src/assets/img/greenTwinkle.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 103 B |
BIN
src/assets/img/yellowTwinkle.gif
Normal file
BIN
src/assets/img/yellowTwinkle.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 103 B |
BIN
src/assets/img/设备监控.psd
Normal file
BIN
src/assets/img/设备监控.psd
Normal file
Binary file not shown.
@@ -29,7 +29,7 @@
|
||||
v-loading="loading"
|
||||
:data="tableData"
|
||||
height="760"
|
||||
style="width: 1126px; margin: 3px 0"
|
||||
style="width: 1408px; margin: 3px 0"
|
||||
size="mini"
|
||||
border
|
||||
stripe
|
||||
@@ -81,6 +81,16 @@
|
||||
{{ scope.row.工艺要求 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备料任务接受时间" align="center" width="140" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.备料任务接受时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备料任务分配时间" align="center" width="140" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.备料任务分配时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
@@ -217,7 +227,9 @@ export default {
|
||||
工艺要求: response.data[0].工艺要求,
|
||||
材料: this.Data[i].材料,
|
||||
重量: this.Data[i].重量,
|
||||
批次数量: this.Data[i].批次数量
|
||||
批次数量: this.Data[i].批次数量,
|
||||
备料任务接受时间: this.Data[i].备料任务接受时间,
|
||||
备料任务分配时间: this.Data[i].备料任务分配时间
|
||||
})
|
||||
})
|
||||
this.loading = false
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -669,11 +669,13 @@ export default {
|
||||
const _this = this
|
||||
if (route.name === 'PartAssignment') {
|
||||
_this.fetchData()
|
||||
_this.DeliveryTime = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.DeliveryTime = ''
|
||||
this.fetchData()
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
<el-button :disabled="scope.row.实际付款时间!==''" size="mini" type="primary" plain class="el-icon-edit" @click="Withdrawing(scope.$index, scope.row, 'form2')">扣款</el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="付款信息" placement="top">
|
||||
<el-button :disabled="scope.row.实际付款时间!==''||scope.row.单据状态!=='3'" size="mini" type="success" class="el-icon-check" @click="payment(scope.$index, scope.row)">付款</el-button>
|
||||
<el-button :disabled="scope.row.实际付款时间!==''||scope.row.单据状态!=='3'" size="mini" type="success" class="el-icon-check" @click="payment(scope.$index, scope.row)">付款</el-button>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@@ -58,30 +58,30 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
:current-page="pageCurrent10"
|
||||
:page-sizes="[10, 20, 30, 40]"
|
||||
:page-size="pageSize10"
|
||||
:total="total10"
|
||||
style="display:inline-block;width:50%"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange10"
|
||||
@current-change="handleCurrentChange10"/>
|
||||
</div>
|
||||
<!--<div class="block">-->
|
||||
<!--<el-pagination-->
|
||||
<!--:current-page="pageCurrent10"-->
|
||||
<!--:page-sizes="[10, 20, 30, 40]"-->
|
||||
<!--:page-size="pageSize10"-->
|
||||
<!--:total="total10"-->
|
||||
<!--style="display:inline-block;width:50%"-->
|
||||
<!--layout="total, sizes, prev, pager, next, jumper"-->
|
||||
<!--@size-change="handleSizeChange10"-->
|
||||
<!--@current-change="handleCurrentChange10"/>-->
|
||||
<!--</div>-->
|
||||
</el-card>
|
||||
<el-card style="width: 1137px">
|
||||
<span>离线备料单号:</span>
|
||||
<el-input v-model="purchasingOrder" placeholder="离线备料单号" size="small" style="width: 160px" clearable/>
|
||||
<span style="margin-left: 10px">供应商:</span>
|
||||
<el-select v-model="supplierName" placeholder="供应商" size="small" style="width: 150px" filterable clearable>
|
||||
<el-select v-model="supplierName" placeholder="供应商" size="small" style="width: 150px" filterable clearable @change="searchTable">
|
||||
<el-option
|
||||
v-for="item in supplierNames"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 10px" @click="pageCurrent2=1;pageSize2=10;total2=0;searchTable()">查询</el-button>
|
||||
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 10px" @click="searchTable()">查询</el-button>
|
||||
<el-button type="primary" size="small" icon="el-icon-plus" style="margin-left: 10px" @click="addPurchaseOrder">创建采购计划单</el-button>
|
||||
<!--<el-tooltip :open-delay="1200" effect="dark" content="保存选中的采购计划单" placement="top">-->
|
||||
<!--<el-button type="baocun" size="small" icon="el-icon-download" style="margin-left: 10px" @click="saveMateriel">保存采购计划单</el-button>-->
|
||||
@@ -137,17 +137,17 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
:current-page="pageCurrent2"
|
||||
:page-sizes="[10, 20, 30, 40]"
|
||||
:page-size="pageSize2"
|
||||
:total="total2"
|
||||
style="display:inline-block;width:50%"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange2"
|
||||
@current-change="handleCurrentChange2"/>
|
||||
</div>
|
||||
<!--<div class="block">-->
|
||||
<!--<el-pagination-->
|
||||
<!--:current-page="pageCurrent2"-->
|
||||
<!--:page-sizes="[10, 20, 30, 40]"-->
|
||||
<!--:page-size="pageSize2"-->
|
||||
<!--:total="total2"-->
|
||||
<!--style="display:inline-block;width:50%"-->
|
||||
<!--layout="total, sizes, prev, pager, next, jumper"-->
|
||||
<!--@size-change="handleSizeChange2"-->
|
||||
<!--@current-change="handleCurrentChange2"/>-->
|
||||
<!--</div>-->
|
||||
</el-card>
|
||||
<el-card style="width: 1137px">
|
||||
<el-table v-loading="" :data="tableData3" stripe highlight-current-row border style="width: 100%;max-height: 300px;margin-top: 10px" size="mini">
|
||||
@@ -402,7 +402,7 @@ export default {
|
||||
})
|
||||
}
|
||||
})
|
||||
this.getTableData()
|
||||
// this.getTableData()
|
||||
}
|
||||
}, // 获取组号
|
||||
getGroup() {
|
||||
@@ -415,7 +415,7 @@ export default {
|
||||
value: response.data[i].组件流水号
|
||||
})
|
||||
}
|
||||
this.Group = response.data[0].组件流水号
|
||||
// this.Group = response.data[0].组件流水号
|
||||
})
|
||||
this.getTableData()
|
||||
},
|
||||
@@ -442,6 +442,10 @@ export default {
|
||||
// 按条件查询
|
||||
getTableData() {
|
||||
this.tableData10 = []
|
||||
if (!this.Machine && !this.Group && !this.number) {
|
||||
this.$message.error('请输入筛选条件!')
|
||||
return
|
||||
}
|
||||
if (this.Machine === '') {
|
||||
this.checkbox_Machine = 0
|
||||
} else {
|
||||
@@ -457,21 +461,20 @@ export default {
|
||||
} else {
|
||||
this.checkbox_number = 1
|
||||
}
|
||||
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++) {
|
||||
getTable(this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, '', '', this.ordername, this.order).then(response => {
|
||||
if (response.data.length !== 0) {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.tableData10.push({
|
||||
工艺计划流水号: response.data.rows[i].工艺计划流水号,
|
||||
机床图号: response.data.rows[i].机床图号,
|
||||
组号: response.data.rows[i].组号,
|
||||
零件图号: response.data.rows[i].零件图号,
|
||||
零件名称: response.data.rows[i].零件名称,
|
||||
批次数量: response.data.rows[i].批次数量,
|
||||
材料: response.data.rows[i].材料
|
||||
工艺计划流水号: response.data[i].工艺计划流水号,
|
||||
机床图号: response.data[i].机床图号,
|
||||
组号: response.data[i].组号,
|
||||
零件图号: response.data[i].零件图号,
|
||||
零件名称: response.data[i].零件名称,
|
||||
批次数量: response.data[i].批次数量,
|
||||
材料: response.data[i].材料
|
||||
})
|
||||
}
|
||||
}
|
||||
this.total10 = response.data.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
@@ -492,11 +495,16 @@ export default {
|
||||
}
|
||||
},
|
||||
searchTable() {
|
||||
this.tableData = []
|
||||
if (!this.purchasingOrder && !this.supplierName) {
|
||||
this.$message.error('请输入筛选条件!')
|
||||
return
|
||||
}
|
||||
this.purchasingOrder ? this.check3 = 1 : this.check3 = 0
|
||||
this.supplierName ? this.check4 = 1 : this.check4 = 0
|
||||
searchPurchaseOrder(this.pageCurrent2, this.pageSize2, this.check3, this.purchasingOrder, this.check4, this.supplierName).then(response => {
|
||||
this.tableData = response.data.rows
|
||||
this.total2 = response.data.total
|
||||
searchPurchaseOrder(this.check3, this.purchasingOrder, this.check4, this.supplierName).then(response => {
|
||||
this.tableData = response.data
|
||||
// this.total2 = response.data.total
|
||||
})
|
||||
},
|
||||
handleSizeChange2(val) { // 采购单列表分页
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-card style="width: 72%">
|
||||
<el-card style="width: 76%">
|
||||
<div style="margin-top: 7px; margin-bottom: 7px">
|
||||
<span>供应商</span>
|
||||
<el-select v-model="supplierNameValue" style="width:200px" placeholder="供应商" size="small" filterable clearable>
|
||||
@@ -20,11 +20,24 @@
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<span>备料时间段:</span>
|
||||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
:picker-options="pickerOptions"
|
||||
size="small"
|
||||
type="daterange"
|
||||
align="center"
|
||||
style="width: 300px;margin: 3px 0"
|
||||
value-format="yyyy-MM-dd"
|
||||
format="yyyy-MM-dd"
|
||||
range-separator="~"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"/>
|
||||
<el-button icon="el-icon-search" type="success" size="small" @click="pageCurrent = 1;pageSize = 100;getTableData()">查询</el-button>
|
||||
<el-button type="primary" icon="el-icon-download" size="small" @click="exportExcel()">导出</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
<el-card style="width: 72%">
|
||||
<el-card style="width: 76%">
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="tableData"
|
||||
@@ -33,7 +46,8 @@
|
||||
stripe
|
||||
size="mini"
|
||||
style="width: 100%"
|
||||
height="760">
|
||||
height="760"
|
||||
@sort-change="sortChange">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
align="center"
|
||||
@@ -52,7 +66,11 @@
|
||||
<el-table-column
|
||||
label="供应商"
|
||||
align="center"
|
||||
min-width="210px">
|
||||
min-width="210px"
|
||||
width="300"
|
||||
prop="供应商名称"
|
||||
sortable="custom"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">{{ scope.row.供应商名称 }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -64,12 +82,16 @@
|
||||
<el-table-column
|
||||
label="物料名称"
|
||||
align="center"
|
||||
prop="零件名称"
|
||||
sortable="custom"
|
||||
width="120px">
|
||||
<template slot-scope="scope">{{ scope.row.零件名称 }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="材料"
|
||||
width="100"
|
||||
width="90"
|
||||
prop="材料"
|
||||
sortable="custom"
|
||||
align="center">
|
||||
<template slot-scope="scope">{{ scope.row.材料 }}</template>
|
||||
</el-table-column>
|
||||
@@ -78,7 +100,7 @@
|
||||
{{ scope.row.采购数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备料时间" align="center" width="100">
|
||||
<el-table-column label="备料时间" align="center" prop="下单日期" sortable="custom" width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.下单日期 ? scope.row.下单日期.split(' ')[0] : '' }}
|
||||
</template>
|
||||
@@ -122,6 +144,37 @@ export default {
|
||||
name: 'Index',
|
||||
data() {
|
||||
return {
|
||||
ordername: '',
|
||||
order: '',
|
||||
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])
|
||||
}
|
||||
}]
|
||||
},
|
||||
supplierNameValue: '',
|
||||
supplierNames: [],
|
||||
partNumber: '',
|
||||
@@ -145,7 +198,7 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.fetchData()
|
||||
this.getTableData()
|
||||
// this.getTableData()
|
||||
},
|
||||
methods: {
|
||||
formatJson(filterVal, jsonData) {
|
||||
@@ -154,7 +207,8 @@ export default {
|
||||
}))
|
||||
},
|
||||
exportExcel() {
|
||||
let check, check1, check2
|
||||
let check, check1, check2, check3
|
||||
this.dateRange ? check3 = 1 : (check3 = 0, this.dateRange = '')
|
||||
this.supplierNameValue ? check = 1 : check = 0
|
||||
this.partNumber ? check1 = 1 : check1 = 0
|
||||
if (this.MaterialsValue !== '' && this.MaterialsValue !== null) {
|
||||
@@ -162,11 +216,11 @@ export default {
|
||||
} else {
|
||||
check2 = 0
|
||||
}
|
||||
searchTablesheet(check, this.supplierNameValue, check1, this.partNumber, check2, this.MaterialsValue).then(res => {
|
||||
searchTablesheet(check, this.supplierNameValue, check1, this.partNumber, check2, this.MaterialsValue, check3, this.dateRange[0], this.dateRange[1], this.ordername, this.order).then(res => {
|
||||
console.log(res.data, 11)
|
||||
import('@/vendor/Export2Excel').then(excel => {
|
||||
const tHeader = ['备料状态', '供应商', '物料编码', '物料名称', '材料', '备件件数', '备料时间', '到货件数', '到货时间', '结算时间']
|
||||
const filterVal = ['是否到货', '供应商名称', '物料编码', '零件名称', '材料', '采购数量', '下单日期', '到货数量', '日期', '开票时间']
|
||||
const tHeader = ['备料状态', '供应商', '物料编码', '物料名称', '材料', '备料件数', '备料时间', '到货件数', '到货时间', '结算时间']
|
||||
const filterVal = ['备料状态', '供应商名称', '物料编码', '零件名称', '材料', '采购数量', '下单日期', '到货数量', '日期', '开票时间']
|
||||
const list = res.data
|
||||
const data = this.formatJson(filterVal, list)
|
||||
excel.export_json_to_excel({
|
||||
@@ -189,9 +243,31 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
// 按供应商名称,下单日期,零件名称,材料
|
||||
sortChange(column) {
|
||||
console.log(column + '-' + column.prop + '-' + column.order, 11111)
|
||||
if (column.prop === '供应商名称') {
|
||||
this.ordername = 1
|
||||
} else if (column.prop === '零件名称') {
|
||||
this.ordername = 2
|
||||
} else if (column.prop === '材料') {
|
||||
this.ordername = 3
|
||||
} else if (column.prop === '下单日期') {
|
||||
this.ordername = 4
|
||||
} else {
|
||||
this.ordername = ''
|
||||
}
|
||||
if (column.order === 'ascending') {
|
||||
this.order = 1
|
||||
} else if (column.order === 'descending') { this.order = 2 } else {
|
||||
this.order = ''
|
||||
}
|
||||
this.getTableData()
|
||||
},
|
||||
getTableData() {
|
||||
this.loading = true
|
||||
let check, check1, check2
|
||||
let check, check1, check2, check3
|
||||
this.dateRange ? check3 = 1 : (check3 = 0, this.dateRange = '')
|
||||
this.supplierNameValue ? check = 1 : check = 0
|
||||
this.partNumber ? check1 = 1 : check1 = 0
|
||||
if (this.MaterialsValue !== '' && this.MaterialsValue !== null) {
|
||||
@@ -199,8 +275,8 @@ export default {
|
||||
} else {
|
||||
check2 = 0
|
||||
}
|
||||
console.log(this.MaterialsValue, check2, 123)
|
||||
searchTable(check, this.supplierNameValue, check1, this.partNumber, check2, this.MaterialsValue, this.pageSize, this.pageCurrent).then(response => {
|
||||
searchTable(check, this.supplierNameValue, check1, this.partNumber, check2, this.MaterialsValue, check3, this.dateRange[0], this.dateRange[1], this.ordername, this.order, this.pageSize, this.pageCurrent).then(response => {
|
||||
console.log(response)
|
||||
this.tableData = response.data.rows
|
||||
this.total = response.data.total
|
||||
this.loading = false
|
||||
|
||||
@@ -300,7 +300,7 @@ export default {
|
||||
this.searchTable1()
|
||||
},
|
||||
requestFund() { // 请款
|
||||
this.searchTable01()
|
||||
// this.searchTable01()
|
||||
this.dialogVisible2 = true
|
||||
this.supplierValue = ''
|
||||
this.fetchData() // 重新获取供应商
|
||||
@@ -333,7 +333,7 @@ export default {
|
||||
} else { this.$message.error('请款失败') }
|
||||
})
|
||||
} else {
|
||||
this.$message.error('请选择需要请款的合同')
|
||||
this.$message.error('请选择供应商及对应请款合同')
|
||||
}
|
||||
},
|
||||
searchTable02(row) { // 查看详情(请款信息包含的合同)
|
||||
|
||||
Reference in New Issue
Block a user