Commit 4db0697c by 肖康

x

parent 3ea13144
Showing with 32 additions and 19 deletions
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
</ul> </ul>
<div class="data-box th-all"> <div class="data-box th-all">
<!--匹配库存--> <!--匹配库存-->
<template v-if="active==0" > <template v-if="active==0">
<el-table :key="2" :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange"> <el-table :key="2" :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column fixed label="操作" width="108" align="center"> <el-table-column fixed label="操作" width="108" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
<span v-if="scope.row.status==1" class="f-green">比价中</span> <span v-if="scope.row.status==1" class="f-green">比价中</span>
<span v-else-if="scope.row.status==2" class="f-yellow1">已选中</span> <span v-else-if="scope.row.status==2" class="f-yellow1">已选中</span>
<span v-else-if="scope.row.status==3">已确认</span> <span v-else-if="scope.row.status==3">已确认</span>
<span v-else-if="scope.row.status==4" class="f-green" >已成单</span> <span v-else-if="scope.row.status==4" class="f-green">已成单</span>
<span v-else-if="scope.row.status==5" class="f-red1">已关闭</span> <span v-else-if="scope.row.status==5" class="f-red1">已关闭</span>
<span v-else-if="scope.row.status==9" class="f-red1">已删除</span> <span v-else-if="scope.row.status==9" class="f-red1">已删除</span>
<span v-else-if="scope.row.status==-1" class="f-red1">已撤销</span> <span v-else-if="scope.row.status==-1" class="f-red1">已撤销</span>
...@@ -252,8 +252,9 @@ ...@@ -252,8 +252,9 @@
<el-input v-model="ruleForm.mpq" placeholder="请输入MPQ" :value="ruleForm.mpq"></el-input> <el-input v-model="ruleForm.mpq" placeholder="请输入MPQ" :value="ruleForm.mpq"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="其他费用" class="updatebox"> <el-form-item label="其他费用" class="updatebox">
<el-input placeholder="" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')" v-model="ruleForm.price_other" placeholder="请输入其他费用" <el-input placeholder="" onkeyup="if(isNaN(value))execCommand('undo')"
:value="ruleForm.price_other"></el-input> onafterpaste="if(isNaN(value))execCommand('undo')" v-model="ruleForm.price_other"
placeholder="请输入其他费用" :value="ruleForm.price_other"></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="box"> <div class="box">
...@@ -286,7 +287,7 @@ ...@@ -286,7 +287,7 @@
</el-form-item> </el-form-item>
<el-form-item label="报价有效期" prop="expire_time"> <el-form-item label="报价有效期" prop="expire_time">
<el-date-picker type="date" placeholder="选择报价有效期" value-format="yyyy-MM-dd" <el-date-picker type="date" placeholder="选择报价有效期" value-format="yyyy-MM-dd"
v-model="ruleForm.expire_time"></el-date-picker> v-model="ruleForm.expire_time" :picker-options="pickerOptions"></el-date-picker>
</el-form-item> </el-form-item>
</div> </div>
</div> </div>
...@@ -340,6 +341,11 @@ ...@@ -340,6 +341,11 @@
name: "InquireDetail", name: "InquireDetail",
data() { data() {
return { return {
pickerOptions: {
disabledDate(time) {
return time.getTime() < (Date.now() - (24 * 60 * 60 * 1000));
}
},
currentDataId: 0, currentDataId: 0,
active: 0, active: 0,
total: 0, total: 0,
...@@ -434,7 +440,7 @@ ...@@ -434,7 +440,7 @@
}, },
watch: { watch: {
$route(to, from) { $route(to, from) {
if(to.path==from.path){ if (to.path == from.path) {
this.getData() this.getData()
} }
} }
...@@ -479,11 +485,11 @@ ...@@ -479,11 +485,11 @@
} }
}) })
}, },
float(value){ float(value) {
let num=Number(value) let num = Number(value)
if(num){ if (num) {
return num return num
}else{ } else {
return 0 return 0
} }
}, },
...@@ -717,7 +723,7 @@ ...@@ -717,7 +723,7 @@
return; return;
} }
if (this.multipleSelection[0].status == 1 || this.multipleSelection[0].status == 3 ) { if (this.multipleSelection[0].status == 1 || this.multipleSelection[0].status == 3) {
for (var i = 0; i < this.multipleSelection.length; i++) { for (var i = 0; i < this.multipleSelection.length; i++) {
arr.push(this.multipleSelection[i]['id']) arr.push(this.multipleSelection[i]['id'])
...@@ -732,8 +738,8 @@ ...@@ -732,8 +738,8 @@
id: arr.join(",") id: arr.join(",")
}).then(res => { }).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
res.data.quote_info.price_other=this.float(res.data.quote_info.price_other) res.data.quote_info.price_other = this.float(res.data.quote_info.price_other)
res.data.quote_info.price_origin=this.float(res.data.quote_info.price_origin) res.data.quote_info.price_origin = this.float(res.data.quote_info.price_origin)
this.ruleForm.goods_name = res.data.quote_info.goods_name; this.ruleForm.goods_name = res.data.quote_info.goods_name;
this.ruleForm.quote_number = res.data.quote_info.quote_number; this.ruleForm.quote_number = res.data.quote_info.quote_number;
...@@ -829,12 +835,17 @@ ...@@ -829,12 +835,17 @@
//匹配库存 不请求接口 //匹配库存 不请求接口
this.$http('get', "/api/quote/gettransinfoforsku", { this.$http('get', "/api/quote/gettransinfoforsku", {
goods_id:row.goods_id, goods_id: row.goods_id,
inquiry_items_id:this.$route.query.id inquiry_items_id: this.$route.query.id
}).then(res => { }).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
var datap_=res.data.trans_to_quote_info;
this.ruleForm.goods_name =datap_.goods_name; var datap_ = res.data.trans_to_quote_info;
datap_.price_origin = this.float(datap_.price_origin)
this.ruleForm.goods_name = datap_.goods_name;
this.ruleForm.batch = datap_.batch; this.ruleForm.batch = datap_.batch;
this.ruleForm.price_origin = datap_.price_origin; this.ruleForm.price_origin = datap_.price_origin;
this.ruleForm.brand = datap_.brand_name; this.ruleForm.brand = datap_.brand_name;
...@@ -858,6 +869,8 @@ ...@@ -858,6 +869,8 @@
id: row.id id: row.id
}).then(res => { }).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
res.data.quote_info.price_other = this.float(res.data.quote_info.price_other)
res.data.quote_info.price_origin = this.float(res.data.quote_info.price_origin)
this.ruleForm.goods_name = res.data.quote_info.goods_name; this.ruleForm.goods_name = res.data.quote_info.goods_name;
this.ruleForm.quote_number = res.data.quote_info.quote_number; this.ruleForm.quote_number = res.data.quote_info.quote_number;
this.ruleForm.currency = res.data.quote_info.currency.toString(); this.ruleForm.currency = res.data.quote_info.currency.toString();
......
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="//yunxin.ichunt.com/favicon.ico"><title>cloudsystem</title><link href="//yunxin.ichunt.com/css/chunk-0492a5ab.3d6445eb.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-0a105498.06914ce1.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-15e903e6.72a2fc69.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-2ed8d364.5a95e96d.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-38f382e0.143c08b9.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-49a1c939.b4a70c8b.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-5e89952e.9970a763.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-68af1761.12ee92ce.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-6a1c18a2.a51e2487.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-6cf25ae4.819b729c.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-7041f81e.903fb18e.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-7c271fb9.d938ddcf.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-89bf742a.fb33d5e6.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-97cba434.c584dd9b.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-d09dd692.56dd64bd.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-f06bc266.a7f65d28.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-fef16dca.0868bd02.css" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-0492a5ab.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-0a105498.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-15e903e6.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-2ed8d364.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-38f382e0.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-4148ebe3.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-49a1c939.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-5e89952e.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-68af1761.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-6a1c18a2.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-6cf25ae4.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-7041f81e.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-7c271fb9.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-89bf742a.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-97cba434.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-d09dd692.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-f06bc266.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-fef16dca.1622807518068.js" rel="prefetch"><link href="//yunxin.ichunt.com/css/app.83671de9.css" rel="preload" as="style"><link href="//yunxin.ichunt.com/css/chunk-vendors.8ffb1193.css" rel="preload" as="style"><link href="//yunxin.ichunt.com/static/js/app.1622807518068.js" rel="preload" as="script"><link href="//yunxin.ichunt.com/static/js/chunk-vendors.1622807518068.js" rel="preload" as="script"><link href="//yunxin.ichunt.com/css/chunk-vendors.8ffb1193.css" rel="stylesheet"><link href="//yunxin.ichunt.com/css/app.83671de9.css" rel="stylesheet"></head><body><noscript><strong>网络异常,请稍后加载</strong></noscript><div id="app"></div><script>window.userInfo=""</script><script src="//yunxin.ichunt.com/static/js/chunk-vendors.1622807518068.js"></script><script src="//yunxin.ichunt.com/static/js/app.1622807518068.js"></script></body></html> <!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="//yunxin.ichunt.com/favicon.ico"><title>cloudsystem</title><link href="//yunxin.ichunt.com/css/chunk-0492a5ab.3d6445eb.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-15e903e6.72a2fc69.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-2ed8d364.5a95e96d.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-38f382e0.143c08b9.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-49a1c939.b4a70c8b.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-5e89952e.9970a763.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-68af1761.12ee92ce.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-6a1c18a2.a51e2487.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-6cf25ae4.819b729c.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-7041f81e.903fb18e.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-7c271fb9.d938ddcf.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-89bf742a.fb33d5e6.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-97cba434.c584dd9b.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-9e5562d2.06914ce1.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-d09dd692.56dd64bd.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-f06bc266.a7f65d28.css" rel="prefetch"><link href="//yunxin.ichunt.com/css/chunk-fef16dca.0868bd02.css" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-0492a5ab.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-15e903e6.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-2ed8d364.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-38f382e0.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-4148ebe3.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-49a1c939.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-5e89952e.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-68af1761.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-6a1c18a2.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-6cf25ae4.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-7041f81e.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-7c271fb9.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-89bf742a.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-97cba434.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-9e5562d2.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-d09dd692.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-f06bc266.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/static/js/chunk-fef16dca.1622809966018.js" rel="prefetch"><link href="//yunxin.ichunt.com/css/app.83671de9.css" rel="preload" as="style"><link href="//yunxin.ichunt.com/css/chunk-vendors.8ffb1193.css" rel="preload" as="style"><link href="//yunxin.ichunt.com/static/js/app.1622809966018.js" rel="preload" as="script"><link href="//yunxin.ichunt.com/static/js/chunk-vendors.1622809966018.js" rel="preload" as="script"><link href="//yunxin.ichunt.com/css/chunk-vendors.8ffb1193.css" rel="stylesheet"><link href="//yunxin.ichunt.com/css/app.83671de9.css" rel="stylesheet"></head><body><noscript><strong>网络异常,请稍后加载</strong></noscript><div id="app"></div><script>window.userInfo=""</script><script src="//yunxin.ichunt.com/static/js/chunk-vendors.1622809966018.js"></script><script src="//yunxin.ichunt.com/static/js/app.1622809966018.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
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