diff --git a/supervise-customer-ui/.env.development b/supervise-customer-ui/.env.development index 96a7c40f..7f387f4d 100644 --- a/supervise-customer-ui/.env.development +++ b/supervise-customer-ui/.env.development @@ -6,4 +6,4 @@ VUE_APP_BASE_API = '/api/service' ## 配置测试和本地开发时的 接口地址 ##VUE_APP_URL = "http://8.130.39.13:8112" -VUE_APP_URL = "http://127.0.0.1:8112" +VUE_APP_URL = "http://192.168.1.193:8112" diff --git a/supervise-report-ui/.env.development b/supervise-report-ui/.env.development index 75976752..7f387f4d 100644 --- a/supervise-report-ui/.env.development +++ b/supervise-report-ui/.env.development @@ -6,4 +6,4 @@ VUE_APP_BASE_API = '/api/service' ## 配置测试和本地开发时的 接口地址 ##VUE_APP_URL = "http://8.130.39.13:8112" -VUE_APP_URL = "http://192.168.3.173:8112" +VUE_APP_URL = "http://192.168.1.193:8112" diff --git a/yxt-portal-ui/.env.development b/yxt-portal-ui/.env.development index 888c35d1..1c2f86ac 100644 --- a/yxt-portal-ui/.env.development +++ b/yxt-portal-ui/.env.development @@ -5,5 +5,5 @@ ENV = 'development' VUE_APP_BASE_API = '/api' ## 配置测试和本地开发时的 接口地址 -VUE_APP_URL = "http://127.0.0.1:8112" +VUE_APP_URL = "http://192.168.1.193:8112" # VUE_APP_URL = "http://8.130.39.13:8112" diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/oilTypeYuanliao/index.js b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/oilTypeYuanliao/index.js index 8182efe8..9b39cba8 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/oilTypeYuanliao/index.js +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/oilTypeYuanliao/index.js @@ -1,7 +1,20 @@ import request from '@/utils/request' let tokens = window.sessionStorage.getItem('tokenValue') export default { - + // 获取采购订单列表 数据字典 + procureOrderList: function(params) { + return request({ + url: '/cyf/materialProcurement/list', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } + }) + }, + + // 采购 // 查询分页列表 loadLogList: function(params) { @@ -25,7 +38,17 @@ export default { 'token': tokens } }) - }, + }, + + // 经理--财务提交 + updateByState: function(data) { + return request({ + url: '/cyf/materialProcurement/updateByState', + method: 'post', + data: data + }); + }, + // 编辑原料 update: function(params) { return request({ diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/packagInAndOutBound/packagInAndOutBound.js b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/packagInAndOutBound/packagInAndOutBound.js index b6d719d1..decb8683 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/packagInAndOutBound/packagInAndOutBound.js +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/packagInAndOutBound/packagInAndOutBound.js @@ -89,6 +89,14 @@ export default { data: data }); }, + + packInventoryList: function(data) { + return request({ + url: '/cyf/packinventory/inventoryList', + method: 'post', + data: data + }); + }, } \ No newline at end of file diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/packagProcure/packagProcure.js b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/packagProcure/packagProcure.js index 22f0a23f..65733c94 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/packagProcure/packagProcure.js +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/api/packagProcure/packagProcure.js @@ -2,10 +2,25 @@ import request from '@/utils/request' let tokens = window.sessionStorage.getItem('tokenValue') export default { + // 获取采购订单列表 数据字典 + procureOrderList: function(params) { + return request({ + url: '/cyf/packagingprocurement/list', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } + }) + }, + + + // 采购 // 查询分页列表 - listPage: function(params) { + loadLogList: function(params) { return request({ - url: '/cyf/procurement/listPage', + url: '/cyf/packagingprocurement/listPage', method: 'post', data: params, headers: { @@ -15,32 +30,79 @@ export default { }) }, -addInfo: function(data) { + // 新增 + procureAddInfo: function(data) { return request({ - url: '/v1/warehouselocation/save', + url: '/cyf/packagingprocurement/save', method: 'post', data: data }); }, - fetchBySid: function(sid) { + // 初始化 + procureFetchBySid: function(sid) { return request({ - url: '/v1/warehouselocation/getWarehouseBySid//' + sid + url: '/cyf/packagingprocurement/getPackagingProcurementBySid/' + sid }) }, - updateData: function(data) { + // 修改 + procureUpdateData: function(data) { return request({ - url: '/v1/warehouselocation/update', + url: '/cyf/packagingprocurement/update', method: 'post', data: data }); }, - delBySids: function(sid) { + // 删除 + procureDelBySids: function(sid) { return request({ - url: '/v1/warehouselocation/delete/' + sid, + url: '/cyf/packagingprocurement/delete/' + sid, method: 'delete' }) }, -} \ No newline at end of file + + // 提交 + procureAddSubmitInfo: function(data) { + return request({ + url: '/cyf/packagingprocurement/submit', + method: 'post', + data: data + }); + }, + + // 流程提交 + procureSubmitInfo: function(data) { + return request({ + url: '/cyf/packagingprocurement/save', + method: 'post', + data: data + }); + }, + + + // 经理--财务提交 + updateByState: function(data) { + return request({ + url: '/cyf/packagingprocurement/updateByState', + method: 'post', + data: data + }); + }, + + + // 销售 + // 查询分页列表 + loadLogList2: function(params) { + return request({ + url: '/cyf/procurement/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json', + 'token': tokens + } + }) + }, +} diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/oilTypeProcure/oilTypeProcureInfo.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/oilTypeProcure/oilTypeProcureInfo.vue index 2b50d005..84475cee 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/oilTypeProcure/oilTypeProcureInfo.vue +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/oilTypeProcure/oilTypeProcureInfo.vue @@ -355,18 +355,8 @@ this.editDialog = true; } - console.log(">>>>>>>>>submit", this.formobj) - // if (this.formobj.state = 5) { - // // 财务审批 需要填数据 - - // } else { - // // 财务之前 直接提交 - - // } - - }, save() { diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/packagProcure/index.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/packagProcure/index.vue index c2611226..ec4863bb 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/packagProcure/index.vue +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/packagProcure/index.vue @@ -1,147 +1,123 @@ @@ -152,8 +128,10 @@ import ButtonBar from '@/components/ButtonBar' import packagProcureAdd from './packagProcureAdd.vue' import packagProcureInfo from './packagProcureInfo.vue' + import { + parseTime + } from '@/utils/index' export default { - name: 'CustomerManagement', components: { Pagination, pageye, @@ -166,12 +144,13 @@ return { tabActiveName: 'uplog', index: "0", - isSearchShow: false, - searchxianshitit: '显示查询条件', + isSearchShow1: false, + searchxianshitit1: '显示查询条件', + isSearchShow2: false, + searchxianshitit2: '显示查询条件', btndisabled: false, tableLoading1: false, tableLoading2: false, - tableLoading3: false, btnList: [{ type: 'primary', size: 'small', @@ -188,15 +167,29 @@ btnLabel: '关闭' } ], - isSearchShow: false, - searchxianshitit: '显示查询条件', list: [], + listTotal: 1, listQuery: { current: 1, size: 10, params: { - bankName: '', - type: '1', // 原油1 包装物2 原料3 + orderNumber: '', + date: '', + supplierName: '', + // state: "1", // 1待提交 2经理 3监管 4银行 5财务 6待入库 7已办结 + }, + total: 0 + }, + list2: [], + listTotal2: 1, + listQuery2: { + current: 1, + size: 10, + params: { + orderNumber: '', + date: '', + supplierName: '', + // state: "1", // 1待提交 2经理 3监管 4银行 5财务 6待入库 7已办结 }, total: 0 }, @@ -212,7 +205,8 @@ this.$refs['btnbar'].setButtonList(this.btnList) }, created() { - this.init() + this.loadLogList() + // this.loadLogList2() // 加载列表 }, methods: { @@ -230,17 +224,61 @@ } }, // 搜索条件效果 - clicksearchShow() { - this.isSearchShow = !this.isSearchShow - if (this.isSearchShow) { - this.searchxianshitit = '隐藏查询条件' + clicksearchShow1() { + this.isSearchShow1 = !this.isSearchShow1 + if (this.isSearchShow1) { + this.searchxianshitit1 = '隐藏查询条件' } else { - this.searchxianshitit = '显示查询条件' + this.searchxianshitit1 = '显示查询条件' } }, - // 初始化 - init() { - this.getList() + // 搜索条件效果 + clicksearchShow2() { + this.isSearchShow2 = !this.isSearchShow2 + if (this.isSearchShow2) { + this.searchxianshitit2 = '隐藏查询条件' + } else { + this.searchxianshitit2 = '显示查询条件' + } + }, + handleOrder(tab, event) { + console.log("tab", tab) + this.index = tab.index + + switch (tab.index) { + // 采购 + case "0": + if (this.list.length == 0) + this.loadLogList() + break; + // 销售 + case "1": + if (this.list2.length == 0) + this.loadIn112List() + break; + default: + break; + } + + }, + + // 查询列表信息 + loadLogList() { + this.tableLoading1 = true + req.loadLogList(this.listQuery).then((response) => { + this.tableLoading1 = false + if (response.success) { + console.log("response.data", response.data) + this.list = response.data.records + this.listQuery.total = response.data.total + this.listTotal = response.data.total + this.listQuery.current = response.data.current + this.listQuery.size = response.data.size + } else { + this.list = [] + this.listQuery.total = 0 + } + }) }, // 序号 indexMethod(index) { @@ -249,39 +287,86 @@ return pageindex }, // 查询列表信息 - getList() { - this.listLoading = true - req.listPage(this.listQuery).then((response) => { - this.listLoading = false + loadLogList2() { + this.tableLoading2 = true + req.loadLogList2(this.listQuery2).then((response) => { + this.tableLoading2 = false if (response.success) { - this.list = response.data.records - this.listQuery.total = response.data.total + this.list2 = response.data.records + this.listQuery2.total = response.data.total + this.listTotal2 = response.data.total + this.listQuery2.current = response.data.current + this.listQuery2.size = response.data.size } else { - this.list = [] - this.listQuery.total = 0 + this.list2 = [] + this.listQuery2.total = 0 } }) }, + // 序号 + indexMethod2(index) { + var pagestart = (this.listQuery2.current - 1) * this.listQuery2.size + var pageindex = index + 1 + pagestart + return pageindex + }, // 查询按钮 - handleReset() { - this.listQuery.current = 1 - this.getList() + handleReset1() { + this.loadLogList() }, // 重置 - handleFilter() { + handleFilter1() { + this.listQuery = { current: 1, size: 10, total: 0, params: { - bankName: "" + orderNumber: '', + tradeName: '', + date: "", + type: '1', + // state: "1", // 1待提交 2经理 3监管 4银行 5财务 6待入库 7已办结 + } + } + this.loadLogList() + }, + + // 查询按钮 + handleReset2() { + this.loadIn112List() + }, + // 重置 + handleFilter2() { + + this.listQuery2 = { + current: 1, + size: 10, + total: 0, + params: { + orderNumber: '', + tradeName: '', + date: "", + type: '1', + // state: "1", // 1待提交 2经理 3监管 4银行 5财务 6待入库 7已办结 } } - this.getList() + this.loadIn112List() }, // 打开添加 toAdd() { - this.viewState = 2 + switch (this.index) { + // 采购 + case "0": + this.viewState = 2 + break; + // 销售 + case "1": + this.viewState = 2 + break; + default: + break; + } + }, // 打开修改 toEdit(row) { @@ -296,27 +381,49 @@ cancelButtonText: '取消', type: 'warning' }).then(() => { - req.delBySids(row.sid).then((response) => { - if (response.success) { - this.$message({ - showClose: true, - type: 'success', - message: '删除成功' - }) - this.getList() - } else { - this.$message({ - showClose: true, - type: 'error', - message: '删除失败' - }) - } - }) + if ("0" == this.index) { + req.procureDelBySids(row.sid).then((response) => { + if (response.success) { + this.$message({ + showClose: true, + type: 'success', + message: '删除成功' + }) + this.loadLogList() + } else { + this.$message({ + showClose: true, + type: 'error', + message: '删除失败' + }) + } + }) + } + + if ("1" == this.index) { + req.procureDelBySids(row.sid).then((response) => { + if (response.success) { + this.$message({ + showClose: true, + type: 'success', + message: '删除成功' + }) + this.loadLogList() + } else { + this.$message({ + showClose: true, + type: 'error', + message: '删除失败' + }) + } + }) + } + }) }, toDetail(row) { this.viewState = 4 - this.$refs['divInfo'].showAdd(row.sid) + this.$refs['divInfo'].showAdd(row) }, resetState() { this.viewState = 1 diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/packagProcure/packagProcureAdd.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/packagProcure/packagProcureAdd.vue index 5bdcef3b..3f82f68e 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/packagProcure/packagProcureAdd.vue +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/packagProcure/packagProcureAdd.vue @@ -1,121 +1,234 @@ - diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/packagProcure/packagProcureInfo.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/packagProcure/packagProcureInfo.vue index 080c20e0..8b0d36da 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/packagProcure/packagProcureInfo.vue +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/packagProcure/packagProcureInfo.vue @@ -2,165 +2,470 @@
-
【查看】采购信息
+
采购信息
+ {{state}} + 关闭
- +
采购信息
-
基本信息
+
主体信息
- 库房位置 + 合同编号 - {{temp.address}} + {{formobj.orderNumber}} + - - - 省-市-县 - - - - - {{temp.province}} - {{temp.city}} - {{temp.county}} - - - - - 库房面积 + 合同日期 - {{temp.squareMeasure}} - - - - - 库房层高 - - - - - {{temp.floorHeight}} + {{formobj.contractSigningDate}} + - 库房价格 + 供货商名称 - {{temp.price}} + {{formobj.supplierName}} + - 库房性质 + 到货日期 - {{temp.properties}} - - - - - - - 房源 - - - - - {{temp.housingResources}} - - - - - 备注 - - - - - {{temp.remarks}} - - - - - - - 联系人 - - - - - {{temp.contacts}} - - - - - 联系电话 - - - - - {{temp.telephone}} + {{formobj.arrivalDate}} +
+ + + + + 付款日期 + + + + + + {{formobj.paymentDate}} + + + + + 付款金额 + + + + + {{formobj.payment}} + + + + + + + + 付款单位 + + + + + + {{formobj.payer}} + + + + + 付款单位开户行 + + + + + {{formobj.payerBank}} + + + + + + + + 收款单位 + + + + + + {{formobj.payee}} + + + + + 收款单位开户行 + + + + + {{formobj.payeeBank}} + + + + + + + + 备注 + + + + + + {{formobj.paymentSummary}} + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
审核操作 +
+ 同意 + 不同意 +
+
审核意见 + +
付款日期 + +
付款金额 + +
付款单位 + +
付款单位开户行 + +
收款单位 + +
收款单位开户行 + +
摘要 + +
+
+ 提交 +
+
diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/rawMaterialProcure/rawMaterialProcureAdd.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/rawMaterialProcure/rawMaterialProcureAdd.vue index 666c51d0..4937c2b8 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/rawMaterialProcure/rawMaterialProcureAdd.vue +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/rawMaterialProcure/rawMaterialProcureAdd.vue @@ -94,7 +94,7 @@ - + @@ -331,4 +491,4 @@ /deep/ .el-collapse-item__content { padding-bottom: 0; } - \ No newline at end of file + diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/supervise/oilTypeInBound/index.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/supervise/oilTypeInBound/index.vue index 6ca0d067..d67a53ab 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/supervise/oilTypeInBound/index.vue +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/supervise/oilTypeInBound/index.vue @@ -114,7 +114,7 @@ formobj: { sid: "", procSid: "", - contractNumber: "", + salesContractNumber: "", contractSigningDate: "", warehousingDate: "", crudeSid: "", @@ -227,7 +227,7 @@ this.formobj = { sid: "", procSid: "", - contractNumber: "", + salesContractNumber: "", contractSigningDate: "", warehousingDate: "", crudeSid: "", diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/supervise/packagInBound/index.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/supervise/packagInBound/index.vue index 49d1365f..9665cc13 100644 --- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/supervise/packagInBound/index.vue +++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/supervise/packagInBound/index.vue @@ -18,7 +18,11 @@
合同编号: - + + + +
供货商名称: @@ -85,6 +89,7 @@