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