领料出库-增加手动出库结单
This commit is contained in:
parent
cd66690bd5
commit
c316048317
|
|
@ -300,7 +300,14 @@ export function auditAll(params){
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 手动出库结单
|
||||||
|
export function outboundCompleted(params){
|
||||||
|
return request({
|
||||||
|
url: '/base/tm_task/outboundCompleted',
|
||||||
|
method: 'post',
|
||||||
|
data: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -286,7 +286,7 @@
|
||||||
@click="codeOut(scope.row)"
|
@click="codeOut(scope.row)"
|
||||||
v-if="
|
v-if="
|
||||||
scope.row.manageType == 0 &&
|
scope.row.manageType == 0 &&
|
||||||
scope.row.outNum != 0
|
scope.row.status != 0
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
编码出库
|
编码出库
|
||||||
|
|
@ -297,12 +297,20 @@
|
||||||
v-if="
|
v-if="
|
||||||
(scope.row.manageType == 1 ||
|
(scope.row.manageType == 1 ||
|
||||||
scope.row.manageType == 2) &&
|
scope.row.manageType == 2) &&
|
||||||
scope.row.outNum != 0
|
scope.row.status != 2
|
||||||
"
|
"
|
||||||
@click="numOut(scope.row)"
|
@click="numOut(scope.row)"
|
||||||
>
|
>
|
||||||
数量出库
|
数量出库
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="primary"
|
||||||
|
v-if="scope.row.status != 2"
|
||||||
|
@click="manualOperation(scope.row)"
|
||||||
|
>
|
||||||
|
出库结单
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -520,6 +528,7 @@ import {
|
||||||
getDetailsByTypeId,
|
getDetailsByTypeId,
|
||||||
submitOut,
|
submitOut,
|
||||||
submitNumOut,
|
submitNumOut,
|
||||||
|
outboundCompleted,
|
||||||
} from '@/api/claimAndRefund/receive.js'
|
} from '@/api/claimAndRefund/receive.js'
|
||||||
import { getTypeList } from '@/api/store/warehousing'
|
import { getTypeList } from '@/api/store/warehousing'
|
||||||
import { equipmentTypeTree } from '@/api/store/tools'
|
import { equipmentTypeTree } from '@/api/store/tools'
|
||||||
|
|
@ -740,6 +749,28 @@ export default {
|
||||||
this.$set(obj, 'num', row.num) //库存
|
this.$set(obj, 'num', row.num) //库存
|
||||||
this.outNumList = [obj]
|
this.outNumList = [obj]
|
||||||
},
|
},
|
||||||
|
// 手动操作
|
||||||
|
manualOperation(row) {
|
||||||
|
// 弹框确认
|
||||||
|
this.$confirm('是否确认出库结单?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning',
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
outboundCompleted({ id: this.dialogQuery.id, typeId: row.typeId }).then((response) => {
|
||||||
|
this.$modal.msgSuccess('出库结单成功')
|
||||||
|
this.handleDialogQuery()
|
||||||
|
this.handleQuery()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.$message({
|
||||||
|
type: 'info',
|
||||||
|
message: '已取消出库结单',
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
handleOutQuery() {
|
handleOutQuery() {
|
||||||
this.outQuery.pageNum = 1
|
this.outQuery.pageNum = 1
|
||||||
this.getCodeList()
|
this.getCodeList()
|
||||||
|
|
|
||||||
|
|
@ -507,13 +507,14 @@ export default {
|
||||||
this.$store
|
this.$store
|
||||||
.dispatch('Login', this.loginForm)
|
.dispatch('Login', this.loginForm)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
if (localStorage.getItem('isCode') == 1) {
|
// 宁夏目前不需要重置初始密码
|
||||||
this.$router.push({ path: '/resetPassword' }).catch(() => {})
|
// if (localStorage.getItem('isCode') == 1) {
|
||||||
} else {
|
// this.$router.push({ path: '/resetPassword' }).catch(() => {})
|
||||||
this.$router.push({ path: '/' }).catch(() => {})
|
// } else {
|
||||||
}
|
// this.$router.push({ path: '/' }).catch(() => {})
|
||||||
|
// }
|
||||||
|
|
||||||
// this.$router.push({ path: '/' }).catch(() => {})
|
this.$router.push({ path: '/' }).catch(() => {})
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue