|
|
@ -195,7 +195,7 @@ function StuffMgm(props) { |
|
|
|
id: getRecord |
|
|
|
} |
|
|
|
ajax.handleDeleteData(data).then((res) => { |
|
|
|
if (res.status = 20000) { |
|
|
|
if (res.status === 20000) { |
|
|
|
message.success('删除成功') |
|
|
|
setDeleteVisible(false) |
|
|
|
getData(formData) |
|
|
@ -407,6 +407,8 @@ function StuffMgm(props) { |
|
|
|
} |
|
|
|
const addModal = () => { |
|
|
|
setAddVisible(false) |
|
|
|
setGetBrandId('') |
|
|
|
setGetOperatorValue('') |
|
|
|
setCheckData({ |
|
|
|
region_id: [],//区域 |
|
|
|
operatorid: '', |
|
|
@ -454,7 +456,7 @@ function StuffMgm(props) { |
|
|
|
if (value) { |
|
|
|
setGetOperatorid(false) |
|
|
|
} |
|
|
|
setCheckData({ ...checkData, operatorid: value }) |
|
|
|
setCheckData({ ...checkData, operatorid: value, brand_id: '' }) |
|
|
|
} |
|
|
|
//物品编号 |
|
|
|
const handleAddLoginName = (v) => { |
|
|
@ -467,7 +469,7 @@ function StuffMgm(props) { |
|
|
|
//物品类型 |
|
|
|
const handleAddOperator = (v) => { |
|
|
|
setGetBrandId(v) |
|
|
|
setCheckData({ ...checkData, brand_id: v }) |
|
|
|
setCheckData({ ...checkData, brand_id: v, model_id: '' }) |
|
|
|
} |
|
|
|
//物品型号 |
|
|
|
const handleAddJobStatus = (value) => { |
|
|
@ -600,24 +602,6 @@ function StuffMgm(props) { |
|
|
|
}) |
|
|
|
setGetSelectStatus(true) |
|
|
|
} |
|
|
|
const addplaceBtn = () => { |
|
|
|
setAddVisible(false) |
|
|
|
setCheckData({ |
|
|
|
region_id: [],//区域 |
|
|
|
operatorid: '', |
|
|
|
code: '', |
|
|
|
name: '', |
|
|
|
brand_id: '', |
|
|
|
model_id: '', |
|
|
|
status: '', |
|
|
|
uid: '' |
|
|
|
}) |
|
|
|
setGetUid({ |
|
|
|
uid: '' |
|
|
|
}) |
|
|
|
setGetSelectStatus(true) |
|
|
|
setGetOperatorid(true) |
|
|
|
} |
|
|
|
const [sessionTabList, setSessionTabList] = useSessionStorageState('stuffMgm', { |
|
|
|
value: { |
|
|
|
} |
|
|
@ -993,7 +977,7 @@ function StuffMgm(props) { |
|
|
|
<button type="primary" className="submit colorBtn" onClick={() => { placeSaveBtn() }}> |
|
|
|
提交 |
|
|
|
</button> |
|
|
|
<button type="primary" className="cancel colorReset" onClick={() => { addplaceBtn() }}> |
|
|
|
<button type="primary" className="cancel colorReset" onClick={() => { addModal() }}> |
|
|
|
取消 |
|
|
|
</button> |
|
|
|
</div> |
|
|
@ -1078,7 +1062,7 @@ function StuffMgm(props) { |
|
|
|
options={getNewOperationName} |
|
|
|
onChange={(v) => { |
|
|
|
setGetEditData( |
|
|
|
Object.assign({}, getEditData, { brand_id: v }) |
|
|
|
Object.assign({}, getEditData, { brand_id: v, model_id: '' }) |
|
|
|
); |
|
|
|
}} |
|
|
|
/> |
|
|
|