fix OrderFulfillmentQuickSourceOrders.vue style
This commit is contained in:
@@ -14,31 +14,40 @@
|
|||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<main v-can="permissionCodes.orderFulfillment.create" class="page-content scroll column content">
|
<main v-can="permissionCodes.orderFulfillment.create" class="page-content scroll column content">
|
||||||
<customer-profile-card v-if="selectedCustomer" class="customer-profile" :customer="selectedCustomer" />
|
<customer-profile-card
|
||||||
<t-cell-group theme="card">
|
v-if="selectedCustomer"
|
||||||
|
class="customer-profile"
|
||||||
|
:customer="selectedCustomer"
|
||||||
|
v-entrance-transition
|
||||||
|
/>
|
||||||
|
<t-cell-group theme="card" v-entrance-transition>
|
||||||
<t-cell title="履约客户" arrow @click="customerSelectorVisible = true">
|
<t-cell title="履约客户" arrow @click="customerSelectorVisible = true">
|
||||||
<template #note>
|
<template #note>
|
||||||
<span v-text="selectedCustomer?.name || '选择'" />
|
<span v-text="selectedCustomer?.name || '选择'" />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
</t-cell-group>
|
</t-cell-group>
|
||||||
<t-cell-group title="产品选择" theme="card">
|
<t-cell-group title="产品选择" theme="card" v-entrance-transition>
|
||||||
<t-cell v-if="customerId" title="选择产品 SKU" arrow @click="productSelectorVisible = true" />
|
<t-cell v-if="customerId" title="选择产品 SKU" arrow @click="productSelectorVisible = true" />
|
||||||
<t-cell v-else title="选择产品 SKU" note="请先选择履约客户" />
|
<t-cell v-else title="选择产品 SKU" note="请先选择履约客户" />
|
||||||
</t-cell-group>
|
</t-cell-group>
|
||||||
|
<div v-entrance-transition>
|
||||||
<order-fulfillment-quick-quantity
|
<order-fulfillment-quick-quantity
|
||||||
ref="fulfillmentQuantityRef"
|
ref="fulfillmentQuantityRef"
|
||||||
:sku-list="selectedSkuList"
|
:sku-list="selectedSkuList"
|
||||||
:is-stock-checking="isStockChecking"
|
:is-stock-checking="isStockChecking"
|
||||||
@change="handleFulfillmentChange"
|
@change="handleFulfillmentChange"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
<div v-entrance-transition>
|
||||||
<order-fulfillment-quick-source-orders
|
<order-fulfillment-quick-source-orders
|
||||||
ref="sourceOrdersRef"
|
ref="sourceOrdersRef"
|
||||||
:customer-id="customerId"
|
:customer-id="customerId"
|
||||||
:fulfillment-item-list="fulfillmentItemList"
|
:fulfillment-item-list="fulfillmentItemList"
|
||||||
@loading-change="sourceOrderLoading = $event"
|
@loading-change="sourceOrderLoading = $event"
|
||||||
/>
|
/>
|
||||||
<t-cell-group title="履约信息" theme="card">
|
</div>
|
||||||
|
<t-cell-group title="履约信息" theme="card" v-entrance-transition>
|
||||||
<t-cell title="履约时间" content-align="right">
|
<t-cell title="履约时间" content-align="right">
|
||||||
<template #note>
|
<template #note>
|
||||||
<div class="time-actions" @click.stop>
|
<div class="time-actions" @click.stop>
|
||||||
@@ -71,13 +80,12 @@
|
|||||||
<center-tips v-else-if="!isStockChecking" class="stock-hint">所选 SKU 无需扣减库存</center-tips>
|
<center-tips v-else-if="!isStockChecking" class="stock-hint">所选 SKU 无需扣减库存</center-tips>
|
||||||
<center-tips v-else class="stock-hint">正在检查库存…</center-tips>
|
<center-tips v-else class="stock-hint">正在检查库存…</center-tips>
|
||||||
</div>
|
</div>
|
||||||
<t-cell title="备注">
|
<t-cell class="remark" title="备注">
|
||||||
<template #note>
|
<template #note>
|
||||||
<t-textarea v-model="remark" borderless autosize maxlength="500" placeholder="选填" />
|
<t-input v-model="remark" borderless placeholder="选填" />
|
||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
</t-cell-group>
|
<div class="photo-wrap bg-white">
|
||||||
<t-cell-group class="attachment-group" theme="card">
|
|
||||||
<media-selector
|
<media-selector
|
||||||
:model-value="photoUrlList"
|
:model-value="photoUrlList"
|
||||||
v-model:photo-items="photoItems"
|
v-model:photo-items="photoItems"
|
||||||
@@ -86,6 +94,7 @@
|
|||||||
required
|
required
|
||||||
title="履约凭证照片"
|
title="履约凭证照片"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</t-cell-group>
|
</t-cell-group>
|
||||||
</main>
|
</main>
|
||||||
<customer-selector
|
<customer-selector
|
||||||
@@ -476,5 +485,13 @@ onUnmounted(() => {
|
|||||||
.stock-wrap {
|
.stock-wrap {
|
||||||
padding: .5rem 1rem;
|
padding: .5rem 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.remark {
|
||||||
|
--td-input-vertical-padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photo-wrap {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -126,6 +126,9 @@
|
|||||||
<template #required="{ row }">
|
<template #required="{ row }">
|
||||||
<span :class="row.sufficient ? 'covered' : 'short'" v-text="row.requiredBaseQuantity + ' ' + row.unitName" />
|
<span :class="row.sufficient ? 'covered' : 'short'" v-text="row.requiredBaseQuantity + ' ' + row.unitName" />
|
||||||
</template>
|
</template>
|
||||||
|
<template #validation="{ row }">
|
||||||
|
<span :class="row.sufficient ? 'covered' : 'short'" v-text="row.sufficient ? '充足' : '缺少'" />
|
||||||
|
</template>
|
||||||
</t-table>
|
</t-table>
|
||||||
<center-tips v-else :content="loadingSourceOrders ? '正在加载来源订单' : '请先选择产品 SKU'" />
|
<center-tips v-else :content="loadingSourceOrders ? '正在加载来源订单' : '请先选择产品 SKU'" />
|
||||||
</div>
|
</div>
|
||||||
@@ -161,8 +164,9 @@ const selectedSourceOrderIdList = ref<string[]>([]);
|
|||||||
const loadingSourceOrders = ref(false);
|
const loadingSourceOrders = ref(false);
|
||||||
const coverageColumns = [
|
const coverageColumns = [
|
||||||
{ colKey: "product", title: "产品名", width: "40%", ellipsis: true },
|
{ colKey: "product", title: "产品名", width: "40%", ellipsis: true },
|
||||||
{ colKey: "source", title: "来源", width: "30%", align: "right" },
|
{ colKey: "source", title: "来源", width: "20%", align: "right" },
|
||||||
{ colKey: "required", title: "需要", width: "30%", align: "right" }
|
{ colKey: "required", title: "需要", width: "20%", align: "right" },
|
||||||
|
{ colKey: "validation", title: "校验", width: "20%", align: "center" }
|
||||||
];
|
];
|
||||||
const coverageList = computed(() => props.fulfillmentItemList.map(item => {
|
const coverageList = computed(() => props.fulfillmentItemList.map(item => {
|
||||||
const requiredBaseQuantity = item.requiredBaseQuantity || "0";
|
const requiredBaseQuantity = item.requiredBaseQuantity || "0";
|
||||||
@@ -369,6 +373,8 @@ onUnmounted(() => {
|
|||||||
&.available {
|
&.available {
|
||||||
|
|
||||||
.tags {
|
.tags {
|
||||||
|
gap: .25rem;
|
||||||
|
display: flex;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
|||||||
Reference in New Issue
Block a user