质量报表:样式调整,添加删除功能
出库单:样式调整,添加出库打印功能(未全部完成)
This commit is contained in:
@@ -25,10 +25,15 @@
|
||||
<el-form-item label="周" prop="week">
|
||||
<el-input v-model="queryParams.week" placeholder="请输入周" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="日" prop="date">
|
||||
<el-input v-model="queryParams.date" placeholder="请输入日" />
|
||||
</el-form-item>
|
||||
<el-form-item label="出库单号" prop="shipmentNum">
|
||||
<el-input v-model="queryParams.shipmentNum" placeholder="请输入周" />
|
||||
</el-form-item>
|
||||
<el-form-item label="客户代码" prop="customNo">
|
||||
<el-input v-model="queryParams.customNo" placeholder="请输入周" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
@@ -91,7 +96,7 @@
|
||||
<el-tag type="info" v-if="scope.row.type === 3">弃用</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="status" label="显示状态" align="center">
|
||||
<el-table-column prop="status" label="出库计划" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-tag type="success" v-if="scope.row.status === 1">启用</el-tag>
|
||||
<el-tag type="info" v-if="scope.row.status === 0">停用</el-tag>
|
||||
@@ -105,12 +110,12 @@
|
||||
<el-table-column prop="createdBy" label="创建人" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="createdTime" label="创建时间" align="center" :show-overflow-tooltip="true" />
|
||||
|
||||
<el-table-column label="操作" align="center" width="200">
|
||||
<el-table-column label="操作" align="center" fixed="right" width="280">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
v-hasPermi="['business:wmoutorder:print']"
|
||||
type="success"
|
||||
type="primary"
|
||||
icon="el-icon-printer"
|
||||
title="打印"
|
||||
:disabled="scope.row.status === 3"
|
||||
@@ -132,6 +137,11 @@
|
||||
title="删除"
|
||||
@click="handleDelete(scope.row)"
|
||||
></el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="warning"
|
||||
@click="handlePlan(scope.row)"
|
||||
>出库计划</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -222,7 +232,7 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="显示状态" prop="status">
|
||||
<el-form-item label="出库计划" prop="status">
|
||||
<el-radio-group :disabled="form.type === 2" v-model="form.status">
|
||||
<el-radio v-for="item in statusOptions" :key="item.dictValue" :label="parseInt(item.dictValue)">{{
|
||||
item.dictLabel
|
||||
@@ -238,14 +248,14 @@
|
||||
<el-button :disabled="form.type === 2" size="medium" type="success" icon="el-icon-plus" @click="handlerOpenChouseMaterial"
|
||||
>添加物料</el-button
|
||||
>
|
||||
<el-button
|
||||
<!-- <el-button
|
||||
size="medium"
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
@click="handlerDeleteMaterial(null)"
|
||||
:disabled="materialIds.length === 0 || form.type === 2"
|
||||
>批量删除</el-button
|
||||
>
|
||||
>批量移除</el-button
|
||||
> -->
|
||||
</div>
|
||||
<div>
|
||||
<el-table
|
||||
@@ -257,7 +267,7 @@
|
||||
highlight-current-row
|
||||
@selection-change="handleMaterialSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" width="50" align="center" />
|
||||
<!-- <el-table-column type="selection" width="50" align="center" /> -->
|
||||
<el-table-column prop="partnumber" label="物料号" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="u8InventoryCode" label="U8编码" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="需求量" prop="requireOutNum" align="center" width="100">
|
||||
@@ -279,7 +289,7 @@
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
@click="handlerDeleteMaterial([scope.row.id])"
|
||||
>删除此物料</el-button
|
||||
>移除此物料</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -291,20 +301,25 @@
|
||||
<el-button type="primary" @click="submitForm">确定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<PrintView ref="printViewRef" :visible.sync="showPrintDialog" :printKey="printKey"></PrintView>
|
||||
<TheChouseMaterial :visible.sync="TheChouseMaterialDialogVisible" @materialChoused="handlerMaterialChoused"></TheChouseMaterial>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { listWmOutOrder, addWmOutOrder, delWmOutOrder, updateWmOutOrder, getWmOutOrder, getCustomList } from '@/api/wmsManagement/wmOutOrder.js'
|
||||
import TheChouseMaterial from './components/TheChouseMaterial/TheChouseMaterial.vue'
|
||||
import PrintView from '@/components/Print/出库单.vue'
|
||||
export default {
|
||||
name: 'wmoutorder',
|
||||
components: {
|
||||
TheChouseMaterial,
|
||||
PrintView,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
TheChouseMaterialDialogVisible: false,
|
||||
showPrintDialog:false,
|
||||
printKey:'',
|
||||
labelWidth: '100px',
|
||||
formLabelWidth: '100px',
|
||||
// 选中shipmentNum数组
|
||||
@@ -415,6 +430,7 @@ export default {
|
||||
this.loading = true
|
||||
listWmOutOrder(this.queryParams).then((res) => {
|
||||
if (res.code == 200) {
|
||||
console.log(res)
|
||||
this.dataList = res.data.result
|
||||
this.total = res.data.totalNum
|
||||
this.loading = false
|
||||
@@ -510,7 +526,7 @@ export default {
|
||||
this.open = true
|
||||
this.title = '编辑出库单数据'
|
||||
this.opertype = 2
|
||||
|
||||
console.log('getWmOutOrder', res, data)
|
||||
this.form = {
|
||||
...data,
|
||||
}
|
||||
@@ -550,8 +566,9 @@ export default {
|
||||
const list = JSON.parse(JSON.stringify(that.form.materialList))
|
||||
const len = list.length
|
||||
for (let index = 0; index < len; index++) {
|
||||
console.log(list[index].id, list, len)
|
||||
|
||||
if (Ids.includes(list[index].id)) {
|
||||
console.log(that.form.materialList,index)
|
||||
that.form.materialList.splice(index, 1)
|
||||
}
|
||||
}
|
||||
@@ -567,17 +584,24 @@ export default {
|
||||
// 物料已选择
|
||||
handlerMaterialChoused(list) {
|
||||
//TODO 需要筛选未选择的
|
||||
console.log('handlerMaterialChoused', list,this.form)
|
||||
console.log('handlerMaterialChoused', list, this.form)
|
||||
const _list = JSON.parse(JSON.stringify(list))
|
||||
for (let index = 0; index < _list.length; index++) {
|
||||
console.log('push',_list[index],this.form);
|
||||
console.log('push', _list[index], this.form)
|
||||
this.form.materialList.push(_list[index])
|
||||
}
|
||||
},
|
||||
// 打印出库单
|
||||
handlePrint(row) {
|
||||
this.printKey = row.shipmentNum
|
||||
this.showPrintDialog = true;
|
||||
// this.$refs.printViewRef.handlePrint(row)
|
||||
console.log(row)
|
||||
this.$message('打印出库单功能待完善!')
|
||||
// this.$message('打印出库单功能待完善!')
|
||||
},
|
||||
// 配置出库计划
|
||||
handlePlan(){
|
||||
this.$message('此功能待完善')
|
||||
},
|
||||
// ====================================================
|
||||
/** 提交按钮 */
|
||||
|
||||
Reference in New Issue
Block a user