销售发货添加库存数量

jg-waiwang-pro
XI_TENG\xixi_ 4 months ago
parent e780f64e23
commit 08f5b2ba7b

@ -96,6 +96,8 @@
<result column="wareHouseName" property="wareHouseName"/> <result column="wareHouseName" property="wareHouseName"/>
<result column="realName" property="realName"/> <result column="realName" property="realName"/>
<result column="realNameA" property="realNameA"/> <result column="realNameA" property="realNameA"/>
<result column="taxCount" property="taxCount"/>
</resultMap> </resultMap>
<resultMap id="purchaseOrder" type="jnpf.entity.BusinessOrderEntity"> <resultMap id="purchaseOrder" type="jnpf.entity.BusinessOrderEntity">
@ -765,14 +767,18 @@
b.NAME AS subjectName, b.NAME AS subjectName,
c.contract_name AS contractName, c.contract_name AS contractName,
d.name as secondCustomName, d.name as secondCustomName,
e.name as businessLineName e.name as businessLineName,
SUM(f.tax_count) AS taxCount
FROM FROM
jg_business_order a jg_business_order a
LEFT JOIN jg_subject_basic b ON a.first_subject_basic_id = b.id AND b.f_delete_mark IS NULL LEFT JOIN jg_subject_basic b ON a.first_subject_basic_id = b.id AND b.f_delete_mark IS NULL
LEFT JOIN jg_contract c ON a.contract_id = c.id AND c.f_delete_mark is NULL LEFT JOIN jg_contract c ON a.contract_id = c.id AND c.f_delete_mark is NULL
LEFT JOIN jg_subject_basic d ON a.second_subject_basic_id = d.id AND d.f_delete_mark IS NULL LEFT JOIN jg_subject_basic d ON a.second_subject_basic_id = d.id AND d.f_delete_mark IS NULL
LEFT JOIN jg_business_line e ON a.business_line_id = e.id AND e.f_delete_mark IS NULL LEFT JOIN jg_business_line e ON a.business_line_id = e.id AND e.f_delete_mark IS NULL
LEFT JOIN jg_business_order_product_relational f ON a.id=f.business_order_id AND f.f_delete_mark IS NULL
${ew.customSqlSegment} ${ew.customSqlSegment}
GROUP BY
a.id
</select> </select>
<select id="queryCurrentDayNum" resultType="java.math.BigDecimal"> <select id="queryCurrentDayNum" resultType="java.math.BigDecimal">
SELECT IFNULL(SUM( business_num ),0) businessNum from jg_business_order_product_relational where business_order_id in (SELECT a.id from jg_business_order a SELECT IFNULL(SUM( business_num ),0) businessNum from jg_business_order_product_relational where business_order_id in (SELECT a.id from jg_business_order a

@ -212,4 +212,7 @@ public class BusinessOrderEntity {
private String productId; private String productId;
@TableField(exist = false) @TableField(exist = false)
private BigDecimal profit; private BigDecimal profit;
@TableField(exist = false)
private BigDecimal taxCount;
} }

@ -88,6 +88,8 @@ public class DeliveryProductRelationEntity {
private String tenantId; private String tenantId;
@TableField(value = "CLEAR_WEIGHT" , updateStrategy = FieldStrategy.IGNORED) @TableField(value = "CLEAR_WEIGHT" , updateStrategy = FieldStrategy.IGNORED)
private BigDecimal clearWeight; private BigDecimal clearWeight;
@TableField(value = "INVENTORY_NO" , updateStrategy = FieldStrategy.IGNORED)
private String inventoryNo;
@TableField(exist = false) @TableField(exist = false)
private BigDecimal remainingStockableQuantity; private BigDecimal remainingStockableQuantity;

@ -87,4 +87,8 @@ public class DeliveryProductRelationModel {
/** 净重 **/ /** 净重 **/
@JSONField(name = "clearWeight") @JSONField(name = "clearWeight")
private BigDecimal clearWeight; private BigDecimal clearWeight;
/** 批次号库存数量 **/
@JSONField(name = "inventoryNo")
private String inventoryNo;
} }

@ -800,6 +800,21 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="库存数量"
v-if="judgeShow('deliveryproductrelation-inventoryNo')" prop="inventoryNo"
width="200">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('deliveryproductrelationList-inventoryNo')">*</span>库存数量
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.inventoryNo"
@change="changeData('deliveryproductrelation-inventoryNo', scope.$index)"
placeholder="请输入" :disabled="true" clearable :style='{ "width": "100%" }'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="生产日期" v-if="judgeShow('warehousingproduct-produceDate')" <el-table-column label="生产日期" v-if="judgeShow('warehousingproduct-produceDate')"
prop="produceDate" width="200"> prop="produceDate" width="200">
<template slot="header"> <template slot="header">
@ -1030,6 +1045,7 @@ export default {
deliveryNum: '', deliveryNum: '',
deliveryNumOptions: [], deliveryNumOptions: [],
batchNo: '', batchNo: '',
inventoryNo: '',
batchNoOptions: [], batchNoOptions: [],
produceTime: '', produceTime: '',
produceTimeOptions: [], produceTimeOptions: [],
@ -1128,7 +1144,7 @@ export default {
transportModeProps: { "label": "fullName", "value": "id" }, transportModeProps: { "label": "fullName", "value": "id" },
deliveryTypeOptions: [{ "fullName": "销售发货", "id": "2" }], deliveryTypeOptions: [{ "fullName": "销售发货", "id": "2" }],
deliveryTypeProps: { "label": "fullName", "value": "id" }, deliveryTypeProps: { "label": "fullName", "value": "id" },
businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" }, { "label": "客户名称", "value": "subjectName" }, { label: "销售数量", value: "planPurchaseNum" }, { "label": "单据类型", "value": "orderType1" }, { "label": "配送方式", "value": "deliveryType1" }, { "label": "状态", "value": "saleStatus" },], businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" }, { "label": "客户名称", "value": "subjectName" }, { label: "销售数量", value: "planPurchaseNum" }, { label: "销售金额", value: "taxCount" }, { "label": "单据类型", "value": "orderType1" }, { "label": "配送方式", "value": "deliveryType1" }, { "label": "状态", "value": "saleStatus" },],
reservedFields1columnOptions: [{ "label": "业务线编码", "value": "code" }, { "label": "业务线名称", "value": "name" },], reservedFields1columnOptions: [{ "label": "业务线编码", "value": "code" }, { "label": "业务线名称", "value": "name" },],
subjectIdcolumnOptions: [{ "label": "客户编码", "value": "code" }, { "label": "客户名称", "value": "name" },], subjectIdcolumnOptions: [{ "label": "客户编码", "value": "code" }, { "label": "客户名称", "value": "name" },],
enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },], enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },],
@ -1280,6 +1296,8 @@ export default {
} }
this.dataForm.deliveryProductRelationList[idx].batchNo = val2.batch_number this.dataForm.deliveryProductRelationList[idx].batchNo = val2.batch_number
this.dataForm.deliveryProductRelationList[idx].produceDate = val2.produce_date this.dataForm.deliveryProductRelationList[idx].produceDate = val2.produce_date
this.dataForm.deliveryProductRelationList[idx].inventoryNo = val2.inventory_number
this.inventoryIdList.push(val2.id) this.inventoryIdList.push(val2.id)
}, },
// //
@ -1701,6 +1719,7 @@ export default {
cargoId: '', cargoId: '',
deliveryNum: undefined, deliveryNum: undefined,
batchNo: undefined, batchNo: undefined,
inventoryNo: undefined,
produceTime: undefined, produceTime: undefined,
returnUnit: undefined, returnUnit: undefined,
tax: undefined, tax: undefined,
@ -1716,6 +1735,7 @@ export default {
item.cargoId = undefined item.cargoId = undefined
item.deliveryNum = undefined item.deliveryNum = undefined
item.batchNo = undefined item.batchNo = undefined
item.inventoryNo = undefined
item.produceDate = undefined item.produceDate = undefined
this.dataForm.deliveryProductRelationList.push(item) this.dataForm.deliveryProductRelationList.push(item)
this.childIndex = this.dataForm.deliveryProductRelationList.length - 1 this.childIndex = this.dataForm.deliveryProductRelationList.length - 1

Loading…
Cancel
Save