|
|
|
@ -4,10 +4,16 @@
|
|
|
|
|
<div class="from-line">
|
|
|
|
|
<div class="left">
|
|
|
|
|
<a-button class="btn btn-add" type="primary" @click="addboxLine">添加</a-button>
|
|
|
|
|
<a-button class="btn btn-delete" @click="removeLine" :style="{marginRight:'50px'}">删除</a-button>
|
|
|
|
|
<a-button class="btn btn-more-name" type="primary" @click="openDialog" :disabled="tableData.length === 0"><a-icon type="appstore" />多品名</a-button>
|
|
|
|
|
<a-button class="btn btn-import-station" type="primary" @click="importYarn" :loading="YarnLoading"><a-icon type="import" />引入场站数据</a-button>
|
|
|
|
|
<a-button class="btn btn-weight" type="primary" @click="importWeight" :loading="WeightLoading"><a-icon type="import" />引入箱皮重</a-button>
|
|
|
|
|
<a-button class="btn btn-delete" @click="removeLine" :style="{ marginRight: '50px' }">删除</a-button>
|
|
|
|
|
<a-button class="btn btn-more-name" type="primary" @click="openDialog" :disabled="tableData.length === 0"
|
|
|
|
|
><a-icon type="appstore" />多品名</a-button
|
|
|
|
|
>
|
|
|
|
|
<a-button class="btn btn-import-station" type="primary" @click="importYarn" :loading="YarnLoading"
|
|
|
|
|
><a-icon type="import" />引入场站数据</a-button
|
|
|
|
|
>
|
|
|
|
|
<a-button class="btn btn-weight" type="primary" @click="importWeight" :loading="WeightLoading"
|
|
|
|
|
><a-icon type="import" />引入箱皮重</a-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="table-right">
|
|
|
|
|
<!-- <span>合计: {{ totalCtnall }}</span> -->
|
|
|
|
@ -663,6 +669,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
init() {
|
|
|
|
|
console.log('init', this.details.ctnInputs)
|
|
|
|
|
if (Object.keys(this.details).length > 0) {
|
|
|
|
|
const arr = []
|
|
|
|
|
const totalCtnall = {}
|
|
|
|
@ -1028,18 +1035,20 @@ export default {
|
|
|
|
|
.btn {
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
.btn-delete{
|
|
|
|
|
.btn-delete {
|
|
|
|
|
border: 1px solid #ff6646;
|
|
|
|
|
background: #fdf2f0;
|
|
|
|
|
color: #ff6646;
|
|
|
|
|
&:hover{
|
|
|
|
|
&:hover {
|
|
|
|
|
border: 1px solid #ff6646 !important;
|
|
|
|
|
background: #fdf2f0 !important;
|
|
|
|
|
color: #ff6646 !important;
|
|
|
|
|
opacity:.7;
|
|
|
|
|
opacity: 0.7;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.btn-more-name,.btn-import-station,.btn-weight{
|
|
|
|
|
.btn-more-name,
|
|
|
|
|
.btn-import-station,
|
|
|
|
|
.btn-weight {
|
|
|
|
|
border: 1px solid @primary-color;
|
|
|
|
|
color: @primary-color;
|
|
|
|
|
background-color: #f5f9fe;
|
|
|
|
@ -1062,15 +1071,15 @@ export default {
|
|
|
|
|
.btn {
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
.btn-delete{
|
|
|
|
|
.btn-delete {
|
|
|
|
|
border: 1px solid #ff6646;
|
|
|
|
|
background: #fdf2f0;
|
|
|
|
|
color: #ff6646;
|
|
|
|
|
&:hover{
|
|
|
|
|
&:hover {
|
|
|
|
|
border: 1px solid #ff6646 !important;
|
|
|
|
|
background: #fdf2f0 !important;
|
|
|
|
|
color: #ff6646 !important;
|
|
|
|
|
opacity:.7;
|
|
|
|
|
opacity: 0.7;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|