|
|
|
@ -112,8 +112,8 @@
|
|
|
|
|
v-model="slotProps.scope.row.realNum" |
|
|
|
|
:controls="false" |
|
|
|
|
:precision="0" |
|
|
|
|
:min="0" |
|
|
|
|
:max="slotProps.scope.row.planNum" |
|
|
|
|
:min="slotProps.scope.row.scanNum" |
|
|
|
|
:max="slotProps.scope.row.totalPlanNum" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
@ -232,7 +232,7 @@
|
|
|
|
|
v-model="form.num" |
|
|
|
|
class="w100" |
|
|
|
|
:min="0" |
|
|
|
|
:max="form.maxNum || form.maxNum === 0 || Infinity" |
|
|
|
|
:max="form.totalPlanNum" |
|
|
|
|
:value-on-clear="0" |
|
|
|
|
controls-position="right" |
|
|
|
|
/> |
|
|
|
@ -288,6 +288,7 @@ import {
|
|
|
|
|
postUpdateBillladingWaybillNum, |
|
|
|
|
postFindBillladingLogList, |
|
|
|
|
} from '@/api/distribution/arteryDistrilbutionBillLadingList'; |
|
|
|
|
import { isNumber } from '@/utils/util'; |
|
|
|
|
import { ElMessage } from 'element-plus'; |
|
|
|
|
import { getToken } from '@/utils/auth'; |
|
|
|
|
export default { |
|
|
|
@ -727,12 +728,13 @@ export default {
|
|
|
|
|
for (let i = 0; i < this.data.length; i++) { |
|
|
|
|
const value = this.data[i]; |
|
|
|
|
|
|
|
|
|
// value.realNum = value.realNum ? value.realNum : value.totalCount - value.stockCount; |
|
|
|
|
|
|
|
|
|
console.log('value :>> ', value); |
|
|
|
|
value.realNum = isNumber(value.realNum) ? Number(value.realNum) : 0; |
|
|
|
|
value.totalPlanNum = isNumber(value.totalPlanNum) ? Number(value.totalPlanNum) : 0; |
|
|
|
|
value.realVolume = isNumber(value.realVolume) ? Number(value.realVolume) : 0; |
|
|
|
|
value.realWeight = isNumber(value.realWeight) ? Number(value.realWeight) : 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// this.inputsc('', { prop: 'aaa' }); |
|
|
|
|
this.inputsc('', { prop: 'aaa' }); |
|
|
|
|
} catch (error) { |
|
|
|
|
console.log('error :>> ', error); |
|
|
|
|
} finally { |
|
|
|
|