Browse Source

修复已知问题

dev-xx
马远东 7 months ago
parent
commit
e1fa047799
  1. 22
      src/option/distribution/createTask.js
  2. 58
      src/views/distribution/checkInventoryTask/createTask.vue

22
src/option/distribution/createTask.js

@ -475,7 +475,7 @@ export const columnListInventory = [
{
prop: 'materialCode',
label: '物料编码',
type: 15,
type: 1,
values: '',
width: '150',
checkarr: [],
@ -495,16 +495,16 @@ export const columnListInventory = [
head: false,
},
{
prop: '',
label: '操作',
type: 6,
values: '',
width: '120',
checkarr: [],
fixed: 'right',
sortable: false,
},
// {
// prop: '',
// label: '操作',
// type: 6,
// values: '',
// width: '120',
// checkarr: [],
// fixed: 'right',
// sortable: false,
// },
];
export const comparativecolumnList = [

58
src/views/distribution/checkInventoryTask/createTask.vue

@ -254,17 +254,27 @@
<el-tabs type="border-card" v-model="eltabs" @tab-click="tabclick">
<el-tab-pane label="未盘点明细" :name="0"></el-tab-pane>
<el-tab-pane label="已盘点明细" :name="1"></el-tab-pane>
<div class="el_top_button">
<div class="el_top_button_left">
<el-button type="primary" icon="Download" @click="ExportDataInventory"
>导出数据</el-button
>
<el-button type="primary" icon="EditPen" @click="Submitmodifications" v-if="eltabs"
>提交修改</el-button
>
<el-button type="primary" icon="Menu" @click="Inventorypackages" v-if="!eltabs"
>盘点包件</el-button
>
<el-button type="primary" icon="Delete" v-if="eltabs" @click="BatchdeletePackages"
>删除包件</el-button
>
</div>
<div>
<el-button icon="el-icon-refresh" @click="Inventorysearch" circle></el-button>
<el-button icon="CircleClose" @click="Inventoryempty" circle></el-button>
</div>
</div>
<!-- 首页表格 -->
<el-button type="primary" icon="Download" @click="ExportDataInventory">导出数据</el-button>
<el-button type="primary" icon="EditPen" @click="Submitmodifications" v-if="eltabs"
>提交修改</el-button
>
<el-button type="primary" icon="Menu" @click="Inventorypackages" v-if="!eltabs"
>盘点包件</el-button
>
<el-button type="primary" icon="Delete" v-if="eltabs" @click="BatchdeletePackages"
>删除包件</el-button
>
<el-row>
<!-- 列表模块 -->
<tablecmt
@ -1004,7 +1014,7 @@ const Inventorydetails = async row => {
Inventorydialog.value = true; //
await nextTick(); //
const _node = document.querySelector('.InventorytableNode');
setNodeHeight(_node, '70vh', true);
setNodeHeight(_node, '60vh', true);
tabclick(); //
};
//
@ -1026,7 +1036,8 @@ const tabclick = async value => {
await handleClearTableQuery(details.columnListInventory); //
InventoriedData(); //
};
//
//
const InventoriedData = value => {
const { id, questNum } = DataRow.value;
let data = {
@ -1058,6 +1069,18 @@ const InventoriedData = value => {
details.loadingObj.inventorylist = false;
});
};
//
const Inventoryempty = () => {
details.queryInventory = {};
handleClearTableQuery(details.columnListInventory); //
details.inventorypage.currentPage = 1;
InventoriedData();
};
//
const Inventorysearch = () => {
InventoriedData();
};
//
const BatchdeletePackages = () => {
if (!details.selectionList.length) {
@ -1172,7 +1195,7 @@ const Submitmodifications = () => {
let _res = await $_updateDetailInfo(data);
console.log(_res, '修改品类提交');
if (_res.data.code == 200) {
InventoriedData();
await InventoriedData();
ElMessage({
message: _res.data.msg,
type: 'success',
@ -1365,4 +1388,13 @@ const Inventorysynchronization = row => {
padding: 0 10px;
}
}
.el_top_button {
margin: 8px 0;
display: flex;
justify-content: space-between;
.el_top_button_left {
display: flex;
align-items: center;
}
}
</style>

Loading…
Cancel
Save