|
|
@ -5,85 +5,87 @@
|
|
|
|
border
|
|
|
|
border
|
|
|
|
ref="multipleTable">
|
|
|
|
ref="multipleTable">
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
type="selection"
|
|
|
|
type="selection"
|
|
|
|
width="55">
|
|
|
|
width="55">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="序号" type="index" width="55"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index" width="55"></el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="UDI码"
|
|
|
|
label="UDI码"
|
|
|
|
prop="code"
|
|
|
|
prop="code"
|
|
|
|
width="280"
|
|
|
|
width="280"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
></el-table-column>
|
|
|
|
></el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="生产日期"
|
|
|
|
label="生产日期"
|
|
|
|
prop="produceDate"
|
|
|
|
prop="produceDate"
|
|
|
|
width="120"
|
|
|
|
width="120"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
></el-table-column>
|
|
|
|
></el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="失效日期"
|
|
|
|
label="失效日期"
|
|
|
|
prop="expireDate"
|
|
|
|
prop="expireDate"
|
|
|
|
width="120"
|
|
|
|
width="120"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
></el-table-column>
|
|
|
|
></el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="批次号"
|
|
|
|
label="批次号"
|
|
|
|
prop="batchNo"
|
|
|
|
prop="batchNo"
|
|
|
|
width="120"
|
|
|
|
width="120"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
></el-table-column>
|
|
|
|
></el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="序列号"
|
|
|
|
label="序列号"
|
|
|
|
prop="serialNo"
|
|
|
|
prop="serialNo"
|
|
|
|
width="120"
|
|
|
|
width="120"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
></el-table-column>
|
|
|
|
></el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="供应商"
|
|
|
|
label="供应商"
|
|
|
|
prop="supName"
|
|
|
|
prop="supName"
|
|
|
|
width="180"
|
|
|
|
width="180"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
></el-table-column>
|
|
|
|
></el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="扫码数量"
|
|
|
|
label="扫码数量"
|
|
|
|
prop="count"
|
|
|
|
prop="count"
|
|
|
|
width="80"
|
|
|
|
width="80"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
></el-table-column>
|
|
|
|
></el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
label="实际数量"
|
|
|
|
label="实际数量"
|
|
|
|
prop="reCount"
|
|
|
|
prop="reCount"
|
|
|
|
width="80"
|
|
|
|
width="80"
|
|
|
|
show-overflow-tooltip
|
|
|
|
show-overflow-tooltip
|
|
|
|
></el-table-column>
|
|
|
|
></el-table-column>
|
|
|
|
<el-table-column label="操作" width="240">
|
|
|
|
<el-table-column label="操作" width="240">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
@click.native.stop="deleteCode(scope.$index, scope.row)"
|
|
|
|
@click.native.stop="deleteCode(scope.$index, scope.row)"
|
|
|
|
>减一
|
|
|
|
>减一
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
@click.native.stop="bindRl(scope.row)"
|
|
|
|
:disabled="scope.row.relId!=null"
|
|
|
|
|
|
|
|
@click.native.stop="bindRl(scope.row)"
|
|
|
|
>绑定产品
|
|
|
|
>绑定产品
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
@click.native.stop="handleUnitClick(scope.row)"
|
|
|
|
:disabled="scope.row.supId!=null"
|
|
|
|
|
|
|
|
@click.native.stop="handleUnitClick(scope.row)"
|
|
|
|
>绑定供应商
|
|
|
|
>绑定供应商
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
@click.native.stop="editCode(scope.row)"
|
|
|
|
@click.native.stop="editCode(scope.row)"
|
|
|
|
>编辑
|
|
|
|
>编辑
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -92,78 +94,78 @@
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
<div class="block">
|
|
|
|
<div class="block">
|
|
|
|
<pagination
|
|
|
|
<pagination
|
|
|
|
v-show="total>0"
|
|
|
|
v-show="total>0"
|
|
|
|
:total="total"
|
|
|
|
:total="total"
|
|
|
|
:page.sync="query.page"
|
|
|
|
:page.sync="query.page"
|
|
|
|
:limit.sync="query.limit"
|
|
|
|
:limit.sync="query.limit"
|
|
|
|
@pagination="getList"
|
|
|
|
@pagination="getList"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 绑定产品-->
|
|
|
|
<!-- 绑定产品-->
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
:title="selectRlTitle"
|
|
|
|
:title="selectRlTitle"
|
|
|
|
:visible.sync="selectRlVisible"
|
|
|
|
:visible.sync="selectRlVisible"
|
|
|
|
width="80%"
|
|
|
|
width="80%"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
v-if="selectRlVisible"
|
|
|
|
v-if="selectRlVisible"
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<selectRlDialog
|
|
|
|
<selectRlDialog
|
|
|
|
:curRow="curRow"
|
|
|
|
:curRow="curRow"
|
|
|
|
:fromCorp="fromCorp"
|
|
|
|
:fromCorp="fromCorp"
|
|
|
|
v-on:selectBindRl="selectBindRl"
|
|
|
|
v-on:selectBindRl="selectBindRl"
|
|
|
|
v-on:closeBindDialog="closeBindDialog"
|
|
|
|
v-on:closeBindDialog="closeBindDialog"
|
|
|
|
></selectRlDialog>
|
|
|
|
></selectRlDialog>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 绑定供应商-->
|
|
|
|
<!-- 绑定供应商-->
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
:title="selectUnitTitle"
|
|
|
|
:title="selectUnitTitle"
|
|
|
|
:visible.sync="dialogTableVisible"
|
|
|
|
:visible.sync="dialogTableVisible"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
v-if="dialogTableVisible"
|
|
|
|
v-if="dialogTableVisible"
|
|
|
|
width="80%"
|
|
|
|
width="80%"
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<DialogSelectUnit
|
|
|
|
<DialogSelectUnit
|
|
|
|
:codeId="curRow"
|
|
|
|
:codeId="curRow"
|
|
|
|
:fromCorp="fromCorp"
|
|
|
|
:fromCorp="fromCorp"
|
|
|
|
v-on:selectSupUnit="selectSupUnit"
|
|
|
|
v-on:selectSupUnit="selectSupUnit"
|
|
|
|
v-on:closeBindDialog="closeBindDialog"
|
|
|
|
v-on:closeBindDialog="closeBindDialog"
|
|
|
|
></DialogSelectUnit>
|
|
|
|
></DialogSelectUnit>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
:title="editTitle"
|
|
|
|
:title="editTitle"
|
|
|
|
:visible.sync="editCodeVisible"
|
|
|
|
:visible.sync="editCodeVisible"
|
|
|
|
append-to-body width="70%"
|
|
|
|
append-to-body width="70%"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
v-if="editCodeVisible"
|
|
|
|
v-if="editCodeVisible"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<editCodeDialog
|
|
|
|
<editCodeDialog
|
|
|
|
editTye="2"
|
|
|
|
editTye="2"
|
|
|
|
:closeCodeDialog="closeCodeDialog"
|
|
|
|
:closeCodeDialog="closeCodeDialog"
|
|
|
|
:codeDetail="codeDetail">
|
|
|
|
:codeDetail="codeDetail">
|
|
|
|
</editCodeDialog>
|
|
|
|
</editCodeDialog>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
:title="editTitle"
|
|
|
|
:title="editTitle"
|
|
|
|
:visible.sync="editOriginCodeVisible"
|
|
|
|
:visible.sync="editOriginCodeVisible"
|
|
|
|
append-to-body width="70%"
|
|
|
|
append-to-body width="70%"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
v-if="editOriginCodeVisible">
|
|
|
|
v-if="editOriginCodeVisible">
|
|
|
|
<editCodeDialog
|
|
|
|
<editCodeDialog
|
|
|
|
:closeCodeDialog="closeCodeDialog"
|
|
|
|
:closeCodeDialog="closeCodeDialog"
|
|
|
|
:repeatAddCode="repeatAddCode"
|
|
|
|
:repeatAddCode="repeatAddCode"
|
|
|
|
:codeDetail="idQuery"
|
|
|
|
:codeDetail="idQuery"
|
|
|
|
editTye="1">
|
|
|
|
editTye="1">
|
|
|
|
</editCodeDialog>
|
|
|
|
</editCodeDialog>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
@ -227,21 +229,21 @@ export default {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
this.query.orderId = this.idQuery.billNo;
|
|
|
|
this.query.orderId = this.idQuery.billNo;
|
|
|
|
errorCodeList(this.query) //查找该单号下的所有条码
|
|
|
|
errorCodeList(this.query) //查找该单号下的所有条码
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.codeArray = response.data.list || [];
|
|
|
|
this.codeArray = response.data.list || [];
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
for (let i = 0; i < this.codeArray.length; i++) {
|
|
|
|
for (let i = 0; i < this.codeArray.length; i++) {
|
|
|
|
this.codeArray[i].fromType = this.formData.fromType;
|
|
|
|
this.codeArray[i].fromType = this.formData.fromType;
|
|
|
|
this.codeArray[i].billType = this.formData.billType;
|
|
|
|
this.codeArray[i].billType = this.formData.billType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.tableSelection();
|
|
|
|
this.tableSelection();
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.list = [];
|
|
|
|
this.list = [];
|
|
|
|
this.total = 0;
|
|
|
|
this.total = 0;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
deleteCode(index, row) {
|
|
|
|
deleteCode(index, row) {
|
|
|
@ -255,14 +257,14 @@ export default {
|
|
|
|
id: row.id
|
|
|
|
id: row.id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
deleteCodesTempById(tQuery)
|
|
|
|
deleteCodesTempById(tQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
this.refreshPanel();
|
|
|
|
this.refreshPanel();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -336,15 +338,16 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
closeBindDialog(val) {
|
|
|
|
closeBindDialog() {
|
|
|
|
this.selectRlVisible = false;
|
|
|
|
this.selectRlVisible = false;
|
|
|
|
this.dialogTableVisible = false;
|
|
|
|
this.dialogTableVisible = false;
|
|
|
|
|
|
|
|
this.refreshPanel();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
closeCodeDialog() {
|
|
|
|
closeCodeDialog() {
|
|
|
|
this.editCodeVisible = false;
|
|
|
|
this.editCodeVisible = false;
|
|
|
|
this.editOriginCodeVisible = false;
|
|
|
|
this.editOriginCodeVisible = false;
|
|
|
|
this.getCodeList();
|
|
|
|
this.refreshPanel();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
repeatAddCode(editData) {
|
|
|
|
repeatAddCode(editData) {
|
|
|
@ -353,7 +356,6 @@ export default {
|
|
|
|
tQuery.actDate = parseTime(this.orderFormData.actDate, '{y}-{m}-{d} {h}:{i}:{s}');
|
|
|
|
tQuery.actDate = parseTime(this.orderFormData.actDate, '{y}-{m}-{d} {h}:{i}:{s}');
|
|
|
|
tQuery.action = this.orderFormData.action;
|
|
|
|
tQuery.action = this.orderFormData.action;
|
|
|
|
this.closeCodeDialog();
|
|
|
|
this.closeCodeDialog();
|
|
|
|
this.addCodeSubmit(tQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|