调整采购单

This commit is contained in:
lewis 2024-12-26 11:41:41 +08:00
parent 06aba4523d
commit f92bcebb68
4 changed files with 47 additions and 6 deletions

View File

@ -62,7 +62,7 @@
<!-- <el-radio :label="4">线上订单</el-radio> -->
<el-radio :label="5">仓库补货</el-radio>
<el-radio :label="6">往期补单</el-radio>
<el-radio :label="7">采购</el-radio>
<el-radio :label="8">其他订</el-radio>
</el-radio-group>
</el-form-item>
</el-col>

View File

@ -52,6 +52,15 @@
<el-table-column label="采购状态" prop="buyer_confirm_name" show-overflow-tooltip />
<el-table-column label="支付方式" prop="pay_type_name" show-overflow-tooltip />
<el-table-column label="是否入库" prop="is_storage_name" show-overflow-tooltip />
<el-table-column label="来源订单信息" prop="unit_name" show-overflow-tooltip>
<template #default="{ row }">
<div v-for="item in row.source_order_info">
<div>订单id{{item.source_order_id}}</div>
<div>数量{{item.need_num}}</div>
<div>订单备注{{item.mark}}</div>
</div>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="180">
<template #default="{ row }">
<el-button type="primary" link @click="procureClick(row)">采购设置</el-button>
@ -116,12 +125,8 @@
<el-select
v-model="formData.supplier_id"
filterable
remote
reserve-keyword
placeholder="输入供应商名称搜索"
remote-show-suffix
:remote-method="remoteMethodSupplier"
:loading="supplierLoading"
style="width: 240px"
>
<el-option
@ -366,6 +371,11 @@ const productOfferInfo = () => {
})
}
const procureClick = (data: any) => {
if (supplierList.value.length <= 0) {
apiSupplierLists({ mer_name: '' }).then((res) => {
supplierList.value = res.lists
})
}
formData.value.id = data.id
formData.value.buyer_nums = data.need_num
formData.value.purchase = data.price
@ -376,6 +386,7 @@ const procureClick = (data: any) => {
formData.value.marques = data.marques
formData.value.after_sales = data.after_sales
formData.value.pay_type = data.pay_type
formData.value.supplier_id = data.supplier_id
dictData.outbound_floating.forEach((item) => {
if (item.value == data.top_cate_name) {

View File

@ -33,6 +33,7 @@
<el-option :value="4" label="线上订单"></el-option>
<el-option :value="5" label="仓库补货"></el-option>
<el-option :value="7" label="采购订单"></el-option>
<el-option :value="8" label="其他订单"></el-option>
</el-select>
</el-form-item>
<el-form-item label="门店名称" prop="store_id">

View File

@ -132,6 +132,19 @@
:readonly="false"
/>
</el-form-item>
<el-form-item label="产地" prop="made_place">
<el-input
v-model="formData.made_place"
class="w-[500px]"
clearable
placeholder="请输入产地"
/>
</el-form-item>
<el-form-item label="保质期" prop="shelf_life">
<el-input v-model="formData.shelf_life" class="w-[500px]" placeholder="请输入保质期">
<template #suffix></template>
</el-input>
</el-form-item>
<el-form-item label="毛利率" prop="rose">
<el-input-number
v-model="formData.rose"
@ -271,7 +284,9 @@ const formData = reactive({
rose: '0',
is_return: 1, // 1退,2退
is_store_all: 1, // 1 2
is_show: 1
is_show: 1,
made_place: '',
shelf_life: ''
})
//
@ -453,6 +468,20 @@ const formRules = reactive<any>({
message: '请输入商品图片',
trigger: ['blur', 'change']
}
],
made_place: [
{
required: true,
message: '请输入产地',
trigger: ['blur', 'change']
}
],
shelf_life: [
{
required: true,
message: '请输入保质期',
trigger: ['blur', 'change']
}
]
})