Commit d824f7d5 authored by 李驰骋's avatar 李驰骋

物料回退申请单调整

parent 14577566
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
</u-radio-group> </u-radio-group>
</view> </view>
</u-form-item> </u-form-item>
</u-col> </u-col>
</u-row> </u-row>
</u-form> </u-form>
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
<u-input :border="true" v-model="ExceptionForms.abnormalTime"></u-input> <u-input :border="true" v-model="ExceptionForms.abnormalTime"></u-input>
<uni-datetime-picker class="times" type="date" :clear-icon="false" v-model="ExceptionForms.abnormalTime" /> <uni-datetime-picker class="times" type="date" :clear-icon="false" v-model="ExceptionForms.abnormalTime" />
</u-form-item> --> </u-form-item> -->
<u-row> <u-row>
<u-col span="6"> <u-col span="6">
<u-form-item label="异常类型" prop="abnormalType"> <u-form-item label="异常类型" prop="abnormalType">
...@@ -363,17 +363,33 @@ ...@@ -363,17 +363,33 @@
<u-modal title="退料申请" @confirm="materialReturnSave()" show-cancel-button <u-modal title="退料申请" @confirm="materialReturnSave()" show-cancel-button
:title-style="{'background-color':'#1E3770','color': '#FFFFFF' ,'line-height': '37px','padding-top': '0px'}" :title-style="{'background-color':'#1E3770','color': '#FFFFFF' ,'line-height': '37px','padding-top': '0px'}"
v-model="materialReturnVisible" width="1300rpx"> v-model="materialReturnVisible" width="1600rpx">
<view class="list-bar"> <view class="list-bar">
<u-form label-width="100px">
<u-row>
<u-col span="6">
<u-form-item label="编排单号">
{{curTaskInfo.arrangeCode}}
</u-form-item>
</u-col>
<u-col span="6">
<u-form-item label="生产工单" prop="workorderCode">
<uni-data-select @change="materialReturnWorkorderChange" :localdata="curTaskInfo.workorderOption"></uni-data-select>
</u-form-item>
</u-col>
</u-row>
</u-form>
<scroll-view scroll-y="true" class="scroll-list" :style="{ 'height': (this.screenHeight -280) + 'px' }"> <scroll-view scroll-y="true" class="scroll-list" :style="{ 'height': (this.screenHeight -280) + 'px' }">
<uni-table ref="qcTable" border stripe :loading="loading" emptyText="未查询到数据"> <uni-table ref="qcTable" border stripe :loading="loading" emptyText="未查询到数据">
<uni-tr> <uni-tr>
<uni-th width="100px" align="center">操作</uni-th> <uni-th width="60px" align="center">操作</uni-th>
<uni-th width="110px" align="center">产品物料编码</uni-th> <uni-th width="110px" align="center">产品物料编码</uni-th>
<uni-th width="110px" align="center">产品物料名称</uni-th> <uni-th width="110px" align="center">产品物料名称</uni-th>
<uni-th width="80px" align="center">领料数量</uni-th> <uni-th width="80px" align="center">领料数量</uni-th>
<uni-th width="80px" align="center">退料数量</uni-th> <uni-th width="80px" align="center">本次退料数</uni-th>
<uni-th width="80px" align="center">累计退料数</uni-th>
<uni-th width="110px" align="center">批次号</uni-th> <uni-th width="110px" align="center">批次号</uni-th>
<uni-th width="60" align="center">合格</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(line,index) in materialReturnList" :key="index"> <uni-tr v-for="(line,index) in materialReturnList" :key="index">
<uni-td align="center"> <uni-td align="center">
...@@ -386,7 +402,9 @@ ...@@ -386,7 +402,9 @@
<uni-td align="center">{{ line.itemName }}({{line.specification}})/{{line.unitOfMeasure}}</uni-td> <uni-td align="center">{{ line.itemName }}({{line.specification}})/{{line.unitOfMeasure}}</uni-td>
<uni-td align="center">{{ line.quantityIssued }}</uni-td> <uni-td align="center">{{ line.quantityIssued }}</uni-td>
<uni-td align="center">{{ line.applyNum }}</uni-td> <uni-td align="center">{{ line.applyNum }}</uni-td>
<uni-td align="center">{{ line.totalBackNum }}</uni-td>
<uni-td align="center">{{ line.batchCode }}</uni-td> <uni-td align="center">{{ line.batchCode }}</uni-td>
<uni-td align="center">{{ line.isQualified==1?'是':'' }}{{ line.isQualified==0?'否':'' }}</uni-td>
</uni-tr> </uni-tr>
</uni-table> </uni-table>
</scroll-view> </scroll-view>
...@@ -395,7 +413,7 @@ ...@@ -395,7 +413,7 @@
<u-modal title="退料申请数量" @confirm="materialReturnSetting()" show-cancel-button <u-modal title="退料申请数量" @confirm="materialReturnSetting()" show-cancel-button
:title-style="{'background-color':'#1E3770','color': '#FFFFFF' ,'line-height': '37px','padding-top': '0px'}" :title-style="{'background-color':'#1E3770','color': '#FFFFFF' ,'line-height': '37px','padding-top': '0px'}"
v-model="materialReturn" width="700rpx"> v-model="materialReturnFormVisible" width="700rpx">
<view class=""> <view class="">
<u-form label-width="100px"> <u-form label-width="100px">
<u-row> <u-row>
...@@ -412,6 +430,22 @@ ...@@ -412,6 +430,22 @@
</u-form-item> </u-form-item>
</u-col> </u-col>
</u-row> </u-row>
<u-row>
<u-col>
<u-form-item label="是否合格" prop="printName">
<view class="uni-list-item__extra">
<u-radio-group v-model="materialReturnFormData.isQualified">
<u-radio name="1">
</u-radio>
<u-radio name="0">
</u-radio>
</u-radio-group>
</view>
</u-form-item>
</u-col>
</u-row>
</u-form> </u-form>
</view> </view>
</u-modal> </u-modal>
...@@ -464,7 +498,7 @@ ...@@ -464,7 +498,7 @@
<view > <view >
<image v-for="(line,index) in viewSop" class="u-avatar-demo" :src="line" mode="aspectFill"></image> <image v-for="(line,index) in viewSop" class="u-avatar-demo" :src="line" mode="aspectFill"></image>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
</u-modal> </u-modal>
...@@ -755,7 +789,8 @@ export default { ...@@ -755,7 +789,8 @@ export default {
materialRequestSelected:{}, materialRequestSelected:{},
materialReturnFormData: { materialReturnFormData: {
itemName:null, itemName:null,
applyNum:null applyNum:null,
workorderCode:null
}, },
materialReturnFormVisible:false, materialReturnFormVisible:false,
materialReturnSelected:{}, materialReturnSelected:{},
...@@ -995,9 +1030,9 @@ export default { ...@@ -995,9 +1030,9 @@ export default {
const items= row.workorderList.find(item => item.value === id) const items= row.workorderList.find(item => item.value === id)
console.log(items, 'items') console.log(items, 'items')
row.workorderCode = items.text row.workorderCode = items.text
row.printName = items.text row.printName = items.text
}, },
stopReas(abnormalType) { stopReas(abnormalType) {
this.ExceptionForms.abnormalType = abnormalType this.ExceptionForms.abnormalType = abnormalType
// 查询原因 // 查询原因
...@@ -1029,7 +1064,7 @@ export default { ...@@ -1029,7 +1064,7 @@ export default {
}) })
}) })
}, },
getTaskList() { getTaskList() {
this.form = {} this.form = {}
const t = this; const t = this;
...@@ -1148,8 +1183,8 @@ export default { ...@@ -1148,8 +1183,8 @@ export default {
this.feedbackForms.push(feedback) this.feedbackForms.push(feedback)
}) })
this.open = true; this.open = true;
}, },
doException() { doException() {
...@@ -1170,7 +1205,7 @@ export default { ...@@ -1170,7 +1205,7 @@ export default {
}) })
this.aopen = true; this.aopen = true;
}, },
async newlyAddss(){ async newlyAddss(){
const res = await this.$u.api.abnormal.newlyAdd(this.ExceptionForms); const res = await this.$u.api.abnormal.newlyAdd(this.ExceptionForms);
this.getTaskList(); this.getTaskList();
...@@ -1354,6 +1389,10 @@ export default { ...@@ -1354,6 +1389,10 @@ export default {
const t = this; const t = this;
this.materialReturnVisible=true; this.materialReturnVisible=true;
const taskInfo = this.tableSelectData[0]; const taskInfo = this.tableSelectData[0];
this.curTaskInfo = this.tableSelectData[0];
this.curTaskInfo.workorderOption = this.curTaskInfo.proWorkorderList.map(s=>{
return {"value":s.workorderCode,"text":s.workorderCode};
});
this.$u.api.listMaterialReturn({"taskId":taskInfo.taskId}).then(res => { this.$u.api.listMaterialReturn({"taskId":taskInfo.taskId}).then(res => {
if (res.code === 200) { if (res.code === 200) {
t.materialReturnList = res.data; t.materialReturnList = res.data;
...@@ -1369,10 +1408,16 @@ export default { ...@@ -1369,10 +1408,16 @@ export default {
} }
}); });
}, },
materialReturnWorkorderChange(s){
this.materialReturnFormData.workorderCode=s;
},
materialReturnFormShow(line){ materialReturnFormShow(line){
this.materialReturnFormVisible=true; this.materialReturnFormVisible=true;
this.materialReturnFormData = {itemName: line.itemName}; this.materialReturnFormData = {
itemName: line.itemName,
orkorderCode:this.materialReturnFormData.workorderCode,
isQualified:1
};
this.materialReturnSelected = line; this.materialReturnSelected = line;
}, },
viewSopsShow(row){ viewSopsShow(row){
...@@ -1387,6 +1432,7 @@ export default { ...@@ -1387,6 +1432,7 @@ export default {
}, },
materialReturnSetting(){ materialReturnSetting(){
this.materialReturnSelected.applyNum = this.materialReturnFormData.applyNum; this.materialReturnSelected.applyNum = this.materialReturnFormData.applyNum;
this.materialReturnSelected.isQualified =this.materialReturnFormData.isQualified;
this.materialReturnFormVisible=false; this.materialReturnFormVisible=false;
}, },
materialReturnSave(){ materialReturnSave(){
...@@ -1402,7 +1448,9 @@ export default { ...@@ -1402,7 +1448,9 @@ export default {
"issueLineId":s.lineId, "issueLineId":s.lineId,
"workOrderId":s.workorderId, "workOrderId":s.workorderId,
"batchNo":s.batchCode, "batchNo":s.batchCode,
"packNo":s.packNo "packNo":s.packNo,
"isQualified":s.isQualified,
"workorderCode":t.materialReturnFormData.workorderCode,
}); });
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment