fix:现场管理设置区分单据类型

20240912_adapter
chenhc 3 weeks ago
parent 7209acc756
commit c3771bf236

@ -38,6 +38,25 @@
</el-col> </el-col>
</el-row> </el-row>
<!-- <el-row :gutter="20">-->
<el-col :span="20" class="el-col">
<el-form-item label="适用业务单据类型:" prop="autoDownloadKey" label-width="160px">
<el-select
v-model="formData.autoDownloadKey"
multiple
placeholder="请选择适用业务单据类型"
style="width: 100%"
>
<el-option
v-for="item in busTypeOptions"
:key="item.documentTypeCode"
:label="item.busName"
:value="item.documentTypeCode"
></el-option>
</el-select>
</el-form-item>
</el-col>
<!-- </el-row>-->
</el-collapse-item> </el-collapse-item>
<el-collapse-item name="1"> <el-collapse-item name="1">
<template slot="title"> <template slot="title">
@ -61,7 +80,7 @@
</template> </template>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8" class="el-col"> <el-col :span="8" class="el-col">
<el-form-item label="待处理单据自动分配:" prop="autoAllotOrder" style="margin-bottom: 0"> <el-form-item label="待处理单据自动分配:" prop="autoAllotOrder" >
<el-radio-group v-model="formData.autoAllotOrder"> <el-radio-group v-model="formData.autoAllotOrder">
<el-radio :label="true"></el-radio> <el-radio :label="true"></el-radio>
<el-radio :label="false"></el-radio> <el-radio :label="false"></el-radio>
@ -69,7 +88,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" class="el-col"> <el-col :span="8" class="el-col">
<el-form-item label="单据自动完成:" prop="autoFinishOrder" style="margin-bottom: 0"> <el-form-item label="单据自动完成:" prop="autoFinishOrder" >
<el-radio-group v-model="formData.autoFinishOrder"> <el-radio-group v-model="formData.autoFinishOrder">
<el-radio :label="true"></el-radio> <el-radio :label="true"></el-radio>
<el-radio :label="false"></el-radio> <el-radio :label="false"></el-radio>
@ -77,7 +96,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" class="el-col"> <el-col :span="8" class="el-col">
<el-form-item label="寄售预验收扫码校验:" prop="autoFinishOrder" style="margin-bottom: 0"> <el-form-item label="寄售预验收扫码校验:" prop="autoFinishOrder" >
<el-radio-group v-model="formData.isScanCodeCheck"> <el-radio-group v-model="formData.isScanCodeCheck">
<el-radio :label="true"></el-radio> <el-radio :label="true"></el-radio>
<el-radio :label="false"></el-radio> <el-radio :label="false"></el-radio>
@ -85,6 +104,25 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!-- <el-row :gutter="20">-->
<el-col :span="20" class="el-col">
<el-form-item label="适用业务单据类型:" prop="autoFinishOrderKey" label-width="160px">
<el-select
v-model="formData.autoFinishOrderKey"
multiple
placeholder="请选择适用业务单据类型"
style="width: 100%"
>
<el-option
v-for="item in busTypeOptions"
:key="item.documentTypeCode"
:label="item.busName"
:value="item.documentTypeCode"
></el-option>
</el-select>
</el-form-item>
</el-col>
<!-- </el-row>-->
</el-collapse-item> </el-collapse-item>
<el-collapse-item name="3"> <el-collapse-item name="3">
<template slot="title"> <template slot="title">
@ -122,6 +160,27 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!-- <el-row :gutter="20">-->
<el-col :span="20" class="el-col">
<el-form-item label="适用业务单据类型:" prop="autoUploadOrderKey" label-width="160px">
<el-select
v-model="formData.autoUploadOrderKey"
multiple
placeholder="请选择适用业务单据类型"
style="width: 100%"
>
<el-option
v-for="item in busTypeOptions"
:key="item.documentTypeCode"
:label="item.busName"
:value="item.documentTypeCode"
></el-option>
</el-select>
</el-form-item>
</el-col>
<!-- </el-row>-->
</el-collapse-item> </el-collapse-item>
<el-collapse-item name="3"> <el-collapse-item name="3">
<template slot="title"> <template slot="title">
@ -303,6 +362,7 @@
<script> <script>
import {getWorkBindBusTypes} from '@/api/basic/workPlace/sysWorkplaceDocuments'
import {getSet, updateSet} from "@/api/collect/collectSet"; import {getSet, updateSet} from "@/api/collect/collectSet";
import ShelfDisplay from "@/components/ShelfDisplay"; import ShelfDisplay from "@/components/ShelfDisplay";
import {isBlank} from '@/utils/strUtil' import {isBlank} from '@/utils/strUtil'
@ -313,6 +373,8 @@ export default {
return { return {
num: 1, num: 1,
ShelfDisplayFlag: false, ShelfDisplayFlag: false,
busTypeOptions: [
],
shelfData: [ shelfData: [
{ {
row: 1, row: 1,
@ -393,6 +455,9 @@ export default {
ipcMaxCount: null, ipcMaxCount: null,
autoDecode: 1, autoDecode: 1,
outputMode: 1, outputMode: 1,
autoDownloadKey:[],
autoFinishOrderKey:[],
autoUploadOrderKey:[]
}, },
systemParam: null, systemParam: null,
socket: null, socket: null,
@ -403,6 +468,13 @@ export default {
ShelfDisplay ShelfDisplay
}, },
methods: { methods: {
getWorkBindBusTypes() {
getWorkBindBusTypes({page:1,limit:500}).then(res => {
if (res.code == 20000) {
this.busTypeOptions = res.data.list || []
}
})
},
handleInput() { handleInput() {
this.formData.fixedCount = Math.max(0, this.formData.fixedCount); this.formData.fixedCount = Math.max(0, this.formData.fixedCount);
}, },
@ -449,8 +521,10 @@ export default {
.then((response) => { .then((response) => {
if (response.code != 20000) { if (response.code != 20000) {
this.$message.error(response.message); this.$message.error(response.message);
} else } else{
this.selectSysParam()
this.$message.success("操作成功"); this.$message.success("操作成功");
}
}) })
.catch(() => { .catch(() => {
}); });
@ -534,8 +608,8 @@ export default {
this.connectWebSocket(); this.connectWebSocket();
}, },
created() { created() {
this.getWorkBindBusTypes()
this.selectSysParam() this.selectSysParam()
}, },
beforeDestroy() { beforeDestroy() {
// WebSocket // WebSocket

Loading…
Cancel
Save