Commit dae15bfb authored by 1650842865's avatar 1650842865

工序外协申请中的供应商需要在已完成工序报价的供应商中选择;工序外协增加发运状态;

parent dfeee517
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<div class='ui-text-label'> <div class='ui-text-label'>
<#if task.handledDate?? && task.handledDate?trim?length gt 0> <#if task.handledDate?? && task.handledDate?trim?length gt 0>
<#--<#if task.autoApproval == 1>${task.handledDate?string("yyyy-MM-dd")}</div><#rt/>--> <#--<#if task.autoApproval == 1>${task.handledDate?string("yyyy-MM-dd")}</div><#rt/>-->
<#if parameters.pi?size gt 0 && parameters.pi?? && parameters.pi.processDefinitionKey == "ssrfPurchaseMoneyProc">${task.handledDate?string("yyyy-MM-dd")}</div><#rt/> <#if parameters.pi?size gt 0 && parameters.pi??>${task.handledDate?string("yyyy-MM-dd")}</div><#rt/>
<#else > <#else >
${task.handledDate?html}</div><#rt/> ${task.handledDate?html}</div><#rt/>
</#if> </#if>
......
...@@ -3,13 +3,7 @@ pub.db.url=jdbc:mysql://192.168.3.91:3406/topsun_dev?serverTimezone=GMT%2B8&useU ...@@ -3,13 +3,7 @@ pub.db.url=jdbc:mysql://192.168.3.91:3406/topsun_dev?serverTimezone=GMT%2B8&useU
#pub.db.url=jdbc:mysql://192.168.3.91:3406/topsun_320?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false #pub.db.url=jdbc:mysql://192.168.3.91:3406/topsun_320?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
pub.db.user=root pub.db.user=root
pub.db.password=123456 pub.db.password=123456
#pub.db.url=jdbc:mysql://127.0.0.1:3306/topsun?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
#pub.db.user=topsun
#pub.db.password=topsun
#log.db.url=jdbc:mysql://127.0.0.1:3306/topsun?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
#log.db.user=topsun
#log.db.password=topsun
log.db.url=jdbc:mysql://192.168.3.91:3406/topsun_dev?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false log.db.url=jdbc:mysql://192.168.3.91:3406/topsun_dev?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
#log.db.url=jdbc:mysql://192.168.3.91:3406/topsun_test?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false #log.db.url=jdbc:mysql://192.168.3.91:3406/topsun_test?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
#log.db.url=jdbc:mysql://192.168.3.91:3406/topsun_320?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false #log.db.url=jdbc:mysql://192.168.3.91:3406/topsun_320?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
......
...@@ -158,3 +158,7 @@ ADD COLUMN `PRODUCT_TYPE_NAME` varchar(32) NULL COMMENT '产品类别描述' AFT ...@@ -158,3 +158,7 @@ ADD COLUMN `PRODUCT_TYPE_NAME` varchar(32) NULL COMMENT '产品类别描述' AFT
--2024-11-04 品质异常单增加汇率 --2024-11-04 品质异常单增加汇率
ALTER TABLE `topsun_dev`.`sap_exception_report_item` ALTER TABLE `topsun_dev`.`sap_exception_report_item`
ADD COLUMN `exchange_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '汇率' AFTER `exception_number`; ADD COLUMN `exchange_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '汇率' AFTER `exception_number`;
--2024-11-12 外协工序增加已外发状态
ALTER TABLE `topsun_dev`.`sap_process_outsource`
ADD COLUMN `send_out` varchar(1) NULL COMMENT '已外发 1' AFTER `situation_desc`;
...@@ -98,6 +98,17 @@ function initialize() { ...@@ -98,6 +98,17 @@ function initialize() {
} }
} }
}); });
$('#customerNo').searchbox({
type: "system", name: "dictionary",
getParam: function (item) {
return {fieldName: "KUNNR"}
},
onChange: function (value, data) {
$('#customerNo').val(data.KUNNR);
$('#customerName').val(data.NAME);
}
});
} }
function clearExceptionType(){ function clearExceptionType(){
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
</div> </div>
<div class="hg-form-cols" id="produceDiv"> <div class="hg-form-cols" id="produceDiv">
<div class="hg-form-row"> <div class="hg-form-row">
<x:inputC name="customerNo" label="客户编号" labelCol="1" fieldCol="2" required="false"/> <x:inputC name="customerNo" label="客户编号" labelCol="1" fieldCol="2" required="false" wrapper="select"/>
<x:inputC name="customerOrderNo" label="生产单号/客户单号" labelCol="2" fieldCol="4" wrapper="select" required="false"/> <x:inputC name="customerOrderNo" label="生产单号/客户单号" labelCol="2" fieldCol="4" wrapper="select" required="false"/>
<x:inputC name="customerName" label="客户名称" labelCol="1" fieldCol="2" required="false" readonly="true"/> <x:inputC name="customerName" label="客户名称" labelCol="1" fieldCol="2" required="false" readonly="true"/>
</div> </div>
......
...@@ -250,12 +250,16 @@ function getOrderColumns(){ ...@@ -250,12 +250,16 @@ function getOrderColumns(){
required: true, type: "select", required: true, type: "select",
data: { data: {
type: 'suppliers', type: 'suppliers',
name: "selectSuppliers", name: "selectQuotedSuppliers",
getParam: function (item) { getParam: function (item) {
return {
productCode: item.productCode,
outProcess: item.wempf
}
}, },
back: { back: {
partner: "lifnr", supplier: "lifnr",
nameOrg1: "lifnrName", supplierName: "lifnrName",
} }
} }
} }
......
...@@ -13,12 +13,22 @@ function loadProcessOutsourceOrderListGrid() { ...@@ -13,12 +13,22 @@ function loadProcessOutsourceOrderListGrid() {
var toolbarOptions = UICtrl.getDefaultToolbarOptions({ var toolbarOptions = UICtrl.getDefaultToolbarOptions({
addHandler: function (){ addHandler: function (){
addHandler() addHandler()
},
sendOutHandler: {
id: 'sendOutHandler', text: '已外发', img:'fa-clipboard', click: function(){
sendOutHandler();
} }
},
}); });
gridManager = UICtrl.grid("#processOutsourceOrderGrid", { gridManager = UICtrl.grid("#processOutsourceOrderGrid", {
columns: [ columns: [
{display: "申请单编号", name: "billCode", width: 120, minWidth: 60, type: "string", align: "left"}, {display: "申请单编号", name: "billCode", width: 120, minWidth: 60, type: "string", align: "left"},
{display: "申请状态", name: "statusTextView", width: 60, minWidth: 60, type: "string", align: "left"}, {display: "申请状态", name: "statusTextView", width: 60, minWidth: 60, type: "string", align: "left"},
{display: "外发状态", name: "sendOut", width: 60, minWidth: 60, type: "string", align: "left",
render: function (item) {
return item.sendOut == 1 ? "已外发": "";
}
},
{display: "申请日期", name: "fillinDate", width: 120, minWidth: 60, type: "datetime", align: "left"}, {display: "申请日期", name: "fillinDate", width: 120, minWidth: 60, type: "datetime", align: "left"},
{display: "工厂", name: "werksName", width: 200, minWidth: 60, type: "string", align: "left"}, {display: "工厂", name: "werksName", width: 200, minWidth: 60, type: "string", align: "left"},
{display: "采购订单", name: "ebeln", width: 120, minWidth: 60, type: "string", align: "left"}, {display: "采购订单", name: "ebeln", width: 120, minWidth: 60, type: "string", align: "left"},
...@@ -123,3 +133,20 @@ function doView(processOutsourceId) { ...@@ -123,3 +133,20 @@ function doView(processOutsourceId) {
url: web_app.name + '/processOutsource/showProcessOutsourceDetail.job?isReadOnly=true&bizId='+processOutsourceId url: web_app.name + '/processOutsource/showProcessOutsourceDetail.job?isReadOnly=true&bizId='+processOutsourceId
}); });
} }
function sendOutHandler(){
var rows = gridManager.getSelectedRows();
if (rows.length == 0) {
Public.tip('请选择数据!');
return;
}
var ids = [];
for (var i = 0; i < rows.length; i++){
var row=rows[i];
ids.push(row.processOutsourceId)
}
Public.ajax(web_app.name + "/processOutsource/sendOutProcess.ajax",{ids:$.toJSON(ids)},function () {
reloadGrid();
})
}
\ No newline at end of file
...@@ -3,6 +3,7 @@ package com.huigou.topsun.sap.processOutsource.application; ...@@ -3,6 +3,7 @@ package com.huigou.topsun.sap.processOutsource.application;
import com.huigou.topsun.sap.processOutsource.domain.ProcessOutsource; import com.huigou.topsun.sap.processOutsource.domain.ProcessOutsource;
import com.huigou.topsun.sap.processOutsource.domain.query.ProcessOutsourceQueryRequest; import com.huigou.topsun.sap.processOutsource.domain.query.ProcessOutsourceQueryRequest;
import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
...@@ -19,4 +20,5 @@ public interface ProcessOutsourceApplication { ...@@ -19,4 +20,5 @@ public interface ProcessOutsourceApplication {
ProcessOutsource loadProcessOutsource(String id); ProcessOutsource loadProcessOutsource(String id);
void updateProcessOutStatus(List<String> ids);
} }
...@@ -339,5 +339,14 @@ public class ProcessOutsourceApplicationImpl extends FlowBroker implements Proce ...@@ -339,5 +339,14 @@ public class ProcessOutsourceApplicationImpl extends FlowBroker implements Proce
return processOutsourceRepository.findOne(id); return processOutsourceRepository.findOne(id);
} }
@Override
public void updateProcessOutStatus(List<String> ids) {
List<ProcessOutsource> outsourceList = processOutsourceRepository.findAll(ids);
for (ProcessOutsource processOutsource : outsourceList) {
processOutsource.setSendOut("1");
}
processOutsourceRepository.save(outsourceList);
}
} }
...@@ -98,4 +98,11 @@ public class ProcessOutsourceController extends CommonController { ...@@ -98,4 +98,11 @@ public class ProcessOutsourceController extends CommonController {
processOutsourceOrderItemApplication.deleteByIds(ids); processOutsourceOrderItemApplication.deleteByIds(ids);
return success(); return success();
} }
public String sendOutProcess(){
SDO sdo = this.getSDO();
List<String> ids = sdo.getIds();
processOutsourceApplication.updateProcessOutStatus(ids);
return success();
}
} }
...@@ -29,6 +29,12 @@ public class ProcessOutsource extends FlowBillAbstractEntity { ...@@ -29,6 +29,12 @@ public class ProcessOutsource extends FlowBillAbstractEntity {
@Column(name = "situation_desc") @Column(name = "situation_desc")
private String situationDesc; private String situationDesc;
/**
* 已外发 1
*/
@Column(name = "send_out")
private String sendOut;
@Override @Override
protected String getCodeRuleId() { protected String getCodeRuleId() {
return "processOutsource"; return "processOutsource";
......
...@@ -17,4 +17,19 @@ ...@@ -17,4 +17,19 @@
<condition column="name_org1" name="nameOrg1" symbol="like" alias="t"/> <condition column="name_org1" name="nameOrg1" symbol="like" alias="t"/>
</easy-search> </easy-search>
<easy-search name="selectQuotedSuppliers" desc="已报价供应商">
<sql>
SELECT
p.supplier,
p.supplier_name
FROM
sap_process_quoted_price p left join sap_process_quoted_price_item pi on p.id = pi.process_quoted_price_id
WHERE p.`status` =3
</sql>
<field name="供应商编码" title="供应商编码" code="supplier" width="100"/>
<field name="供应商名称" title="供应商名称" code="supplierName" width="200"/>
<condition column="product_code" name="productCode" symbol="=" alias="pi"/>
<condition column="out_process" name="outProcess" symbol="=" alias="pi"/>
</easy-search>
</easy-search-mappings> </easy-search-mappings>
\ No newline at end of file
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
t.bill_code, t.bill_code,
t.`status`, t.`status`,
t.person_member_name, t.person_member_name,
t.dept_name t.dept_name,
t.send_out
FROM sap_process_outsource_order_item ot FROM sap_process_outsource_order_item ot
LEFT JOIN sap_process_outsource t ON t.id = ot.process_outsource_id where 1=1 LEFT JOIN sap_process_outsource t ON t.id = ot.process_outsource_id where 1=1
</sql-query> </sql-query>
......
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