| | |
| | | </view> |
| | | </view> |
| | | |
| | | <view v-if="isQualified" class="form-section"> |
| | | <view class="form-section"> |
| | | <view class="section-title">过磅信息</view> |
| | | <view class="form-row"> |
| | | <text class="form-label">车牌号</text> |
| | |
| | | <text class="popup-title">选择产品</text> |
| | | </view> |
| | | <view class="popup-search"> |
| | | <up-input v-model="productQuery.productName" placeholder="产品大类" clearable /> |
| | | <up-input v-model="productQuery.productName" placeholder="产品大类" disabled /> |
| | | <up-input v-model="productQuery.model" placeholder="型号名称" clearable /> |
| | | <view class="popup-search-btn" @click="loadProductList">搜索</view> |
| | | </view> |
| | |
| | | import dayjs from "dayjs"; |
| | | import PageHeader from "@/components/PageHeader.vue"; |
| | | import { createConsumablesIn } from "@/api/consumablesLogistics/consumablesIn.js"; |
| | | import { createConsumablesUnInventory } from "@/api/consumablesLogistics/consumablesUninventory.js"; |
| | | import { productModelList } from "@/api/basicData/productModel.js"; |
| | | |
| | | const form = reactive({ |
| | |
| | | remark: "", |
| | | }); |
| | | |
| | | const type = ref("0"); |
| | | const isQualified = computed(() => type.value === "0"); |
| | | const type = ref("0"); // 固定合格库存 |
| | | const isQualified = computed(() => true); |
| | | |
| | | const showProductPopup = ref(false); |
| | | const productQuery = reactive({ |
| | | productName: "", |
| | | productName: "耗材", |
| | | model: "", |
| | | }); |
| | | const productList = ref([]); |
| | |
| | | const weighingDateValue = ref(Date.now()); |
| | | |
| | | onLoad((options) => { |
| | | if (options && options.type != null) { |
| | | type.value = options.type; |
| | | } |
| | | type.value = "0"; |
| | | }); |
| | | |
| | | const openProductSelector = () => { |
| | |
| | | weighingOperator: form.weighingOperator, |
| | | remark: form.remark, |
| | | }; |
| | | const api = isQualified.value ? createConsumablesIn : createConsumablesUnInventory; |
| | | api(payload) |
| | | createConsumablesIn(payload) |
| | | .then(() => { |
| | | uni.showToast({ title: "新增成功", icon: "success" }); |
| | | setTimeout(() => { |