|
@@ -8,6 +8,9 @@
|
|
|
<view class="product-info">
|
|
|
产品描述: {{ dayworkItem.productDescription }}
|
|
|
</view>
|
|
|
+ <view class="product-info">
|
|
|
+ 原材料厂家: {{ dayworkInfo.furnaceNoInfo.factory }}
|
|
|
+ </view>
|
|
|
<view class="product-info">
|
|
|
投产数量: {{ dayworkItem.prodNum }}
|
|
|
</view>
|
|
@@ -75,10 +78,14 @@
|
|
|
<span v-else>{{ dayworkItem.remark }}</span>
|
|
|
</view>
|
|
|
|
|
|
- <view class="btns-container uni-row" v-if="Number(dayworkItem.status) < 3">
|
|
|
- <view v-if="checkFinishable()" class="finished-btn" @click.stop="handleFinishDaywork">结束报工</view>
|
|
|
- <view v-if="!checkFinishable()" class="pause-btn" @click.stop="handleUpdateDaywork">暂停</view>
|
|
|
- <view class="question-btn uni-column" @click.stop="handleAddConsultation">
|
|
|
+ <view class="btns-container uni-row">
|
|
|
+ <view class="bottom-btn left-btn " @click="handleChangeCarrier">更换载具</view>
|
|
|
+ <view v-if="checkFinishable()&&Number(dayworkItem.status) < 3" class="finished-btn"
|
|
|
+ @click.stop="handleFinishDaywork">结束报工</view>
|
|
|
+ <view v-if="!checkFinishable()&&Number(dayworkItem.status) < 3" class="pause-btn"
|
|
|
+ @click.stop="handleUpdateDaywork">暂停</view>
|
|
|
+ <view v-if="Number(dayworkItem.status) < 3" class="question-btn uni-column"
|
|
|
+ @click.stop="handleAddConsultation">
|
|
|
<uni-icons type="headphones" size="24" />
|
|
|
<text>咨询</text>
|
|
|
</view>
|
|
@@ -128,7 +135,6 @@
|
|
|
const eventChannel = instance.getOpenerEventChannel();
|
|
|
|
|
|
eventChannel.on('acceptDataFromOpenerPage', function(data) {
|
|
|
- // console.log('acceptDataFromOpenerPage', data)
|
|
|
if (data && data.data) {
|
|
|
dayworkInfo.value = data.data
|
|
|
init({
|
|
@@ -145,6 +151,7 @@
|
|
|
|
|
|
/***************************** 定义了一些方法 *****************************/
|
|
|
const init = (data) => {
|
|
|
+ console.log("dayworkInfo", dayworkInfo.value);
|
|
|
// 获取当前报工信息
|
|
|
getSortingDayworkItem(data).then(res => {
|
|
|
console.log(res)
|
|
@@ -245,6 +252,23 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ /* 更换载具*/
|
|
|
+ function handleChangeCarrier(item) {
|
|
|
+ // uni.$once('refreshQuickReport', () => {
|
|
|
+ // init()
|
|
|
+ // })
|
|
|
+ store.dayworkInfo = null
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/changeBox/index",
|
|
|
+ success: function(res) {
|
|
|
+ // 通过eventChannel向被打开页面传送数据
|
|
|
+ res.eventChannel.emit('sortingFromOpenerPage', {
|
|
|
+ data: dayworkItem.value
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
// 添加不合格信息
|
|
|
const handleAddConsultation = () => {
|
|
|
isEventTriggered.value = false; // 更新标志位状态
|
|
@@ -543,6 +567,7 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
.daywork-container {
|
|
|
margin-top: 24rpx;
|
|
|
padding: 24rpx;
|
|
@@ -582,6 +607,27 @@
|
|
|
.btns-container {
|
|
|
margin-top: 24rpx;
|
|
|
|
|
|
+ .bottom-btn {
|
|
|
+ display: flex;
|
|
|
+ flex: 1;
|
|
|
+ height: 80rpx;
|
|
|
+ background-color: #5555ff;
|
|
|
+ color: #ffffff;
|
|
|
+ text-align: center;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ border-radius: 8rpx;
|
|
|
+ margin-right: 10rpx;
|
|
|
+
|
|
|
+ &.left-btn {
|
|
|
+ background-color: rgba(85, 85, 255, 1.0);
|
|
|
+ }
|
|
|
+
|
|
|
+ &.right-btn {
|
|
|
+ margin-left: 24rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.finished-btn {
|
|
|
display: flex;
|
|
|
flex: 1;
|