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

1016改动

parent 2cd59581
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<div :class="{ <div :class="{
'el-dialog__title':!bigTitle, 'el-dialog__title':!bigTitle,
'bigTitle':bigTitle 'bigTitle':bigTitle
}" style="text-align: center;font-weight: 800;"> }" style="text-align: center;font-weight: 800;">
{{reTitle||mainTitle}} {{reTitle||mainTitle}}
</div> </div>
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
} }
} }
this.editApp.form = res.data.records[0] this.editApp.form = res.data.records[0]
if(this.queryMatch.special=='ResIsDetails'){ if(this.queryMatch.special=='ResIsDetails'){
this.queryMatch.method({ this.queryMatch.method({
...@@ -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 || '添加失败')
} }
...@@ -644,7 +619,7 @@ ...@@ -644,7 +619,7 @@
<style scoped> <style scoped>
.bigTitle{ .bigTitle{
transform: translate(0,18px) scale(1.25); transform: translate(0,18px) scale(1.25);
} }
/deep/.el-dialog__body { /deep/.el-dialog__body {
/* padding-top: 20px; /* padding-top: 20px;
......
...@@ -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){
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
filter(obj){ filter(obj){
if(!this.$isCkJoin(obj,this.form.details)){ if(!this.$isCkJoin(obj,this.form.details)){
this.$warning('请确保所选物品仓库相同!') this.$warning('请确保所选物品仓库相同!')
return return
} }
/* 首先判定是否ckid重复*/ /* 首先判定是否ckid重复*/
let xlh=obj.xlh let xlh=obj.xlh
...@@ -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){
......
...@@ -74,19 +74,24 @@ ...@@ -74,19 +74,24 @@
width: 140, width: 140,
formatter(a, b, value) { formatter(a, b, value) {
let map = { let map = {
'1': '扣押', '1': '扣押',
'2': '先行保存库', '2': '先行保存库',
'3': '冻结', '3': '冻结',
'4': '查封', '4': '查封',
'5': '登记保存', '5': '登记保存',
'6': '归还入库', '6': '归还入库',
'7': '调度出库', '7': '调度出库',
'8': '发还出库', '8': '发还出库',
'9': '调拨出库', '9': '调拨出库',
'10': '随案移动', '10': '随案移动',
'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