This commit is contained in:
liushuai
2020-02-18 08:49:55 +08:00
parent ff571c4e45
commit 97d67c9876
4 changed files with 96 additions and 46 deletions

View File

@@ -164,7 +164,7 @@
<el-button v-if="isShow1" type="success" size="small" icon="el-icon-tickets" style="margin-left: 1px;margin-right: 1px" plain @click="copyAndSave">
复制并保存
</el-button>
<el-button :disabled="disabled" type="success" size="small" icon="el-icon-tickets" plain @click="saveApprove">保存
<el-button :loading="loading" :disabled="disabled" type="success" size="small" icon="el-icon-tickets" plain @click="saveApprove">保存
</el-button>
</el-button-group>
<el-button v-if="!isShow1" type="warning" size="small" icon="el-icon-tickets" @click="saveCompiled">记录修改备注</el-button>
@@ -558,6 +558,7 @@ export default {
dialogMateria2: false,
prepareMateriel: '',
lastFocusText: '',
loading: false,
Result1: '',
Result2: '',
Result3: '',
@@ -1206,6 +1207,7 @@ export default {
this.batchNum = response.data[0].批次数量
this.material = response.data[0].材料流水号
this.materialName = response.data[0].材料
this.Specifications = response.data[0].规格
this.spec = response.data[0].原材料规格
this.工艺是否更改 = response.data[0].工艺是否更改
if (response.data[0].重量 === null) {
@@ -1524,19 +1526,21 @@ export default {
flag++
if (flag === this.tableData.length) {
TableAddLi1(this.partNumValue, this.CraftmenValue).then(() => {
TableAddLi2(this.partNumValue)
this.checked = false
this.partNumValue = ''
this.typeValue = ''
this.Specifications = ''
this.partName = ''
this.batchNum = ''
this.material = ''
this.materialName = ''
this.spec = ''
this.newNum = ''
this.searchPartsByMachineGroup()
this.$message.success('保存成功')
TableAddLi2(this.partNumValue).then(() => {
this.loading = false
this.checked = false
this.partNumValue = ''
this.typeValue = ''
this.Specifications = ''
this.partName = ''
this.batchNum = ''
this.material = ''
this.materialName = ''
this.spec = ''
this.newNum = ''
this.searchPartsByMachineGroup()
this.$message.success('保存成功')
})
})
}
})