This commit is contained in:
parent
2689832540
commit
758b91dbbb
|
|
@ -323,3 +323,12 @@ export function getNumISenough(params) {
|
||||||
params,
|
params,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 车牌号-下拉
|
||||||
|
export function getCarCodeListApi(params) {
|
||||||
|
return request({
|
||||||
|
url: '/base/leaseOutDetails/getCarCodeList',
|
||||||
|
method: 'get',
|
||||||
|
params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -364,14 +364,25 @@
|
||||||
size="small"
|
size="small"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
label-width="110px"
|
label-width="110px"
|
||||||
|
:rules="carCodeRules"
|
||||||
>
|
>
|
||||||
<span style="margin-right: 50px">待出库数量:{{ outNum }}</span>
|
<span style="margin-right: 50px">待出库数量:{{ outNum }}</span>
|
||||||
<el-form-item label="请输入车牌号" prop="carCode" :rules="{ required: true, message: '请输入车牌号', trigger: 'blur' }">
|
<el-form-item label="请输入车牌号" prop="carCode">
|
||||||
<el-input v-model="codeOutForm.carCode" maxlength="20" />
|
<el-input
|
||||||
|
v-model="codeOutForm.carCode"
|
||||||
|
maxlength="20"
|
||||||
|
:disabled="!noCarCode"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<span style="margin-right: 50px; color: red"
|
<span style="margin-right: 50px; color: red"
|
||||||
>部分设备出库时,需进行装车,需记录车牌号码</span
|
>部分设备出库时,需进行装车,需记录车牌号码</span
|
||||||
>
|
>
|
||||||
|
<el-switch
|
||||||
|
v-model="noCarCode"
|
||||||
|
active-text="有车牌"
|
||||||
|
inactive-text="无车牌"
|
||||||
|
@change="handleCarCode(1)"
|
||||||
|
></el-switch>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-form
|
<el-form
|
||||||
|
|
@ -482,16 +493,27 @@
|
||||||
size="small"
|
size="small"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
label-width="110px"
|
label-width="110px"
|
||||||
|
:rules="carCodeRules"
|
||||||
>
|
>
|
||||||
<!-- <span style="margin-right: 50px;">
|
<!-- <span style="margin-right: 50px;">
|
||||||
待出库数量:{{outNum}}
|
待出库数量:{{outNum}}
|
||||||
</span>-->
|
</span>-->
|
||||||
<el-form-item label="请输入车牌号" prop="carCode" :rules="{ required: true, message: '请输入车牌号', trigger: 'blur' }">
|
<el-form-item label="请输入车牌号" prop="carCode">
|
||||||
<el-input v-model="numOutForm.carCode" maxlength="20" />
|
<el-input
|
||||||
|
v-model="numOutForm.carCode"
|
||||||
|
maxlength="20"
|
||||||
|
:disabled="!noCarCode"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<span style="margin-right: 50px; color: red"
|
<span style="margin-right: 50px; color: red"
|
||||||
>部分设备出库时,需进行装车,需记录车牌号码</span
|
>部分设备出库时,需进行装车,需记录车牌号码</span
|
||||||
>
|
>
|
||||||
|
<el-switch
|
||||||
|
v-model="noCarCode"
|
||||||
|
active-text="有车牌"
|
||||||
|
inactive-text="无车牌"
|
||||||
|
@change="handleCarCode(2)"
|
||||||
|
></el-switch>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
|
|
@ -553,7 +575,47 @@
|
||||||
@closeDialogOuter="closeDialogOuter"
|
@closeDialogOuter="closeDialogOuter"
|
||||||
>
|
>
|
||||||
<template slot="outerContent">
|
<template slot="outerContent">
|
||||||
<VueEasyPrint tableShow ref="remarksPrintRef" style="padding: 0 10px; width: 750px;">
|
<el-form
|
||||||
|
:model="outboundParams"
|
||||||
|
ref="dialogQuery"
|
||||||
|
size="small"
|
||||||
|
inline
|
||||||
|
@submit.native.prevent
|
||||||
|
>
|
||||||
|
<el-form-item label="车牌号:" prop="carCode">
|
||||||
|
<el-select
|
||||||
|
v-model="outboundParams.carCode"
|
||||||
|
placeholder="请输入车牌号"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="(item, index) in carCodeList"
|
||||||
|
:key="item.index"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-search"
|
||||||
|
@click="queryOutBoundList"
|
||||||
|
>查询</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
icon="el-icon-refresh"
|
||||||
|
@click="handleResetCar"
|
||||||
|
>重置</el-button
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<VueEasyPrint
|
||||||
|
tableShow
|
||||||
|
ref="remarksPrintRef"
|
||||||
|
style="padding: 0 10px; width: 750px"
|
||||||
|
>
|
||||||
<!-- <el-row :gutter="20">
|
<!-- <el-row :gutter="20">
|
||||||
<el-col span="6">申请人:</el-col>
|
<el-col span="6">申请人:</el-col>
|
||||||
<el-col span="6">领料工程:</el-col>
|
<el-col span="6">领料工程:</el-col>
|
||||||
|
|
@ -575,7 +637,10 @@
|
||||||
领料工程:<span>{{ proName }}</span>
|
领料工程:<span>{{ proName }}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<el-table style="margin: 15px 0; padding: 1px;" :data="outboundOrderList">
|
<el-table
|
||||||
|
style="margin: 15px 0; padding: 1px"
|
||||||
|
:data="outboundOrderList"
|
||||||
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
label="序号"
|
label="序号"
|
||||||
|
|
@ -656,6 +721,12 @@
|
||||||
@click="handlePrinting()"
|
@click="handlePrinting()"
|
||||||
>打 印</el-button
|
>打 印</el-button
|
||||||
>
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
icon="el-icon-download"
|
||||||
|
@click="handleExportOuter"
|
||||||
|
>导 出</el-button
|
||||||
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
</DialogModel>
|
</DialogModel>
|
||||||
|
|
@ -673,6 +744,7 @@ import {
|
||||||
submitNumOut,
|
submitNumOut,
|
||||||
outboundCompleted,
|
outboundCompleted,
|
||||||
outboundOrderApi,
|
outboundOrderApi,
|
||||||
|
getCarCodeListApi,
|
||||||
} from '@/api/claimAndRefund/receive.js'
|
} from '@/api/claimAndRefund/receive.js'
|
||||||
import { getTypeList } from '@/api/store/warehousing'
|
import { getTypeList } from '@/api/store/warehousing'
|
||||||
import { equipmentTypeTree } from '@/api/store/tools'
|
import { equipmentTypeTree } from '@/api/store/tools'
|
||||||
|
|
@ -770,7 +842,9 @@ export default {
|
||||||
parentId: '',
|
parentId: '',
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
carCode: '',
|
||||||
},
|
},
|
||||||
|
carCodeList: [],
|
||||||
// 出库单 弹框配置项
|
// 出库单 弹框配置项
|
||||||
dialogConfig: {
|
dialogConfig: {
|
||||||
outerWidth: '800px',
|
outerWidth: '800px',
|
||||||
|
|
@ -779,9 +853,30 @@ export default {
|
||||||
},
|
},
|
||||||
// 弹框内工程名称
|
// 弹框内工程名称
|
||||||
detailsProName: '',
|
detailsProName: '',
|
||||||
|
noCarCode: true, // 无车牌号
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
carCodeRules() {
|
||||||
|
return {
|
||||||
|
carCode: !this.noCarCode
|
||||||
|
? []
|
||||||
|
: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: '请输入车牌号',
|
||||||
|
trigger: 'blur',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pattern:
|
||||||
|
/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/,
|
||||||
|
message: '请输入正确的车牌号',
|
||||||
|
trigger: 'blur',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getTypeList()
|
this.getTypeList()
|
||||||
this.getUnitList()
|
this.getUnitList()
|
||||||
|
|
@ -796,6 +891,19 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 获取车牌号
|
||||||
|
getCarCodeList() {
|
||||||
|
getCarCodeListApi({ parentId: this.outboundParams.parentId }).then(
|
||||||
|
(res) => {
|
||||||
|
res.data.forEach((item) => {
|
||||||
|
this.carCodeList.push({
|
||||||
|
label: item,
|
||||||
|
value: item,
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
)
|
||||||
|
},
|
||||||
//获取单位
|
//获取单位
|
||||||
getUnitList() {
|
getUnitList() {
|
||||||
getUnitData().then((response) => {
|
getUnitData().then((response) => {
|
||||||
|
|
@ -989,6 +1097,23 @@ export default {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
handleResetCar() {
|
||||||
|
this.outboundParams.carCode = ''
|
||||||
|
this.queryOutBoundList()
|
||||||
|
},
|
||||||
|
handleCarCode(type) {
|
||||||
|
if (type == 1) {
|
||||||
|
this.codeOutForm.carCode = this.noCarCode ? '' : '无车牌'
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.codeOutForm.clearValidate('carCode')
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.numOutForm.carCode = this.noCarCode ? '' : '无车牌'
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.numOutForm.clearValidate()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
//编码出库保存
|
//编码出库保存
|
||||||
saveCodeOut() {
|
saveCodeOut() {
|
||||||
this.$refs.codeOutForm.validate((valid) => {
|
this.$refs.codeOutForm.validate((valid) => {
|
||||||
|
|
@ -1052,13 +1177,19 @@ export default {
|
||||||
|
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.downloadJson(
|
this.download(
|
||||||
'base/tm_task/export',
|
'base/tm_task/export',
|
||||||
JSON.stringify(this.queryParams),
|
{ ...this.queryParams },
|
||||||
`领料出库_${new Date().getTime()}.xlsx`,
|
`领料出库_${new Date().getTime()}.xlsx`,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
handleExportOuter() {
|
||||||
|
this.download(
|
||||||
|
'base/leaseOutDetails/exportOutboundOrder',
|
||||||
|
{ parentId: this.outboundParams.parentId },
|
||||||
|
`出库单_${new Date().getTime()}.xlsx`,
|
||||||
|
)
|
||||||
|
},
|
||||||
// 当前用户是否可以出库
|
// 当前用户是否可以出库
|
||||||
isOutboundFun(ids) {
|
isOutboundFun(ids) {
|
||||||
if (!ids) {
|
if (!ids) {
|
||||||
|
|
@ -1079,6 +1210,7 @@ export default {
|
||||||
this.proName = proName
|
this.proName = proName
|
||||||
this.unitName = unitName
|
this.unitName = unitName
|
||||||
this.outboundParams.parentId = row.id
|
this.outboundParams.parentId = row.id
|
||||||
|
this.getCarCodeList()
|
||||||
this.queryOutBoundList()
|
this.queryOutBoundList()
|
||||||
this.dialogConfig.outerVisible = true
|
this.dialogConfig.outerVisible = true
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -280,6 +280,8 @@ export default {
|
||||||
|
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
|
this.queryParams.startTime = this.queryParams.time && this.queryParams.time[0],
|
||||||
|
this.queryParams.endTime = this.queryParams.time && this.queryParams.time[1],
|
||||||
this.download(
|
this.download(
|
||||||
'material/inputRecord/export',
|
'material/inputRecord/export',
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -346,6 +346,8 @@ export default {
|
||||||
|
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
|
this.queryParams.startTime = this.queryParams.time && this.queryParams.time[0],
|
||||||
|
this.queryParams.endTime = this.queryParams.time && this.queryParams.time[1],
|
||||||
this.download(
|
this.download(
|
||||||
'material/scrapRecord/export',
|
'material/scrapRecord/export',
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -687,6 +687,8 @@ export default {
|
||||||
|
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
|
this.queryParams.startTime = this.queryParams.time && this.queryParams.time[0],
|
||||||
|
this.queryParams.endTime = this.queryParams.time && this.queryParams.time[1],
|
||||||
this.download(
|
this.download(
|
||||||
'material/projUsingRecord/export',
|
'material/projUsingRecord/export',
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue