|
|
@ -29,11 +29,13 @@
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
<!--<el-button type="primary" icon="el-icon-plus" sty>提交</el-button>-->
|
|
|
|
<!--<el-button type="primary" icon="el-icon-plus" sty>提交</el-button>-->
|
|
|
|
|
|
|
|
|
|
|
|
<el-form :inline="true" :model="formData" class="demo-form-inline" style="margin-top: 30px" :rules="rules" ref="formRef">
|
|
|
|
<el-form :inline="true" :model="formData" class="demo-form-inline" style="margin-top: 30px" :rules="rules"
|
|
|
|
|
|
|
|
ref="formRef">
|
|
|
|
<el-row :gutter="24">
|
|
|
|
<el-row :gutter="24">
|
|
|
|
<el-col :span="10">
|
|
|
|
<el-col :span="10">
|
|
|
|
<el-form-item label="损耗出库数量" prop="count">
|
|
|
|
<el-form-item label="损耗出库数量" prop="count">
|
|
|
|
<el-input v-model.number="formData.count" placeholder="请填写损耗出库数量" type="number" :min="1" @input="checkCount"></el-input>
|
|
|
|
<el-input v-model.number="formData.count" placeholder="请填写损耗出库数量" type="number" :min="1"
|
|
|
|
|
|
|
|
@input="checkCount"></el-input>
|
|
|
|
<!--<span v-if="countExceeded" class="exceeded-message">损耗出库数量不能超过10个</span>-->
|
|
|
|
<!--<span v-if="countExceeded" class="exceeded-message">损耗出库数量不能超过10个</span>-->
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
@ -58,7 +60,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { destroyOut, destroyOutByCode } from '@/api/collect/IoDestroy'
|
|
|
|
import {destroyOut, destroyOutByCode, destroySplitOut} from '@/api/collect/IoDestroy'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'destroyOutDialog',
|
|
|
|
name: 'destroyOutDialog',
|
|
|
@ -135,8 +137,8 @@ export default {
|
|
|
|
return this.$message.error(res.message)
|
|
|
|
return this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}else {
|
|
|
|
} else if (this.destroyType == 1) {
|
|
|
|
destroyOutByCode(query).then(res => {
|
|
|
|
destroySplitOut(query).then(res => {
|
|
|
|
if (res.code == 20000) {
|
|
|
|
if (res.code == 20000) {
|
|
|
|
this.closeDialog()
|
|
|
|
this.closeDialog()
|
|
|
|
return this.$message.success("损耗出库成功")
|
|
|
|
return this.$message.success("损耗出库成功")
|
|
|
@ -144,6 +146,8 @@ export default {
|
|
|
|
return this.$message.error("损耗出库失败")
|
|
|
|
return this.$message.error("损耗出库失败")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
} else if (this.destroyType == 3) {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|