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

任务选择调整

parent fac071ca
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<ProContent v-if="tabIndex === 'DV'"></ProContent> <ProContent v-if="tabIndex === 'DV'"></ProContent>
</view> </view>
<u-modal width="90%" v-model="showWorkstationFlag" :showConfirmButton="false" :showCancelButton="true" <u-modal width="90%" v-model="showWorkstationFlag" :showConfirmButton="false" :showCancelButton="true"
title="请选择工作" content="操作内容"> title="请选择工作单元" content="操作内容">
<view class="station_list"> <view class="station_list">
<u-empty text="暂无工作单元" mode="list" v-if="workUnitList.length==0" <u-empty text="暂无工作单元" mode="list" v-if="workUnitList.length==0"
......
...@@ -246,7 +246,6 @@ ...@@ -246,7 +246,6 @@
<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="110px" align="center">批次号</uni-th> <uni-th width="110px" align="center">批次号</uni-th>
<uni-th width="100px" align="center">备注</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(line,index) in recoilMaterialList" :key="index"> <uni-tr v-for="(line,index) in recoilMaterialList" :key="index">
<uni-td align="center"> <uni-td align="center">
...@@ -258,7 +257,6 @@ ...@@ -258,7 +257,6 @@
<uni-td align="center">{{ line.itemCode }}</uni-td> <uni-td align="center">{{ line.itemCode }}</uni-td>
<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.batchNo }}</uni-td> <uni-td align="center">{{ line.batchNo }}</uni-td>
<uni-td align="center">{{ line.remark }}</uni-td>
</uni-tr> </uni-tr>
</uni-table> </uni-table>
</scroll-view> </scroll-view>
...@@ -1093,7 +1091,7 @@ export default { ...@@ -1093,7 +1091,7 @@ export default {
}, },
feedingInspectionLoadAndScan(){ feedingInspectionLoadAndScan(){
const t = this; const t = this;
const taskInfo = this.curTaskInfo; const taskInfo = this.tableSelectData[0];
this.$u.api.listFeedingInspection({"taskId":taskInfo.taskId}).then(res => { this.$u.api.listFeedingInspection({"taskId":taskInfo.taskId}).then(res => {
if (res.code === 200) { if (res.code === 200) {
t.feedingInspectionList = res.data; t.feedingInspectionList = res.data;
...@@ -1116,7 +1114,7 @@ export default { ...@@ -1116,7 +1114,7 @@ export default {
}, },
validateFeedingInspection(line){ validateFeedingInspection(line){
const t = this; const t = this;
const taskInfo = this.curTaskInfo; const taskInfo = this.tableSelectData[0];
this.$u.api.validateFeedingInspectionById({"lineId":line.lineId}).then(res2=>{ this.$u.api.validateFeedingInspectionById({"lineId":line.lineId}).then(res2=>{
if (res2.code === 200) { if (res2.code === 200) {
t.$u.api.listFeedingInspection({"taskId":taskInfo.taskId}).then(res => { t.$u.api.listFeedingInspection({"taskId":taskInfo.taskId}).then(res => {
...@@ -1133,7 +1131,7 @@ export default { ...@@ -1133,7 +1131,7 @@ export default {
}, },
recoilMaterialLoadAndScan(){ recoilMaterialLoadAndScan(){
const t = this; const t = this;
const taskInfo = this.curTaskInfo; const taskInfo = this.tableSelectData[0];
this.$u.api.recoilMaterialList({"taskId":taskInfo.taskId}).then(res => { this.$u.api.recoilMaterialList({"taskId":taskInfo.taskId}).then(res => {
if (res.code === 200) { if (res.code === 200) {
t.recoilMaterialList = res.data; t.recoilMaterialList = res.data;
...@@ -1143,10 +1141,9 @@ export default { ...@@ -1143,10 +1141,9 @@ export default {
}, },
recoilMaterialScan(){ recoilMaterialScan(){
const t = this; const t = this;
const taskInfo = this.curTaskInfo; const taskInfo = this.tableSelectData[0];
uni.scanCode({ uni.scanCode({
success: function (res) { success: function (res) {
t.$u.toast(res.result);
t.$u.api.addRecoilMaterial({"taskId":taskInfo.taskId, "plnr": res.result}).then(res2=>{ t.$u.api.addRecoilMaterial({"taskId":taskInfo.taskId, "plnr": res.result}).then(res2=>{
if (res2.code === 200) { if (res2.code === 200) {
t.recoilMaterialLoadAndScan(); t.recoilMaterialLoadAndScan();
...@@ -1158,7 +1155,7 @@ export default { ...@@ -1158,7 +1155,7 @@ export default {
}, },
recoilMaterialDelete(line){ recoilMaterialDelete(line){
const t = this; const t = this;
const taskInfo = this.curTaskInfo; const taskInfo = this.tableSelectData[0];
this.$u.api.deleteRecoilMaterial({"id":line.recoilMaterialId}).then(res2=>{ this.$u.api.deleteRecoilMaterial({"id":line.recoilMaterialId}).then(res2=>{
t.$u.api.recoilMaterialList({"taskId":taskInfo.taskId}).then(res => { t.$u.api.recoilMaterialList({"taskId":taskInfo.taskId}).then(res => {
if (res.code === 200) { if (res.code === 200) {
...@@ -1169,7 +1166,7 @@ export default { ...@@ -1169,7 +1166,7 @@ export default {
}, },
materialRequestShow(){ materialRequestShow(){
const taskInfo = this.curTaskInfo; const taskInfo = this.tableSelectData[0];
const t = this; const t = this;
this.materialRequestVisible=true; this.materialRequestVisible=true;
this.$u.api.listMaterialRequest({"taskId":taskInfo.taskId}).then(res => { this.$u.api.listMaterialRequest({"taskId":taskInfo.taskId}).then(res => {
...@@ -1189,7 +1186,7 @@ export default { ...@@ -1189,7 +1186,7 @@ export default {
}, },
materialRequestSave(){ materialRequestSave(){
const rst = []; const rst = [];
const taskInfo = this.curTaskInfo; const taskInfo = this.tableSelectData[0];
const t = this; const t = this;
this.materialRequestList.forEach(s=>{ this.materialRequestList.forEach(s=>{
if(s.applyNum!=null){ if(s.applyNum!=null){
...@@ -1211,7 +1208,7 @@ export default { ...@@ -1211,7 +1208,7 @@ export default {
materialReturnShow(){ materialReturnShow(){
const t = this; const t = this;
this.materialReturnVisible=true; this.materialReturnVisible=true;
const taskInfo = this.curTaskInfo; const taskInfo = this.tableSelectData[0];
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;
...@@ -1228,7 +1225,7 @@ export default { ...@@ -1228,7 +1225,7 @@ export default {
this.materialReturnFormVisible=false; this.materialReturnFormVisible=false;
}, },
materialReturnSave(){ materialReturnSave(){
const taskInfo = this.curTaskInfo; const taskInfo = this.tableSelectData[0];
const rst = []; const rst = [];
const t = this; const t = this;
this.materialReturnList.forEach(s=>{ this.materialReturnList.forEach(s=>{
......
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