更新
This commit is contained in:
@@ -150,6 +150,11 @@
|
||||
type="primary"
|
||||
plain
|
||||
@click="handleEdit(scope.$index, scope.row, 'form')">分批投产</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
plain
|
||||
@click="handleEditNumber(scope.$index, scope.row)">更改数量</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -255,7 +260,7 @@
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<el-dialog :visible.sync="dialogFormVisible2" title="打回档案" center width="28%">
|
||||
<el-dialog :visible.sync="dialogFormVisible2" title="打回档案" center width="200px">
|
||||
<el-form ref="form1" :model="form1" :rules="rules" label-position="left" label-width="110px" class="demo-ruleForm">
|
||||
<el-form-item label="打回原因" prop="reason">
|
||||
<el-input v-model="form1.reason" size="small" />
|
||||
@@ -267,6 +272,18 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog :visible.sync="dialogFormVisible3" title="更改投产数量" center width="300px">
|
||||
<el-form ref="form3" :model="form3" :rules="rules3" label-position="left" label-width="110px" class="demo-ruleForm">
|
||||
<el-form-item label="投产数量" prop="投产数量">
|
||||
<el-input v-model="form3.投产数量" size="small" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button size="small" @click="callOff2('form3')">取消</el-button>
|
||||
<el-button size="small" type="primary" @click="EditNumber('form3')">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog :title="title" :visible.sync="dialogFormVisible1" center width="450px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-position="left" label-width="110px" class="demo-ruleForm">
|
||||
<el-form-item label="零件图号" prop="PDnumber">
|
||||
@@ -321,7 +338,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getEntryNameValue, getToolNum, getNum, getTable, production, getTable1, revisionBatch, editList, dele, production2, production20, production10, edit } from '@/api/ManufacturingCenter/InitialProduction'
|
||||
import { getEntryNameValue, getToolNum, getNum, getTable, production, getTable1, revisionBatch, editList, dele, production2, production20, production10, edit, EditNumber } from '@/api/ManufacturingCenter/InitialProduction'
|
||||
import { mapGetters } from 'vuex'
|
||||
import Cookie from 'js-cookie'
|
||||
|
||||
@@ -374,16 +391,24 @@ export default {
|
||||
form1: {
|
||||
reason: ''
|
||||
},
|
||||
form3: {
|
||||
投产数量: ''
|
||||
},
|
||||
rules: { // 表单验证规则
|
||||
batchQuantity: [{ required: true, message: '请输入批次数量', trigger: 'blur' }],
|
||||
// startDate_F: [{ required: true, message: '请选择加工开始时间', trigger: 'change' }],
|
||||
endDate_F: [{ required: true, message: '请选择加工结束时间', trigger: 'change' }],
|
||||
reason: [{ required: true, message: '请输入打回原因', trigger: 'blur' }]
|
||||
},
|
||||
rules3: { // 表单验证规则
|
||||
投产数量: [{ required: true, message: '请输入投产数量', trigger: 'blur' }]
|
||||
},
|
||||
// value1: '',
|
||||
result: 0,
|
||||
dialogFormVisible1: false,
|
||||
dialogFormVisible2: false,
|
||||
dialogFormVisible3: false,
|
||||
NumberValue: '',
|
||||
date: '',
|
||||
a: false,
|
||||
multipleSelection: [],
|
||||
@@ -608,6 +633,23 @@ export default {
|
||||
this.multipleSelection = val
|
||||
console.log(this.multipleSelection, 1111)
|
||||
},
|
||||
handleEditNumber(index, row) {
|
||||
this.dialogFormVisible3 = true
|
||||
console.log(row, 123)
|
||||
this.NumberValue = row.组件零件基本件流水号
|
||||
this.form3.投产数量 = row.投产总数量
|
||||
},
|
||||
EditNumber() {
|
||||
EditNumber(this.NumberValue, this.form3.投产数量).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.getTable()
|
||||
this.dialogFormVisible3 = false
|
||||
this.$message.success('更改成功')
|
||||
} else {
|
||||
this.$message.error('更改失败')
|
||||
}
|
||||
})
|
||||
},
|
||||
// 打开分批投产
|
||||
handleEdit(index, row, formName) {
|
||||
this.temp = 1
|
||||
@@ -1140,6 +1182,10 @@ export default {
|
||||
this.dialogFormVisible2 = false
|
||||
this.$refs[formName].resetFields()
|
||||
},
|
||||
callOff2(formName) {
|
||||
this.dialogFormVisible3 = false
|
||||
this.$refs[formName].resetFields()
|
||||
},
|
||||
// 分页
|
||||
handleSizeChange(val) {
|
||||
this.pageSize = val
|
||||
|
||||
Reference in New Issue
Block a user