Commit 2ca4e0fb authored by 覃振观's avatar 覃振观 👶

888 js BUG

parent 9fa1499a
......@@ -3,7 +3,7 @@ $(document).ready(function() {
initializeUI();
initializeToobarContainer();
initializeTab();
// initializateSelectC();
initializateSelectC();
// runObserver();
});
......@@ -19,10 +19,11 @@ function initializeTab() {
}
function initializateSelectC() {
$('#productId').searchbox({
$('#selectedCategory').searchbox({
type: "product",
name: "productCode",
name: "productCode2",
onChange: function (value, data) {
$('#selectedCategory').val(data.productCategoryName)
}
});
}
......@@ -35,8 +36,6 @@ function initializeUI() {
allowRightCollapse: false,
allowRightResize: false
});
var gm=UICtrl.getGridManager("#layout");
UICtrl.onGridResize(gm);
}
function deleteHandler(){
......@@ -105,12 +104,14 @@ function loadDataTest() {
// Grid: 需要监听 Grid Data 时,必须设置 唯一 id 列。
var dataMapping = {
Product: [
"productId", "brandName","productCategoryId", "productUnit", "productSizeGroupId", "confirmDate", "comfirmPerson"
"productId", "brandName","productCategoryId", "productUnit", "productSizeGroupId"
, "isOnlyCode", "isBodyColor", "isDisable", "isBuildBom"
, "confirmDate", "comfirmPerson"
, "isFreeInspection", "isNoQualityLoss", "sampleOrderNo", "stockNo", "fileNo", "brandName"
],
ProductDetail: [
{"factoryName": "factoryName"}, "productLayout", "materialCode", "productCode", "productEnCode", "bodyColor"
, "customerMaterialCode" ,"versionNo", "isNewSpecification", "specificationNo"
, "customerMaterialCode" ,"versionNo", "isNewSpecification", "specificationNo", "productSubstrate"
],
ProductLooked: [
"productLength", "productWidth", "productHeight", "productThick", "productWeight", "productAngleType", "productAngle"
......
......@@ -16,6 +16,15 @@
</easy-search>
<easy-search name="productCode2" desc="产品">
<sql>
select t.product_category_id, t.product_category_name from product_category t
</sql>
<field name="类型ID" title="类型ID" code="productCategoryId" width="200" />
<field name="产品名称" title="产品名称" code="productCategoryName" width="200" />
</easy-search>
<easy-search name="productS" desc="产品">
<sql>
select pa.product_id,pm.proofing_make_no
......
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 to comment