diff --git a/src/api/inout/order.js b/src/api/inout/order.js index 8163470..b3fa035 100644 --- a/src/api/inout/order.js +++ b/src/api/inout/order.js @@ -58,6 +58,14 @@ export function saveOrderWeb(query) { }); } +export function filterInvoice(params) { + return axios({ + url: "/udiwms/inout/order/filterInvoice", + method: "get", + params: params + }); +} + export function orderListError(query) { return axios({ diff --git a/src/api/inout/orderDetailBiz.js b/src/api/inout/orderDetailBiz.js index 79953cc..7b8795b 100644 --- a/src/api/inout/orderDetailBiz.js +++ b/src/api/inout/orderDetailBiz.js @@ -8,6 +8,40 @@ export function getBizDetailList(params) { }); } +export function filterListInvoice(params) { + return axios({ + url: "/udiwms/inout/bizDetail/filterListInvoice", + method: "get", + params: params + }); +} + +export function deleteById(params) { + return axios({ + url: "/udiwms/inout/biz/deleteById", + method: "get", + params: params + }); +} + +export function updateById(data) { + return axios({ + url: "/udiwms/inout/biz/updateById", + method: "post", + data: data + }); +} + +export function insertInvoice(params) { + return axios({ + url: "/udiwms/inout/biz/insertInvoice", + method: "post", + data: params + }); +} + + + export function getCheckDetailList(params) { return axios({ url: "/udiwms/inout/wditCheck/filterList", diff --git a/src/views/basic/product/product.vue b/src/views/basic/product/product.vue index 2ca7114..73ce023 100644 --- a/src/views/basic/product/product.vue +++ b/src/views/basic/product/product.vue @@ -102,7 +102,7 @@ 显示/隐藏搜索栏 重置 查询 - 编辑菜单树 + 编辑菜单分类 添加DI信息 添加产品信息 关联添加 @@ -1098,7 +1098,7 @@ > + + + + + 提交 + + + + + + 规格型号: + + + + + + + + + + + 产品名称: + + + + + + + + + + + + + 机械编码: + + + + + + + + + + + 发票代码: + + + + + + + + + + + + 发票编码: + + + + + + + + + + + 发票价格: + + + + + + + + + + 备注: + + + + + + + + + + + + + 文件: + + + + + + + {{ choiceFile }} + + 只能上传 jpg,png,pdf,doc 文件,且不超过 3 MB + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/inout/DialogSelectRl.vue b/src/views/inout/DialogSelectRl.vue index a967488..91569cb 100644 --- a/src/views/inout/DialogSelectRl.vue +++ b/src/views/inout/DialogSelectRl.vue @@ -710,10 +710,10 @@ export default { } , bindId(val) { - + debugger if (this.curRow.code != null || this.type == 1) { this.$emit("selectBindRl", val); - this.$emit("closeBindDialog", true); + // this.$emit("closeBindDialog", true); } else { let query = { id: this.curRow.id, diff --git a/src/views/inout/IOFinishCode.vue b/src/views/inout/IOFinishCode.vue index 11f59a8..511d039 100644 --- a/src/views/inout/IOFinishCode.vue +++ b/src/views/inout/IOFinishCode.vue @@ -138,7 +138,6 @@ export default { }, getCodeList() { - debugger this.loading = true; this.query.orderId = this.idQuery.billNo; findByOrderId(this.query) //查找该单号下的所有条码 diff --git a/src/views/inout/InvoiceRegister.vue b/src/views/inout/InvoiceRegister.vue new file mode 100644 index 0000000..beee98c --- /dev/null +++ b/src/views/inout/InvoiceRegister.vue @@ -0,0 +1,165 @@ + + + + + + + + 选入 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/inout/InvoiceRegistration.vue b/src/views/inout/InvoiceRegistration.vue new file mode 100644 index 0000000..ee0d9ac --- /dev/null +++ b/src/views/inout/InvoiceRegistration.vue @@ -0,0 +1,742 @@ + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + {{ item.name }} + + + + + + + + + + + + + + + + + + 显示/隐藏搜索栏 + 重置 + + 查询 + + + + + + + + + + + + + {{ fromTypeMap[scope.row.fromType] }} + + + + + + + + + + + + + + {{ scope.row.createTime }} + + + + + {{ + checkStatus[scope.row.status] + }} + + + + + + + 发票登记 + + + + + + + + + + + 订单 {{ currentRow.billNo }}-发票信息 + + + + + + + + + + + + + + + + + + + + + 编辑 + + 删除 + + 预览 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/inout/PanelCreateOrderCodes.vue b/src/views/inout/PanelCreateOrderCodes.vue index 1305669..8a3fd24 100644 --- a/src/views/inout/PanelCreateOrderCodes.vue +++ b/src/views/inout/PanelCreateOrderCodes.vue @@ -272,7 +272,7 @@ export default { rowStyle({row, rowIndex}) { let rowBackground = {}; - if (!this.$isNotBlank(row.supId) || !this.$isNotBlank(row.relId) ) { + if (!this.$isNotBlank(row.supId) || !this.$isNotBlank(row.relId)) { rowBackground.color = '#f60303'; } return rowBackground; @@ -288,6 +288,7 @@ export default { if (response.code == 20000) { this.$message.success("绑定成功"); this.orderFormData.id = this.curRow.orderId; + this.closeBindDialog(); this.getCodeList(); } else { if (response.code == 503) { @@ -326,7 +327,7 @@ export default { closeBindDialog() { this.selectRlVisible = false; this.dialogTableVisible = false; - // this.refreshPanel(); + this.refreshPanel(); }, closeCodeDialog() { diff --git a/src/views/inventory/inner/innerCodeDetail.vue b/src/views/inventory/inner/innerCodeDetail.vue index 9add767..0c45d5c 100644 --- a/src/views/inventory/inner/innerCodeDetail.vue +++ b/src/views/inventory/inner/innerCodeDetail.vue @@ -1,447 +1,448 @@ - - - - - - 生成内部码 - - - 打印全部 - - - - - - - - - 单据号: - - - - - - - - - - 单据日期: - - - - - - - - - - - - - - - - - {{ statusMap[scope.row.status] }} - - - - - - {{ scope.row.updateTime }} - - - - - - - - - - - 标签打印 - - - - - - - - - - - + + + + + 生成内部码 + + + 打印全部 + + + + + + + + + 单据号: + + + + + + + + + + 单据日期: + + + + + + + + + + + + + + + + + {{ statusMap[scope.row.status] }} + + + - - 刷新 - - - - - - - - - - {{ printMap[scope.row.status] }} - - - - - - - - - 标签打印 - - - - - - - + + + {{ scope.row.updateTime }} + + + + + + + + + + + 标签打印 + + + + + + + + + + + + + 刷新 + + + + + + + + + + {{ printMap[scope.row.status] }} + + + + + + + + + 标签打印 + + + + + + + diff --git a/src/views/purchase/purArrival/purArrival.vue b/src/views/purchase/purArrival/purArrival.vue index 4acec13..801e15f 100644 --- a/src/views/purchase/purArrival/purArrival.vue +++ b/src/views/purchase/purArrival/purArrival.vue @@ -32,7 +32,7 @@ 显示/隐藏搜索栏 重置 查询 - 新增送货单据 + 新增到货单据 @@ -46,7 +46,7 @@ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} - + @@ -85,7 +85,10 @@ - + + + + @@ -135,8 +138,8 @@ export default { }, formName: null, formMap: { - add: "新增送货单", - update: "编辑送货单", + add: "新增到货单", + update: "编辑到货单", }, statusMap: { 1: "草稿", @@ -248,6 +251,7 @@ export default { this.filterQuery.endDate = null; } this.loading = true; + this.filterQuery.status = 11; listOrder(this.filterQuery) .then((response) => { if (response.code == 20000) { diff --git a/src/views/purchase/purArrival/purArrivalAudit.vue b/src/views/purchase/purArrival/purArrivalAudit.vue index 7f3e474..e9dff42 100644 --- a/src/views/purchase/purArrival/purArrivalAudit.vue +++ b/src/views/purchase/purArrival/purArrivalAudit.vue @@ -45,7 +45,7 @@ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} - + @@ -60,7 +60,7 @@ - 编辑 + 审核 删除 @@ -106,12 +106,13 @@ :closeDialog="closeDialog" v-on:cancelDialog="getId" :idQuery="idQuery" + :edit-type="1" > + + diff --git a/src/views/purchase/purDelivery/DialogSelectDeliveryList.vue b/src/views/purchase/purDelivery/DialogSelectDeliveryList.vue index 23bb62e..488b340 100644 --- a/src/views/purchase/purDelivery/DialogSelectDeliveryList.vue +++ b/src/views/purchase/purDelivery/DialogSelectDeliveryList.vue @@ -1,13 +1,309 @@ + + + + + + + + + + + + + + + + + + + + + 显示/隐藏搜索栏 + 查询 + 确定 + + + + + + + + + {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/purchase/purDelivery/purDelivery.vue b/src/views/purchase/purDelivery/purDelivery.vue index da48f2e..28a93c7 100644 --- a/src/views/purchase/purDelivery/purDelivery.vue +++ b/src/views/purchase/purDelivery/purDelivery.vue @@ -46,9 +46,9 @@ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} - - - + + + diff --git a/src/views/purchase/purDelivery/purDeliveryDetailDialog.vue b/src/views/purchase/purDelivery/purDeliveryDetailDialog.vue index 3852496..11f04ed 100644 --- a/src/views/purchase/purDelivery/purDeliveryDetailDialog.vue +++ b/src/views/purchase/purDelivery/purDeliveryDetailDialog.vue @@ -60,9 +60,9 @@ - - 是否生成采购入库单 - + + + diff --git a/src/views/purchase/purDelivery/purDeliveryEditDialog.vue b/src/views/purchase/purDelivery/purDeliveryEditDialog.vue index 4af7795..5104a4f 100644 --- a/src/views/purchase/purDelivery/purDeliveryEditDialog.vue +++ b/src/views/purchase/purDelivery/purDeliveryEditDialog.vue @@ -4,7 +4,7 @@ 草稿保存 - 提交单据 + 提交单据 @@ -18,12 +18,12 @@ @@ -36,10 +36,10 @@ + v-for="item in invCodeList" + :key="item.name" + :label="item.name" + :value="item.code"> {{ item.name }} {{ item.warehouseName }} @@ -134,35 +134,36 @@ @@ -178,7 +179,7 @@ import { selectOrderDetail, updateDetail } from "@/api/purchase/purDelivery"; -import {filterSubByInv} from "@/api/system/invSubWarehouse"; +import {filterSubByInv, findInvByUser} from "@/api/system/invSubWarehouse"; import SelectPlanListDialog from "@/views/purchase/purOrder/DialogSelectOrderList"; @@ -247,7 +248,8 @@ export default { storageList: [], invCodeList: [], invQueryData: {}, - selectApplyVisible: false + selectApplyVisible: false, + customerId:this.$store.getters.customerId, }; }, watch: { @@ -261,9 +263,7 @@ export default { }, methods: { saveOrder(status) { - this.tableCountChange(this.currentRow); - this.$refs["dataForm"].validate(valid => { if (valid) { if (this.codeArray.length < 1) { @@ -276,7 +276,7 @@ export default { return this.$message.error("单据日期不能为空!"); } if (this.formData.invCode == "" || this.formData.invCode == null) { - return this.$message.error("采购仓库不能为空!"); + return this.$message.error("送货仓库不能为空!"); } for (let i = 0; i < this.codeArray.length; i++) { if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") { @@ -312,18 +312,18 @@ export default { type: 1, } inserThrOrderWeb(tQuery) - .then(response => { - this.loading = false; - if (response.code === 20000) { - this.$message.success(tMessage + "成功"); - this.closeDialog(true); - } else { - this.$message.error(response.message); - } - }) - .catch(() => { - this.loading = false; - }) + .then(response => { + this.loading = false; + if (response.code === 20000) { + this.$message.success(tMessage + "成功"); + this.closeDialog(true); + } else { + this.$message.error(response.message); + } + }) + .catch(() => { + this.loading = false; + }) }, selectProductFunction() { this.selectProductVisible = true; @@ -349,17 +349,17 @@ export default { orderIdFk: this.pId } selectOrderDetail(this.query) //查找该单号下的所有条码 - .then((response) => { - console.log(response) - this.codeArray = response.data.list || []; - this.total = response.data.total || 0; - this.loading = false; - }) - .catch(() => { - this.loading = false; - this.list = []; - this.total = 0; - }); + .then((response) => { + console.log(response) + this.codeArray = response.data.list || []; + this.total = response.data.total || 0; + this.loading = false; + }) + .catch(() => { + this.loading = false; + this.list = []; + this.total = 0; + }); }, rowChange(val) { this.tableCountChange(this.currentRow); @@ -400,19 +400,19 @@ export default { let delIds = []; delIds.push(row.id) delOrderDetail(delIds) - .then(response => { - this.detailLoading = false; - if (response.code === 20000) { - this.$message.success(response.data); - // this.getStockOrderDetailList(); - this.codeArray.splice(index, 1); - } else { - this.$message.error(response.message); - } - }) - .catch(() => { - this.detailLoading = false; - }) + .then(response => { + this.detailLoading = false; + if (response.code === 20000) { + this.$message.success(response.data); + // this.getStockOrderDetailList(); + this.codeArray.splice(index, 1); + } else { + this.$message.error(response.message); + } + }) + .catch(() => { + this.detailLoading = false; + }) } else { this.$message.success('删除成功'); this.codeArray.splice(index, 1); @@ -428,32 +428,29 @@ export default { getStockOrderDetailList() { this.loading = true; listOrderDetail(this.query) //查找该单号下的所有条码 - .then((response) => { - console.log(response) - this.codeArray = response.data.list || []; - this.total = response.data.total || 0; - this.loading = false; - }) - .catch(() => { - this.loading = false; - this.list = []; - this.total = 0; - }); + .then((response) => { + console.log(response) + this.codeArray = response.data.list || []; + this.total = response.data.total || 0; + this.loading = false; + }) + .catch(() => { + this.loading = false; + this.list = []; + this.total = 0; + }); }, findSubInvs() { this.invCodeList = []; - let query = { - filter: 3 - }; - filterSubByInv(query) - .then((response) => { - this.invCodeList = response.data || []; - if (this.invCodeList != null && this.invCodeList.length == 1) { - this.formData.invCode = this.invCodeList[0].code; - } - }) - .catch(() => { - }); + findInvByUser() + .then((response) => { + this.invCodeList = response.data || []; + if (this.invCodeList != null && this.invCodeList.length == 1) { + this.formData.invCode = this.invCodeList[0].code; + } + }) + .catch(() => { + }); }, selectApply() { this.selectApplyVisible = true; diff --git a/src/views/purchase/purDelivery/purDeliveryInvoice.vue b/src/views/purchase/purDelivery/purDeliveryInvoice.vue deleted file mode 100644 index 27d746f..0000000 --- a/src/views/purchase/purDelivery/purDeliveryInvoice.vue +++ /dev/null @@ -1,418 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - 显示/隐藏搜索栏 - 重置 - 查询 - - - - - - - - - - {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} - - - - - - - - - - {{ statusMap[scope.row.status] }} - - - - - - - - 编辑 - - 删除 - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/purchase/purDelivery/purDeliverySearch.vue b/src/views/purchase/purDelivery/purDeliverySearch.vue index 27d746f..1b8d606 100644 --- a/src/views/purchase/purDelivery/purDeliverySearch.vue +++ b/src/views/purchase/purDelivery/purDeliverySearch.vue @@ -60,8 +60,6 @@ - 编辑 - 删除 diff --git a/src/views/purchase/purDelivery/purDeliverySelectProduct.vue b/src/views/purchase/purDelivery/purDeliverySelectProduct.vue index 121dcb2..0cd8d28 100644 --- a/src/views/purchase/purDelivery/purDeliverySelectProduct.vue +++ b/src/views/purchase/purDelivery/purDeliverySelectProduct.vue @@ -50,7 +50,8 @@ - + @@ -137,6 +138,10 @@ export default { type: Object, required: true, }, + customerId:{ + type: Object, + required: true, + } }, data() { @@ -270,7 +275,7 @@ export default { }, getList() { this.loading = true; - this.listQuery.customerId = store.getters.customerId; + this.listQuery.customerId =this.customerId; filterCompanyProductRelevance(this.listQuery) .then((response) => { this.loading = false; diff --git a/src/views/purchase/purOrder/purOrderDetailDialog.vue b/src/views/purchase/purOrder/purOrderDetailDialog.vue index adae99c..9a2639e 100644 --- a/src/views/purchase/purOrder/purOrderDetailDialog.vue +++ b/src/views/purchase/purOrder/purOrderDetailDialog.vue @@ -60,9 +60,9 @@ - - 是否生成采购入库单 - + + + diff --git a/src/views/purchase/purReturned/DialogSelectReturnedInvProduct.vue b/src/views/purchase/purReturned/DialogSelectReturnedInvProduct.vue new file mode 100644 index 0000000..1b4d21e --- /dev/null +++ b/src/views/purchase/purReturned/DialogSelectReturnedInvProduct.vue @@ -0,0 +1,251 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 显示/隐藏搜索栏 + 重置 + 查询 + 确定 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/purchase/purReturned/purReturned.vue b/src/views/purchase/purReturned/purReturned.vue index f0f6eee..0c5af1a 100644 --- a/src/views/purchase/purReturned/purReturned.vue +++ b/src/views/purchase/purReturned/purReturned.vue @@ -47,7 +47,7 @@ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} - + @@ -91,7 +91,6 @@ - { if (response.code == 20000) { diff --git a/src/views/purchase/purReturned/purReturnedAudit.vue b/src/views/purchase/purReturned/purReturnedAudit.vue index 741d487..462d78c 100644 --- a/src/views/purchase/purReturned/purReturnedAudit.vue +++ b/src/views/purchase/purReturned/purReturnedAudit.vue @@ -60,7 +60,7 @@ - 编辑 + 审核 删除 @@ -105,12 +105,13 @@ :closeDialog="closeDialog" v-on:cancelDialog="getId" :idQuery="idQuery" + :edit-type="1" >