|
|
|
@ -355,8 +355,9 @@
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionconclusionList-grossWeight')">*</span>毛重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.grossWeight" @change="grossWeightChange"
|
|
|
|
|
:precision="6" :min="0" prop="grossWeight" placeholder="请输入" :disabled="judgeWrite('warehousinginspectionconclusionList') ||
|
|
|
|
|
<JnpfInput v-model="scope.row.grossWeight"
|
|
|
|
|
@change="grossWeightChange(scope.$index)" :precision="6" :min="0"
|
|
|
|
|
prop="grossWeight" placeholder="请输入" :disabled="judgeWrite('warehousinginspectionconclusionList') ||
|
|
|
|
|
judgeWrite('warehousinginspectionconclusionList-grossWeight')" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
@ -369,8 +370,9 @@
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionconclusionList-tareWeight')">*</span>皮重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.tareWeight" @change="grossWeightChange"
|
|
|
|
|
:precision="6" :min="0" placeholder="请输入"
|
|
|
|
|
<JnpfInput v-model="scope.row.tareWeight"
|
|
|
|
|
@change="grossWeightChange(scope.$index)" :precision="6" :min="0"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList') || judgeWrite('warehousinginspectionconclusionList-tareWeight')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
@ -384,8 +386,9 @@
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionconclusionList-buckleWeight')">*</span>扣重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.buckleWeight" @change="grossWeightChange"
|
|
|
|
|
:precision="6" :min="0" placeholder="请输入"
|
|
|
|
|
<JnpfInput v-model="scope.row.buckleWeight"
|
|
|
|
|
@change="grossWeightChange(scope.$index)" :precision="6" :min="0"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList') || judgeWrite('warehousinginspectionconclusionList-buckleWeight')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
@ -400,9 +403,8 @@
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.netWeight"
|
|
|
|
|
@change="changeData('warehousinginspectionconclusion-netWeight', scope.$index)"
|
|
|
|
|
:precision="6" :min="0" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('warehousinginspectionconclusionList') || judgeWrite('warehousinginspectionconclusionList-netWeight')"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
:precision="6" :min="0" placeholder="请输入" disabled clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -439,7 +441,7 @@
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="创建用户"
|
|
|
|
|
<!-- <el-table-column label="创建用户"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionconclusion-creatorUserId')"
|
|
|
|
|
prop="creatorUserId">
|
|
|
|
|
<template slot="header">
|
|
|
|
@ -454,7 +456,25 @@
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
|
|
|
|
|
<el-table-column label="创建用户"
|
|
|
|
|
v-if="judgeShow('warehousinginspectionconclusion-creatorUserId')"
|
|
|
|
|
prop="creatorUserId">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('warehousinginspectionconclusionList-creatorUserId')">*</span>创建用户
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfUserSelect v-model="scope.row.creatorUserId"
|
|
|
|
|
@change="changeData('warehousinginspectionconclusion-creatorUserId',scope.$index)"
|
|
|
|
|
placeholder="请选择" selectType="all"
|
|
|
|
|
:ableIds="ableAll.warehousinginspectionconclusioncreatorUserIdableIds"
|
|
|
|
|
disabled clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfUserSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="50"
|
|
|
|
|
v-if="!judgeWrite('warehousinginspectionconclusionList')">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -691,10 +711,15 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
mounted() { },
|
|
|
|
|
methods: {
|
|
|
|
|
grossWeightChange(e, f) {
|
|
|
|
|
// debugger
|
|
|
|
|
// scope.row.netWeight = this.jnpf.floatSub(this.jnpf.floatSub(parseFloat(this.dataForm.grossWeight),
|
|
|
|
|
// parseFloat(this.dataForm.tareWeight)), parseFloat(this.dataForm.buckleWeight))
|
|
|
|
|
grossWeightChange(index) {
|
|
|
|
|
this.dataForm.warehousingInspectionConclusionList[index].netWeight =
|
|
|
|
|
this.jnpf.floatSub((this.jnpf.floatSub(this.dataForm.warehousingInspectionConclusionList[index].grossWeight, this.dataForm.warehousingInspectionConclusionList[index].tareWeight)), this.dataForm.warehousingInspectionConclusionList[index].buckleWeight) //净重
|
|
|
|
|
// this.dataForm.warehousingInspectionConclusionList[index].grossWeight //毛
|
|
|
|
|
// this.dataForm.warehousingInspectionConclusionList[index].tareWeight //皮
|
|
|
|
|
// this.dataForm.warehousingInspectionConclusionList[index].buckleWeight //扣
|
|
|
|
|
if (this.dataForm.warehousingInspectionConclusionList[index].netWeight <= 0) {
|
|
|
|
|
this.dataForm.warehousingInspectionConclusionList[index].netWeight = 0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
inspectionVoucher(model, row) {
|
|
|
|
@ -842,6 +867,15 @@ export default {
|
|
|
|
|
let isOk = true;
|
|
|
|
|
for (let i = 0; i < this.dataForm.warehousingInspectionConclusionList.length; i++) {
|
|
|
|
|
const e = this.dataForm.warehousingInspectionConclusionList[i];
|
|
|
|
|
if (!e.netWeight) {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: '净重(自动计算)不能为空',
|
|
|
|
|
type: 'error',
|
|
|
|
|
duration: 1000
|
|
|
|
|
});
|
|
|
|
|
isOk = false
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return isOk;
|
|
|
|
|
},
|
|
|
|
@ -887,6 +921,9 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.dataForm.warehousingInspectionVoucherList.push(item)
|
|
|
|
|
|
|
|
|
|
this.dataForm.warehousingInspectionProductList = list.productWarehouseEntityList
|
|
|
|
|
this.dataForm.warehousingInspectionConclusionList = list.warehousingInspectionConclusionModelList
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -923,6 +960,8 @@ export default {
|
|
|
|
|
//初始化默认数据
|
|
|
|
|
initDefaultData() {
|
|
|
|
|
this.dataForm.belongUserId = this.userInfo.userId
|
|
|
|
|
this.dataForm.warehousingInspectionConclusionList.creatorUserId = this.userInfo.userId
|
|
|
|
|
|
|
|
|
|
this.dataForm.inspectionTime = new Date().getTime()
|
|
|
|
|
},
|
|
|
|
|
addwarehousinginspectionvoucherList() {
|
|
|
|
@ -1007,6 +1046,7 @@ export default {
|
|
|
|
|
getwarehousinginspectionconclusionList(value) {
|
|
|
|
|
let item = { ...this.tableRows.warehousingInspectionConclusionList, ...value }
|
|
|
|
|
this.dataForm.warehousingInspectionConclusionList.push(item)
|
|
|
|
|
this.dataForm.warehousingInspectionConclusionList[this.dataForm.warehousingInspectionConclusionList.length - 1].creatorUserId = this.userInfo.userId
|
|
|
|
|
this.childIndex = this.dataForm.warehousingInspectionConclusionList.length - 1
|
|
|
|
|
this.isEdit = true
|
|
|
|
|
this.isEdit = false
|
|
|
|
|