Commit 17458eaf by 施宇

询价有效期

parent 12e0258e
......@@ -88,6 +88,7 @@
</div>
<div class="num fl boxsiz ellipsis"> 数量:<span class="bold"> {{d.number}} PCS</span></div>
<div class="hq fl boxsiz ellipsis"> 货期:<span>{{d.delivery_time}}</span></div>
<div class="yxq fl boxsiz ellipsis"> 询价有效期:<span>{{d.end_time_date || '--'}}</span></div>
<div class="bz fl boxsiz ellipsis"> 备注:<span> {{d.remark||'--'}}</span></div>
</div>
</div>
......
......@@ -68,7 +68,7 @@
<div class="yxq input_div ">
<span class="input_title lineBlock">*询价有效期:</span>
<div class="input_parent">
<input type="text" name="price" placeholder="请选择截止日期"
<input type="text" name="end_time" placeholder="请选择截止日期"
class="input boxsiz yxq_input" lay-verify="required" id="yxq">
<div class="yxq_logo layui-form">
<span class="icon iconfont iconjuxing13"></span>
......
!function () {
! function () {
window.ReleaseInquiry = {
isClick: false,
imgUrl: "",
......@@ -9,13 +9,14 @@
//日期控件初始化
layui.laydate.render({
elem: '#yxq',
theme: '#0D84D1'
theme: '#0D84D1',
trigger: 'click',
min:new Date().toLocaleDateString().split('/').join('-'),
max:365
});
return this;
},
mounted: function (opt) {
return this;
},
uploadFun: function () {
......@@ -65,8 +66,7 @@
iframe.attachEvent("onload", opt.iframeOnload);
} else {
iframe.onload = opt.iframeOnload;
}
;
};
opt.formSubmit();
$('#mineFiles').on('change', function () {
layer.load(1, {
......@@ -154,7 +154,10 @@
//上传商品发布
layui.form.on('submit(add)', function (data) {
var date = data.field.end_time;
date = date.replace(/-/g,'/');
var timeStap =new Date(date+' 23:59:59').getTime()/1000
data.field.end_time = timeStap;//设置选中的时间变为时间戳
$(data.elem).addClass("layui-btn-disabled");
var parmas = $.extend({}, data.field, {
goods_images: opt.imgUrl
......@@ -215,8 +218,8 @@
return '品牌不能小于2个字符'
}
},
limitStock:function(value, item){
if(value>10000000){
limitStock: function (value, item) {
if (value > 10000000) {
return '库存最大为10000000(一千万)'
}
},
......@@ -226,10 +229,10 @@
}
},
pointLimit: function (value, item) {
if(!Util.fourPoint(value)){
if (!Util.fourPoint(value)) {
return '价格为整数或不超过4位小数'
}
if(value>1000000){
if (value > 1000000) {
return '价格最大为1000000(一百万)'
}
}
......
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