Commit 3d6fae8d by LJM

js

parent 4c7a5382
Showing with 31 additions and 17 deletions
...@@ -45,10 +45,10 @@ ...@@ -45,10 +45,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="询价时间"> <el-form-item label="询价时间">
<el-date-picker style="width:193px" prefix-icon="prefix-icon-time-style" v-model="create_time_val" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> <el-date-picker style="width:193px" prefix-icon="prefix-icon-time-style" v-model="create_time_val" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="询价有效期"> <el-form-item label="询价有效期">
<el-date-picker style="width:193px" prefix-icon="prefix-icon-time-style" v-model="deadline_time_val" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> <el-date-picker style="width:193px" prefix-icon="prefix-icon-time-style" v-model="deadline_time_val" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit">搜索</el-button> <el-button type="primary" @click="onSubmit">搜索</el-button>
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<!--未成单--> <!--未成单-->
<span v-if="scope.row.is_purchased == 0">{{ scope.row.is_purchased_val }}</span> <span v-if="scope.row.is_purchased == 0">{{ scope.row.is_purchased_val }}</span>
<!--成单--> <!--成单-->
<a v-if="scope.row.is_purchased == 1" class="alink" :href="'/#/orderTrackGoods?inquiry_item_id='+scope.row.id">{{ scope.row.is_purchased_val }}</a> <a v-if="scope.row.is_purchased == 1" class="alink" :href="'/#/orderTrackGoods?inquiry_item_id='+scope.row.id">{{ scope.row.is_purchased_val }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="customer_tag" label="客户性质" width="80" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="customer_tag" label="客户性质" width="80" :show-overflow-tooltip="true" align="center"></el-table-column>
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 50, 100, 200]" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page"></el-pagination> <el-pagination layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 50, 100, 200]" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
</div> </div>
<!--报价小助手信息--> <!--报价小助手信息-->
<template v-if="listVisible"> <template v-if="listVisible">
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="remark" label="备注" width="120" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="remark" label="备注" width="120" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="create_time" label="报价时间" width="160" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="quote_time" label="报价时间" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
</el-table> </el-table>
</template> </template>
<!--匹配库存--> <!--匹配库存-->
...@@ -733,25 +733,37 @@ export default { ...@@ -733,25 +733,37 @@ export default {
this.ruleForm.goods_name = row.goods_name;//赋值型号 this.ruleForm.goods_name = row.goods_name;//赋值型号
this.ruleForm.brand_name = row.brand_name;//赋值品牌 this.ruleForm.brand_name = row.brand_name;//赋值品牌
this.ruleForm.quote_number = data.quote_number;//报价数量 this.ruleForm.quote_number = data.quote_number;//报价数量
data.price_origin = this.float(data.price_origin);//价格转换
this.ruleForm.price_origin = data.price_origin;//价格 //取当前报价的字段quote_number,与匹配库存里的阶梯价格符合条件的第一条
let quote_number = data.quote_number * 1;
let purchases_filter = [];
if (row.cn_ladder_price.length > 0) {
purchases_filter = row.cn_ladder_price.filter((item) => {
if (quote_number <= item.purchases) {
return item;
}
});
}
if (purchases_filter.length > 0) {
this.ruleForm.price_origin = purchases_filter[0].price * 1;//价格
} else {
this.ruleForm.price_origin = 0;//价格
}
this.ruleForm.currency = data.currency.toString();//币种 this.ruleForm.currency = data.currency.toString();//币种
this.ruleForm.tax_rate = Number(data.tax_rate) * 100 + '%';//税率 this.ruleForm.tax_rate = Number(data.tax_rate) * 100 + '%';//税率
this.ruleForm.batch = row.batch;//批次 this.ruleForm.batch = row.batch_sn;//批次
this.ruleForm.delivery_int = data.delivery_info.delivery_int; //货期 this.ruleForm.delivery_int = data.delivery_info.delivery_int; //货期
this.ruleForm.delivery_unit_val = data.delivery_info.delivery_unit_val;//货期单位 this.ruleForm.delivery_unit_val = data.delivery_info.delivery_unit_val;//货期单位
this.ruleForm.mpq = data.mpq;//最小包装数量 this.ruleForm.mpq = row.mpq;//最小包装数量
this.ruleForm.moq = data.moq;//起订量 this.ruleForm.moq = row.moq;//起订量
data.price_other = this.float(data.price_other);//其他费用 data.price_other = this.float(data.price_other);//其他费用
this.ruleForm.price_other = data.price_other;//其他费用 this.ruleForm.price_other = data.price_other;//其他费用
this.ruleForm.remark = data.remark;//备注 this.ruleForm.remark = data.remark;//备注
//报价有效期 //报价有效期
if (data.expire_time == '0000-00-00 00:00:00') { const start = new Date();
this.ruleForm.expire_time = ''; start.setTime(start.getTime() + 3600 * 1000 * 24 * 2);
} else { this.ruleForm.expire_time = start;
this.ruleForm.expire_time = data.expire_time;
}
} }
}, },
...@@ -785,8 +797,10 @@ export default { ...@@ -785,8 +797,10 @@ export default {
this.ruleForm.remark = row.remark;//备注 this.ruleForm.remark = row.remark;//备注
//报价有效期 //报价有效期
if (row.expire_time == '0000-00-00 00:00:00') { if (row.expire_time == '') {
this.ruleForm.expire_time = ''; const start = new Date();
start.setTime(start.getTime() + 3600 * 1000 * 24 * 2);
this.ruleForm.expire_time = start;
} else { } else {
this.ruleForm.expire_time = row.expire_time; this.ruleForm.expire_time = row.expire_time;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment