胶带新增材质
This commit is contained in:
@@ -818,20 +818,21 @@ public class ProductService {
|
|||||||
}
|
}
|
||||||
return priceList;
|
return priceList;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!"7".equals(dto.getKind()) && !"8".equals(dto.getKind()) && !"1".equals(dto.getKind())) {
|
|
||||||
if ((length < 4 || width < 4)) {
|
|
||||||
for (int i = 0; i < dto.getCraft().length; i++) {
|
|
||||||
if ("直角裁切".equals(dto.getCraft()[i])) {
|
|
||||||
dto.getCraft()[i] = "模切";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
int min = getNum(length, width);
|
int min = getNum(length, width);
|
||||||
String[] kind_list = {"3", "4", "5", "7"};
|
String[] kind_list = {"3", "4", "5", "7"};
|
||||||
dto.setD("");
|
dto.setD("");
|
||||||
priceList = getHekaPrice(min, dto, priceList, count);
|
if (!"7".equals(dto.getKind()) && !"8".equals(dto.getKind()) && !"1".equals(dto.getKind())) {
|
||||||
|
if ((length < 4 || width < 4)) {
|
||||||
|
Product product = new Product();
|
||||||
|
product.setProTypeValue("3");
|
||||||
|
product.setCount(dto.getCount());
|
||||||
|
product.setKindValue("0");
|
||||||
|
priceList = productMapper.getThanPrice(product);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (priceList.size() == 0) {
|
||||||
|
priceList = getHekaPrice(min, dto, priceList, count);
|
||||||
|
}
|
||||||
boolean isyaofeng = false;
|
boolean isyaofeng = false;
|
||||||
|
|
||||||
double moqiePrice = 0;
|
double moqiePrice = 0;
|
||||||
@@ -4900,6 +4901,25 @@ public class ProductService {
|
|||||||
};
|
};
|
||||||
count_list = new int[]{10, 20, 30, 40, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000};
|
count_list = new int[]{10, 20, 30, 40, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000};
|
||||||
}
|
}
|
||||||
|
if ("4".equals(dto.getKind())) {
|
||||||
|
prices = new double[][]{
|
||||||
|
{362, 678},
|
||||||
|
{423, 802},
|
||||||
|
{507, 980},
|
||||||
|
{545, 1033},
|
||||||
|
{643, 1225},
|
||||||
|
};
|
||||||
|
if (carftList.contains("满底全彩")) {
|
||||||
|
prices = new double[][]{
|
||||||
|
{422, 832},
|
||||||
|
{472, 922},
|
||||||
|
{534, 1072},
|
||||||
|
{575, 1160},
|
||||||
|
{665, 1363},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
count_list = new int[]{50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000};
|
||||||
|
}
|
||||||
List<Product> list = new ArrayList<>();
|
List<Product> list = new ArrayList<>();
|
||||||
double last_price = 0;
|
double last_price = 0;
|
||||||
int last_count = 0;
|
int last_count = 0;
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
<option value="1">白底胶带</option>
|
<option value="1">白底胶带</option>
|
||||||
<option value="2">彩色胶带</option>
|
<option value="2">彩色胶带</option>
|
||||||
<option value="3">透明胶带</option>
|
<option value="3">透明胶带</option>
|
||||||
|
<option value="4">全彩胶带</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -187,6 +188,7 @@
|
|||||||
let kind = document.getElementById("kind").value;
|
let kind = document.getElementById("kind").value;
|
||||||
let html = '';
|
let html = '';
|
||||||
let count = document.getElementById("count").value;
|
let count = document.getElementById("count").value;
|
||||||
|
|
||||||
if (kind == '1') {
|
if (kind == '1') {
|
||||||
html = `
|
html = `
|
||||||
<option value="白底黑字">白底黑字</option>
|
<option value="白底黑字">白底黑字</option>
|
||||||
@@ -257,7 +259,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if (kind == '4') {
|
||||||
|
html += `<option value="满底全彩">满底全彩</option>`;
|
||||||
|
html += `<option value="白底全彩">白底全彩</option>`;
|
||||||
|
}
|
||||||
$("#color").empty().append(html);
|
$("#color").empty().append(html);
|
||||||
|
|
||||||
form.render();
|
form.render();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -266,6 +273,35 @@
|
|||||||
})
|
})
|
||||||
form.on('select(kind)', function (data) {
|
form.on('select(kind)', function (data) {
|
||||||
setColor();
|
setColor();
|
||||||
|
let countHtml = `<option value="10">10</option>
|
||||||
|
<option value="20">20</option>
|
||||||
|
<option value="40">40</option>
|
||||||
|
<option value="100">100</option>
|
||||||
|
<option value="200">200</option>
|
||||||
|
<option value="300">300</option>
|
||||||
|
<option value="400">400</option>
|
||||||
|
<option value="500">500</option>
|
||||||
|
<option value="600">600</option>
|
||||||
|
<option value="700">700</option>
|
||||||
|
<option value="800">800</option>
|
||||||
|
<option value="900">900</option>
|
||||||
|
<option value="1000">1000</option>`;
|
||||||
|
if (data.value == '4') {
|
||||||
|
countHtml = `
|
||||||
|
<option value="50">50</option>
|
||||||
|
<option value="100">100</option>
|
||||||
|
<option value="200">200</option>
|
||||||
|
<option value="300">300</option>
|
||||||
|
<option value="400">400</option>
|
||||||
|
<option value="500">500</option>
|
||||||
|
<option value="600">600</option>
|
||||||
|
<option value="700">700</option>
|
||||||
|
<option value="800">800</option>
|
||||||
|
<option value="900">900</option>
|
||||||
|
<option value="1000">1000</option>`;
|
||||||
|
}
|
||||||
|
$("#count").empty().append(countHtml);
|
||||||
|
form.render();
|
||||||
})
|
})
|
||||||
form.on('checkbox(ui_craft)', function (data) {
|
form.on('checkbox(ui_craft)', function (data) {
|
||||||
let craft_list = [];
|
let craft_list = [];
|
||||||
|
|||||||
@@ -169,7 +169,7 @@
|
|||||||
});
|
});
|
||||||
} else if (obj.event === 'view') {
|
} else if (obj.event === 'view') {
|
||||||
// 在此处输入 layer 的任意代码
|
// 在此处输入 layer 的任意代码
|
||||||
navigator.clipboard.writeText(data.content);
|
navigator.clipboard.writeText(data1.content);
|
||||||
layer.msg('复制成功!', {icon: 6, offset: 'auto', time: 1000});
|
layer.msg('复制成功!', {icon: 6, offset: 'auto', time: 1000});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user