Commit 19c34514 by zhaochengxiang

owner入库

parent 8156aaf6
...@@ -103,4 +103,8 @@ export function* getSmartBiUrl(payload) { ...@@ -103,4 +103,8 @@ export function* getSmartBiUrl(payload) {
export function* getOwners() { export function* getOwners() {
return yield call(pds.getOwners) return yield call(pds.getOwners)
}
export function* saveOwner(payload) {
return yield call(pds.saveOwner, payload)
} }
\ No newline at end of file
...@@ -104,3 +104,6 @@ export function getOwners() { ...@@ -104,3 +104,6 @@ export function getOwners() {
return GetJSON("/informationmanagement/userData/findAll") return GetJSON("/informationmanagement/userData/findAll")
} }
export function saveOwner(payload) {
return GetJSON("/informationmanagement/userData/getUserDataAndInsert", payload);
}
\ No newline at end of file
...@@ -49,6 +49,14 @@ const FC = ({ visible, id, onCancel }) => { ...@@ -49,6 +49,14 @@ const FC = ({ visible, id, onCancel }) => {
const onOwnerChange = (value) => { const onOwnerChange = (value) => {
setCurrentOwner(value); setCurrentOwner(value);
if (value) {
dispatch({
type: 'pds.saveOwner',
payload: {
jobNumber: value
}
})
}
} }
const cancel = () => { const cancel = () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment