序间外协

This commit is contained in:
zhangdingyu
2019-11-21 09:30:35 +08:00
parent ca0ccecf47
commit 55a2bb592a
5 changed files with 50 additions and 4 deletions

View File

@@ -529,7 +529,8 @@ import {
TableAddLi,
getPartnames3,
getPartnames4,
modifyRemark
modifyRemark,
detailInfo
} from '@/api/ManufacturingCenter/ProcessPlanningNew'
import elInput from 'element-ui/packages/input'
import { mapGetters } from 'vuex'
@@ -1192,6 +1193,21 @@ export default {
searchDetail() {
if (this.partNumValue !== '' && this.partNumValue !== null) {
this.loading0 = true
detailInfo(this.partNumValue).then(response => {
if (response.data.length !== 0) {
this.typeValue = response.data[0].零件类型名称
this.partName = response.data[0].零件名称
this.batchNum = response.data[0].批次数量
this.material = response.data[0].材料流水号
this.materialName = response.data[0].材料
this.spec = response.data[0].原材料规格
if (response.data[0].重量 === null) {
this.weight = ''
} else {
this.weight = response.data[0].重量
}
}
})
mainTable(this.partNumValue).then(response => {
this.tableData = []
for (let i = 0; i < response.data.length; i++) {