|
|
|
@ -1,22 +1,22 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<el-card>
|
|
|
|
|
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" class="query-form"
|
|
|
|
|
<el-form v-if="queryList && queryList.length > 0 " :model="filterQuery" class="query-form"
|
|
|
|
|
size="mini" label-width="100px">
|
|
|
|
|
<el-row style=" display:flex; flex-wrap: wrap; ">
|
|
|
|
|
<!-- <el-col :span="20">-->
|
|
|
|
|
<!-- <el-form-item prop="code" label="扫码查询:">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- id="inputer"-->
|
|
|
|
|
<!-- @focus="getInputFocus($event)"-->
|
|
|
|
|
<!-- @keypress.enter.native="enterKey($event)"-->
|
|
|
|
|
<!-- ref="inputRef"-->
|
|
|
|
|
<!-- style="ime-mode: disabled"-->
|
|
|
|
|
<!-- type="tel"-->
|
|
|
|
|
<!-- v-model="filterQuery.code"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col :span="20">-->
|
|
|
|
|
<!-- <el-form-item prop="code" label="扫码查询:">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- id="inputer"-->
|
|
|
|
|
<!-- @focus="getInputFocus($event)"-->
|
|
|
|
|
<!-- @keypress.enter.native="enterKey($event)"-->
|
|
|
|
|
<!-- ref="inputRef"-->
|
|
|
|
|
<!-- style="ime-mode: disabled"-->
|
|
|
|
|
<!-- type="tel"-->
|
|
|
|
|
<!-- v-model="filterQuery.code"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!--<el-col :span="20">-->
|
|
|
|
|
<!-- <el-form-item prop="code" label="查询:">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
@ -30,12 +30,13 @@
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
|
|
|
|
|
<template v-for="(item, index) in queryList">
|
|
|
|
|
<div v-if="showSearch || item.isImport">
|
|
|
|
|
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)"
|
|
|
|
|
class="query-form-item"
|
|
|
|
|
:label="item.columnDesc+`:`" :key="item.id">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
:placeholder="item.columnDesc == '搜索' ? '产品通用名/规格/批次号' : item.columnDesc"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
|
|
|
|
|
clearable
|
|
|
|
@ -102,32 +103,35 @@
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div class="left-search" v-if="!showSearch">
|
|
|
|
|
<!-- 关键字搜索 按需配置 -->
|
|
|
|
|
<el-form v-if="queryList && queryList.length > 0" :model="filterQuery" class="query-form" size="mini" label-width="100px">
|
|
|
|
|
<el-row style=" display:flex; flex-wrap: wrap; ">
|
|
|
|
|
<template v-for="(item, index) in queryList">
|
|
|
|
|
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true) && item.columnName == 'keywords'"
|
|
|
|
|
class="query-form-item"
|
|
|
|
|
:label="item.columnDesc+`:`" :key="item.id">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
|
|
|
|
|
clearable
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</template>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div class="left-search" v-if="!showSearch">-->
|
|
|
|
|
<!-- <!– 关键字搜索 按需配置 –>-->
|
|
|
|
|
<!-- <el-form v-if="queryList && queryList.length > 0" :model="filterQuery" class="query-form" size="mini"-->
|
|
|
|
|
<!-- label-width="100px">-->
|
|
|
|
|
<!-- <el-row style=" display:flex; flex-wrap: wrap; ">-->
|
|
|
|
|
<!-- <template v-for="(item, index) in queryList">-->
|
|
|
|
|
<!-- <el-form-item-->
|
|
|
|
|
<!-- v-if="item.columnType == 'input' && executeEval(row,item.expression,true) && item.columnName == 'keywords'"-->
|
|
|
|
|
<!-- class="query-form-item"-->
|
|
|
|
|
<!-- :label="item.columnDesc+`:`" :key="item.id">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- v-model="filterQuery[item.columnName]"-->
|
|
|
|
|
<!-- :placeholder="item.columnDesc"-->
|
|
|
|
|
<!-- :disabled="executeEval(null,item.disabledFuc,false)"-->
|
|
|
|
|
<!-- @keyup.enter.native="executeFuc($event,'5',item.clickFuc)"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<!-- </el-form>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
|
<el-button-group>
|
|
|
|
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
|
|
|
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">高级搜索</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="el-icon-refresh"
|
|
|
|
@ -688,12 +692,12 @@ import {convertDate} from "@/utils/date";
|
|
|
|
|
import {materialCodePage, materialPrescribePage, splitFifoDetail} from "@/api/inout/splitCode";
|
|
|
|
|
import {splitFifoPage} from "@/api/inout/splitInv";
|
|
|
|
|
import {getInvListByUserOptimize} from "@/api/system/invWarehouse";
|
|
|
|
|
import { getBasicUnitMaintainsOptimize } from '@/api/basic/basicUnitMaintain'
|
|
|
|
|
import { filterWorkOptimize, listPage } from '@/api/basic/workPlace/sysWorkplaceManage'
|
|
|
|
|
import {getBasicUnitMaintainsOptimize} from '@/api/basic/basicUnitMaintain'
|
|
|
|
|
import {filterWorkOptimize, listPage} from '@/api/basic/workPlace/sysWorkplaceManage'
|
|
|
|
|
import ioSplitFifoCodeRemindSetDialog from "./ioSplitFifoCodeRemindSetDialog.vue";
|
|
|
|
|
import destroyOutDialog from "./destroyOutDialog.vue";
|
|
|
|
|
import {getWorkBindBusTypes, removeBusTypeById} from '@/api/basic/workPlace/sysWorkplaceDocuments'
|
|
|
|
|
import { getSplitCode } from '@/api/collect/collectOrder'
|
|
|
|
|
import {getSplitCode} from '@/api/collect/collectOrder'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -783,10 +787,10 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
components: {ioSplitFifoCodeRemindSetDialog,destroyOutDialog},
|
|
|
|
|
components: {ioSplitFifoCodeRemindSetDialog, destroyOutDialog},
|
|
|
|
|
methods: {
|
|
|
|
|
changePlace(_this,query) {
|
|
|
|
|
_this.getWorkBindBusTypes(_this,query)
|
|
|
|
|
changePlace(_this, query) {
|
|
|
|
|
_this.getWorkBindBusTypes(_this, query)
|
|
|
|
|
},
|
|
|
|
|
getWorkBindBusTypes(_this, query) {
|
|
|
|
|
_this.busQuery.workplaceCode = query
|
|
|
|
@ -916,9 +920,9 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
getSplitCodeDetail(){
|
|
|
|
|
getSplitCodeDetail() {
|
|
|
|
|
getSplitCode(this.codeQuery).then(res => {
|
|
|
|
|
if (res.code == 20000){
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
// this.loading = false
|
|
|
|
|
this.apartDetailList = res.data.list || []
|
|
|
|
|
this.apartTotal = res.data.total || 0
|
|
|
|
@ -930,7 +934,7 @@ export default {
|
|
|
|
|
this.apartTotal = res.data.total || 0
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
onCodeResultSubmit(){
|
|
|
|
|
onCodeResultSubmit() {
|
|
|
|
|
this.codeQuery = {
|
|
|
|
|
code: this.codeQuery.code,
|
|
|
|
|
relId: this.currentRow.relId,
|
|
|
|
@ -941,7 +945,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.getSplitCodeDetail()
|
|
|
|
|
},
|
|
|
|
|
onCodeResultReset(){
|
|
|
|
|
onCodeResultReset() {
|
|
|
|
|
this.codeQuery = {
|
|
|
|
|
relId: this.currentRow.relId,
|
|
|
|
|
batchNo: this.currentRow.batchNo,
|
|
|
|
@ -987,7 +991,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
invRemindSet(_this,row) {
|
|
|
|
|
invRemindSet(_this, row) {
|
|
|
|
|
_this.prescribeData = row
|
|
|
|
|
_this.addInvRemindSetDialogVisible = true;
|
|
|
|
|
},
|
|
|
|
@ -997,17 +1001,17 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
//损耗出库
|
|
|
|
|
destroyOut(_this,row){
|
|
|
|
|
destroyOut(_this, row) {
|
|
|
|
|
_this.prescribeData = row
|
|
|
|
|
_this.destroyType = 1
|
|
|
|
|
_this.destroyOutDialogVisible = true;
|
|
|
|
|
},
|
|
|
|
|
closeDialog(){
|
|
|
|
|
closeDialog() {
|
|
|
|
|
this.destroyOutDialogVisible = false
|
|
|
|
|
this.getList()
|
|
|
|
|
this.detailClick(this,this.prescribeData)
|
|
|
|
|
this.detailClick(this, this.prescribeData)
|
|
|
|
|
},
|
|
|
|
|
destroyOutByCode(_this,row){
|
|
|
|
|
destroyOutByCode(_this, row) {
|
|
|
|
|
_this.prescribeData = row
|
|
|
|
|
_this.destroyType = 2
|
|
|
|
|
_this.destroyOutDialogVisible = true;
|
|
|
|
@ -1020,7 +1024,7 @@ export default {
|
|
|
|
|
this.viewType = 1
|
|
|
|
|
this.isLinkDisabled = true
|
|
|
|
|
}
|
|
|
|
|
this.findWorkPlace(this,"")
|
|
|
|
|
this.findWorkPlace(this, "")
|
|
|
|
|
// console.log(this.panelType)
|
|
|
|
|
getHead("ioSplitFifoCode", "1").then((re) => {
|
|
|
|
|
// 处理返回的数据
|
|
|
|
|