|
|
@ -21,14 +21,15 @@ |
|
|
|
<div>基础信息</div> |
|
|
|
</div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">单据编号</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.billNo }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">制单人</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createByName }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">制单部门</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.departmentName }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">单据日期</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createTime }}</span></el-form-item> |
|
|
@ -114,7 +115,7 @@ |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</el-table-column> --> |
|
|
|
<el-table-column label="预约数量" prop="orderCount" align="center" width="120" /> |
|
|
|
<!-- <el-table-column label="预约数量" prop="orderCount" align="center" width="120" /> --> |
|
|
|
<el-table-column label="实收数量" align="center" width="120"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input ref="focusAssumptionInput" @input="commodityComputeYHAndXSJE(scope.row,$event)" |
|
|
@ -220,6 +221,10 @@ |
|
|
|
busTypeKey: "", |
|
|
|
busTypeValue: "", |
|
|
|
createByName: window.sessionStorage.getItem('name'), |
|
|
|
departmentName: window.sessionStorage.getItem('departmentName'), |
|
|
|
createBySid: window.sessionStorage.getItem('userSid'), |
|
|
|
useOrgSid: window.sessionStorage.getItem('departmentSid'), |
|
|
|
createOrgSid: window.sessionStorage.getItem('orgSid'), |
|
|
|
billState: '新建', |
|
|
|
billStateKey: 0, |
|
|
|
reviewStatus: "", |
|
|
@ -443,19 +448,22 @@ |
|
|
|
console.log("aaa", row); |
|
|
|
console.log("aaa", val); |
|
|
|
|
|
|
|
if (Number(row.actualInCount) > Number(row.orderCount)) { |
|
|
|
row.actualInCount = row.orderCount |
|
|
|
} |
|
|
|
// if (Number(row.actualInCount) > Number(row.orderCount)) { |
|
|
|
row.actualInCount = val |
|
|
|
// } |
|
|
|
|
|
|
|
row.amount = (Number(row.actualInCount) * Number(row.cost)).toFixed(2) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
commodityComputeYHAndXSJE2(row, val) { |
|
|
|
console.log("aaa", row); |
|
|
|
console.log("aaa", val); |
|
|
|
|
|
|
|
if ((Number(row.rejectCount) + Number(row.actualInCount)) > Number(row.orderCount)) { |
|
|
|
row.rejectCount = Number(row.orderCount) - Number(row.actualInCount) |
|
|
|
} |
|
|
|
row.rejectCount = val |
|
|
|
// if ((Number(row.rejectCount) + Number(row.actualInCount)) > Number(row.orderCount)) { |
|
|
|
// row.rejectCount = Number(row.orderCount) - Number(row.actualInCount) |
|
|
|
// } |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
@ -649,6 +657,7 @@ |
|
|
|
}, |
|
|
|
handleReturn(isreload) { |
|
|
|
if (isreload === 'true') this.$emit('reloadlist') |
|
|
|
this.submitdisabled = false |
|
|
|
this.formobj = { |
|
|
|
sourceBillNo: "", |
|
|
|
busTypeKey: "", |
|
|
|