This commit is contained in:
2024-10-16 17:25:51 +08:00
parent d119a6a7aa
commit 7a2205fa42
4 changed files with 59 additions and 5 deletions

View File

@@ -52,6 +52,9 @@
<el-col :span="1.5">
<el-button type="danger" :disabled="multiple" icon="el-icon-delete" size="mini" @click="handleDelete">删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport">导出 </el-button>
</el-col>
<right-toolbar :columns="columns" :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<!-- 仓库零件数 -->
@@ -179,6 +182,7 @@
</el-form-item>
<el-form-item v-if="opertype === 3" label="盘点数" prop="quantity">
<el-input-number v-model="form.quantity" :min="0" label="请输入盘点结果"></el-input-number>
<el-button style="margin-left: 5px" @click="handlarAddQuantity" icon="el-icon-plus" circle></el-button>
</el-form-item>
</el-col>
<el-col :lg="12">
@@ -302,6 +306,7 @@ import {
doWmOneTimeStocktaking,
getWmOneTimeRecordList,
getPartNumber,
exportOneTimeInventory
} from '@/api/wmsManagement/wmOneTimeInventory.js'
import ThePartNumberSelect from './ThePartNumberSelect.vue'
export default {
@@ -588,7 +593,29 @@ export default {
})
},
// 仓库操作=====================================================
/** 导出按钮操作 **/
handleExport() {
const queryParams = this.queryParams
this.$confirm('是否确认导出所查询数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(async () => {
await exportOneTimeInventory(queryParams)
}).catch()
},
// 盘点数据计算
handlarAddQuantity() {
this.$prompt('请输入变动数量', '盘点数变动', {
confirmButtonText: '确定',
cancelButtonText: '取消',
})
.then(({ value }) => {
this.form.quantity += value * 1
})
.catch(() => {})
},
// 类别(1-正常 2-返工件)字典翻译
// typeFormat(row, column) {
// return this.selectDictLabel(this.typeOptions, row.type)

View File

@@ -38,6 +38,9 @@
<el-col :span="1.5">
<el-button type="danger" :disabled="multiple" icon="el-icon-delete" size="mini" @click="handleDelete">删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport">导出 </el-button>
</el-col>
<right-toolbar :columns="columns" :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<div style="display: flex; align-items: center; justify-content: center; margin-bottom: 10px">
@@ -194,6 +197,7 @@ import {
doWmPolishStocktaking,
getWmPolishRecordList,
getPartNumber,
exportPolish
} from '@/api/wmsManagement/wmPolishInventory.js'
import ThePartNumberSelect from './ThePartNumberSelect.vue'
export default {
@@ -463,7 +467,7 @@ export default {
handleShowInfo(row) {
this.RecordDataList = []
this.RecordTotal = 0
this.RecordTitle = `零件号:${row.partnumber} 仓库操作记录`
this.RecordTitle = `零件号:${row.partnumber}`
this.RecordOpen = true
this.RecordQueryParams.fkInventoryId = row.id
},
@@ -490,7 +494,18 @@ export default {
})
},
// 仓库操作=====================================================
/** 导出按钮操作 **/
handleExport() {
const queryParams = this.queryParams
this.$confirm('是否确认导出所查询数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(async () => {
await exportPolish(queryParams)
}).catch()
},
// 类别(1-正常 2-返工件)字典翻译
// typeFormat(row, column) {
// return this.selectDictLabel(this.typeOptions, row.type)