|
|
@ -96,9 +96,17 @@ |
|
|
|
|
|
|
|
|
<el-tabs style="font-size: 12px;min-height: 200px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick"> |
|
|
<el-tabs style="font-size: 12px;min-height: 200px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick"> |
|
|
<el-tab-pane label="合并明细" name="detail"> |
|
|
<el-tab-pane label="合并明细" name="detail"> |
|
|
|
|
|
<el-form :inline="true" label-position="top" style="margin-top: -10px"> |
|
|
|
|
|
<el-form-item :label="'物料编码:'"> |
|
|
|
|
|
<el-input v-model="partNo" style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item > |
|
|
|
|
|
<el-form-item :label="'产品库存:'"> |
|
|
|
|
|
<el-input v-model="qtyOnHand" style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
<el-table |
|
|
<el-table |
|
|
:data="dataList2" |
|
|
:data="dataList2" |
|
|
:height="height" |
|
|
|
|
|
|
|
|
:height="height2" |
|
|
border |
|
|
border |
|
|
v-loading="dataListLoading" |
|
|
v-loading="dataListLoading" |
|
|
style="width: 100%; "> |
|
|
style="width: 100%; "> |
|
|
@ -149,9 +157,17 @@ |
|
|
|
|
|
|
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane label="分发记录" name="issureDetail"> |
|
|
<el-tab-pane label="分发记录" name="issureDetail"> |
|
|
|
|
|
<el-form :inline="true" label-position="top" style="margin-top: -10px"> |
|
|
|
|
|
<el-form-item :label="'物料编码:'"> |
|
|
|
|
|
<el-input v-model="partNo" style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item > |
|
|
|
|
|
<el-form-item :label="'产品库存:'"> |
|
|
|
|
|
<el-input v-model="qtyOnHand" style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
<el-table |
|
|
<el-table |
|
|
:data="dataList3" |
|
|
:data="dataList3" |
|
|
:height="height" |
|
|
|
|
|
|
|
|
:height="height2" |
|
|
border |
|
|
border |
|
|
v-loading="dataListLoading" |
|
|
v-loading="dataListLoading" |
|
|
style="width: 100%; "> |
|
|
style="width: 100%; "> |
|
|
@ -162,6 +178,20 @@ |
|
|
min-width="60" |
|
|
min-width="60" |
|
|
label="派工单号"> |
|
|
label="派工单号"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="partNo" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="center" |
|
|
|
|
|
min-width="60" |
|
|
|
|
|
label="产品编码"> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="partDesc" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="center" |
|
|
|
|
|
min-width="100" |
|
|
|
|
|
label="规格型号"> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="sScheduledDate" |
|
|
prop="sScheduledDate" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
@ -183,7 +213,27 @@ |
|
|
min-width="70" |
|
|
min-width="70" |
|
|
label="发料数量"> |
|
|
label="发料数量"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="returnQty" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="right" |
|
|
|
|
|
min-width="70" |
|
|
|
|
|
label="退料数量"> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="realQty" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="right" |
|
|
|
|
|
min-width="70" |
|
|
|
|
|
label="实际领料数量"> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="returnPercent" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="right" |
|
|
|
|
|
min-width="70" |
|
|
|
|
|
label="退料率"> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
|
|
|
|
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
@ -201,7 +251,7 @@ |
|
|
,getHunlianTaskIssure |
|
|
,getHunlianTaskIssure |
|
|
} from "@/api/production/query.js" |
|
|
} from "@/api/production/query.js" |
|
|
import { |
|
|
import { |
|
|
getHunlianTaskDetailData |
|
|
|
|
|
|
|
|
getHunlianTaskDetailData,getPartNoOnHand |
|
|
} from "@/api/production.js" |
|
|
} from "@/api/production.js" |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
|
|
|
|
|
|
@ -213,7 +263,10 @@ |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
height:200, |
|
|
height:200, |
|
|
|
|
|
height2:200, |
|
|
modelFlag:false, |
|
|
modelFlag:false, |
|
|
|
|
|
qtyOnHand:'', |
|
|
|
|
|
partNo:'', |
|
|
activeName: 'detail', |
|
|
activeName: 'detail', |
|
|
dataList: [], |
|
|
dataList: [], |
|
|
dataList2: [], |
|
|
dataList2: [], |
|
|
@ -453,7 +506,7 @@ |
|
|
mounted () { |
|
|
mounted () { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.height = (window.innerHeight- 260) / 2 |
|
|
this.height = (window.innerHeight- 260) / 2 |
|
|
|
|
|
|
|
|
|
|
|
this.height2 = (window.innerHeight- 260) / 2 -30 |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
@ -494,6 +547,25 @@ |
|
|
this.currentRow = JSON.parse(JSON.stringify(row)); |
|
|
this.currentRow = JSON.parse(JSON.stringify(row)); |
|
|
this.headerData=row; |
|
|
this.headerData=row; |
|
|
this.refreshCurrentTabTable (); |
|
|
this.refreshCurrentTabTable (); |
|
|
|
|
|
let inData={ |
|
|
|
|
|
site:this.currentRow.site, |
|
|
|
|
|
partNo:this.currentRow.partNo, |
|
|
|
|
|
} |
|
|
|
|
|
this.partNo=this.currentRow.partNo |
|
|
|
|
|
getPartNoOnHand(inData).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
if(data.row!=null){ |
|
|
|
|
|
this.qtyOnHand=data.row.qtyOnHand; |
|
|
|
|
|
}else { |
|
|
|
|
|
this.qtyOnHand=0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
refreshCurrentTabTable(){ |
|
|
refreshCurrentTabTable(){ |
|
|
if(this.currentRow===''||this.currentRow===null){ |
|
|
if(this.currentRow===''||this.currentRow===null){ |
|
|
|