单据编辑状态

20231126-yw
anthonywj 2 years ago
parent 0055477982
commit 5c1cdf6bc8

@ -8,8 +8,8 @@ ENV = 'production'
#林纪裕cd #林纪裕cd
VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:81/UDI_WMS_MC/' VUE_APP_BASE_API = 'http://www.linjiyu.lol:81/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:83/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://www.linjiyu.lol:83/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_WMS_MC/'

@ -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>
@ -317,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
@ -393,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() {
@ -439,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')
@ -493,7 +493,7 @@ export default {
checkPdaUn: null, checkPdaUn: null,
checkPc: null, checkPc: null,
checkWebNew: null, checkWebNew: null,
checkWebNewType:null, checkWebNewType: null,
checkChange: null, checkChange: null,
checkCopy: null, checkCopy: null,
secCheckUdims: null, secCheckUdims: null,
@ -568,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) {
@ -581,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) {
@ -613,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: {

@ -148,7 +148,6 @@
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!--</el-col>--> <!--</el-col>-->
</el-row> </el-row>
<el-row type="flex"> <el-row type="flex">
<el-col :span="11"> <el-col :span="11">
<el-form-item label="物资过期处理方式" prop="prefix"> <el-form-item label="物资过期处理方式" prop="prefix">
@ -171,7 +170,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row type="flex"> <el-row type="flex">
<el-col :span="11"> <el-col :span="11">
<el-form-item label="单据前缀" prop="prefix"> <el-form-item label="单据前缀" prop="prefix">
@ -188,7 +186,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row type="flex"> <el-row type="flex">
<el-col :span="11"> <el-col :span="11">
<el-form-item label="禁用单据类型" prop="prefix"> <el-form-item label="禁用单据类型" prop="prefix">
@ -198,6 +195,19 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="11">
<el-form-item label="单据编辑状态" prop="prefix">
<el-select v-model="inputQuery.editType" style="width: 90%" placeholder="编辑状态">
<el-option label="仅查看" :value="1"></el-option>
<el-option label="可编辑" :value="2"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11"> <el-col :span="11">
<el-form-item prop="remark" label="备注"> <el-form-item prop="remark" label="备注">
<el-input v-model="inputQuery.remark" size="small" style="width: 90%" type="textarea" autosize <el-input v-model="inputQuery.remark" size="small" style="width: 90%" type="textarea" autosize
@ -205,9 +215,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row type="flex">
</el-row>
</el-form> </el-form>
<div style="margin-left: 25px"> <div style="margin-left: 25px">

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save