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

888 js BUG

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