no message
parent
d546b71385
commit
9be0f22e57
|
|
@ -508,13 +508,13 @@ export default {
|
||||||
},
|
},
|
||||||
asnDetailRouter(datas) {
|
asnDetailRouter(datas) {
|
||||||
this.$refs.viewAsnDetail.asnFrom = datas
|
this.$refs.viewAsnDetail.asnFrom = datas
|
||||||
|
console.log(this.asnFrom.status)
|
||||||
this.$refs.viewAsnDetail.queryAsnDetail(datas.id)
|
this.$refs.viewAsnDetail.queryAsnDetail(datas.id)
|
||||||
this.$refs.viewAsnDetail.dialogInsertAsn = true
|
this.$refs.viewAsnDetail.dialogInsertAsn = true
|
||||||
//this.$router.push({path:'/business-asn/viewAsnDetail',query: {ids:datas.id}})
|
//this.$router.push({path:'/business-asn/viewAsnDetail',query: {ids:datas.id}})
|
||||||
},
|
},
|
||||||
//入库批量确认
|
//入库批量确认
|
||||||
invVerifyS(data) {
|
invVerifyS(data) {
|
||||||
console.log(data)
|
|
||||||
let ids = [];
|
let ids = [];
|
||||||
for (const idsKey of data) {
|
for (const idsKey of data) {
|
||||||
ids.push(idsKey.id);
|
ids.push(idsKey.id);
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@
|
||||||
placeholder="请输入备注"
|
placeholder="请输入备注"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button type="primary" size="small" @click="submitFromAsn(asnFrom)">提交
|
<el-button type="primary" size="small" :disabled="this.asnFrom.status!='OPEN'" @click="submitFromAsn(asnFrom)">提交
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||||
|
|
@ -78,7 +78,7 @@
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
:disabled="this.asnFrom.id == null||!this.asnFrom.status=='OPEN'"
|
:disabled="this.asnFrom.id<=0 || this.asnFrom.id==undefined || this.asnFrom.status!='OPEN' "
|
||||||
@click="insertAsnDetail"
|
@click="insertAsnDetail"
|
||||||
:loading="logining1"
|
:loading="logining1"
|
||||||
>
|
>
|
||||||
|
|
@ -89,7 +89,7 @@
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
:disabled="!(crud.selections.length === 1)"
|
:disabled="!(crud.selections.length === 1) || (!crud.selections[0] || crud.selections[0].orderQty === crud.selections[0].receivedQty) "
|
||||||
@click="asnDetailZl(crud.selections)"
|
@click="asnDetailZl(crud.selections)"
|
||||||
:loading="logining1"
|
:loading="logining1"
|
||||||
>
|
>
|
||||||
|
|
@ -175,11 +175,7 @@
|
||||||
<div>{{ scope.row == null ? '' : scope.row.receivedQty }}</div>
|
<div>{{ scope.row == null ? '' : scope.row.receivedQty }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :show-overflow-tooltip="true" prop="point.code" label="库位">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<div>{{ scope.row.point == null ? '' : scope.row.point.code }}</div>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="propC1" label="批次号">
|
<el-table-column prop="propC1" label="批次号">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>{{ scope.row.propC1 }}</div>
|
<div>{{ scope.row.propC1 }}</div>
|
||||||
|
|
@ -201,6 +197,7 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
|
:disabled="scope.row.receivedQty>0"
|
||||||
style="float: left"
|
style="float: left"
|
||||||
size="mini" type="primary" icon="el-icon-edit" @click="toEditAsnDetail(scope.row)"/>
|
size="mini" type="primary" icon="el-icon-edit" @click="toEditAsnDetail(scope.row)"/>
|
||||||
<udOperation
|
<udOperation
|
||||||
|
|
@ -292,7 +289,6 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<el-form-item label="订单数量" prop="orderQty">
|
<el-form-item label="订单数量" prop="orderQty">
|
||||||
<el-input v-model.number="form.orderQty"/>
|
<el-input v-model.number="form.orderQty"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -339,6 +335,7 @@
|
||||||
:visible.sync="zlDialogVisible"
|
:visible.sync="zlDialogVisible"
|
||||||
width="30%"
|
width="30%"
|
||||||
top="0.5vh"
|
top="0.5vh"
|
||||||
|
:close-on-click-modal="false"
|
||||||
:before-close="handleZlClose">
|
:before-close="handleZlClose">
|
||||||
<el-form :model="zlForm" :rules="zlRules" ref="zlForm" label-width="100px" class="demo-ruleForm">
|
<el-form :model="zlForm" :rules="zlRules" ref="zlForm" label-width="100px" class="demo-ruleForm">
|
||||||
<el-form-item label="料号">
|
<el-form-item label="料号">
|
||||||
|
|
@ -365,7 +362,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="待收数量">
|
<el-form-item label="待收数量">
|
||||||
<el-input disabled v-model.number="zlForm.orderQty"></el-input>
|
<el-input disabled v-model.number="this.zlForm.orderQty-this.zlForm.receivedQty"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="订单日期">
|
<el-form-item label="订单日期">
|
||||||
|
|
@ -411,7 +408,7 @@
|
||||||
<el-option
|
<el-option
|
||||||
v-for="points in pointOptions"
|
v-for="points in pointOptions"
|
||||||
:key="points.id"
|
:key="points.id"
|
||||||
:label="points.name"
|
:label="points.code"
|
||||||
:value="points"
|
:value="points"
|
||||||
v-if="points.type!='SHZC'"
|
v-if="points.type!='SHZC'"
|
||||||
/>
|
/>
|
||||||
|
|
@ -439,8 +436,8 @@
|
||||||
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="收货数量">
|
<el-form-item label="整理数量">
|
||||||
<el-input v-model.number="zlForm.receivedQty"></el-input>
|
<el-input v-model.number="zlForm.zlQty" ></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -664,7 +661,8 @@ export default {
|
||||||
propC2: null,
|
propC2: null,
|
||||||
propD1: null,
|
propD1: null,
|
||||||
orderQty: 0,
|
orderQty: 0,
|
||||||
shQty: 0
|
receivedQty: 0,
|
||||||
|
zlQty: 0
|
||||||
},
|
},
|
||||||
showStockSelect: false, // 控制容器选择框是否显示
|
showStockSelect: false, // 控制容器选择框是否显示
|
||||||
showPointSelect: false, // 控制库位选择框是否显示
|
showPointSelect: false, // 控制库位选择框是否显示
|
||||||
|
|
@ -698,6 +696,7 @@ export default {
|
||||||
queryAsnDetail(ansId) {
|
queryAsnDetail(ansId) {
|
||||||
this.form.asnId = ansId
|
this.form.asnId = ansId
|
||||||
this.asnFrom.id = ansId
|
this.asnFrom.id = ansId
|
||||||
|
console.log(this.asnFrom)
|
||||||
this.crud.query = {asnId: ansId}
|
this.crud.query = {asnId: ansId}
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
},
|
},
|
||||||
|
|
@ -705,13 +704,22 @@ export default {
|
||||||
},
|
},
|
||||||
handleClose(done) {
|
handleClose(done) {
|
||||||
// 清空表单数据
|
// 清空表单数据
|
||||||
|
/* this.asnFrom.billType = null;
|
||||||
|
this.asnFrom.orderDate = null;
|
||||||
|
this.asnFrom.code = null;
|
||||||
|
this.asnFrom.orderQuantity=0;
|
||||||
|
this.asnFrom.description=null;*/
|
||||||
this.asnFrom={};
|
this.asnFrom={};
|
||||||
|
this.asnFrom.status = 'OPEN';
|
||||||
|
console.log(this.asnFrom.id)
|
||||||
// 清空表格数据
|
// 清空表格数据
|
||||||
this.crud.data = [];
|
this.crud.data = [];
|
||||||
//还原默认值
|
//还原默认值
|
||||||
this.fullscreen = false
|
this.fullscreen = false
|
||||||
// 执行关闭操作
|
// 执行关闭操作
|
||||||
done();
|
done();
|
||||||
|
//刷新父组件
|
||||||
|
this.$parent.crud.toQuery();
|
||||||
},
|
},
|
||||||
queryStock() {
|
queryStock() {
|
||||||
crudStock.queryKyStockList({}).then(res => {
|
crudStock.queryKyStockList({}).then(res => {
|
||||||
|
|
@ -735,7 +743,7 @@ export default {
|
||||||
,
|
,
|
||||||
//查询库位
|
//查询库位
|
||||||
getPointList(itObj, code, data) {
|
getPointList(itObj, code, data) {
|
||||||
queryPointList({}).then(res => {
|
queryPointList({status: 'FREE'}).then(res => {
|
||||||
this.pointOptions = res
|
this.pointOptions = res
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -794,7 +802,7 @@ export default {
|
||||||
this.asnFrom = res
|
this.asnFrom = res
|
||||||
asnQuery.asnId = res.id
|
asnQuery.asnId = res.id
|
||||||
//查询点位数据
|
//查询点位数据
|
||||||
this.pointTF = res.area.bexb
|
|
||||||
// if (res.area.besh){
|
// if (res.area.besh){
|
||||||
// this.getPointList(res)
|
// this.getPointList(res)
|
||||||
// }
|
// }
|
||||||
|
|
@ -815,6 +823,7 @@ export default {
|
||||||
//加载数据
|
//加载数据
|
||||||
this.asnTF()
|
this.asnTF()
|
||||||
this.crud.notify('添加成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
this.crud.notify('添加成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||||
|
this.queryAsnDetail(this.asnId)
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -953,13 +962,14 @@ export default {
|
||||||
this.disableStockSelect = this.zlForm.area.id === 78 ? true : false;
|
this.disableStockSelect = this.zlForm.area.id === 78 ? true : false;
|
||||||
},
|
},
|
||||||
zhengli() {
|
zhengli() {
|
||||||
if (this.zlForm.receivedQty > this.zlForm.orderQty) {
|
if (this.zlForm.zlQty > this.zlForm.orderQty-this.zlForm.receivedQty ) {
|
||||||
return this.crud.notify('收货数量不能超过待收数量', CRUD.NOTIFICATION_TYPE.ERROR)
|
return this.crud.notify('整理数量不能超过待收数量', CRUD.NOTIFICATION_TYPE.ERROR)
|
||||||
}
|
}
|
||||||
crudAsnDetail.zhengli(this.zlForm).then(res => {
|
crudAsnDetail.zhengli(this.zlForm).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS)
|
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
this.zhengliCel()
|
||||||
this.zlDialogVisible = false;
|
this.zlDialogVisible = false;
|
||||||
} else {
|
} else {
|
||||||
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR)
|
this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR)
|
||||||
|
|
@ -970,7 +980,7 @@ export default {
|
||||||
this.zlForm.area = {};
|
this.zlForm.area = {};
|
||||||
this.zlForm.stock = {};
|
this.zlForm.stock = {};
|
||||||
this.zlForm.point = {};
|
this.zlForm.point = {};
|
||||||
this.zlForm.receivedQty = 0;
|
this.zlForm.shQty = 0;
|
||||||
this.showStockSelect = false;
|
this.showStockSelect = false;
|
||||||
this.showPointSelect = false;
|
this.showPointSelect = false;
|
||||||
this.disableStockSelect = false;
|
this.disableStockSelect = false;
|
||||||
|
|
@ -980,6 +990,7 @@ export default {
|
||||||
done();
|
done();
|
||||||
},
|
},
|
||||||
loadStocksByPoint() {
|
loadStocksByPoint() {
|
||||||
|
console.log(this.zlForm.point)
|
||||||
if (this.zlForm.point && this.zlForm.point.stock) {
|
if (this.zlForm.point && this.zlForm.point.stock) {
|
||||||
this.stockOptions = [this.zlForm.point.stock]; // 清空原有选项并添加新的容器选项
|
this.stockOptions = [this.zlForm.point.stock]; // 清空原有选项并添加新的容器选项
|
||||||
this.zlForm.stock = this.zlForm.point.stock; // 设置当前选中的容器
|
this.zlForm.stock = this.zlForm.point.stock; // 设置当前选中的容器
|
||||||
|
|
|
||||||
|
|
@ -167,14 +167,13 @@
|
||||||
<el-table-column type="selection" width="50"/>
|
<el-table-column type="selection" width="50"/>
|
||||||
<el-table-column prop="id" label="序号" align="center"/>
|
<el-table-column prop="id" label="序号" align="center"/>
|
||||||
<el-table-column prop="area.name" label="区域"/>
|
<el-table-column prop="area.name" label="区域"/>
|
||||||
|
<el-table-column prop="stock.code" label="容器号" align="center"/>
|
||||||
<el-table-column prop="point.code" label="库位号" align="center"/>
|
<el-table-column prop="point.code" label="库位号" align="center"/>
|
||||||
<el-table-column prop="itemKey.item.code" label="品番"/>
|
<el-table-column prop="itemKey.item.code" label="料号"/>
|
||||||
<el-table-column prop="itemKey.item.name" label="品番名称"/>
|
<el-table-column prop="itemKey.item.name" label="物料描述"/>
|
||||||
<el-table-column prop="quantity" label="数量"/>
|
<el-table-column prop="quantity" label="数量"/>
|
||||||
<el-table-column prop="queuedQty" label="占用数"/>
|
<el-table-column prop="queuedQty" label="占用数"/>
|
||||||
<el-table-column prop="itemKey.propC1" label="批次号"/>
|
<el-table-column prop="itemKey.propC1" label="批次号"/>
|
||||||
<el-table-column prop="zzkw.code" label="制造库位" align="center"/>
|
|
||||||
<el-table-column prop="area.pointCode" label="缓存库位" align="center"/>
|
|
||||||
<el-table-column v-if="checkPer(['admin','fileManagement:edit','fileManagement:del'])" label="操作"
|
<el-table-column v-if="checkPer(['admin','fileManagement:edit','fileManagement:del'])" label="操作"
|
||||||
width="150px" align="center" fixed="right"
|
width="150px" align="center" fixed="right"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue