Commit 71398f9d authored by 李苏's avatar 李苏 💬

1016改动

parent 2cd59581
...@@ -517,34 +517,9 @@ ...@@ -517,34 +517,9 @@
this.app.apiAdd(params).then(res => { this.app.apiAdd(params).then(res => {
if (res.success) { if (res.success) {
this.$success('添加成功') this.$success('添加成功')
this.app.$refs['TablePager'].reLoad()
this.closeAll() this.closeAll()
/* 不刷新*/ /* 不刷新*/
try {
if (this.app.$refs['TablePager'].type == 'treeTable') {
this.app.$refs['TablePager'].reLoad()
return
}
if (res.data && res.data.id) {
let params = {
id: res.data.id
}
this.app.query(params).then(res => {
if (res && res.success) {
let newData = res.data.records[0]
this.app.$refs.TablePager.tableData.unshift(
newData)
/* 选中当前行 */
this.app.$refs.TablePager.setCurrent(newData)
}
})
}
} catch (e) {
console.warn('reldialog组件报错:', e)
}
} else { } else {
this.$error(res.message || '添加失败') this.$error(res.message || '添加失败')
} }
......
...@@ -67,6 +67,11 @@ ...@@ -67,6 +67,11 @@
'11': '拍卖', '11': '拍卖',
'12': '销毁', '12': '销毁',
'13': '解除出库', '13': '解除出库',
'14': '解封出库',
'15': '查封转扣押',
'16': '登记保存转扣拥',
'17': '扣押转登记保存',
'18': '调拨入库',
} }
return map[value] return map[value]
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</el-input> </el-input>
</div> </div>
<div class="editMain_left2"> <div class="editMain_left2">
<editTableForEdit :expandTitle='false' :rename="'选择物品'" code="SHHJTHING1" :indexApp='app' :type='type' @save='save' ref="editTableForEdit" <editTableForEdit :expandTitle='false' :rename="'选择物品'" code="SHHJTHINGMS" :indexApp='app' :type='type' @save='save' ref="editTableForEdit"
:editTableTitle='editTableTitle' v-if="editTableForEdit" :editTableData="form.details" /> :editTableTitle='editTableTitle' v-if="editTableForEdit" :editTableData="form.details" />
</div> </div>
</div> </div>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
}, },
cxxlh() { cxxlh() {
if (this.xlh) { if (this.xlh) {
this.$post('jcsj/u_wpgl/query', { this.$post('jcsj/u_wpgl/queryXlh', {
xlh: this.xlh xlh: this.xlh
}).then(res => { }).then(res => {
if (res.data.records) { if (res.data.records) {
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -87,6 +87,11 @@ ...@@ -87,6 +87,11 @@
'11': '拍卖', '11': '拍卖',
'12': '销毁', '12': '销毁',
'13': '解除出库', '13': '解除出库',
'14': '解封出库',
'15': '查封转扣押',
'16': '登记保存转扣拥',
'17': '扣押转登记保存',
'18': '调拨入库',
} }
return map[value] return map[value]
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
}, },
cxxlh() { cxxlh() {
if (this.xlh) { if (this.xlh) {
this.$post('jcsj/u_wpgl/query', { this.$post('jcsj/u_wpgl/queryXlh', {
xlh: this.xlh xlh: this.xlh
}).then(res => { }).then(res => {
if (res.data.records) { if (res.data.records) {
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -71,6 +71,11 @@ ...@@ -71,6 +71,11 @@
'11': '拍卖', '11': '拍卖',
'12': '销毁', '12': '销毁',
'13': '解除出库', '13': '解除出库',
'14': '解封出库',
'15': '查封转扣押',
'16': '登记保存转扣拥',
'17': '扣押转登记保存',
'18': '调拨入库',
} }
return map[value] return map[value]
} }
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
}, },
cxxlh() { cxxlh() {
if (this.xlh) { if (this.xlh) {
this.$post('jcsj/u_wpgl/query', { this.$post('jcsj/u_wpgl/queryXlh', {
xlh: this.xlh xlh: this.xlh
}).then(res => { }).then(res => {
if (res.data.records) { if (res.data.records) {
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
}, },
cxxlh(){ cxxlh(){
if(this.xlh){ if(this.xlh){
this.$post('jcsj/u_wpgl/query',{ this.$post('jcsj/u_wpgl/queryXlh',{
xlh:this.xlh xlh:this.xlh
}).then(res=>{ }).then(res=>{
if(res.data.records){ if(res.data.records){
......
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