Browse Source

可视化新增字段,查询

fix_bug_pro20231227
13208366016 1 year ago
parent
commit
d358bb263d
  1. 267
      src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue

267
src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue

@ -248,45 +248,100 @@
:value="index" :value="index"
/> />
</el-select> --> </el-select> -->
<div class="inptx"> <div class="inptx">
<div class="asbor"> <div class="asbor">
{{ {{
isshowupt == 1 isshowupt == 1
? '服务号' ? '服务号'
: isshowupt == 2 : isshowupt == 2
? '订单号' ? '订单号'
: isshowupt == 3 : isshowupt == 3
? '包件' ? '包件'
: isshowupt == 4 : isshowupt == 4
? '托盘' ? '托盘'
: isshowupt == 5 : isshowupt == 5
? '库存品' ? '客户名称'
: isshowupt == 6 : isshowupt == 6
? '零担订单号' ? '零担订单号'
: '' : ''
}} }}
</div> </div>
<el-input
style="flex: 1" <el-input
v-model="inputtxts" style="flex: 1"
:placeholder=" v-model="inputtxts"
'请输入' + :placeholder="
(isshowupt == 1 '请输入' +
? '服务号' (isshowupt == 1
: isshowupt == 2 ? '服务号'
? '订单号' : isshowupt == 2
: isshowupt == 3 ? '订单号'
? '包件' : isshowupt == 3
: isshowupt == 4 ? '包件'
? '托盘' : isshowupt == 4
: isshowupt == 5 ? '托盘'
? '库存品' : isshowupt == 5
: isshowupt == 6 ? '客户名称'
? '零担订单号' : isshowupt == 6
: '') ? '零担订单号'
" : '')
/> "
</div> />
</div>
<!-- 当isshowupt等于5时显示额外的5搜索框 -->
<div class="asbor">
{{
isshowupt == 5? '订单自编码:': ''
}}
</div>
<el-input
v-if="isshowupt === 5"
style="flex: 1; margin-right: 20px;"
v-model="Orderselfnumber"
:placeholder="'请输入订单自编码'"
clearable
></el-input>
<div class="asbor">
{{
isshowupt == 5? '入库批次号:': ''
}}
</div>
<el-input
v-if="isshowupt === 5"
style="flex: 1; margin-right: 20px;"
v-model="Receiptbatchnumber"
:placeholder="'请输入入库批次号'"
clearable
></el-input>
<div class="asbor">
{{
isshowupt == 5? '物料编码:': ''
}}
</div>
<el-input
v-if="isshowupt === 5"
style="flex: 1; margin-right: 20px;"
v-model="materialcode"
:placeholder="'请输入物料编码'"
clearable
></el-input>
<div class="asbor">
{{
isshowupt == 5? '入库时间:': ''
}}
</div>
<el-date-picker
v-if="isshowupt === 5"
v-model="Warehousingtime"
type="datetime"
placeholder="请输入入库时间"
format="YYYY/MM/DD HH:mm:ss"
value-format="YYYY-MM-DD h:m:s"
size="default"
/>
</div> </div>
<div> <div>
<el-button type="primary" @click="searchbuts">搜索</el-button> <el-button type="primary" @click="searchbuts">搜索</el-button>
@ -410,37 +465,39 @@
" "
/> />
</div> </div>
<div class="inptx" v-if="isshowdow == 1"> <div class="inptx" v-if="isshowdow == 1">
<div> <div v-if="isshowdow !== 5">
{{ {{
isshowdow == 1 isshowdow == 1
? '订单自编号' ? '订单自编号'
: isshowdow == 2 : isshowdow == 2
? '零担' ? '零担'
: isshowdow == 3 : isshowdow == 3
? '物料名称' ? '物料名称'
: isshowdow == 4 : isshowdow == 4
? '托盘' ? '托盘'
: '' : ''
}} }}
</div> </div>
<el-input <el-input
style="flex: 1" style="flex: 1"
v-model="inputtxts1" v-model="inputtxts1"
:placeholder=" :placeholder="
'请输入' + '请输入' +
(isshowdow == 1 (isshowdow == 1
? '订单自编号' ? '订单自编号'
: isshowdow == 2 : isshowdow == 2
? '零担' ? '零担'
: isshowdow == 3 : isshowdow == 3
? '物料名称' ? '物料名称'
: isshowdow == 4 : isshowdow == 4
? '托盘' ? '托盘'
: '') : '')
" "
/> />
</div> <!-- 在isshowdow为5时循环生成多个搜索框 -->
</div>
</div> </div>
<div> <div>
<el-button type="primary" @click="searchbutdown">搜索</el-button> <el-button type="primary" @click="searchbutdown">搜索</el-button>
@ -509,13 +566,18 @@ import {
Alloclocationsnub, Alloclocationsnub,
disable, disable,
} from '@/api/basicdata/basicdataGoodsShelfView'; } from '@/api/basicdata/basicdataGoodsShelfView';
import { reactive, toRefs, onMounted, getCurrentInstance } from 'vue'; import { reactive, ref,toRefs, onMounted, getCurrentInstance } from 'vue';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import NProgress from 'nprogress'; import NProgress from 'nprogress';
import { exportBlob } from '@/api/common'; import { exportBlob } from '@/api/common';
import { downloadXls } from '@/utils/util'; import { downloadXls } from '@/utils/util';
import { dateNow } from '@/utils/date'; import { dateNow } from '@/utils/date';
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const CustomerName=ref(null);//
const Orderselfnumber=ref(null);//
const Receiptbatchnumber=ref(null);//
const materialcode=ref(null);//
const Warehousingtime=ref(null);//
let loadtc = ref(false); let loadtc = ref(false);
const eldc = ref(false); // const eldc = ref(false); //
let details = reactive({ let details = reactive({
@ -556,6 +618,7 @@ let details = reactive({
], ],
countnumber: {}, countnumber: {},
inputtxts: '', inputtxts: '',
checkselectchangearr: [], checkselectchangearr: [],
isshowdow: false, isshowdow: false,
inputtxts1: '', inputtxts1: '',
@ -695,10 +758,15 @@ async function searchbuts() {
break; break;
case 5: case 5:
//
url = 'Inventory'; url = 'Inventory';
data = { data = {
// warehouseId: details.arrlist[details.checkindex]?.id || '', // warehouseId: details.arrlist[details.checkindex]?.id || '',
orderCode: details.inputtxts, marketName: details.inputtxts,//
orderCode:Orderselfnumber.value,//
incomingBatch:Receiptbatchnumber.value,//
cargoNumber:materialcode.value,//
warehousingTime:Warehousingtime.value,//
// serviceNumber: details.inputtxts, // serviceNumber: details.inputtxts,
current: details.currentPage, current: details.currentPage,
size: details.pageSize, size: details.pageSize,
@ -1222,6 +1290,61 @@ const showupt = value => {
sortable: true, sortable: true,
head: false, head: false,
}, },
{
prop: 'marketName',
label: '客户名称',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'orderCode',
label: '订单自编码',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'incomingBatch',
label: '入库批次号',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'cargoNumber',
label: '物料编码',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'warehousingTime',
label: '入库时间',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{ {
prop: 'materialCode', prop: 'materialCode',
label: '物料编号', label: '物料编号',

Loading…
Cancel
Save