代码更新
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
<el-button
|
||||
slot="left"
|
||||
class="filter-item"
|
||||
:loading="loadingAlldiv"
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@@ -60,6 +61,7 @@
|
||||
<el-button
|
||||
slot="left"
|
||||
class="filter-item"
|
||||
:loading="loadingAutodiv"
|
||||
type="primary"
|
||||
icon="el-icon-check"
|
||||
size="mini"
|
||||
@@ -177,6 +179,7 @@
|
||||
<el-button
|
||||
slot="left"
|
||||
class="filter-item"
|
||||
:loading="loadingSetPoint"
|
||||
type="warning"
|
||||
icon="el-icon-check"
|
||||
size="mini"
|
||||
@@ -188,6 +191,7 @@
|
||||
<el-button
|
||||
slot="left"
|
||||
class="filter-item"
|
||||
:loading="loadingSetAllPoint"
|
||||
type="warning"
|
||||
icon="el-icon-check"
|
||||
:disabled="button5"
|
||||
@@ -282,6 +286,9 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
dialogVisible: false,
|
||||
loadingAlldiv: false,
|
||||
loadingAutodiv: false,
|
||||
loadingSetPoint: false,
|
||||
areatype: '',
|
||||
typedisable: false,
|
||||
pointshow: false,
|
||||
@@ -478,9 +485,13 @@ export default {
|
||||
// this.crud.notify('请先选择库区!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
// return
|
||||
// }
|
||||
this.loadingAlldiv = true
|
||||
checkoutbill.allDiv(this.mstrow).then(res => {
|
||||
this.crud.notify('分配成功!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
this.queryTableDtl()
|
||||
this.loadingAlldiv = false
|
||||
}).catch(() => {
|
||||
this.loadingAlldiv = false
|
||||
})
|
||||
},
|
||||
oneDiv() {
|
||||
@@ -488,10 +499,14 @@ export default {
|
||||
// this.crud.notify('请先选择库区!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
// return
|
||||
// }
|
||||
this.loadingAutodiv = true
|
||||
if (this.currentRow.iostorinvdtl_id !== null) {
|
||||
this.mstrow.iostorinvdtl_id = this.currentRow.iostorinvdtl_id
|
||||
checkoutbill.allDivOne(this.mstrow).then(res => {
|
||||
this.queryTableDtl()
|
||||
this.loadingAutodiv = false
|
||||
}).catch(() => {
|
||||
this.loadingAutodiv = false
|
||||
})
|
||||
}
|
||||
},
|
||||
@@ -563,18 +578,20 @@ export default {
|
||||
this.crud.notify('任务已生成!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
this.loadingSetPoint = true
|
||||
if (this.currentDis.iostorinvdis_id !== null) {
|
||||
this.currentDis.point_code = this.form2.point_code
|
||||
checkoutbill.oneSetPoint2(this.currentDis).then(res => {
|
||||
this.queryTableDdis(this.currentDis.iostorinvdtl_id)
|
||||
this.crud.notify('设置成功!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
this.loadingSetPoint = false
|
||||
}).catch(() => {
|
||||
this.currentDis.point_code = ''
|
||||
this.loadingSetPoint = false
|
||||
})
|
||||
}
|
||||
},
|
||||
allSetPoint() {
|
||||
debugger
|
||||
if (this.form2.point_code === '') {
|
||||
this.crud.notify('请先选择站点!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
@@ -583,11 +600,14 @@ export default {
|
||||
this.crud.notify('请选择明细!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return
|
||||
}
|
||||
this.loadingSetAllPoint = true
|
||||
this.currentRow.point_code = this.form2.point_code
|
||||
checkoutbill.allSetPoint(this.currentRow).then(res => {
|
||||
this.queryTableDdis(this.currentRow.iostorinvdtl_id)
|
||||
this.crud.notify('设置成功!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
this.loadingSetAllPoint = false
|
||||
}).catch(() => {
|
||||
this.loadingSetAllPoint = false
|
||||
})
|
||||
},
|
||||
queryTableDtl() {
|
||||
|
||||
@@ -195,6 +195,7 @@
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
:loading="loadingConfirm"
|
||||
type="warning"
|
||||
:disabled="confirm_flag"
|
||||
icon="el-icon-check"
|
||||
@@ -327,6 +328,7 @@ export default {
|
||||
del: ['admin', 'checkoutbill:del']
|
||||
},
|
||||
openMoneyDialog: false,
|
||||
loadingConfirm: false,
|
||||
divShow: false,
|
||||
taskShow: false,
|
||||
dis_flag: true,
|
||||
@@ -437,9 +439,13 @@ export default {
|
||||
})
|
||||
},
|
||||
confirm() {
|
||||
this.loadingConfirm = true
|
||||
checkoutbill.confirm({ 'iostorinv_id': this.currentRow.iostorinv_id }).then(res => {
|
||||
this.querytable()
|
||||
this.crud.notify('出库成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.loadingConfirm = false
|
||||
}).catch(() => {
|
||||
this.loadingConfirm = false
|
||||
})
|
||||
},
|
||||
querytable() {
|
||||
|
||||
Reference in New Issue
Block a user