out error“
This commit is contained in:
@@ -97,25 +97,28 @@
|
||||
</el-table>
|
||||
</el-card>
|
||||
<!--异常出库对话框-->
|
||||
<el-dialog :visible.sync="dialogFormVisible1" title="编辑直达件" center width="380px">
|
||||
<el-dialog :visible.sync="dialogFormVisible" title="异常出库" center width="380px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-position="left">
|
||||
<el-form-item label="出库数量" prop="ContractNumberValue" label-width="100px" size="small">
|
||||
<el-input v-model="form.ErrorNumber" size="small" placeholder="出库数量" style="width: 200px"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="异常数量" prop="ContractNumberValue" label-width="100px" size="small">
|
||||
<el-input v-model="form.ErrorNumber" size="small" placeholder="到货数量" style="width: 200px"/>
|
||||
<el-input v-model="form.ErrorNumber" size="small" placeholder="异常数量" style="width: 200px"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="异常原因" prop="TotalContractAmount" label-width="100px">
|
||||
<el-input v-model="form.Reason" size="small" placeholder="请输入备注" style="width: 200px"/>
|
||||
<el-input v-model="form.Reason" size="small" placeholder="异常原因" style="width: 200px"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="callOff('form')">取消</el-button>
|
||||
<el-button type="primary" @click="editDirectPartm()">确 定</el-button>
|
||||
<el-button type="primary" @click="submitEdit()">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { searchList, searchListDetail, PurchasePart, BasicPart, WorkShopPart, ListDetailOut } from '@/api/Inventory/PartOut'
|
||||
import { searchList, searchListDetail, PurchasePart, BasicPart, WorkShopPart, ListDetailOut, ErrorOut } from '@/api/Inventory/PartOut'
|
||||
import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
data() {
|
||||
@@ -150,13 +153,22 @@ export default {
|
||||
listLoading: '',
|
||||
listLoading1: '',
|
||||
rules: { // 表单验证规则
|
||||
ErrorNumber: [{ required: true, message: '请输入直达件数量', trigger: 'blur' }],
|
||||
Normalnumber: [{ required: true, message: '请输入正常数量', trigger: 'blur' }],
|
||||
ErrorNumber: [{ required: true, message: '请输入异常数量', trigger: 'blur' }],
|
||||
Reason: [{ required: true, message: '请选择领用人', trigger: 'blur' }]
|
||||
},
|
||||
form: {
|
||||
Normalnumber: '',
|
||||
ErrorNumber: '',
|
||||
Reason: ''
|
||||
}
|
||||
},
|
||||
dialogFormVisible: false,
|
||||
projectnumber: '',
|
||||
machinenumber: '',
|
||||
teamnumber: '',
|
||||
teanmpartnumber: '',
|
||||
craftnumber: '',
|
||||
locatenumber: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -235,8 +247,29 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
ErrorpartOut() {
|
||||
console.log(21231)
|
||||
ErrorpartOut(row) {
|
||||
this.dialogFormVisible = true
|
||||
this.projectnumber = row.项目流水号
|
||||
this.machinenumber = row.机床流水号
|
||||
this.teamnumber = row.组件流水号
|
||||
this.teanmpartnumber = row.采购合同明细流水号
|
||||
this.craftnumber = row.工艺计划流水号
|
||||
this.locatenumber = row.货位流水号
|
||||
},
|
||||
callOff(form) {
|
||||
this.form = []
|
||||
this.dialogFormVisible = false
|
||||
},
|
||||
submitEdit() {
|
||||
ErrorOut(this.projectnumber, this.machinenumber, this.teamnumber, this.teanmpartnumber, this.craftnumber, this.locatenumber, this.form.ErrorNumber, this.form.Reason).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('添加成功')
|
||||
this.dialogFormVisible = false
|
||||
this.form = []
|
||||
} else {
|
||||
this.$message.error('添加失败')
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user