|
@ -62,6 +62,12 @@ |
|
|
<view v-if="item.status==0" > |
|
|
<view v-if="item.status==0" > |
|
|
<u-button type="primary" @click="开工(item)">开工</u-button> |
|
|
<u-button type="primary" @click="开工(item)">开工</u-button> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view v-if="item.status==1" > |
|
|
|
|
|
<u-button type="success" size="medium" @click="callBasicItem(item)" style="width: 20px;">叫料</u-button> |
|
|
|
|
|
<u-button type="primary" size="medium" @click="receiveBasicItem(item)" style="margin-left: 5px;width: 20px;">领料</u-button> |
|
|
|
|
|
<u-button type="warning" size="medium" @click="addBasicItem(item)" style="margin-left: 5px;width: 20px;">补料</u-button> |
|
|
|
|
|
<u-button type="success" size="medium" @click="completeHandle(item)" style="margin-left: 5px;width: 20px;">完工</u-button> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view style="height: 94rpx;padding-top: 30rpx;"> |
|
|
<view style="height: 94rpx;padding-top: 30rpx;"> |
|
|
<u-loadmore :status="status" v-if="status != 'loadmore'" /> |
|
|
<u-loadmore :status="status" v-if="status != 'loadmore'" /> |
|
@ -267,6 +273,33 @@ async function searchTable() { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
// 完工处理(临时,后续调整) |
|
|
|
|
|
function completeHandle(item) { |
|
|
|
|
|
console.log(item) |
|
|
|
|
|
// proxy.$modal.loading('处理中') |
|
|
|
|
|
// workSchedulingListApi.completeHandle(completedParams.value).then((res) => { |
|
|
|
|
|
// proxy.$modal.closeLoading() |
|
|
|
|
|
// if (res.data) { |
|
|
|
|
|
|
|
|
|
|
|
// } else { |
|
|
|
|
|
|
|
|
|
|
|
// } |
|
|
|
|
|
// }).catch(() => { |
|
|
|
|
|
// proxy.$modal.closeLoading() |
|
|
|
|
|
// }) |
|
|
|
|
|
} |
|
|
|
|
|
// 叫料 |
|
|
|
|
|
function callBasicItem(item){ |
|
|
|
|
|
console.log(item) |
|
|
|
|
|
} |
|
|
|
|
|
// 补料 |
|
|
|
|
|
function receiveBasicItem(item){ |
|
|
|
|
|
console.log(item) |
|
|
|
|
|
} |
|
|
|
|
|
// 领料 |
|
|
|
|
|
function addBasicItem(item){ |
|
|
|
|
|
console.log(item) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|