委托验收,条码完整性

master
anthonywj 3 years ago
parent 33a81cf3f0
commit 566634c36c

@ -18,6 +18,16 @@ export function filterAll(query) {
params: query params: query
}); });
} }
export function filterNext(query) {
return axios({
url: "/spms/inv/warehouse/filterNext",
method: "get",
params: query
});
}
export function filterAllByLoc(query) { export function filterAllByLoc(query) {
return axios({ return axios({
url: "/spms/inv/warehouse/filterAllLocInv", url: "/spms/inv/warehouse/filterAllLocInv",

@ -186,6 +186,24 @@ export default {
onAddSubmit() { onAddSubmit() {
if (this.$isBlank(this.inputQuery.action)) {
this.$message.error("单据类型不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.curInv)) {
this.$message.error("请输入委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入委托验收人仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入委托验收人!");
return;
}
insertEntrustRece(this.inputQuery) insertEntrustRece(this.inputQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
@ -199,6 +217,22 @@ export default {
}, },
onModifySubmit() { onModifySubmit() {
if (this.$isBlank(this.inputQuery.action)) {
this.$message.error("单据类型不能为空!");
return;
}
if (this.$isBlank(this.inputQuery.curInv)) {
this.$message.error("请输入委托仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入委托验收人仓库!");
return;
}
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.$message.error("请输入委托验收人!");
return;
}
insertEntrustRece(this.inputQuery) insertEntrustRece(this.inputQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;

@ -1,113 +1,112 @@
<template> <template>
<div> <div>
<el-form :model="inputQuery" :rules="formRules" ref="dataForm">
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="10" class="el-col">
<div class="text item">
<div class="itemTag">
<span>扫码单据类型:&nbsp;</span>
</div>
<el-select v-model="inputQuery.action" placeholder="请选择" clearable @change="actionChange">
<el-option
v-for="item in busTypes"
:key="item.localAction"
:label="item.name"
:value="item.localAction">
<span style="float: left">{{ item.localName }}</span>
</el-option>
</el-select>
</div>
</el-col>
<el-col :span="10" class="el-col">
<div class="text item">
<div class="itemTag">
<span>委托仓库:&nbsp;</span>
</div>
<el-select v-model="inputQuery.curInv" placeholder="当前仓库" @change="invChange" clearable>
<el-option
v-for="item in storageList"
:key="item.code"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="10" class="el-col">
<div class="text item">
<div class="itemTag">
<span>扫码单据类型:&nbsp;</span>
</div> </div>
<el-select v-model="inputQuery.action" placeholder="请选择" clearable @change="actionChange"> </el-col>
<el-option
v-for="item in busTypes" </el-row>
:key="item.localAction" <el-row :gutter="20" class="el-row" type="flex">
:label="item.name" <el-col :span="10" class="el-col">
:value="item.localAction"> <div class="text item">
<span style="float: left">{{ item.localName }}</span> <div class="itemTag">
</el-option> <span>委托验收人仓库:&nbsp;</span>
</el-select> </div>
</div> <el-select v-model="inputQuery.entrustInv" placeholder="委托验收人仓库" @change="entrustInvChange" clearable>
</el-col> <el-option
<el-col :span="10" class="el-col"> v-for="item in entrustStorageList"
<div class="text item"> :key="item.code"
<div class="itemTag"> :label="item.name"
<span>当前仓库:&nbsp;</span> :value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</div> </div>
<el-select v-model="inputQuery.curInv" placeholder="当前仓库" @change="invChange" clearable> </el-col>
<el-option <el-col :span="10" class="el-col">
v-for="item in storageList" <div class="text item">
:key="item.code" <div class="itemTag">
:label="item.name" <span>委托验收人:&nbsp;</span>
:value="item.code"> </div>
<span style="float: left">{{ item.name }}</span> <el-select v-model="inputQuery.entrustUser" placeholder="委托验收人" clearable>
</el-option> <el-option
v-for="item in entrustUserArray"
</el-select> :key="item.userid"
:label="item.employeeName"
</div> :value="item.userid">
</el-col> <span style="float: left">{{ item.employeeName }}</span>
</el-option>
</el-row>
<el-row :gutter="20" class="el-row" type="flex"> </el-select>
<el-col :span="10" class="el-col">
<div class="text item">
<div class="itemTag">
<span>委托验收人:&nbsp;</span>
</div> </div>
<el-select v-model="inputQuery.entrustUser" placeholder="委托验收人"> </el-col>
<el-option
v-for="item in entrustUserArray"
:key="item.userid" </el-row>
:label="item.employeeName"
:value="item.userid"> <el-row :gutter="20" class="el-row" type="flex">
<span style="float: left">{{ item.employeeName }}</span>
</el-option> <el-col :span="10" class="el-col">
<div class="text item">
</el-select> <div class="itemTag">
<span>委托生成单据类型:&nbsp;</span>
</div> </div>
</el-col> <el-select v-model="inputQuery.entrustAction" placeholder="单据类型" clearable>
<el-col :span="10" class="el-col"> <el-option
<div class="text item"> v-for="item in entrustBusArray"
<div class="itemTag"> :key="item.action"
<span>委托验收人仓库:&nbsp;</span> :label="item.name"
:value="item.action">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</div> </div>
<el-select v-model="inputQuery.entrustInv" placeholder="委托验收人仓库" @change="invChange"> </el-col>
<el-option <el-col :span="4" class="el-col">
v-for="item in storageList" <div class="text item">
:key="item.code" <el-checkbox v-model="inputQuery.finishRece">
:label="item.name" </el-checkbox>
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</div>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="10" class="el-col">
<div class="text item">
<div class="itemTag">
<span>委托生成单据类型:&nbsp;</span>
</div> </div>
<el-select v-model="inputQuery.entrustAction" placeholder="单据类型"> </el-col>
<el-option </el-row>
v-for="item in entrustBusArray" </el-form>
:key="item.action"
:label="item.name"
:value="item.action">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</div>
</el-col>
<el-col :span="4" class="el-col">
<div class="text item">
<el-checkbox v-model="inputQuery.finishRece">
</el-checkbox>
</div>
</el-col>
</el-row>
</div> </div>
</template> </template>
@ -120,7 +119,7 @@ import {
import { import {
getLocalJoinNoUse getLocalJoinNoUse
} from "../../api/basic/busLocalType"; } from "../../api/basic/busLocalType";
import {filterAll, filterAllByUser, warehouseBussinessTypeList, warehouseUserList} from "@/api/basic/invWarehouse"; import {filterAll, filterNext, warehouseBussinessTypeList, warehouseUserList} from "@/api/basic/invWarehouse";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {filterNoUseBusType} from "@/api/basic/EntrustRece"; import {filterNoUseBusType} from "@/api/basic/EntrustRece";
@ -142,12 +141,27 @@ export default {
isFilterBind: true, isFilterBind: true,
}, },
storageList: [], storageList: [],
entrustStorageList: [],
orderTypeList: [], orderTypeList: [],
fromSpecialOptions: [], fromSpecialOptions: [],
thirdSys: [], thirdSys: [],
busTypes: [], busTypes: [],
entrustBusArray: [], entrustBusArray: [],
entrustUserArray: [], entrustUserArray: [],
formRules: {
action: [
{required: true, message: "请输入扫码单据类型", trigger: "blur"}
],
curInv: [
{required: true, message: "请输入委托仓库", trigger: "blur"}
],
entrustInv: [
{required: true, message: "请输入委托验收人仓库", trigger: "blur"}
],
entrustUser: [
{required: true, message: "请输入委托验收人", trigger: "blur"}
],
},
} }
}, },
methods: { methods: {
@ -181,6 +195,17 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
getEntrustStorage() {
this.entrustStorageList = [];
let nextQuery = {pcode: this.inputQuery.curInv};
filterNext(nextQuery)
.then((response) => {
this.entrustStorageList = response.data || [];
})
.catch(() => {
});
},
getOrderType() { getOrderType() {
filterNoUseBusType().then((response) => { filterNoUseBusType().then((response) => {
this.busTypes = response.data || []; this.busTypes = response.data || [];
@ -192,6 +217,8 @@ export default {
let query = { let query = {
code: code code: code
} }
this.inputQuery.entrustInv="";
// //
warehouseUserList(query).then((res) => { warehouseUserList(query).then((res) => {
this.entrustUserArray = res.data; this.entrustUserArray = res.data;
@ -205,10 +232,34 @@ export default {
}).catch((error) => { }).catch((error) => {
this.$message.error("单据类型数据加载失败") this.$message.error("单据类型数据加载失败")
}); });
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.inputQuery.entrustUser = null;
}
this.getEntrustStorage();
}, },
actionChange(action){ entrustInvChange(code) {
let query = {
code: code
}
//
warehouseUserList(query).then((res) => {
this.entrustUserArray = res.data;
}).catch((error) => {
this.$message.error("用户数据加载失败")
});
//
warehouseBussinessTypeList(query).then((res) => {
this.entrustBusArray = res.data;
}).catch((error) => {
this.$message.error("单据类型数据加载失败")
});
},
actionChange(action) {
} }
@ -224,9 +275,9 @@ export default {
this.getOrderType(); this.getOrderType();
this.getList(); this.getList();
this.getStorage(); this.getStorage();
this.getEntrustStorage();
if (this.$isNotBlank(this.inputQuery.entrustInv)) { if (this.$isNotBlank(this.inputQuery.entrustInv)) {
this.invChange(this.inputQuery.entrustInv); this.entrustInvChange(this.inputQuery.entrustInv);
} }
}, },

@ -1,171 +1,172 @@
<template> <template>
<el-card> <el-card>
<el-descriptions class="margin-top" title="数据同步设置" :column="1" :size="100" border> <el-descriptions class="margin-top" title="数据同步设置" :column="1" :size="100" border>
<template slot="extra"> <template slot="extra">
<el-button type="primary" size="small" @click="saveConfig()"></el-button> <el-button type="primary" size="small" @click="saveConfig()"></el-button>
</template> </template>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> <template slot="label">
参数设置 参数设置
</template> </template>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="4" class="el-col" style="margin-top: 6px"> <el-col :span="4" class="el-col" style="margin-top: 6px">
<el-checkbox v-model="configQuery.downstreamEnable"></el-checkbox> <el-checkbox v-model="configQuery.downstreamEnable"></el-checkbox>
</el-col> </el-col>
<el-col :span="20" class="el-col"> <el-col :span="20" class="el-col">
<div> <div>
<span>数据同步轮询时间(单位:分钟):&nbsp;</span> <span>数据同步轮询时间(单位:分钟):&nbsp;</span>
<el-input <el-input
style="width: 100px" style="width: 100px"
size="small" size="small"
type="number" type="number"
v-model="configQuery.syncTime" v-model="configQuery.syncTime"
splaceholder="请输入内容" splaceholder="请输入内容"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> <template slot="label">
单据类型 单据类型
</template> </template>
<el-checkbox v-model="configQuery.typeBus"></el-checkbox> <el-checkbox v-model="configQuery.typeBus"></el-checkbox>
<el-checkbox v-model="configQuery.typeScan"></el-checkbox> <el-checkbox v-model="configQuery.typeScan"></el-checkbox>
<el-checkbox v-model="configQuery.typeThird"></el-checkbox> <el-checkbox v-model="configQuery.typeThird"></el-checkbox>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> <template slot="label">
基础信息 基础信息
</template> </template>
<el-checkbox v-model="configQuery.basicProducts"></el-checkbox> <el-checkbox v-model="configQuery.sysUser"></el-checkbox>
<el-checkbox v-model="configQuery.basicCorp"></el-checkbox> <el-checkbox v-model="configQuery.basicProducts"></el-checkbox>
<el-checkbox v-model="configQuery.basicInv"></el-checkbox> <el-checkbox v-model="configQuery.basicCorp"></el-checkbox>
</el-descriptions-item> <el-checkbox v-model="configQuery.basicInv"></el-checkbox>
<el-descriptions-item> </el-descriptions-item>
<template slot="label"> <el-descriptions-item>
第三方基础信息 <template slot="label">
</template> 第三方基础信息
<el-checkbox v-model="configQuery.basicThirdProducts"></el-checkbox> </template>
<el-checkbox v-model="configQuery.basicThirdCorp"></el-checkbox> <el-checkbox v-model="configQuery.basicThirdProducts"></el-checkbox>
<el-checkbox v-model="configQuery.basicThirdInv"></el-checkbox> <el-checkbox v-model="configQuery.basicThirdCorp"></el-checkbox>
<el-checkbox v-model="configQuery.basicThirdBusOrder"></el-checkbox> <el-checkbox v-model="configQuery.basicThirdInv"></el-checkbox>
</el-descriptions-item> <el-checkbox v-model="configQuery.basicThirdBusOrder"></el-checkbox>
</el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> <template slot="label">
国家库DI数据 国家库DI数据
</template> </template>
<el-checkbox v-model="configQuery.dbDiProducts">DI</el-checkbox> <el-checkbox v-model="configQuery.dbDiProducts">DI</el-checkbox>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions class="margin-top" title="" :column="1" :size="100" style="margin-top: 30px" border> <el-descriptions class="margin-top" title="" :column="1" :size="100" style="margin-top: 30px" border>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> <template slot="label">
单据(单据状态) 单据(单据状态)
</template> </template>
<el-checkbox v-model="configQuery.orderUnCheck"></el-checkbox> <el-checkbox v-model="configQuery.orderUnCheck"></el-checkbox>
<el-checkbox v-model="configQuery.orderUnReceive"></el-checkbox> <el-checkbox v-model="configQuery.orderUnReceive"></el-checkbox>
<el-checkbox v-model="configQuery.orderScanFinish"></el-checkbox> <el-checkbox v-model="configQuery.orderScanFinish"></el-checkbox>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="单据(单据类型)" label-style="width: 150px"> <el-descriptions-item label="单据(单据类型)" label-style="width: 150px">
<div style="float: right;margin-bottom: 10px;margin-right: 25px"> <div style="float: right;margin-bottom: 10px;margin-right: 25px">
<el-button type="primary" size="small" @click="addBusTypeDialog()"></el-button> <el-button type="primary" size="small" @click="addBusTypeDialog()"></el-button>
</div> </div>
<el-table <el-table
:data="checkedBusTypes" :data="checkedBusTypes"
border border
style="width: 100%" style="width: 100%"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column <el-table-column
label="单据类型" label="单据类型"
prop="name" prop="name"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="单据类型代码" label="单据类型代码"
prop="action" prop="action"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column label="操作" fixed="right"> <el-table-column label="操作" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native="remveBus(scope.$index, scope.row)" @click.native="remveBus(scope.$index, scope.row)"
>移除 >移除
</el-button </el-button
> >
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item label="单据(单据类型)" label-style="width: 150px">--> <!-- <el-descriptions-item label="单据(单据类型)" label-style="width: 150px">-->
<!-- <el-checkbox-group v-model="checkedBusTypes" @change="handleCheckedChange">--> <!-- <el-checkbox-group v-model="checkedBusTypes" @change="handleCheckedChange">-->
<!-- <el-checkbox--> <!-- <el-checkbox-->
<!-- style="padding-top: 10px"--> <!-- style="padding-top: 10px"-->
<!-- v-for="busType in busTypes" :label="busType" :key="busType.action"--> <!-- v-for="busType in busTypes" :label="busType" :key="busType.action"-->
<!-- :value="busType.action">{{ busType.name }}--> <!-- :value="busType.action">{{ busType.name }}-->
<!-- </el-checkbox>--> <!-- </el-checkbox>-->
<!-- </el-checkbox-group>--> <!-- </el-checkbox-group>-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
</el-descriptions> </el-descriptions>
<el-dialog <el-dialog
title="添加扫码单据类型" title="添加扫码单据类型"
:visible.sync="addBusDialogVisible" :visible.sync="addBusDialogVisible"
width="55%" width="55%"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="addBusDialogVisible" v-if="addBusDialogVisible"
> >
<div style="float: right;margin-bottom: 10px;margin-right: 25px"> <div style="float: right;margin-bottom: 10px;margin-right: 25px">
<el-button type="primary" size="small" @click="addBusType()"></el-button> <el-button type="primary" size="small" @click="addBusType()"></el-button>
</div> </div>
<el-table <el-table
:data="busTypes" :data="busTypes"
border border
style="width: 100%" style="width: 100%"
@selection-change="handleCheckedChange" @selection-change="handleCheckedChange"
> >
<el-table-column type="selection" width="55" :selectable="checkSelectable"></el-table-column> <el-table-column type="selection" width="55" :selectable="checkSelectable"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column <el-table-column
label="单据类型" label="单据类型"
prop="name" prop="name"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="单据类型代码" label="单据类型代码"
prop="action" prop="action"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
:page-size="busQuery.limit" :page-size="busQuery.limit"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
></el-pagination> ></el-pagination>
</el-dialog> </el-dialog>
</el-card> </el-card>
</template> </template>
<script> <script>
@ -174,136 +175,137 @@ import store from "@/store";
import {getBussinessType} from "@/api/basic/bussinessType"; import {getBussinessType} from "@/api/basic/bussinessType";
export default { export default {
name: "SysUdimsConfig", name: "SysUdimsConfig",
data() { data() {
return { return {
configQuery: { configQuery: {
id: null, id: null,
typeBus: null, typeBus: null,
typeScan: null, typeScan: null,
typeThird: null, typeThird: null,
basicProducts: null, basicProducts: null,
basicCorp: null, sysUser: null,
basicInv: null, basicCorp: null,
basicThirdProducts: null, basicInv: null,
basicThirdCorp: null, basicThirdProducts: null,
basicThirdInv: null, basicThirdCorp: null,
basicThirdBusOrder: null, basicThirdInv: null,
orderScanFinish: null, basicThirdBusOrder: null,
dbDiProducts: null, orderScanFinish: null,
downstreamEnable: null, dbDiProducts: null,
syncTime: null, downstreamEnable: null,
orderUnCheck: null, syncTime: null,
orderUnReceive: null, orderUnCheck: null,
busTypes: [], orderUnReceive: null,
}, busTypes: [],
checkedBusTypes: [], },
busQuery: { checkedBusTypes: [],
page: 1, busQuery: {
limit: 10, page: 1,
}, limit: 10,
busTypes: [], },
multipleSelection: [], busTypes: [],
addBusDialogVisible: false, multipleSelection: [],
total: 0, addBusDialogVisible: false,
} total: 0,
}, }
methods: { },
getConfig() { methods: {
findConfig() getConfig() {
.then((response) => { findConfig()
if (response.code == 20000) { .then((response) => {
this.configQuery = response.data; if (response.code == 20000) {
this.checkedBusTypes = []; this.configQuery = response.data;
if (this.configQuery.busTypes != null) { this.checkedBusTypes = [];
for (let i = 0; i < this.configQuery.busTypes.length; i++) { if (this.configQuery.busTypes != null) {
for (let i = 0; i < this.configQuery.busTypes.length; i++) {
for (let k = 0; k < this.busTypes.length; k++) { for (let k = 0; k < this.busTypes.length; k++) {
if (this.busTypes[k].action == this.configQuery.busTypes[i]) { if (this.busTypes[k].action == this.configQuery.busTypes[i]) {
this.checkedBusTypes.push(this.busTypes[k]); this.checkedBusTypes.push(this.busTypes[k]);
this.busTypes[k].isSelect = true; this.busTypes[k].isSelect = true;
}
}
}
}
} else {
this.$message.error(response.message);
} }
} })
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
saveConfig() {
if (this.checkedBusTypes != null) {
this.configQuery.busTypes = [];
for (let i = 0; i < this.checkedBusTypes.length; i++) {
this.configQuery.busTypes.push(this.checkedBusTypes[i].action);
} }
}
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
saveConfig() {
if (this.checkedBusTypes != null) {
this.configQuery.busTypes = [];
for (let i = 0; i < this.checkedBusTypes.length; i++) {
this.configQuery.busTypes.push(this.checkedBusTypes[i].action);
}
}
updateConfig(this.configQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("更新成功!");
this.getConfig();
} }
}) updateConfig(this.configQuery)
.catch(() => { .then((response) => {
this.loading = false; this.loading = false;
}); if (response.code == 20000) {
}, this.$message.success("更新成功!");
this.getConfig();
}
})
.catch(() => {
this.loading = false;
});
},
handleCheckedChange(val) { handleCheckedChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
}, },
getBusType() { getBusType() {
getBussinessType(this.busQuery) getBussinessType(this.busQuery)
.then((response) => { .then((response) => {
this.busTypes = response.data.list || []; this.busTypes = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
this.getConfig(); this.getConfig();
}) })
.catch(() => { .catch(() => {
}); });
}, },
addBusTypeDialog() { addBusTypeDialog() {
this.addBusDialogVisible = true; this.addBusDialogVisible = true;
this.multipleSelection = []; this.multipleSelection = [];
}, },
addBusType(){ addBusType() {
var selectData = this.multipleSelection; var selectData = this.multipleSelection;
selectData.forEach((obj) => { selectData.forEach((obj) => {
this.checkedBusTypes.push(obj); this.checkedBusTypes.push(obj);
}); });
this.addBusDialogVisible = false; this.addBusDialogVisible = false;
}, },
remveBus(index,row){ remveBus(index, row) {
this.checkedBusTypes.splice(index,1); this.checkedBusTypes.splice(index, 1);
}, },
checkSelectable(row) { checkSelectable(row) {
return !row.isSelect; return !row.isSelect;
},
handleCurrentChange(val) {
this.busQuery.page = val;
this.getBusType();
},
}, },
handleCurrentChange(val) { created() {
this.busQuery.page = val; this.headers = {
this.getBusType(); ADMIN_ID: store.getters.adminId,
}, ADMIN_TOKEN: store.getters.token,
}, };
created() {
this.headers = {
ADMIN_ID: store.getters.adminId,
ADMIN_TOKEN: store.getters.token,
};
this.getBusType(); this.getBusType();
}, },
} }
</script> </script>

@ -171,7 +171,7 @@
</el-checkbox> </el-checkbox>
<el-checkbox v-model="formData.preCheck" <el-checkbox v-model="formData.preCheck"
:disabled="!curAction.changeEnable ||corpOrderIdDisabled" :disabled="corpOrderIdDisabled || curAction.corpType !=2"
>是否只采集预验收产品 >是否只采集预验收产品
</el-checkbox> </el-checkbox>
</div> </div>

Loading…
Cancel
Save