20241101更新

main
lcode 3 weeks ago
parent 921531ebff
commit 53835d3c98

@ -5,7 +5,7 @@
"groupId" : "06d35cc5db5f4e6681262a1648c871c3", "groupId" : "06d35cc5db5f4e6681262a1648c871c3",
"name" : "列表", "name" : "列表",
"createTime" : null, "createTime" : null,
"updateTime" : 1730109068864, "updateTime" : 1730451538439,
"lock" : null, "lock" : null,
"createBy" : null, "createBy" : null,
"updateBy" : null, "updateBy" : null,
@ -162,6 +162,8 @@ String salesOrderCode = body["salesOrderCode"];
String materialName = body["materialName"]; String materialName = body["materialName"];
String materialCode = body["materialCode"]; String materialCode = body["materialCode"];
String deliveryDate = body["deliveryDate"]; String deliveryDate = body["deliveryDate"];
String customerName = body["customerName"];
String orderNo = body["orderNo"];
String salesOrdeSelect = sql("salesOrder") String salesOrdeSelect = sql("salesOrder")
String sql = """ String sql = """
@ -189,7 +191,9 @@ String sql = """
?{salesOrderCode != null and salesOrderCode != "", and mps.sales_order_code = #{salesOrderCode}} ?{salesOrderCode != null and salesOrderCode != "", and mps.sales_order_code = #{salesOrderCode}}
?{documentNumber != null and documentNumber != "", and mps.document_number = #{documentNumber}} ?{documentNumber != null and documentNumber != "", and mps.document_number = #{documentNumber}}
?{materialName != null and materialName != "", and msm.material_name like concat('%', #{materialName}, '%')} ?{materialName != null and materialName != "", and msm.material_name like concat('%', #{materialName}, '%')}
?{materialCode != null and materialCode != "", and mps.material_code like concat('%', #{materialCode}, '%')} ?{materialCode != null and materialCode != "", and mps.material_code like concat('%', #{materialCode}, '%')}
?{customerName != null and customerName != "", and mci.customer_name like concat('%', #{customerName}, '%')}
?{orderNo != null and orderNo != "", and msm.order_no like concat('%', #{orderNo}, '%')}
?{deliveryDate != null and deliveryDate != '', and mso.delivery_date = #{deliveryDate}} ?{deliveryDate != null and deliveryDate != '', and mso.delivery_date = #{deliveryDate}}
"""; """;

@ -32,6 +32,18 @@
clearable clearable
> >
</el-input> </el-input>
<el-input
v-model="search.orderNo"
placeholder="订单号"
clearable
>
</el-input>
<el-input
v-model="search.customerName"
placeholder="客户名称"
clearable
>
</el-input>
<el-button <el-button
type="primary" type="primary"

@ -9,29 +9,48 @@
<el-container> <el-container>
<el-header> <el-header>
<div class="right-panel-search"> <div class="right-panel-search">
<thirdselect <!-- <thirdselect
v-model="search.materialCategory" v-model="search.materialCategory"
:item="materialCategoryItem" :item="materialCategoryItem"
> >
</thirdselect> </thirdselect> -->
<!-- 物料名称输入框 -->
<el-input <el-input
v-model="search.scheduleNumber" v-model="search.scheduleNumber"
placeholder="挤压编码" placeholder="挤压编码"
clearable clearable
> >
</el-input> </el-input>
<el-input
v-model="search.salesOrderCode"
placeholder="销售单号"
clearable
>
</el-input>
<el-input
v-model="search.orderNo"
placeholder="订单号"
clearable
>
</el-input>
<el-input
v-model="search.materialCode"
placeholder="物料编码"
clearable
>
</el-input>
<el-input
v-model="search.profileModel"
placeholder="型材型号"
clearable
>
</el-input>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
@click="upsearch" @click="upsearch"
></el-button> ></el-button>
<el-button <el-button type="primary" plain @click="add"></el-button>
type="primary"
plain
@click="add"
>添加</el-button>
</div> </div>
</el-header> </el-header>
<el-main class="nopadding"> <el-main class="nopadding">
@ -79,14 +98,15 @@ export default {
params: module.tableSelect.params, params: module.tableSelect.params,
selection: [], selection: [],
materialCategoryItem: { materialCategoryItem: {
options: { tb: 'product_material_categories', placeholder: '物料/产品分类' } options: {
tb: "product_material_categories",
placeholder: "物料/产品分类",
},
}, },
listData: [] listData: [],
}; };
}, },
mounted() { mounted() {},
},
methods: { methods: {
// //
open() { open() {
@ -98,7 +118,9 @@ export default {
this.listData = listData; this.listData = listData;
}, },
selectable(row, index) { selectable(row, index) {
return !this.listData.some(item => row.materialCode == item.materialCode) return !this.listData.some(
(item) => row.materialCode == item.materialCode
);
}, },
currentChange(row) { currentChange(row) {
this.selection = [row]; this.selection = [row];
@ -108,7 +130,7 @@ export default {
this.selection = selection; this.selection = selection;
}, },
add() { add() {
this.$emit("success", this.selection) this.$emit("success", this.selection);
this.visible = false; this.visible = false;
}, },
// //

Loading…
Cancel
Save