新增单据类型,有三期业务单校验方式

20231126-yw
anthonywj 2 years ago
parent 2043524bf0
commit 59d52457b4

@ -47,13 +47,13 @@
<el-button type="primary" icon="el-icon-plus" @click="handleAddClick"></el-button> <el-button type="primary" icon="el-icon-plus" @click="handleAddClick"></el-button>
<el-button type="primary" icon="el-icon-download" @click="exportJsonFile"></el-button> <el-button type="primary" icon="el-icon-download" @click="exportJsonFile"></el-button>
<el-upload <el-upload
:action="uploadFileUrl" :action="uploadFileUrl"
multiple multiple
:limit="3" :limit="3"
:headers="headers" :headers="headers"
:show-file-list="false" :show-file-list="false"
:on-success="handleChange" :on-success="handleChange"
:file-list="fileList" :file-list="fileList"
> >
<el-button icon="el-icon-upload2" type="primary">导入单据类型</el-button> <el-button icon="el-icon-upload2" type="primary">导入单据类型</el-button>
</el-upload> </el-upload>
@ -93,15 +93,15 @@
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
@click.native.stop="handleModifyClick(scope.row)" @click.native.stop="handleModifyClick(scope.row)"
>编辑 >编辑
</el-button </el-button
> >
<el-button <el-button
type="text" type="text"
:disabled="!configParams.typeScan" :disabled="!configParams.typeScan"
@click.native.stop="deleteDialog(scope.row)" @click.native.stop="deleteDialog(scope.row)"
>删除 >删除
</el-button </el-button
> >
@ -111,14 +111,14 @@
</el-table> </el-table>
<el-dialog <el-dialog
title="新增扫码单据类型" title="新增扫码单据类型"
:visible.sync="addDialogVisible" :visible.sync="addDialogVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="addDialogVisible" v-if="addDialogVisible"
class="dialog-two" class="dialog-two"
width="60%" width="60%"
top="5vh" top="5vh"
> >
<modifyDialog :inputQuery="inputQuery"></modifyDialog> <modifyDialog :inputQuery="inputQuery"></modifyDialog>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -136,13 +136,13 @@
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="编辑单据类型" title="编辑单据类型"
:visible.sync="modifyDialogVisible" :visible.sync="modifyDialogVisible"
width="70%" width="70%"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="modifyDialogVisible" v-if="modifyDialogVisible"
:before-close="cancelDialog" :before-close="cancelDialog"
> >
<modifyDialog :inputQuery="inputQuery" :modifySubmit="onModifySubmit"></modifyDialog> <modifyDialog :inputQuery="inputQuery" :modifySubmit="onModifySubmit"></modifyDialog>
<div style="text-align: center;margin-top: 12px"> <div style="text-align: center;margin-top: 12px">
@ -159,11 +159,11 @@
</el-dialog> </el-dialog>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
:limit.sync="filterQuery.limit" :limit.sync="filterQuery.limit"
:page.sync="filterQuery.page" :page.sync="filterQuery.page"
@pagination="getList" @pagination="getList"
></pagination> ></pagination>
</el-card> </el-card>
</div> </div>
@ -208,6 +208,7 @@ export default {
checkPdaUn: null, checkPdaUn: null,
checkPc: null, checkPc: null,
checkWebNew: null, checkWebNew: null,
checkWebNewType: null,
checkChange: null, checkChange: null,
checkCopy: null, checkCopy: null,
secCheckUdims: null, secCheckUdims: null,
@ -316,20 +317,20 @@ export default {
getList() { getList() {
this.loading = true this.loading = true
getBusTypeList(this.filterQuery) getBusTypeList(this.filterQuery)
.then((response) => { .then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.list = response.data.list || [] this.list = response.data.list || []
this.total = response.data.total || 0 this.total = response.data.total || 0
} else { } else {
this.$message.error(response.message) this.$message.error(response.message)
} }
this.loading = false this.loading = false
}) })
.catch(() => { .catch(() => {
this.loading = false this.loading = false
this.list = [] this.list = []
this.total = 0 this.total = 0
}) })
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.filterQuery.page = val this.filterQuery.page = val
@ -392,18 +393,18 @@ export default {
// return; // return;
// } // }
insertBusType(this.inputQuery) insertBusType(this.inputQuery)
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.loading = false
this.cancelDialog()
this.getList()
} else {
this.$message.error(response.message)
}
})
.catch(() => {
this.loading = false this.loading = false
this.cancelDialog() });
this.getList()
} else {
this.$message.error(response.message)
}
})
.catch(() => {
this.loading = false
});
}, },
onModifySubmit() { onModifySubmit() {
@ -438,26 +439,26 @@ export default {
// } // }
updateBusType(this.inputQuery) updateBusType(this.inputQuery)
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.loading = false
this.cancelDialog()
this.getList()
} else {
this.$message.error(response.message)
}
})
.catch(() => {
this.loading = false this.loading = false
this.cancelDialog() this.cancelDialog()
this.getList() })
} else {
this.$message.error(response.message)
}
})
.catch(() => {
this.loading = false
this.cancelDialog()
})
}, },
exportJsonFile() { exportJsonFile() {
exportFile().then((response) => { exportFile().then((response) => {
const binaryData = [] const binaryData = []
binaryData.push(response) binaryData.push(response)
let url = window.URL.createObjectURL( let url = window.URL.createObjectURL(
new Blob(binaryData, {type: 'application/json'}) new Blob(binaryData, {type: 'application/json'})
) )
this.loading = false this.loading = false
const eleLink = document.createElement('a') const eleLink = document.createElement('a')
@ -492,6 +493,7 @@ export default {
checkPdaUn: null, checkPdaUn: null,
checkPc: null, checkPc: null,
checkWebNew: null, checkWebNew: null,
checkWebNewType:null,
checkChange: null, checkChange: null,
checkCopy: null, checkCopy: null,
secCheckUdims: null, secCheckUdims: null,
@ -566,11 +568,11 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
this.deleteOrders(rowId) this.deleteOrders(rowId)
}) })
.catch(() => { .catch(() => {
}) })
}, },
deleteOrders(data) { deleteOrders(data) {
@ -579,20 +581,20 @@ export default {
id: data.id + '' id: data.id + ''
} }
deleteBusType(tquery) deleteBusType(tquery)
.then((response) => { .then((response) => {
this.getList() this.getList()
if (response.code == 20000) { if (response.code == 20000) {
this.$message({ this.$message({
type: 'success', type: 'success',
message: '删除成功!' message: '删除成功!'
}) })
} else { } else {
this.$message.error(response.message) this.$message.error(response.message)
} }
}) })
.catch(() => { .catch(() => {
}) })
}, },
handleChange(response, files, fileList) { handleChange(response, files, fileList) {
if (response.code != 20000) { if (response.code != 20000) {
@ -611,13 +613,13 @@ export default {
}, },
getSyncConfig() { getSyncConfig() {
findConfig() findConfig()
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.configParams = response.data this.configParams = response.data
} }
}) })
.catch(() => { .catch(() => {
}) })
} }
}, },
components: { components: {

@ -556,7 +556,6 @@
<el-option label="有三期业务单配/拣货" :value="1"></el-option> <el-option label="有三期业务单配/拣货" :value="1"></el-option>
<el-option label="无三期业务单配/拣货" :value="2"></el-option> <el-option label="无三期业务单配/拣货" :value="2"></el-option>
<el-option label="有三期业务单校验" :value="3"></el-option> <el-option label="有三期业务单校验" :value="3"></el-option>
</el-select> </el-select>
</el-col> </el-col>
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
@ -565,6 +564,25 @@
</el-col> </el-col>
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
<el-row v-if="inputQuery.checkWebNew == 3">
<el-col span="5">
<span class="sptext">有三期业务单校验方式</span>
</el-col>
<el-divider direction="vertical"></el-divider>
<el-col span="5">
<el-select v-model="inputQuery.checkWebNewType" style="width: 75%" :disabled="!inputQuery.checkEnable"
placeholder="有三期业务单校验方式"
>
<el-option label="扫码结果提交" :value="0"></el-option>
<el-option label="比对结果提交" :value="1"></el-option>
</el-select>
</el-col>
<el-divider direction="vertical"></el-divider>
<el-col span="13">
<span class="sptext">有三期业务单校验方式</span>
</el-col>
</el-row>
<el-divider v-if="inputQuery.checkWebNew == 3"></el-divider>
<el-row> <el-row>
<el-col span="5"> <el-col span="5">

Loading…
Cancel
Save