Merge branch 'dev' of http://192.168.0.56:3000/bonus/devicesmgt into dev
This commit is contained in:
commit
2b64cbfa17
|
|
@ -459,6 +459,23 @@ export default {
|
||||||
if (this.codeList.length == 0) {
|
if (this.codeList.length == 0) {
|
||||||
this.$modal.msgError('无新增编码绑定')
|
this.$modal.msgError('无新增编码绑定')
|
||||||
} else {
|
} else {
|
||||||
|
const maCodeSet = new Set()
|
||||||
|
let hasDuplicates = false
|
||||||
|
|
||||||
|
for (const item of this.codeList) {
|
||||||
|
const maCode = item.maCode
|
||||||
|
|
||||||
|
if (maCodeSet.has(maCode)) {
|
||||||
|
hasDuplicates = true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
maCodeSet.add(maCode)
|
||||||
|
}
|
||||||
|
console.log('codeList:', this.codeList)
|
||||||
|
if (hasDuplicates) {
|
||||||
|
this.$modal.msgError('编码绑定失败,存在重复编码,请重新输入')
|
||||||
|
return // 停止提交流程
|
||||||
|
}
|
||||||
editPurchaseMacode(this.codeList).then(response => {
|
editPurchaseMacode(this.codeList).then(response => {
|
||||||
console.log(this.codeList)
|
console.log(this.codeList)
|
||||||
if (response.data && response.data.length > 0) {
|
if (response.data && response.data.length > 0) {
|
||||||
|
|
|
||||||
|
|
@ -35,19 +35,8 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
||||||
type="primary"
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
icon="el-icon-search"
|
|
||||||
size="mini"
|
|
||||||
@click="handleQuery"
|
|
||||||
>查询</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
icon="el-icon-refresh"
|
|
||||||
size="mini"
|
|
||||||
@click="resetQuery"
|
|
||||||
>重置</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
|
@ -60,23 +49,14 @@
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
v-hasPermi="['system:dict:export']"
|
v-hasPermi="['system:dict:export']"
|
||||||
>导出</el-button
|
>导出</el-button>
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
:showSearch.sync="showSearch"
|
|
||||||
@queryTable="getList"
|
|
||||||
></right-toolbar>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="tableList">
|
<el-table v-loading="loading" :data="tableList">
|
||||||
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||||
<el-table-column
|
<el-table-column label="序号" align="center" type="index" width="55px" />
|
||||||
label="序号"
|
|
||||||
align="center"
|
|
||||||
type="index"
|
|
||||||
width="55px"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="采购单号"
|
label="采购单号"
|
||||||
align="center"
|
align="center"
|
||||||
|
|
@ -133,12 +113,7 @@
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
width="150"
|
width="150"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
||||||
label="备注"
|
|
||||||
align="center"
|
|
||||||
prop="remark"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
/>
|
|
||||||
<el-table-column label="状态" align="center" prop="taskStatus">
|
<el-table-column label="状态" align="center" prop="taskStatus">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.taskStatus == '26'">已验收合格</span>
|
<span v-if="scope.row.taskStatus == '26'">已验收合格</span>
|
||||||
|
|
@ -148,19 +123,9 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
|
||||||
label="操作"
|
|
||||||
align="center"
|
|
||||||
class-name="small-padding fixed-width"
|
|
||||||
width="200"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button size="mini" icon="el-icon-zoom-in" @click="handleView(scope.row)">查看</el-button>
|
||||||
size="mini"
|
|
||||||
icon="el-icon-zoom-in"
|
|
||||||
@click="handleView(scope.row)"
|
|
||||||
>查看</el-button
|
|
||||||
>
|
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
|
|
@ -171,16 +136,14 @@
|
||||||
scope.row.taskStatus == '105'
|
scope.row.taskStatus == '105'
|
||||||
"
|
"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
>审核</el-button
|
>审核</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="info"
|
type="info"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
v-if="scope.row.taskStatus == '28'"
|
v-if="scope.row.taskStatus == '28'"
|
||||||
@click="handlePrint(scope.row)"
|
@click="handlePrint(scope.row)"
|
||||||
>入库单</el-button
|
>入库单</el-button>
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -194,12 +157,7 @@
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!--审批对话框 -->
|
<!--审批对话框 -->
|
||||||
<el-dialog
|
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
|
||||||
:title="title"
|
|
||||||
:visible.sync="open"
|
|
||||||
width="1000px"
|
|
||||||
append-to-body
|
|
||||||
>
|
|
||||||
<el-form
|
<el-form
|
||||||
:model="query"
|
:model="query"
|
||||||
ref="query"
|
ref="query"
|
||||||
|
|
@ -226,22 +184,10 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row :gutter="10" class="mb8" v-if="showHandle">
|
<el-row :gutter="10" class="mb8" v-if="showHandle">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button type="primary" plain size="mini" :disabled="multiple" @click="passAll">批量通过</el-button>
|
||||||
type="primary"
|
|
||||||
plain
|
|
||||||
size="mini"
|
|
||||||
:disabled="multiple"
|
|
||||||
@click="passAll"
|
|
||||||
>批量通过</el-button>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button type="danger" plain size="mini" @click="refusedAll" :disabled="multiple">批量不通过</el-button>
|
||||||
type="danger"
|
|
||||||
plain
|
|
||||||
size="mini"
|
|
||||||
@click="refusedAll"
|
|
||||||
:disabled="multiple"
|
|
||||||
>批量不通过</el-button>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="1.5">-->
|
<!-- <el-col :span="1.5">-->
|
||||||
<!-- <el-button-->
|
<!-- <el-button-->
|
||||||
|
|
@ -254,13 +200,29 @@
|
||||||
<!-- >导出</el-button>-->
|
<!-- >导出</el-button>-->
|
||||||
<!-- </el-col>-->
|
<!-- </el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table v-loading="loading" :data="detailTableList" @selection-change="handleSelectionChange" height="400">
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="detailTableList"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
height="400"
|
||||||
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" :selectable="selectable" />
|
<el-table-column type="selection" width="55" align="center" :selectable="selectable" />
|
||||||
<el-table-column label="序号" align="center" type="index" />
|
<el-table-column label="序号" align="center" type="index" />
|
||||||
<el-table-column label="机具类型" align="center" prop="typeName" :show-overflow-tooltip="true" />
|
<el-table-column label="机具类型" align="center" prop="typeName" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="规格型号" align="center" prop="specificationType" :show-overflow-tooltip="true" />
|
<el-table-column
|
||||||
|
label="规格型号"
|
||||||
|
align="center"
|
||||||
|
prop="specificationType"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
<el-table-column label="数量" align="center" prop="checkNum" :show-overflow-tooltip="true" />
|
<el-table-column label="数量" align="center" prop="checkNum" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="编号" align="center" prop="maCode" :show-overflow-tooltip="true" width="200"/>
|
<el-table-column
|
||||||
|
label="编号"
|
||||||
|
align="center"
|
||||||
|
prop="maCode"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="200"
|
||||||
|
/>
|
||||||
<el-table-column label="管理模式" align="center" prop="manageType">
|
<el-table-column label="管理模式" align="center" prop="manageType">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.manageType=='0'">编码管理</span>
|
<span v-if="scope.row.manageType=='0'">编码管理</span>
|
||||||
|
|
@ -295,15 +257,13 @@
|
||||||
type="text"
|
type="text"
|
||||||
v-if="scope.row.status == '0'"
|
v-if="scope.row.status == '0'"
|
||||||
@click="pass(scope.row)"
|
@click="pass(scope.row)"
|
||||||
>通过</el-button
|
>通过</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
v-if="scope.row.status == '0'"
|
v-if="scope.row.status == '0'"
|
||||||
@click="refused(scope.row)"
|
@click="refused(scope.row)"
|
||||||
>不通过</el-button
|
>不通过</el-button>
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -328,13 +288,8 @@
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
"
|
"
|
||||||
>
|
>入库单</div>
|
||||||
入库单
|
<div class="info" style="margin-top: 10px; display: flex; flex-wrap: wrap">
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="info"
|
|
||||||
style="margin-top: 10px; display: flex; flex-wrap: wrap"
|
|
||||||
>
|
|
||||||
<div
|
<div
|
||||||
class="item"
|
class="item"
|
||||||
style="
|
style="
|
||||||
|
|
@ -391,36 +346,12 @@
|
||||||
border
|
border
|
||||||
>
|
>
|
||||||
<!-- <el-table-column type="selection" width="55" align="center" />-->
|
<!-- <el-table-column type="selection" width="55" align="center" />-->
|
||||||
<el-table-column
|
<el-table-column label="序号" align="center" type="index" />
|
||||||
label="序号"
|
<el-table-column label="类型名称" align="center" prop="typeName" />
|
||||||
align="center"
|
<el-table-column label="规格型号" align="center" prop="specificationType" />
|
||||||
type="index"
|
<el-table-column label="计量单位" align="center" prop="unitName" />
|
||||||
/>
|
<el-table-column label="数量" align="center" prop="checkNum" />
|
||||||
<el-table-column
|
<el-table-column label="备注" align="center" prop="remark" />
|
||||||
label="类型名称"
|
|
||||||
align="center"
|
|
||||||
prop="typeName"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="规格型号"
|
|
||||||
align="center"
|
|
||||||
prop="specificationType"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="计量单位"
|
|
||||||
align="center"
|
|
||||||
prop="unitName"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="数量"
|
|
||||||
align="center"
|
|
||||||
prop="checkNum"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="备注"
|
|
||||||
align="center"
|
|
||||||
prop="remark"
|
|
||||||
/>
|
|
||||||
<!-- <el-table-column label="出库方式" align="center" prop="manageTypeName" /> -->
|
<!-- <el-table-column label="出库方式" align="center" prop="manageTypeName" /> -->
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
|
|
@ -459,12 +390,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getTypeList } from '@/api/store/warehousing'
|
import { getTypeList } from '@/api/store/warehousing'
|
||||||
import {
|
import { getPutInList, getPutinDetailsList, changePutinStatus, warehousingEntry } from '@/api/store/newBuy'
|
||||||
getPutInList,
|
|
||||||
getPutinDetailsList,
|
|
||||||
changePutinStatus,
|
|
||||||
warehousingEntry,
|
|
||||||
} from '@/api/store/newBuy'
|
|
||||||
import vueEasyPrint from 'vue-easy-print'
|
import vueEasyPrint from 'vue-easy-print'
|
||||||
export default {
|
export default {
|
||||||
// name: "NewDevicesWarehousing",
|
// name: "NewDevicesWarehousing",
|
||||||
|
|
@ -515,6 +441,7 @@
|
||||||
query: {
|
query: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
dictName: undefined,
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
|
|
@ -543,14 +470,14 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getTypeList() {
|
getTypeList() {
|
||||||
getTypeList({ level: '3' }).then((response) => {
|
getTypeList({ level: '3' }).then(response => {
|
||||||
this.typesList = response.data
|
this.typesList = response.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/** 查询字典类型列表 */
|
/** 查询字典类型列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getPutInList(this.queryParams).then((response) => {
|
getPutInList(this.queryParams).then(response => {
|
||||||
this.tableList = response.rows
|
this.tableList = response.rows
|
||||||
this.total = response.total
|
this.total = response.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
@ -559,7 +486,7 @@
|
||||||
|
|
||||||
getDialogTable() {
|
getDialogTable() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getPutinDetailsList(this.query).then((response) => {
|
getPutinDetailsList(this.query).then(response => {
|
||||||
this.detailTableList = response.rows
|
this.detailTableList = response.rows
|
||||||
this.dialogTotal = response.total
|
this.dialogTotal = response.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
@ -601,10 +528,7 @@
|
||||||
selectable(row) {
|
selectable(row) {
|
||||||
console.log(row)
|
console.log(row)
|
||||||
if (row.status == '0') {
|
if (row.status == '0') {
|
||||||
if (
|
if ((row.manageType == '0' && row.maCode) || row.manageType == '1') {
|
||||||
(row.manageType == '0' && row.maCode) ||
|
|
||||||
row.manageType == '1'
|
|
||||||
) {
|
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
|
|
@ -615,7 +539,7 @@
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.ids = selection.map((item) => item)
|
this.ids = selection.map(item => item)
|
||||||
this.single = selection.length != 1
|
this.single = selection.length != 1
|
||||||
this.multiple = !selection.length
|
this.multiple = !selection.length
|
||||||
},
|
},
|
||||||
|
|
@ -623,6 +547,7 @@
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
// this.reset();
|
// this.reset();
|
||||||
this.query.taskId = row.taskId
|
this.query.taskId = row.taskId
|
||||||
|
this.query.dictName = undefined
|
||||||
this.getDialogTable()
|
this.getDialogTable()
|
||||||
this.open = true
|
this.open = true
|
||||||
this.showHandle = true
|
this.showHandle = true
|
||||||
|
|
@ -647,7 +572,7 @@
|
||||||
checkResult: '1',
|
checkResult: '1',
|
||||||
inputRecordList: [obj],
|
inputRecordList: [obj],
|
||||||
}
|
}
|
||||||
changePutinStatus(param).then((response) => {
|
changePutinStatus(param).then(response => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess('审批成功')
|
this.$modal.msgSuccess('审批成功')
|
||||||
this.getDialogTable()
|
this.getDialogTable()
|
||||||
|
|
@ -660,7 +585,7 @@
|
||||||
passAll() {
|
passAll() {
|
||||||
console.log(this.query.taskId)
|
console.log(this.query.taskId)
|
||||||
console.log(this.ids)
|
console.log(this.ids)
|
||||||
this.ids.forEach((item) => {
|
this.ids.forEach(item => {
|
||||||
item.taskId = this.query.taskId
|
item.taskId = this.query.taskId
|
||||||
item.typeId = item.typeId
|
item.typeId = item.typeId
|
||||||
item.maId = item.maId
|
item.maId = item.maId
|
||||||
|
|
@ -672,7 +597,7 @@
|
||||||
checkResult: '1',
|
checkResult: '1',
|
||||||
inputRecordList: this.ids,
|
inputRecordList: this.ids,
|
||||||
}
|
}
|
||||||
changePutinStatus(param).then((response) => {
|
changePutinStatus(param).then(response => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess('审批成功')
|
this.$modal.msgSuccess('审批成功')
|
||||||
this.getDialogTable()
|
this.getDialogTable()
|
||||||
|
|
@ -700,7 +625,7 @@
|
||||||
checkResult: '2',
|
checkResult: '2',
|
||||||
inputRecordList: [obj],
|
inputRecordList: [obj],
|
||||||
}
|
}
|
||||||
changePutinStatus(param).then((response) => {
|
changePutinStatus(param).then(response => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess('审批成功')
|
this.$modal.msgSuccess('审批成功')
|
||||||
this.getDialogTable()
|
this.getDialogTable()
|
||||||
|
|
@ -713,7 +638,7 @@
|
||||||
refusedAll() {
|
refusedAll() {
|
||||||
console.log(this.query.taskId)
|
console.log(this.query.taskId)
|
||||||
console.log(this.ids)
|
console.log(this.ids)
|
||||||
this.ids.forEach((item) => {
|
this.ids.forEach(item => {
|
||||||
item.taskId = this.query.taskId
|
item.taskId = this.query.taskId
|
||||||
item.typeId = item.typeId
|
item.typeId = item.typeId
|
||||||
item.maId = item.maId
|
item.maId = item.maId
|
||||||
|
|
@ -726,7 +651,7 @@
|
||||||
inputRecordList: this.ids,
|
inputRecordList: this.ids,
|
||||||
}
|
}
|
||||||
|
|
||||||
changePutinStatus(param).then((response) => {
|
changePutinStatus(param).then(response => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess('审批成功')
|
this.$modal.msgSuccess('审批成功')
|
||||||
this.getDialogTable()
|
this.getDialogTable()
|
||||||
|
|
@ -746,7 +671,7 @@
|
||||||
},
|
},
|
||||||
//获取入库单数据
|
//获取入库单数据
|
||||||
getPrintTable(taskId) {
|
getPrintTable(taskId) {
|
||||||
warehousingEntry({ taskId: taskId }).then((response) => {
|
warehousingEntry({ taskId: taskId }).then(response => {
|
||||||
this.printTableData = response.data
|
this.printTableData = response.data
|
||||||
// this.dialogTotal = response.total;
|
// this.dialogTotal = response.total;
|
||||||
})
|
})
|
||||||
|
|
@ -769,7 +694,7 @@
|
||||||
{
|
{
|
||||||
...this.queryParams,
|
...this.queryParams,
|
||||||
},
|
},
|
||||||
`新购工机具入库_${new Date().getTime()}.xlsx`,
|
`新购工机具入库_${new Date().getTime()}.xlsx`
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,9 @@ module.exports = {
|
||||||
// target: `https://z.csgmall.com.cn`,
|
// target: `https://z.csgmall.com.cn`,
|
||||||
|
|
||||||
// target: `http://10.40.92.8:8080`, //超
|
// target: `http://10.40.92.8:8080`, //超
|
||||||
// target: `http://10.40.92.253:8080`,//韩
|
target: `http://10.40.92.81:8080`, //韩
|
||||||
// target: `http://10.40.92.209:8080`,//川/
|
// target: `http://10.40.92.209:8080`,//川/
|
||||||
target: `http://10.40.92.153:8080`, //帅
|
// target: `http://10.40.92.153:8080`, //帅
|
||||||
// target: `http://10.40.92.14:8080`, //福
|
// target: `http://10.40.92.14:8080`, //福
|
||||||
|
|
||||||
//******** 注意事项 ********* */
|
//******** 注意事项 ********* */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue