|
|
@@ -35,7 +35,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
// {field: 'company_id', title: __('Company_id')},
|
|
|
// {field: 'no', title: __('No'), operate: 'LIKE'},
|
|
|
// {field: 'formula_no', title: __('Formula_no'), operate: 'LIKE'},
|
|
|
- {field: 'name', title: __('Name'), operate: 'LIKE'},
|
|
|
+ {field: 'name', title: __('Name'), operate: 'LIKE',},
|
|
|
+ // {field: 'name', title: __('Name'), operate: 'LIKE',
|
|
|
+ // cellStyle: function (value, row, index) {
|
|
|
+ // console.log(row['id']);
|
|
|
+ // return {css: {"color": "red"}};
|
|
|
+ // }},
|
|
|
{field: 'version', title: __('Version'),operate: false},
|
|
|
// {field: 'date', title: __('Date'), operate: 'LIKE'},
|
|
|
// {field: 'charge_name', title: __('Charge_name'), operate: 'LIKE'},
|
|
|
@@ -151,6 +156,19 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
var date = $('#c-date').val();
|
|
|
var model = $('#c-model').val();
|
|
|
var usability = $('#c-usability').selectPageText();
|
|
|
+ //判断复选框是否选择
|
|
|
+ if($('#controlled_one').is(":checked")){
|
|
|
+ $('#controlled_one').val('voc标准');//voc标准
|
|
|
+ }else{
|
|
|
+ $('#controlled_one').val('');//voc标准
|
|
|
+ }
|
|
|
+ if($('#controlled_two').is(":checked")){
|
|
|
+ $('#controlled_two').val('受控');//受控
|
|
|
+ }else{
|
|
|
+ $('#controlled_two').val('');//受控
|
|
|
+ }
|
|
|
+ var controlled_one = $('#controlled_one').val();//voc标准
|
|
|
+ var controlled_two = $('#controlled_two').val();//受控
|
|
|
if (usability == ''){
|
|
|
usability = 99;
|
|
|
}
|
|
|
@@ -169,6 +187,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
baseData.push(date);
|
|
|
baseData.push(usability);
|
|
|
baseData.push(model);
|
|
|
+ baseData.push(controlled_one);
|
|
|
+ baseData.push(controlled_two);
|
|
|
console.log(baseData);
|
|
|
//配方数据
|
|
|
var data = [];
|
|
|
@@ -293,6 +313,19 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
var date = $('#c-date').val();
|
|
|
var model = $('#c-model').val();
|
|
|
var usability = $('#c-usability').selectPageText();
|
|
|
+ //判断复选框是否选择
|
|
|
+ if($('.controlled_one').is(":checked")){
|
|
|
+ $('.controlled_one').val('voc标准');//voc标准
|
|
|
+ }else{
|
|
|
+ $('.controlled_one').val('');//voc标准
|
|
|
+ }
|
|
|
+ if($('.controlled_two').is(":checked")){
|
|
|
+ $('.controlled_two').val('受控');//受控
|
|
|
+ }else{
|
|
|
+ $('.controlled_two').val('');//受控
|
|
|
+ }
|
|
|
+ var controlled_one = $('.controlled_one').val();//voc标准
|
|
|
+ var controlled_two = $('.controlled_two').val();//受控
|
|
|
if (usability == ''){
|
|
|
usability = 99;
|
|
|
}
|
|
|
@@ -311,6 +344,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
baseData.push(date);
|
|
|
baseData.push(usability);
|
|
|
baseData.push(model);
|
|
|
+ baseData.push(controlled_one);
|
|
|
+ baseData.push(controlled_two);
|
|
|
console.log(baseData);
|
|
|
//配方数据
|
|
|
var data = [];
|
|
|
@@ -368,21 +403,21 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
return false;
|
|
|
}
|
|
|
var pc = $('#hidden').val();//当前批次号
|
|
|
- if($('#hidden').val() > $('#c-bach').val()){
|
|
|
- layer.confirm("批次号不能小于当前的批次,当前批次为"+pc, {
|
|
|
- title: ['信息'],
|
|
|
- btn: ['确认'],
|
|
|
- icon: 0,
|
|
|
- closeBtn: 2,
|
|
|
- shade: [0.3, '#000'],
|
|
|
- shadeClose: true,
|
|
|
- id: "one",
|
|
|
- anim: 2,
|
|
|
- isOutAnim: false,
|
|
|
- area: ['30%', '30%'],
|
|
|
- });
|
|
|
- return false;
|
|
|
- }
|
|
|
+ // if($('#hidden').val() > $('#c-bach').val()){
|
|
|
+ // layer.confirm("批次号不能小于当前的批次,当前批次为"+pc, {
|
|
|
+ // title: ['信息'],
|
|
|
+ // btn: ['确认'],
|
|
|
+ // icon: 0,
|
|
|
+ // closeBtn: 2,
|
|
|
+ // shade: [0.3, '#000'],
|
|
|
+ // shadeClose: true,
|
|
|
+ // id: "one",
|
|
|
+ // anim: 2,
|
|
|
+ // isOutAnim: false,
|
|
|
+ // area: ['30%', '30%'],
|
|
|
+ // });
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
//给打印界面赋值
|
|
|
$('.total').text(number);
|
|
|
var remark = $('#c-remark').val();
|
|
|
@@ -441,21 +476,21 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
Controller.api.bindevent();
|
|
|
$(document).on('click','.submit',function () {
|
|
|
var pc = $('#hidden').val();//当前批次号
|
|
|
- if($('#hidden').val() > $('#c-bach').val()){
|
|
|
- layer.confirm("批次号不能小于当前的批次,当前批次为"+pc, {
|
|
|
- title: ['信息'],
|
|
|
- btn: ['确认'],
|
|
|
- icon: 0,
|
|
|
- closeBtn: 2,
|
|
|
- shade: [0.3, '#000'],
|
|
|
- shadeClose: true,
|
|
|
- id: "one",
|
|
|
- anim: 2,
|
|
|
- isOutAnim: false,
|
|
|
- area: ['30%', '30%'],
|
|
|
- });
|
|
|
- return false;
|
|
|
- }else{
|
|
|
+ // if($('#hidden').val() > $('#c-bach').val()){
|
|
|
+ // layer.confirm("批次号不能小于当前的批次,当前批次为"+pc, {
|
|
|
+ // title: ['信息'],
|
|
|
+ // btn: ['确认'],
|
|
|
+ // icon: 0,
|
|
|
+ // closeBtn: 2,
|
|
|
+ // shade: [0.3, '#000'],
|
|
|
+ // shadeClose: true,
|
|
|
+ // id: "one",
|
|
|
+ // anim: 2,
|
|
|
+ // isOutAnim: false,
|
|
|
+ // area: ['30%', '30%'],
|
|
|
+ // });
|
|
|
+ // return false;
|
|
|
+ // }else{
|
|
|
Form.api.bindevent($("form[role=form]"), function(data, ret){
|
|
|
Toastr.success('111');//成功
|
|
|
}, function(data, ret){
|
|
|
@@ -513,7 +548,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
});
|
|
|
return false;
|
|
|
});
|
|
|
- }
|
|
|
+ // }
|
|
|
|
|
|
});
|
|
|
},
|
|
|
@@ -578,11 +613,18 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
|
|
|
Controller.api.bindevent();
|
|
|
$(document).on('click','.examine',function () {
|
|
|
- console.log(44444)
|
|
|
+ console.log(44444);
|
|
|
var ids = $('#ids').attr('data-value');
|
|
|
var status = $(this).attr('data-value');
|
|
|
- console.log(ids)
|
|
|
+ console.log(ids);
|
|
|
console.log(status);
|
|
|
+ // var cname = $('#c-name').val();
|
|
|
+ // var cformula_no = $('#c-formula_no').val();
|
|
|
+ //基础数据
|
|
|
+ // var baseData = [];
|
|
|
+ // baseData.push(cname);
|
|
|
+ // baseData.push(cformula_no);
|
|
|
+
|
|
|
|
|
|
if (status == ''){
|
|
|
layer.confirm('数据错误,请重新打开页面');return false;
|