|
@@ -40,8 +40,11 @@
|
|
<text class='title' style="margin-bottom: 50rpx;">基础信息</text>
|
|
<text class='title' style="margin-bottom: 50rpx;">基础信息</text>
|
|
<view class="uni-row info">
|
|
<view class="uni-row info">
|
|
<label for="HeatNo">炉号:</label>
|
|
<label for="HeatNo">炉号:</label>
|
|
|
|
+ <select id="incomingInfo" class="uni-input data-select" v-model="basicInfo.heatNo">
|
|
|
|
+ <option class="data-select-options" v-for="(item,index) in range">{{item.text}}</option>
|
|
|
|
+ </select>
|
|
<!-- <input id="HeatNo" class="uni-input" v-model="basicInfo.heatNo" placeholder="请填写" /> -->
|
|
<!-- <input id="HeatNo" class="uni-input" v-model="basicInfo.heatNo" placeholder="请填写" /> -->
|
|
- <text id="HeatNo" class="uni-input">{{basicInfo.heatNo}}</text>
|
|
|
|
|
|
+ <!-- <text id="HeatNo" class="uni-input">{{basicInfo.heatNo}}</text> -->
|
|
</view>
|
|
</view>
|
|
<view class='segment' style="width: 90%;margin: 20rpx auto;"></view>
|
|
<view class='segment' style="width: 90%;margin: 20rpx auto;"></view>
|
|
<view class="uni-row info">
|
|
<view class="uni-row info">
|
|
@@ -50,14 +53,17 @@
|
|
<text id="manufacturer" class="uni-input">{{basicInfo.manufacturer}}</text>
|
|
<text id="manufacturer" class="uni-input">{{basicInfo.manufacturer}}</text>
|
|
</view>
|
|
</view>
|
|
<view class='segment' style="width: 90%;margin: 20rpx auto;"></view>
|
|
<view class='segment' style="width: 90%;margin: 20rpx auto;"></view>
|
|
- <view class="uni-row info">
|
|
|
|
- <label for="incomingInfo">来料信息:</label>
|
|
|
|
- <select id="incomingInfo" class="uni-input data-select">
|
|
|
|
- <option class="data-select-options" v-for="(item,index) in range">{{item.text}}</option>
|
|
|
|
- </select>
|
|
|
|
|
|
+ <view class="uni-row info">
|
|
|
|
+ <label for="incomingInfo">来料日期:</label>
|
|
<!-- <input id="incomingInfo" class="uni-input" v-model="basicInfo.incomingInfo" placeholder="请填写" /> -->
|
|
<!-- <input id="incomingInfo" class="uni-input" v-model="basicInfo.incomingInfo" placeholder="请填写" /> -->
|
|
- <!-- <text id="incomingInfo" class="uni-input">{{basicInfo.incomingInfo}}</text> -->
|
|
|
|
- </view>
|
|
|
|
|
|
+ <text id="incomingInfo" class="uni-input">{{basicInfo.incomingInfo}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class='segment' style="width: 90%;margin: 20rpx auto;"></view>
|
|
|
|
+ <view class="uni-row info">
|
|
|
|
+ <label for="incomingInfo">材质:</label>
|
|
|
|
+ <!-- <input id="incomingInfo" class="uni-input" v-model="basicInfo.incomingInfo" placeholder="请填写" /> -->
|
|
|
|
+ <text id="incomingInfo" class="uni-input">{{basicInfo.materia}}</text>
|
|
|
|
+ </view>
|
|
<view class='segment' style="width: 90%;margin: 20rpx auto;"></view>
|
|
<view class='segment' style="width: 90%;margin: 20rpx auto;"></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -83,31 +89,34 @@
|
|
|
|
|
|
const batchNoCheck = ref(null) // 批次号是否选中
|
|
const batchNoCheck = ref(null) // 批次号是否选中
|
|
const batchNoList = ref([]) // 批次号列表
|
|
const batchNoList = ref([]) // 批次号列表
|
|
- const vehicleList = ref([{ // 载具列表
|
|
|
|
- carrierId: '1731475038666575873',
|
|
|
|
- carrierCode: '000001'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- carrierId: '1731467623237767169',
|
|
|
|
- carrierCode: '000002'
|
|
|
|
- }
|
|
|
|
- ])
|
|
|
|
|
|
+ const vehicleList = ref([])
|
|
const basicInfo = ref({ // 基础信息对象
|
|
const basicInfo = ref({ // 基础信息对象
|
|
heatNo: 'cs222',
|
|
heatNo: 'cs222',
|
|
manufacturer: 'DMS',
|
|
manufacturer: 'DMS',
|
|
- incomingInfo: 'L123456'
|
|
|
|
|
|
+ incomingInfo: 'L123456',
|
|
|
|
+ materia: 'dx1111'
|
|
})
|
|
})
|
|
const dayWork = ref({})
|
|
const dayWork = ref({})
|
|
const curSubPlan = ref({})
|
|
const curSubPlan = ref({})
|
|
- const range = ref([
|
|
|
|
- { value: 0, text: "篮球" },
|
|
|
|
- { value: 1, text: "足球" },
|
|
|
|
- { value: 2, text: "游泳" },
|
|
|
|
- ])
|
|
|
|
|
|
+ const range = ref([{
|
|
|
|
+ value: 0,
|
|
|
|
+ text: "篮球"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: 1,
|
|
|
|
+ text: "足球"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: 2,
|
|
|
|
+ text: "游泳"
|
|
|
|
+ },
|
|
|
|
+ ])
|
|
|
|
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
curSubPlan.value = JSON.parse(options.currentSubPlan);
|
|
curSubPlan.value = JSON.parse(options.currentSubPlan);
|
|
- console.log(curSubPlan.value)
|
|
|
|
|
|
+ dayWork.value.productionPlanDetailSubDetailId = curSubPlan.value.id;
|
|
|
|
+ dayWork.value.productionPlanDetailId = curSubPlan.value.productionPlanDetailId;
|
|
|
|
+ dayWork.value.productionPlanId = curSubPlan.value.productionDetailId;
|
|
init();
|
|
init();
|
|
})
|
|
})
|
|
|
|
|
|
@@ -118,7 +127,6 @@
|
|
for (var i = 0; i < res.rows.length; i++) {
|
|
for (var i = 0; i < res.rows.length; i++) {
|
|
batchNoList.value.push(res.rows[i].lotCode)
|
|
batchNoList.value.push(res.rows[i].lotCode)
|
|
}
|
|
}
|
|
- console.log(batchNoList.value)
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -148,14 +156,14 @@
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- vehicleList.value.push(JSON.parse(res.result));
|
|
|
|
- console.log(vehicleObj);
|
|
|
|
|
|
+ vehicleList.value.push(vehicleObj);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
function handleAdd() {
|
|
function handleAdd() {
|
|
dayWork.value.dayworkCarriers = vehicleList.value;
|
|
dayWork.value.dayworkCarriers = vehicleList.value;
|
|
|
|
+ console.log(dayWork.value)
|
|
saveDayWork(dayWork.value).then(res => {
|
|
saveDayWork(dayWork.value).then(res => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -166,6 +174,11 @@
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages/batchReporting/index'
|
|
url: '/pages/batchReporting/index'
|
|
})
|
|
})
|
|
|
|
+ let pages = getCurrentPages(); //当前页面栈
|
|
|
|
+ if (pages.length > 1) {
|
|
|
|
+ let beforePage = pages[pages.length - 2]; //获取上一个页面实例对象
|
|
|
|
+ beforePage.$vm.init(curSubPlan.value.id); //触发上一个页面中的方法,并传过去当前的值
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
icon: 'error',
|
|
icon: 'error',
|
|
@@ -281,17 +294,19 @@
|
|
width: 100%;
|
|
width: 100%;
|
|
justify-content: space-around;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
+
|
|
label {
|
|
label {
|
|
flex: 1;
|
|
flex: 1;
|
|
text-combine-upright: all;
|
|
text-combine-upright: all;
|
|
margin: 0 30rpx;
|
|
margin: 0 30rpx;
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
text {
|
|
text {
|
|
flex: 3;
|
|
flex: 3;
|
|
width: 80%;
|
|
width: 80%;
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
.data-select {
|
|
.data-select {
|
|
flex: 3;
|
|
flex: 3;
|
|
width: 80%;
|
|
width: 80%;
|
|
@@ -299,6 +314,7 @@
|
|
margin-right: 40rpx;
|
|
margin-right: 40rpx;
|
|
border-radius: 18rpx;
|
|
border-radius: 18rpx;
|
|
background-color: #FFF;
|
|
background-color: #FFF;
|
|
|
|
+
|
|
.data-select-options {
|
|
.data-select-options {
|
|
width: 200rpx;
|
|
width: 200rpx;
|
|
}
|
|
}
|