|
@@ -18,7 +18,10 @@
|
|
|
<!-- <text class='weight-tip'>复称重量作用是确保句惠完整,防止工作人员计费称車后进行的其他操作引起的物品丢失问题</text> -->
|
|
|
<!-- <uni-section title="绑定批托盘号" type="line" padding style="height: calc(100vh - 100px)"> -->
|
|
|
<uni-forms-item label="绑定批次号" name="batchNum">
|
|
|
- <uni-data-select v-model="valiFormData.batchNum" placeholder="请选择批次号" :localdata="options.batch" :clear="false"></uni-data-select>
|
|
|
+ <uni-data-select v-if="!editBatchNum" v-model="valiFormData.batchNum" placeholder="请选择批次号" :localdata="options.batch" :clear="false"></uni-data-select>
|
|
|
+ <uni-easyinput v-if="editBatchNum" :value="valiFormData.batchNum" :disabled="editBatchNum" />
|
|
|
+ <button v-if="!editBatchNum" type="primary" @click="submitBatchNum">确认</button>
|
|
|
+ <button v-if="editBatchNum" type="primary" @click="editBatchNum = false">修改</button>
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item label="绑定托盘号" name="palletNum">
|
|
|
<uni-data-picker
|
|
@@ -75,6 +78,7 @@ const token = ref();
|
|
|
const loading = ref(false);
|
|
|
const hidePage = ref(false);
|
|
|
const focusType = ref(true);
|
|
|
+const editBatchNum = ref(false);
|
|
|
const lotnoLogHistory = ref([]);
|
|
|
const messageRef = ref();
|
|
|
const messageType = ref();
|
|
@@ -151,6 +155,17 @@ const reset = () => {
|
|
|
// valiFormData.value.palletNum = '';
|
|
|
};
|
|
|
|
|
|
+const submitBatchNum = () => {
|
|
|
+ if (valiFormData.value.batchNum) {
|
|
|
+ editBatchNum.value = true;
|
|
|
+ setFocus();
|
|
|
+ } else {
|
|
|
+ messageType.value = 'error';
|
|
|
+ messageText.value = '请选择批次号';
|
|
|
+ messageRef.value.open();
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
const checkOrder = () => {
|
|
|
loading.value = true;
|
|
|
uni.setStorageSync('waybills', []);
|
|
@@ -450,4 +465,4 @@ onNavigationBarButtonTap((event) => {
|
|
|
color: #999;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|