|
@@ -18,7 +18,7 @@
|
|
|
<div class="f-s-14 c-333 f-w-5 mb-10">报价信息</div>
|
|
<div class="f-s-14 c-333 f-w-5 mb-10">报价信息</div>
|
|
|
<el-form-item label="价格" prop="price">
|
|
<el-form-item label="价格" prop="price">
|
|
|
<div class="flex1 ov-hd">
|
|
<div class="flex1 ov-hd">
|
|
|
- <el-input class="mr-20" style="width: 200px;" v-model="form.price" placeholder="请输入含税单价" clearable>
|
|
|
|
|
|
|
+ <el-input class="mr-20" style="width: 200px;" type="number" v-model="form.price" placeholder="请输入含税单价" clearable>
|
|
|
<template #prefix>¥</template>
|
|
<template #prefix>¥</template>
|
|
|
<template #suffix>/kg</template>
|
|
<template #suffix>/kg</template>
|
|
|
</el-input>
|
|
</el-input>
|
|
@@ -70,7 +70,7 @@
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item v-if="+form.provideSample && +form.sampleFree" label="样品含税单价" prop="samplePrice">
|
|
<el-form-item v-if="+form.provideSample && +form.sampleFree" label="样品含税单价" prop="samplePrice">
|
|
|
- <el-input class="mr-20" style="width: 200px;" v-model="form.samplePrice" placeholder="请输入样品含税单价" clearable>
|
|
|
|
|
|
|
+ <el-input class="mr-20" style="width: 200px;" v-model="form.samplePrice" type="number" placeholder="请输入样品含税单价" clearable>
|
|
|
<template #prefix>¥</template>
|
|
<template #prefix>¥</template>
|
|
|
<template #suffix>/kg</template>
|
|
<template #suffix>/kg</template>
|
|
|
</el-input>
|
|
</el-input>
|
|
@@ -127,7 +127,7 @@ const { dm_medicine_find_type, yes_no, solon_sample_free, solon_report_type } =
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const dialogVisible = ref(props.show);
|
|
const dialogVisible = ref(props.show);
|
|
|
const form = ref<any>({
|
|
const form = ref<any>({
|
|
|
- price: '',
|
|
|
|
|
|
|
+ price: undefined,
|
|
|
priceType: 0, // 0-有具体价格,1-具体再议
|
|
priceType: 0, // 0-有具体价格,1-具体再议
|
|
|
remark: '',
|
|
remark: '',
|
|
|
images: '',
|
|
images: '',
|
|
@@ -136,7 +136,7 @@ const form = ref<any>({
|
|
|
report: [],
|
|
report: [],
|
|
|
provideSample: 0, // 0-不提供样品,1-提供样品
|
|
provideSample: 0, // 0-不提供样品,1-提供样品
|
|
|
sampleFree: '', // 样品费用
|
|
sampleFree: '', // 样品费用
|
|
|
- samplePrice: '',
|
|
|
|
|
|
|
+ samplePrice: undefined,
|
|
|
cpyName: '',
|
|
cpyName: '',
|
|
|
warehouseAddress: '',
|
|
warehouseAddress: '',
|
|
|
contactName: '',
|
|
contactName: '',
|
|
@@ -186,8 +186,14 @@ const submitForm = async () => {
|
|
|
try {
|
|
try {
|
|
|
await formRef.value?.validate();
|
|
await formRef.value?.validate();
|
|
|
proxy?.$modal.loading('修改中...');
|
|
proxy?.$modal.loading('修改中...');
|
|
|
- console.log(form.value);
|
|
|
|
|
- const res = await httpRequests.post('/solon/medicine-response/addForPc', { ...form.value, findId: props.info?.id, tags: form.value?.tags?.toString() }).finally(() => {
|
|
|
|
|
|
|
+ const params = {
|
|
|
|
|
+ ...form.value,
|
|
|
|
|
+ findId: props.info?.id,
|
|
|
|
|
+ tags: form.value?.tags?.toString(),
|
|
|
|
|
+ samplePrice: form.value?.samplePrice || 0,
|
|
|
|
|
+ price: form.value?.price || 0
|
|
|
|
|
+ }
|
|
|
|
|
+ const res = await httpRequests.post('/solon/medicine-response/addForPc', params).finally(() => {
|
|
|
proxy?.$modal.closeLoading();
|
|
proxy?.$modal.closeLoading();
|
|
|
});
|
|
});
|
|
|
if (res?.code === 200) {
|
|
if (res?.code === 200) {
|