Commit a385e2ef authored by hubaoshan's avatar hubaoshan

1

parent 3b71b549
...@@ -18,7 +18,12 @@ export function listOutcomeWmsJbapplyTemp(query) { ...@@ -18,7 +18,12 @@ export function listOutcomeWmsJbapplyTemp(query) {
params: query params: query
}) })
} }
export function listOutTemp(businessId) {
return request({
url: '/outcomewmsjbapplytemp/detailOut/' + businessId,
method: 'get'
})
}
export function getOutcomeWmsJbapplyTemp(businessId) { export function getOutcomeWmsJbapplyTemp(businessId) {
return request({ return request({
url: '/outcomewmsjbapplytemp/detail/' + businessId, url: '/outcomewmsjbapplytemp/detail/' + businessId,
......
...@@ -52,6 +52,30 @@ ...@@ -52,6 +52,30 @@
style="width: 150px" style="width: 150px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="location" prop="location">
<el-input
v-model="queryParams.location"
placeholder="请输入location"
clearable
:maxlength="100"
size="small"
style="width: 150px"
/>
</el-form-item>
<el-form-item label="操作时间" prop="date">
<div class="block">
<el-date-picker
v-model="dateRange"
value-format="yyyy-MM-dd"
style="width: 250px"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
@change="handleChange"
/>
</div>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
:class="commonField.queryClass" :class="commonField.queryClass"
...@@ -94,6 +118,7 @@ ...@@ -94,6 +118,7 @@
<div class="mb12 font-small-bold">入库记录表</div> <div class="mb12 font-small-bold">入库记录表</div>
<el-table v-loading="loading" border :data="incomeInoutWmsLogList"> <el-table v-loading="loading" border :data="incomeInoutWmsLogList">
<el-table-column type="index" label="序号" min-width="55" align="center" /> <el-table-column type="index" label="序号" min-width="55" align="center" />
<el-table-column label="wh_id" prop="whId" :show-overflow-tooltip="true" min-width="120"> <el-table-column label="wh_id" prop="whId" :show-overflow-tooltip="true" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.whId ">{{ getDataDictLabel(scope.row.whId) }}</span> <span v-if="scope.row.whId ">{{ getDataDictLabel(scope.row.whId) }}</span>
...@@ -471,6 +496,7 @@ export default { ...@@ -471,6 +496,7 @@ export default {
dictValue: '2' dictValue: '2'
} }
], ],
dateRange: [],
// 查询参数 // 查询参数
queryParams: { queryParams: {
cj: null, cj: null,
...@@ -527,6 +553,17 @@ export default { ...@@ -527,6 +553,17 @@ export default {
this.getwareHouse() this.getwareHouse()
}, },
methods: { methods: {
handleChange() {
console.log('dateRange', this.dateRange)
if (this.dateRange !== null) {
this.queryParams.beginTime = this.dateRange[0] + ' 00:00:00'
this.queryParams.endTime = this.dateRange[1] + ' 23:59:59'
} else {
this.queryParams.beginTime = ''
this.queryParams.endTime = ''
}
console.log('queryParams', this.queryParams)
},
/** 跟据ID获取label*/ /** 跟据ID获取label*/
getDataDictLabel(whId) { getDataDictLabel(whId) {
const dictItem = this.warehouseList.find(item => item.dictValue === whId) const dictItem = this.warehouseList.find(item => item.dictValue === whId)
...@@ -568,6 +605,7 @@ export default { ...@@ -568,6 +605,7 @@ export default {
remarks: undefined, remarks: undefined,
pn: undefined, pn: undefined,
qty: undefined, qty: undefined,
location: undefined,
whId: this.warehouseList[0].dictValue, whId: this.warehouseList[0].dictValue,
ptype: '2', ptype: '2',
ioType: '1', ioType: '1',
......
...@@ -79,6 +79,22 @@ ...@@ -79,6 +79,22 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="操作时间" prop="date">
<div class="block">
<el-date-picker
v-model="dateRange"
value-format="yyyy-MM-dd"
style="width: 250px"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
@change="handleChange"
/>
</div>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
:class="commonField.queryClass" :class="commonField.queryClass"
...@@ -114,6 +130,14 @@ ...@@ -114,6 +130,14 @@
@click="handleImport" @click="handleImport"
>{{ commonField.importName }} >{{ commonField.importName }}
</el-button> </el-button>
<el-button
style="float: right;"
type="success"
size="small"
icon="el-icon-download"
@click="handleExport"
>导出
</el-button>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
...@@ -183,7 +207,7 @@ ...@@ -183,7 +207,7 @@
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" class-name="small-padding fixed-width" min-width="160px" > <el-table-column label="操作" class-name="small-padding fixed-width" min-width="160px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-show="scope.row.dealStatus !=='1'" v-show="scope.row.dealStatus !=='1'"
...@@ -471,17 +495,37 @@ ...@@ -471,17 +495,37 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="备注:" prop="remarks"> <el-form-item label="cj:" prop="cj">
<span>{{ singleDetails.remarks|| '-' }}</span> <span>{{ getManufacturerLabel( singleDetails.cj)|| '-' }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="cj:" prop="cj"> <el-form-item label="备注:" prop="remarks">
<span>{{ getManufacturerLabel( singleDetails.cj)|| '-' }}</span> <span>{{ singleDetails.remarks|| '-' }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form>
<el-table v-if="isShow" v-loading="loading" border :data="outTempList">
<el-table-column type="index" label="序号" width="55" align="center" />
<el-table-column label="location" prop="location" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.location || '-' }}
</template>
</el-table-column>
<el-table-column label="qty" prop="qty" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.qty || '-' }}
</template>
</el-table-column>
<el-table-column label="创建时间" prop="createDate" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span>{{ scope.row.createDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>
</template>
</el-table-column>
</el-table></el-form>
</el-dialog> </el-dialog>
</div> </div>
...@@ -494,7 +538,12 @@ import { ...@@ -494,7 +538,12 @@ import {
delOutcomeWmsJbapplyTemp, delOutcomeWmsJbapplyTemp,
addOutcomeWmsJbapplyTemp, addOutcomeWmsJbapplyTemp,
updateOutcomeWmsJbapplyTemp, updateOutcomeWmsJbapplyTemp,
exportOutcomeWmsJbapplyTemp, getDownloadTemplate, importJbapplyExcel, queryByPnAndPtypeAndLot, acquireOrderByCode exportOutcomeWmsJbapplyTemp,
getDownloadTemplate,
importJbapplyExcel,
queryByPnAndPtypeAndLot,
acquireOrderByCode,
listOutTemp
} from '@/api/outcomeWmsJbapplyTemp' } from '@/api/outcomeWmsJbapplyTemp'
import commonField from '@/utils/commonField' import commonField from '@/utils/commonField'
import { getDicts } from '@/api/system/dict/data' import { getDicts } from '@/api/system/dict/data'
...@@ -504,6 +553,7 @@ export default { ...@@ -504,6 +553,7 @@ export default {
name: 'OutcomeWmsJbapplyTemp', name: 'OutcomeWmsJbapplyTemp',
data() { data() {
return { return {
dateRange: [],
// 类型表单 // 类型表单
typeFrom: { typeFrom: {
type: '1' type: '1'
...@@ -547,8 +597,11 @@ export default { ...@@ -547,8 +597,11 @@ export default {
total: 0, total: 0,
// ????表格数据 // ????表格数据
outcomeWmsJbapplyTempList: [], outcomeWmsJbapplyTempList: [],
outTempList: [],
isShow: false,
// 仓库列表 // 仓库列表
warehouseList: [], warehouseList: [],
location: '',
openqty: false, openqty: false,
singleDetails: { singleDetails: {
cj: '', cj: '',
...@@ -700,6 +753,18 @@ export default { ...@@ -700,6 +753,18 @@ export default {
}, },
methods: { methods: {
// 搜索栏的时间范围
handleChange() {
console.log('dateRange', this.dateRange)
if (this.dateRange !== null) {
this.queryParams.beginTime = this.dateRange[0] + ' 00:00:00'
this.queryParams.endTime = this.dateRange[1] + ' 23:59:59'
} else {
this.queryParams.beginTime = ''
this.queryParams.endTime = ''
}
console.log('queryParams', this.queryParams)
},
// 输入值发生变化时触发查询操作 // 输入值发生变化时触发查询操作
handleInputChange() { handleInputChange() {
this.queryQty() this.queryQty()
...@@ -832,10 +897,19 @@ export default { ...@@ -832,10 +897,19 @@ export default {
}, },
// 获取所选行详情信息操作 // 获取所选行详情信息操作
handleDetail(row) { handleDetail(row) {
const id = row.businessId
listOutTemp(id).then(response => {
if (response.data.length > 0) {
this.outTempList = response.data
this.isShow = true
}
})
this.singleDetails = row this.singleDetails = row
console.log(row) console.log(row)
this.title = '详情信息' this.title = '详情信息'
this.openDetails = !this.openDetails this.openDetails = !this.openDetails
this.isShow = false
this.reset()
}, },
/* 获取数据字典中的值*/ /* 获取数据字典中的值*/
...@@ -874,6 +948,7 @@ export default { ...@@ -874,6 +948,7 @@ export default {
}, },
// 表单重置 // 表单重置
reset() { reset() {
this.outTempList = []
this.form = { this.form = {
cj: '1', cj: '1',
businessId: undefined, businessId: undefined,
...@@ -887,6 +962,7 @@ export default { ...@@ -887,6 +962,7 @@ export default {
createByName: undefined, createByName: undefined,
rank: undefined, rank: undefined,
lot: undefined, lot: undefined,
date: undefined,
flag: '1' flag: '1'
} }
this.resetForm('form') this.resetForm('form')
...@@ -898,6 +974,7 @@ export default { ...@@ -898,6 +974,7 @@ export default {
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.dateRange = []
this.queryParams = { this.queryParams = {
page: 1, page: 1,
rows: 10, rows: 10,
...@@ -910,6 +987,7 @@ export default { ...@@ -910,6 +987,7 @@ export default {
createByName: undefined, createByName: undefined,
rank: undefined, rank: undefined,
lot: undefined, lot: undefined,
date: undefined,
flag: '' flag: ''
} }
this.handleQuery() this.handleQuery()
...@@ -1023,7 +1101,7 @@ export default { ...@@ -1023,7 +1101,7 @@ export default {
const downloadElement = document.createElement('a') const downloadElement = document.createElement('a')
const href = window.URL.createObjectURL(blob)// 创建下载的链接 const href = window.URL.createObjectURL(blob)// 创建下载的链接
downloadElement.href = href downloadElement.href = href
downloadElement.download = '????信息' + '.xls' // 下载后文件名 downloadElement.download = '检查申请信息' + '.xls' // 下载后文件名
document.body.appendChild(downloadElement) document.body.appendChild(downloadElement)
downloadElement.click()// 点击下载 downloadElement.click()// 点击下载
document.body.removeChild(downloadElement)// 下载完成移除元素 document.body.removeChild(downloadElement)// 下载完成移除元素
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment