|
|
@ -60,7 +60,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<div class="span-sty">拼音缩写</div> |
|
|
|
<el-form-item><el-input class="addinputInfo addinputw" v-model="formobj.aitemCode" clearable placeholder="" /></el-form-item> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.aitemCode }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
@ -97,6 +97,7 @@ import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
|
import req from '@/api/basicinformation/additionitem' |
|
|
|
import { getOrgSidByPath } from '@/api/Common/dictcommons' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'AdditionItem', |
|
|
@ -109,7 +110,6 @@ export default { |
|
|
|
return { |
|
|
|
dialogVisible: false, |
|
|
|
formobj: { |
|
|
|
orgPath: '', |
|
|
|
createBySid: '', |
|
|
|
sid: '', |
|
|
|
sortNo: '', |
|
|
@ -117,7 +117,9 @@ export default { |
|
|
|
aitemName: '', |
|
|
|
remarks: '', |
|
|
|
price: '', |
|
|
|
cost: '' |
|
|
|
cost: '', |
|
|
|
createOrgSid: '', |
|
|
|
useOrgSid: '' |
|
|
|
}, |
|
|
|
btndisabled: false, |
|
|
|
btnList: [ |
|
|
@ -157,7 +159,9 @@ export default { |
|
|
|
total: 0, |
|
|
|
params: { |
|
|
|
aitemName: '', |
|
|
|
orgPath: '' |
|
|
|
orgPath: '', |
|
|
|
menuUrl: '', |
|
|
|
userSid: '' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -212,6 +216,8 @@ export default { |
|
|
|
// 查询列表信息 |
|
|
|
getList() { |
|
|
|
this.listLoading = true |
|
|
|
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') |
|
|
|
this.listQuery.params.menuUrl = this.$route.path |
|
|
|
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
req.listPage(this.listQuery).then(response => { |
|
|
|
this.listLoading = false |
|
|
@ -237,7 +243,9 @@ export default { |
|
|
|
total: 0, |
|
|
|
params: { |
|
|
|
aitemName: '', |
|
|
|
orgPath: '' |
|
|
|
orgPath: '', |
|
|
|
menuUrl: '', |
|
|
|
userSid: '' |
|
|
|
} |
|
|
|
} |
|
|
|
this.getList() |
|
|
@ -273,19 +281,23 @@ export default { |
|
|
|
}, |
|
|
|
handleConfirm() { |
|
|
|
this.formobj.createBySid = window.sessionStorage.getItem('userSid') |
|
|
|
this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
req.saveOrUpdate(this.formobj).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|
|
|
this.getList() |
|
|
|
this.handleClose() |
|
|
|
this.formobj.useOrgSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) |
|
|
|
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.formobj.createOrgSid = res.data |
|
|
|
req.saveOrUpdate(this.formobj).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|
|
|
this.getList() |
|
|
|
this.handleClose() |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleClose() { |
|
|
|
this.dialogVisible = false |
|
|
|
this.formobj = { |
|
|
|
orgPath: '', |
|
|
|
createBySid: '', |
|
|
|
sid: '', |
|
|
|
sortNo: '', |
|
|
@ -293,7 +305,9 @@ export default { |
|
|
|
aitemName: '', |
|
|
|
remarks: '', |
|
|
|
price: '', |
|
|
|
cost: '' |
|
|
|
cost: '', |
|
|
|
createOrgSid: '', |
|
|
|
useOrgSid: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
// 删除 |
|
|
|