add:成品出库手动分配
This commit is contained in:
@@ -212,7 +212,7 @@
|
||||
<el-table-column show-overflow-tooltip prop="point_code" width="150px" label="出库点" align="center" />
|
||||
</el-table>
|
||||
</el-card>
|
||||
<StructIvt :dialog-show.sync="structshow" :stor-id="storId" :open-array="openParam" :rowmst="openRow" @StructIvtClosed="queryTableDtl" />
|
||||
<StructIvt :dialog-show.sync="structshow" :stor-id="storId" :open-array="openParam" :rowmst="openRow" @StructIvtClosed="closeDiv" />
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
@@ -334,7 +334,12 @@ export default {
|
||||
|
||||
this.currentRow.remark = ''
|
||||
this.currentRow.stor_id = this.storId
|
||||
this.currentRow.assign_qty = 0
|
||||
productOut.getStructIvt(this.currentRow).then(res => {
|
||||
res.forEach(item => {
|
||||
item.edit = false
|
||||
})
|
||||
|
||||
this.openParam = res
|
||||
this.structshow = true
|
||||
this.openRow = this.currentRow
|
||||
@@ -361,6 +366,10 @@ export default {
|
||||
handleDisCurrentChange(current) {
|
||||
this.currentDis = current
|
||||
},
|
||||
closeDiv() {
|
||||
this.queryTableDtl()
|
||||
this.crud.notify('操作成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
},
|
||||
queryTableDtl() {
|
||||
productOut.getIosInvDtl({ 'iostorinv_id': this.mstrow.iostorinv_id }).then(res => {
|
||||
this.tableDtl = res
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="关键字" prop="remark">
|
||||
<el-input
|
||||
v-model="queryrow.remark"
|
||||
v-model="queryrow.search"
|
||||
clearable
|
||||
style="width: 220px"
|
||||
size="mini"
|
||||
@@ -82,7 +82,7 @@
|
||||
<el-table-column show-overflow-tooltip prop="material_name" label="物料名称" align="center" />
|
||||
<el-table-column show-overflow-tooltip prop="pcsn" label="批次号" align="center" />
|
||||
<el-table-column show-overflow-tooltip prop="canuse_qty" label="可出重量" :formatter="crud.formatNum3" align="center" />
|
||||
<el-table-column show-overflow-tooltip prop="plan_qty" label="重量" :formatter="crud.formatNum3" width="160" align="center">
|
||||
<el-table-column show-overflow-tooltip prop="plan_qty" label="出库重量" :formatter="crud.formatNum3" width="160" align="center">
|
||||
<template scope="scope">
|
||||
<el-input-number v-show="!scope.row.edit" v-model="scope.row.plan_qty" :precision="3" :max="100000000" />
|
||||
<span v-show="scope.row.edit">{{ scope.row.plan_qty }}</span>
|
||||
@@ -157,7 +157,13 @@ export default {
|
||||
queryStruct() {
|
||||
this.queryrow.unassign_qty = parseFloat(this.queryrow.unassign_qty) + parseFloat(this.queryrow.assign_qty)
|
||||
this.queryrow.assign_qty = 0
|
||||
this.queryrow.materia_id = this.rowmst.material_id
|
||||
this.queryrow.sale_id = this.rowmst.sale_id
|
||||
productOut.getStructIvt(this.queryrow).then(res => {
|
||||
res.forEach(item => {
|
||||
item.edit = false
|
||||
})
|
||||
|
||||
this.tableDtl = res
|
||||
})
|
||||
},
|
||||
@@ -217,7 +223,8 @@ export default {
|
||||
rows.push(item)
|
||||
}
|
||||
})
|
||||
checkoutbill.manualDiv({ 'row': this.queryrow, 'rows': rows }).then(res => {
|
||||
|
||||
productOut.manualDiv({ 'iostorinvdtl_id': this.queryrow.iostorinvdtl_id, 'rows': rows }).then(res => {
|
||||
this.$emit('update:dialogShow', false)
|
||||
this.$emit('StructIvtClosed')
|
||||
})
|
||||
@@ -230,7 +237,7 @@ export default {
|
||||
rows.push(item)
|
||||
}
|
||||
})
|
||||
checkoutbill.manualDiv({ 'row': this.queryrow, 'rows': rows }).then(res => {
|
||||
productOut.manualDiv({ 'iostorinvdtl_id': this.queryrow.iostorinvdtl_id, 'rows': rows }).then(res => {
|
||||
this.$emit('update:dialogShow', false)
|
||||
this.$emit('StructIvtClosed')
|
||||
})
|
||||
|
||||
@@ -80,6 +80,14 @@ export function getStructIvt(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function manualDiv(data) {
|
||||
return request({
|
||||
url: 'api/productOut/manualDiv',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default {
|
||||
add,
|
||||
edit,
|
||||
@@ -90,5 +98,6 @@ export default {
|
||||
allCancel,
|
||||
setPoint,
|
||||
confirm,
|
||||
getStructIvt
|
||||
getStructIvt,
|
||||
manualDiv
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user