| | |
| | | // 应用全局配置 |
| | | const config = { |
| | | baseUrl: "http://1.15.17.182:9116", |
| | | fileUrl: "http://1.15.17.182:9115", |
| | | baseUrl: "http://36.213.90.123:9015", |
| | | fileUrl: "http://36.213.90.123:9016", |
| | | // 应用信息 |
| | | appInfo: { |
| | | // 应用名称 |
| | |
| | | { |
| | | "name" : "意博凯信", |
| | | "appid" : "__UNI__9BDA18B", |
| | | "name": "新聚工贸", |
| | | "appid": "__UNI__0E0D28E", |
| | | "description" : "", |
| | | "versionName" : "1.1.5", |
| | | "versionCode" : 100, |
| | |
| | | }; |
| | | |
| | | const customerTypeActions = [ |
| | | { name: "零售客户", value: "零售客户" }, |
| | | { name: "经销商客户", value: "经销商客户" }, |
| | | { name: "三大油", value: "三大油" }, |
| | | { name: "外销", value: "外销" }, |
| | | ]; |
| | | |
| | | const pageTitle = computed(() => |
| | |
| | | |
| | | const tabList = reactive([ |
| | | { name: "全部客户", value: "" }, |
| | | { name: "零售客户", value: "零售客户" }, |
| | | { name: "经销商客户", value: "经销商客户" }, |
| | | { name: "三大油", value: "三大油" }, |
| | | { name: "外销", value: "外销" }, |
| | | ]); |
| | | const tabValue = ref(0); |
| | | |
| | |
| | | <up-form-item label="账号" prop="bankAccountNum" required> |
| | | <up-input v-model="form.bankAccountNum" placeholder="请输入" clearable /> |
| | | </up-form-item> |
| | | <up-form-item label="银联行号" prop="bankCode"> |
| | | <up-input v-model="form.bankCode" placeholder="请输入" clearable /> |
| | | </up-form-item> |
| | | <up-form-item label="联系人" prop="contactUserName"> |
| | | <up-input v-model="form.contactUserName" placeholder="请输入" clearable /> |
| | | </up-form-item> |
| | |
| | | companyPhone: "", |
| | | bankAccountName: "", |
| | | bankAccountNum: "", |
| | | bankCode: "", |
| | | contactUserName: "", |
| | | contactUserPhone: "", |
| | | maintainUserId: "", |
| | |
| | | <text class="detail-value">{{ item.contactUserPhone || "-" }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">银联行号</text> |
| | | <text class="detail-value">{{ item.bankCode || "-" }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">维护人</text> |
| | | <text class="detail-value">{{ item.maintainUserName || "-" }}</text> |
| | | </view> |
| | |
| | | @click="editVisit(item)"> |
| | | 编辑 |
| | | </u-button> |
| | | <!-- <u-button type="error" |
| | | <u-button type="error" |
| | | size="small" |
| | | class="action-btn" |
| | | @click="deleteVisit(item)"> |
| | | 删除 |
| | | </u-button> --> |
| | | </u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | showInvoiceTypePicker.value = false; |
| | | }; |
| | | |
| | | // 格式化函数 - 固定两位小数 |
| | | // 金额固定两位小数,采购数量保留三位小数 |
| | | const formatTaxPrice = idx => { |
| | | if (productData.value[idx].taxInclusiveUnitPrice) { |
| | | const value = parseFloat(productData.value[idx].taxInclusiveUnitPrice); |
| | |
| | | if (productData.value[idx].quantity) { |
| | | const value = parseFloat(productData.value[idx].quantity); |
| | | if (!isNaN(value)) { |
| | | productData.value[idx].quantity = value.toFixed(2); |
| | | productData.value[idx].quantity = value.toFixed(3); |
| | | } |
| | | } |
| | | if (!productData.value[currentProductIndex.value].taxRate) { |
| | |
| | | plain |
| | | text="查看投入" |
| | | @click="handleShowInput(item)"></up-button> |
| | | <up-button type="info" |
| | | size="small" |
| | | plain |
| | | text="参数详情" |
| | | @click="handleShowParams(item)"></up-button> |
| | | <!-- <up-button type="error" |
| | | size="small" |
| | | plain |
| | |
| | | text="暂无投入数据" /> |
| | | </view> |
| | | </up-modal> |
| | | <!-- 参数详情弹窗 --> |
| | | <up-modal :show="paramsVisible" |
| | | title="参数详情" |
| | | @confirm="paramsVisible = false"> |
| | | <view class="modal-content"> |
| | | <view v-if="currentParams.length > 0"> |
| | | <view v-for="(param, idx) in currentParams" |
| | | :key="idx" |
| | | class="detail-row"> |
| | | <text class="detail-label">{{ param.paramName }}</text> |
| | | <text class="detail-value">{{ param.inputValue }} {{ param.unit && param.unit !== '/' ? '(' + param.unit + ')' : '' }}</text> |
| | | </view> |
| | | </view> |
| | | <up-empty v-else |
| | | mode="data" |
| | | text="暂无参数数据" /> |
| | | </view> |
| | | </up-modal> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | const inputVisible = ref(false); |
| | | const inputList = ref([]); |
| | | |
| | | // 参数详情相关 |
| | | const paramsVisible = ref(false); |
| | | const currentParams = ref([]); |
| | | |
| | | const goBack = () => { |
| | | uni.navigateBack(); |
| | |
| | | modal.closeLoading(); |
| | | modal.msgError("加载投入数据失败"); |
| | | }); |
| | | }; |
| | | |
| | | const handleShowParams = item => { |
| | | currentParams.value = item.productionOperationParamList || []; |
| | | paramsVisible.value = true; |
| | | }; |
| | | |
| | | const handleDelete = item => { |
| | |
| | | clearable /> |
| | | </up-form-item> |
| | | </block> |
| | | <up-form-item label="发货地址" prop="shippingAddress"> |
| | | <up-input v-model="form.shippingAddress" |
| | | placeholder="请输入发货地址" |
| | | clearable /> |
| | | </up-form-item> |
| | | </u-cell-group> |
| | | <!-- 批次选择 --> |
| | | <u-cell-group title="批次选择" |
| | |
| | | shippingCarNumber: "", |
| | | expressCompany: "", |
| | | expressNumber: "", |
| | | shippingAddress: "", |
| | | }); |
| | | |
| | | const rules = { |
| | |
| | | shippingCarNumber: form.type === "货车" ? form.shippingCarNumber : "", |
| | | expressCompany: form.type === "快递" ? form.expressCompany : "", |
| | | expressNumber: form.type === "快递" ? form.expressNumber : "", |
| | | shippingAddress: form.shippingAddress, |
| | | storageBlobDTOs: fileList.value |
| | | .filter(f => f.status === "success") |
| | | .map(f => f.storageBlobDTO), |
| | |
| | | <text class="detail-value">{{ item.shippingDate || '-' }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">发货地址</text> |
| | | <text class="detail-value">{{ item.shippingAddress || '-' }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">数量</text> |
| | | <text class="detail-value">{{ item.quantity }}</text> |
| | | </view> |
| | |
| | | import { onLoad } from "@dcloudio/uni-app"; |
| | | import FooterButtons from "@/components/FooterButtons.vue"; |
| | | import PageHeader from "@/components/PageHeader.vue"; |
| | | import { formatDateToYMD } from "@/utils/ruoyi"; |
| | | import { formatDateToYMD, parseTime } from "@/utils/ruoyi"; |
| | | import { modelList, productTreeList } from "@/api/basicData/product"; |
| | | import { userListNoPageByTenantId } from "@/api/system/user"; |
| | | import { |
| | |
| | | |
| | | const payload = { |
| | | ...form.value, |
| | | ...(!quotationId.value ? { createTime: parseTime(new Date()) } : {}), |
| | | products: form.value.products.map(item => ({ |
| | | productId: item.productId, |
| | | product: item.product, |