Browse Source

可视化

fix_bug_pro20231227
396316021 2 years ago
parent
commit
24f5c301e6
  1. 468
      src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue

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

@ -115,14 +115,39 @@
<span class="buts">
<el-button type="primary" @click="showupt(1)">按服务号</el-button>
<el-button type="primary" @click="showupt(2)">按自编号</el-button>
<el-button type="primary">按包件</el-button>
<el-button type="primary">按托盘</el-button>
<el-button type="primary">按库存品</el-button>
<el-button type="primary">按零担</el-button>
<el-button type="primary" @click="showupt(3)">按包件</el-button>
<el-button type="primary" @click="showupt(4)">按托盘</el-button>
<el-button type="primary" @click="showupt(5)">按库存品</el-button>
<el-button type="primary" @click="showupt(6)">按零担</el-button>
<el-button type="danger" @click="upgood">禁用</el-button>
</span>
</template>
</el-dialog>
<!-- 有货架的情况 -->
<div >
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item label="Approved by">
<el-input v-model="formInline.user" placeholder="Approved by" clearable />
</el-form-item>
<el-form-item label="Activity zone">
<el-select v-model="formInline.region" placeholder="Activity zone" clearable>
<el-option label="Zone one" value="shanghai" />
<el-option label="Zone two" value="beijing" />
</el-select>
</el-form-item>
<el-form-item label="Activity time">
<el-date-picker v-model="formInline.date" type="date" placeholder="Pick a date" clearable />
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">Query</el-button>
</el-form-item>
</el-form>
<el-table :data="tableData" border style="width: 100%">
<el-table-column prop="date" label="Date" width="180" />
<el-table-column prop="name" label="Name" width="180" />
<el-table-column prop="address" label="Address" />
</el-table>
</div>
<el-dialog v-model="isshowupt" title="请选择服务号类型" width="80%" center>
<div class="disbox">
<div class="headtopscan">
@ -142,7 +167,23 @@
/>
</el-select>
<div class="inptx">
<div>{{ isshowupt == 1 ? '服务号' : isshowupt == 2 ? '订单号' : '' }}</div>
<div>
{{
isshowupt == 1
? '服务号'
: isshowupt == 2
? '订单号'
: isshowupt == 3
? '包件'
: isshowupt == 4
? '托盘'
: isshowupt == 5
? '库存品'
: isshowupt == 6
? '零担'
: ''
}}
</div>
<el-input style="flex: 1" v-model="inputtxts" placeholder="请输入服务号" />
</div>
</div>
@ -177,7 +218,7 @@
@size-change="sizeChange"
@current-change="currentChange"
:current-page="currentPage"
:page-sizes="[30, 50,80, 120]"
:page-sizes="[30, 50, 80, 120]"
:page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
@ -201,7 +242,7 @@ import {
geturl,
posturl,
Alloclocationsnub,
disable
disable,
} from '@/api/basicdata/basicdataGoodsShelfView';
import { reactive, toRefs, onMounted, getCurrentInstance } from 'vue';
const { proxy } = getCurrentInstance();
@ -302,6 +343,51 @@ async function searchbuts() {
size: details.pageSize,
};
break;
case 3:
url = 'selectWrap';
data = {
warehouseId: details.arrlist[details.checkindex]?.id || '',
orderCode: details.inputtxts,
// serviceNumber: details.inputtxts,
current: details.currentPage,
size: details.pageSize,
allocationId: details.checkite.id,
};
break;
case 4:
url = 'tray';
data = {
warehouseId: details.arrlist[details.checkindex]?.id || '',
orderCode: details.inputtxts,
// serviceNumber: details.inputtxts,
current: details.currentPage,
size: details.pageSize,
};
break;
case 5:
url = 'Inventory';
data = {
warehouseId: details.arrlist[details.checkindex]?.id || '',
orderCode: details.inputtxts,
// serviceNumber: details.inputtxts,
current: details.currentPage,
size: details.pageSize,
};
break;
case 6:
url = 'ZeroOrder';
data = {
warehouseId: details.arrlist[details.checkindex]?.id || '',
orderCode: details.inputtxts,
// serviceNumber: details.inputtxts,
current: details.currentPage,
size: details.pageSize,
};
break;
default:
break;
@ -323,8 +409,8 @@ async function upgood() {
// id: details.checkite.id,
// enableStatus: 2,
// };
let id = details.checkite.id
console.log("goodsAllocation>>>>>>>>>",id);
let id = details.checkite.id;
console.log('goodsAllocation>>>>>>>>>', id);
let res = await disable(id);
if (res.data.code == 200) {
proxy.$message({
@ -376,13 +462,13 @@ async function checkshelves() {
};
const res = await getVisualization(data); //
console.log(res.data, 'res.data.datares.data.datares.data.datares.data.datares.data.data');
details.contenarr = res.data.data.reverse();
details.contenbxsty['--length'] = details.contenarr[0]?.length || 0;
}
// checkshelves();
// const checkshelves = async () => {
// try {
// //
// console.log(res);
// } catch (error) {
@ -553,6 +639,322 @@ const showupt = value => {
break;
case 3:
details.columnList = [
{
prop: '',
label: '序号',
type: 0,
values: '',
width: 55,
checkarr: [],
fixed: true,
},
{
prop: 'serviceNumber',
label: '服务号',
type: 2,
values: '',
width: '240',
checkarr: [],
fixed: true,
sortable: true,
head: false,
},
{
prop: 'orderCode',
label: '订单自编号',
type: 2,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'customerName',
label: '顾客名字',
type: 2,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'customerTelephone',
label: '顾客电话',
type: 2,
values: '',
width: '260',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'customerAddress',
label: '顾客电话',
type: 2,
values: '',
width: '260',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: '',
label: '操作',
type: 6,
values: '',
width: '190',
checkarr: [],
fixed: 'right',
hide: true,
},
];
break;
case 4:
details.columnList = [
{
prop: '',
label: '序号',
type: 0,
values: '',
width: 55,
checkarr: [],
fixed: true,
},
{
prop: 'serviceNumber',
label: '服务号',
type: 2,
values: '',
width: '240',
checkarr: [],
fixed: true,
sortable: true,
head: false,
},
{
prop: 'orderCode',
label: '订单自编号',
type: 2,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'customerName',
label: '顾客名字',
type: 2,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'customerTelephone',
label: '顾客电话',
type: 2,
values: '',
width: '260',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'customerAddress',
label: '顾客电话',
type: 2,
values: '',
width: '260',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: '',
label: '操作',
type: 6,
values: '',
width: '190',
checkarr: [],
fixed: 'right',
hide: true,
},
];
break;
case 5:
details.columnList = [
{
prop: '',
label: '序号',
type: 0,
values: '',
width: 55,
checkarr: [],
fixed: true,
},
{
prop: 'serviceNumber',
label: '服务号',
type: 2,
values: '',
width: '240',
checkarr: [],
fixed: true,
sortable: true,
head: false,
},
{
prop: 'orderCode',
label: '订单自编号',
type: 2,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'customerName',
label: '顾客名字',
type: 2,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'customerTelephone',
label: '顾客电话',
type: 2,
values: '',
width: '260',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'customerAddress',
label: '顾客电话',
type: 2,
values: '',
width: '260',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: '',
label: '操作',
type: 6,
values: '',
width: '190',
checkarr: [],
fixed: 'right',
hide: true,
},
];
break;
case 6:
details.columnList = [
{
prop: '',
label: '序号',
type: 0,
values: '',
width: 55,
checkarr: [],
fixed: true,
},
{
prop: 'serviceNumber',
label: '服务号',
type: 2,
values: '',
width: '240',
checkarr: [],
fixed: true,
sortable: true,
head: false,
},
{
prop: 'orderCode',
label: '订单自编号',
type: 2,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'customerName',
label: '顾客名字',
type: 2,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'customerTelephone',
label: '顾客电话',
type: 2,
values: '',
width: '260',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'customerAddress',
label: '顾客电话',
type: 2,
values: '',
width: '260',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: '',
label: '操作',
type: 6,
values: '',
width: '190',
checkarr: [],
fixed: 'right',
hide: true,
},
];
break;
default:
break;
}
@ -573,6 +975,22 @@ const addhuoj = async scope => {
url = 'upOrder';
data.upShelfOrderList = [scope.row];
break;
case 3:
url = 'upSelectWrap';
data.upShelfOrderList = [scope.row];
break;
case 4:
url = 'upTray';
data.upShelfOrderList = [scope.row];
break;
case 5:
url = 'upInventory';
data.upShelfOrderList = [scope.row];
break;
case 6:
url = 'upZeroOrder';
data.upShelfOrderList = [scope.row];
break;
default:
break;
}
@ -603,6 +1021,22 @@ async function allup() {
url = 'upOrder';
data.upShelfOrderList = details.checkselectchangearr;
break;
case 3:
url = 'upSelectWrap';
data.upShelfOrderList = details.checkselectchangearr;
break;
case 4:
url = 'upTray';
data.upShelfOrderList = details.checkselectchangearr;
break;
case 5:
url = 'upInventory';
data.upShelfOrderList = details.checkselectchangearr;
break;
case 6:
url = 'upZeroOrder';
data.upShelfOrderList = details.checkselectchangearr;
break;
default:
break;
}
@ -645,6 +1079,20 @@ const checkitem = ite => {
details.checkite = ite;
break;
case 3:
details.isshowcon = true;
details.checkite = ite;
break;
case 4:
details.isshowcon = true;
details.checkite = ite;
break;
case 5:
details.isshowcon = true;
details.checkite = ite;
break;
case 6:
details.isshowcon = true;
details.checkite = ite;
break;
}
};

Loading…
Cancel
Save