44323
2024-01-16 f45b80c5f8836bfb16b6cfff7df29aec631131ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
 * 用户详情对话框(可用于添加和修改对话框)
 */
var GasStationOilPriceInfo = {
    userInfoData: {}
};
/**
 * 关闭此对话框
 */
GasStationOilPriceInfo.close = function () {
    parent.layer.close(window.parent.GasStationOilPrice.layerIndex);
};
 
 
 
/**
 * 提交修改
 */
GasStationOilPriceInfo.editSubmit = function () {
    const labelOne = $('#labelOne').val();
    const labelTwo = $('#labelTwo').val();
    const dieselOil10Price = $('#dieselOil10Price').val();
    const dieselOil0Price = $('#dieselOil0Price').val();
    const gasoline92Price = $('#gasoline92Price').val();
    const gasoline95Price = $('#gasoline95Price').val();
    const gasoline98Price = $('#gasoline98Price').val();
    const effectivePeriod = $('#effectivePeriod').val();
    const icon = $('#icon').val();
 
    //提交信息
    var ajax = new $ax(Feng.ctxPath + "/salesPromotion/editGasStationOilPrice", function (data) {
        if(data.code == 200){
            Feng.success("编辑成功!");
            window.parent.GasStationOilPrice.table.refresh();
            GasStationOilPriceInfo.close();
        }else{
            Feng.error(data.msg);
        }
    }, function (data) {
        Feng.error("编辑失败!" + data.responseJSON.message + "!");
    });
    ajax.set({
        id: $("#id").val(),
        labelOne: labelOne,
        labelTwo: labelTwo,
        dieselOil10Price: dieselOil10Price,
        dieselOil0Price: dieselOil0Price,
        gasoline92Price: gasoline92Price,
        gasoline95Price: gasoline95Price,
        gasoline98Price: gasoline98Price,
        icon: icon,
        effectivePeriod: effectivePeriod == null ? '' : effectivePeriod.toString()
    });
    ajax.start();
};
 
 
 
$(function () {
    var effectivePeriod_ = $('#effectivePeriod_').val();
    var arr = effectivePeriod_.split(";");
    $('#effectivePeriod').selectpicker('val', arr);
    $('#effectivePeriod .selectpicker').selectpicker('refresh');
 
    // 初始化icon上传
    var iconUp = new $WebUpload("icon");
    iconUp.setUploadBarId("progressBar");
    iconUp.init();
});