Commit b02a52a3 authored by 1650842865's avatar 1650842865

工序报价备注字段取消必填;工序外协带出单位;品质异常报告中原材料异常取消客户相关必填,通过采购单号筛选出物料信息

parent 5273b3c7
...@@ -164,9 +164,9 @@ function showPurchaseDiv() { ...@@ -164,9 +164,9 @@ function showPurchaseDiv() {
} }
function setPurchaseMustInput(flag) { function setPurchaseMustInput(flag) {
UICtrl.setElRequiredFlag("#customerNamePur", flag); //UICtrl.setElRequiredFlag("#customerNamePur", flag);
UICtrl.setElRequiredFlag("#customerOrderNoPur", flag); //UICtrl.setElRequiredFlag("#customerOrderNoPur", flag);
UICtrl.setElRequiredFlag("#brandName", flag); //UICtrl.setElRequiredFlag("#brandName", flag);
UICtrl.setElHideOrShow("#loseMoney",true); UICtrl.setElHideOrShow("#loseMoney",true);
...@@ -809,19 +809,21 @@ function getPurchaseGridColumns() { ...@@ -809,19 +809,21 @@ function getPurchaseGridColumns() {
,editor: { ,editor: {
required: true, type: "select", required: true, type: "select",
data: { data: {
type: 'system', type: 'material',
name: "sapMaterialSelect", name: "selectMaterialsByPurchaseOrder",
getParam: function (item) { getParam: function (item) {
return { return {
// filterValue:item.company ebeln:item.produceNo
} }
}, },
back: { back: {
MATNR: "productCode", matnr: "productCode",
MAKTX: "productName", txz01: "productName",
// EKGRP: "ekgrp", menge: "number",
MEINS: "unit", meins: "unit",
MSEHL: "unitName" msehl: "unitName",
waers: "currency",
name: "currencyName",
} }
} }
......
...@@ -127,6 +127,8 @@ function getOrderColumns(){ ...@@ -127,6 +127,8 @@ function getOrderColumns(){
MAKTX: "productName", MAKTX: "productName",
MTART: "productType", MTART: "productType",
MTBEZ: "productTypeName", MTBEZ: "productTypeName",
MSEH3: "meins",
MSEHL: "meinsName",
} }
} }
} }
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<x:inputC name="currencyName" label="币别" labelCol="1" fieldCol="2" required="true" wrapper="select"/> <x:inputC name="currencyName" label="币别" labelCol="1" fieldCol="2" required="true" wrapper="select"/>
</div> </div>
<div class="hg-form-row"> <div class="hg-form-row">
<x:textareaC name="remark" label="备注" labelCol="1" fieldCol="11" required="true" rows="3"/> <x:textareaC name="remark" label="备注" labelCol="1" fieldCol="11" required="false" rows="3"/>
</div> </div>
</div> </div>
<div class="blank_div clearfix"></div> <div class="blank_div clearfix"></div>
......
...@@ -192,4 +192,23 @@ ...@@ -192,4 +192,23 @@
<condition column="mtart" name="mtart" symbol="=" alias="t"/> <condition column="mtart" name="mtart" symbol="=" alias="t"/>
<condition column="matkl" name="matkl" symbol="=" alias="t"/> <condition column="matkl" name="matkl" symbol="=" alias="t"/>
</easy-search> </easy-search>
<easy-search name="selectMaterialsByPurchaseOrder" desc="通过采购订单查询物料">
<sql>
SELECT oi.matnr, oi.txz01, oi.menge, oi.meins, oi.msehl, o.waers,d.`name`,o.ebeln
FROM sap_purchase_order_item oi
LEFT JOIN sap_purchase_order o ON o.id = oi.purchase_order_id
LEFT JOIN ( SELECT dd.`NAME`, dd.`VALUE` FROM sa_dictionarydetail dd
LEFT JOIN sa_dictionary d ON d.id = dd.DICTIONARY_ID
WHERE d.`CODE` = 'currency' ) d ON d.`VALUE`= o.WAERS where 1=1
</sql>
<field name="物料编码" title="物料编码" code="matnr" width="200"/>
<field name="物料名称" title="物料名称" code="txz01" width="400"/>
<field name="订单数量" title="订单数量" code="menge" width="100"/>
<field name="单位" title="单位" code="meins" width="100"/>
<field name="单位描述" title="单位描述" code="msehl" width="100"/>
<field name="币别" title="币别" code="waers" width="100"/>
<field name="币别描述" title="币别描述" code="name" width="100"/>
<condition column="ebeln" name="ebeln" symbol="=" alias="o"/>
</easy-search>
</easy-search-mappings> </easy-search-mappings>
\ No newline at end of file
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