创建询价单按时间查询保存时间

This commit is contained in:
zhangdingyu
2019-10-19 10:13:57 +08:00
parent 69de4a6a54
commit eb26ed426f
2 changed files with 59 additions and 8 deletions

View File

@@ -353,7 +353,7 @@ export function searchMerge(num) {
}
})
}
export function getPerson(num) {
export function getPerson() {
return request({
url: '',
method: 'post',
@@ -387,3 +387,38 @@ export function tiaozheng2(num1, num2) {
}
})
}
// 查询时间@change修改
export function timeChange1(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '采购管理_创建询价单_外购件时间修改',
param: '外购件开始时间=' + num1 + '&外购件结束时间=' + num2
}
})
}
// 查询时间@change修改
export function timeChange2(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '采购管理_创建询价单_基本件时间修改',
param: '基本件开始时间=' + num1 + '&基本件结束时间=' + num2
}
})
}
// 查询时间初始化查询
export function timeSearch() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '采购管理_创建询价单_时间查询'
}
})
}

View File

@@ -88,7 +88,8 @@
range-separator=""
style="width:250px"
start-placeholder="开始日期"
end-placeholder="结束日期"/>
end-placeholder="结束日期"
@change="timeChange1()"/>
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 10px" @click="pageCurrent11=1;pageSize11=100;total11=0;searchTable11()">查询</el-button>
<el-button type="warning" size="small" icon="el-icon-download" style="margin-left: 10px" @click="exportUninquirySheet">导出未询价物料清单</el-button>
<el-popover v-model="visible" title="调整采购任务" placement="top" width="180">
@@ -301,7 +302,8 @@
range-separator=""
style="width:250px"
start-placeholder="开始日期"
end-placeholder="结束日期"/>
end-placeholder="结束日期"
@change="timeChange2()"/>
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 10px" @click="pageCurrent12=1;pageSize12=100;total12=0;searchTable12()">查询</el-button>
<el-button type="warning" size="small" icon="el-icon-download" style="margin-left: 10px" @click="exportUninquirySheet">导出未询价物料清单</el-button>
<el-popover v-model="visible2" title="调整采购任务" placement="top" width="180">
@@ -1086,7 +1088,7 @@
</template>
<script>
import { tiaozheng2, tiaozheng1, getPerson, getBillNum, searchMaterial, searchPart, searchSupplier, searchCreateInquirySheet, searchCreateInquirySheet2, searchSheetDetail, editInquirySheet,
import { timeSearch, timeChange1, timeChange2, tiaozheng2, tiaozheng1, getPerson, getBillNum, searchMaterial, searchPart, searchSupplier, searchCreateInquirySheet, searchCreateInquirySheet2, searchSheetDetail, editInquirySheet,
createInquirySheet, deleteInquirySheet, addInquirySheet1, addInquirySheet2, outInquirySheet, searchAllMaterial, materialChange, saveOrder,
submitUseInventory, initProject, searchMachine, searchGroup, searchBaseInfo, editBaseInfo, getExport1, getExport2, searchMerge } from '@/api/PurchasingCenter/CreateInquirySheet'
import { mapGetters } from 'vuex'
@@ -1098,8 +1100,8 @@ export default {
name: '', // 创建询价单
data() {
return {
startTime: '',
endTime: '',
startTime: [],
endTime: [],
标准件和外购件流水号: [],
基本件流水号: [],
visible: false,
@@ -1291,9 +1293,10 @@ export default {
}
},
created() {
this.timeSearch()
this.getPerson()
this.fetchData()
this.searchTable11() // 查表1
// this.searchTable11() // 查表1
this.searchTable2() // 查表2
this.searchUnInquiryPartNumber()
this.searchUnBuyPartNumber()
@@ -1305,6 +1308,19 @@ export default {
}, 500)
},
methods: {
timeSearch() {
timeSearch().then(response => {
this.startTime = [response.data[0].外购件开始时间, response.data[0].外购件结束时间]
this.endTime = [response.data[0].基本件开始时间, response.data[0].基本件结束时间]
this.searchTable11()
})
},
timeChange1() {
timeChange1(this.startTime[0], this.startTime[1])
},
timeChange2() {
timeChange2(this.endTime[0], this.endTime[1])
},
Jump() {
window.location.hash = '#PurchasingCenter/CreateInquirySheet'
},
@@ -1704,7 +1720,7 @@ export default {
this.projectValue ? check4 = 1 : check4 = 0
this.machineValue ? check5 = 1 : check5 = 0
this.groupValue ? check6 = 1 : check6 = 0
this.startTime ? check7 = 1 : (check7 = 0, this.startTime = '')
this.startTime ? check7 = 1 : (check7 = 0, this.startTime = [])
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, check7, this.startTime[0], this.startTime[1]).then(response => {
this.tableData11 = response.data.rows
this.total11 = response.data.total