diff --git a/yxt-portal-ui/.env.development b/yxt-portal-ui/.env.development
index bee6aa64..25971c4e 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://8.130.39.13:8112"
+# VUE_APP_URL = "http://127.0.0.1:8112"
+VUE_APP_URL = "http://8.130.39.13:8112"
diff --git a/yxt-portal-ui/src/layout/components/Sidebar/index.vue b/yxt-portal-ui/src/layout/components/Sidebar/index.vue
index 9b06d722..4ea333b8 100644
--- a/yxt-portal-ui/src/layout/components/Sidebar/index.vue
+++ b/yxt-portal-ui/src/layout/components/Sidebar/index.vue
@@ -19,7 +19,7 @@
-->
- {{ item.name }}
+ {{ item.name }}
@@ -30,10 +30,10 @@
/>-->
- 工作流
+ 工作流
- 流程定义
- 表单配置
+ 流程定义
+ 表单配置
@@ -48,8 +48,12 @@
import variables from '@/styles/variables.scss'
import {getrolemenus} from '@/api/system/Role/role.js'
import Layout from '@/layout'
-
+ import SidebarItem from './SidebarItem'
export default {
+ components: {
+ SidebarItem,
+ Logo
+ },
data() {
return {
routes: []
@@ -129,30 +133,49 @@
redirect: menus[i].path,
children: [menus[i]],
name: menus[i].meta.title,
+ icon: menus[i].meta.icon,
}
}
}
this.routes = menus
+ console.log(this.routes);
return menus
}
}
}
diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/.env.development b/yxt-supervise-cyf/yxt-supervise-cyf-ui/.env.development
index c17cca5d..08b30584 100644
--- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/.env.development
+++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/.env.development
@@ -6,8 +6,8 @@ VUE_APP_BASE_API = '/api'
## 配置测试和本地开发时的 接口地址
## VUE_APP_URL = "http://cg9jzr.natappfree.cc"
-##VUE_APP_URL = "http://192.168.1.177:7101"
+VUE_APP_URL = "http://192.168.1.105:7101"
- VUE_APP_URL = "http://192.168.1.193:7101"
+# VUE_APP_URL = "http://192.168.1.193:7101"
##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 36e540ff..8182efe8 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
@@ -26,7 +26,18 @@ export default {
}
})
},
-
+ // 编辑原料
+ update: function(params) {
+ return request({
+ url: '/cyf/materialProcurement/update',
+ method: 'post',
+ data: params,
+ headers: {
+ 'Content-Type': 'application/json',
+ 'token': tokens
+ }
+ })
+ },
// 新增
save: function(data) {
return request({
@@ -35,11 +46,18 @@ export default {
data: data
});
},
-
// 初始化
- procureFetchBySid: function(sid) {
+ getMaterialProcurementBySid: function(sid) {
return request({
- url: '/v1/warehouselocation/getWarehouseBySid/' + sid
+ url: '/cyf/materialProcurement/getMaterialProcurementBySid/' + sid
})
},
+ // 删除
+ procureDelBySids: function(sid) {
+ return request({
+ url: '/cyf/materialProcurement/delete/' + sid,
+ method: 'delete'
+ })
+ },
+
}
diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/rawMaterialProcure/index.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/rawMaterialProcure/index.vue
index 831b4b56..bf2ae96f 100644
--- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/rawMaterialProcure/index.vue
+++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/rawMaterialProcure/index.vue
@@ -46,11 +46,11 @@
-
-
+
+
-
-
+
+
@@ -176,8 +176,7 @@
orderNumber: '',
date: '',
tradeName: '',
- // type: '1', // 原油1 包装物2 原料3
- state: "1", // 1待提交 2经理 3监管 4银行 5财务 6待入库 7已办结
+ // state: "1", // 1待提交 2经理 3监管 4银行 5财务 6待入库 7已办结
},
total: 0
},
@@ -190,8 +189,8 @@
orderNumber: '',
date: '',
tradeName: '',
- type: '1', // 原油1 包装物2 原料3
- state: "1", // 1待提交 2经理 3监管 4银行 5财务 6待入库 7已办结
+ type: '3', // 原油1 包装物2 原料3
+ // state: "1", // 1待提交 2经理 3监管 4银行 5财务 6待入库 7已办结
},
total: 0
},
@@ -425,7 +424,7 @@
},
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/rawMaterialProcure/rawMaterialProcureAdd.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/rawMaterialProcure/rawMaterialProcureAdd.vue
index 34202e78..666c51d0 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
@@ -57,13 +57,13 @@
- 付款日期
+ 到货日期
-
@@ -85,15 +85,15 @@
删除
-
+
-
-
+
@@ -139,7 +139,7 @@
sid: "",
orderNumber: "",
contractSigningDate: "",
- paymentDate: "",
+ arrivalDate: "",
supplierSid: "",
supplierName: "",
commodityList: [],
@@ -225,7 +225,7 @@
},
saveOrUpdate() {
if (this.formobj.sid) {
- req.procureUpdateData(this.formobj)
+ req.update(this.formobj)
.then(resp => {
if (resp.success) {
this.$message({
@@ -274,20 +274,20 @@
.catch(() => {})
},
handleReturn(isreload) {
- console.log(">>>>>>>>>")
if (isreload === 'true') this.$emit('reloadlist')
if (this.formobj.sid) {
this.$emit('close', this.formobj.sid)
} else {
- this.$emit('doback')
+
}
+ this.$emit('doback')
this.formobj = {
sid: "",
orderNumber: "",
contractSigningDate: "",
- paymentDate: "",
+ arrivalDate: "",
supplierSid: "",
supplierName: "",
commodityList: [],
@@ -296,12 +296,11 @@
},
showAdd() {},
showEdit(row) {
- req.procureFetchBySid(row.sid)
+ req.getMaterialProcurementBySid(row.sid)
.then(resp => {
if (resp.success) {
this.formobj = resp.data
}
-
})
.catch(e => {
this.formobj = row
@@ -319,9 +318,9 @@
console.log(">>>>>>>>>getType", index)
const choose = this.crudeLists.filter((item) => item.sid === value)
console.log(">>>>>>>>>getType", choose[0])
- this.formobj.commodityList[index].crudeNumber = choose[0].number
- this.formobj.commodityList[index].crudeName = choose[0].name
- this.formobj.commodityList[index].typeSid = value
+ this.formobj.commodityList[index].number = choose[0].number
+ this.formobj.commodityList[index].name = choose[0].name
+ this.formobj.commodityList[index].sid = value
},
add() {
diff --git a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/rawMaterialProcure/rawMaterialProcureInfo.vue b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/rawMaterialProcure/rawMaterialProcureInfo.vue
index 4305a65f..36bfc591 100644
--- a/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/rawMaterialProcure/rawMaterialProcureInfo.vue
+++ b/yxt-supervise-cyf/yxt-supervise-cyf-ui/src/views/business/rawMaterialProcure/rawMaterialProcureInfo.vue
@@ -64,12 +64,101 @@
{{formobj.arrivalDate}}
-
+
+
+
+ 付款日期
+
+
+
+
+
+
+
+
+
+
+ 付款金额
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 付款单位
+
+
+
+
+
+
+
+
+
+
+ 付款单位开户行
+
+
+
+
+
+
+
+
+
+
+
+
+ 收款单位
+
+
+
+
+
+
+
+
+
+
+ 收款单位开户行
+
+
+
+
+
+
+
+
+
+
+
+
+ 备注
+
+
+
+
+
+
+
+
+
+
+