|
@@ -1055,11 +1055,6 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
console.log('新增根据编号获取备件库存数量', response.data.list[0])
|
|
|
item = response.data.list[0]
|
|
|
- if(this.dialogStatus==='special' && this.createTemp.purchaseType == '2'){
|
|
|
- this.$set(item,'price','')
|
|
|
- }else if(this.dialogStatus==='special' && this.createTemp.purchaseType == '3'){
|
|
|
- this.$set(item,'price','0')
|
|
|
- }
|
|
|
if (item.srcpath !== null && item.picpath !== null && item.srcpath !== undefined && item.picpath !== undefined) {
|
|
|
this.$set(item, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
|
|
|
this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
|
|
@@ -1069,6 +1064,12 @@ export default {
|
|
|
}
|
|
|
this.$set(item, 'amount', '')
|
|
|
this.$set(item, 'purpose', '')
|
|
|
+ if(this.dialogStatus==='special' && this.createTemp.purchaseType == '2'){
|
|
|
+ this.$set(item,'price','')
|
|
|
+ }else if(this.dialogStatus==='special' && this.createTemp.purchaseType == '3'){
|
|
|
+ this.$set(item,'price','0')
|
|
|
+ this.$set(item,'amount','0')
|
|
|
+ }
|
|
|
this.listAdd.unshift(item)
|
|
|
this.$forceUpdate()
|
|
|
})
|
|
@@ -1080,11 +1081,6 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
console.log('新增根据编号获取备件库存数量', response.data.list[0])
|
|
|
item = response.data.list[0]
|
|
|
- if(this.dialogStatus==='special' && this.createTemp.purchaseType == '2'){
|
|
|
- this.$set(item,'price','')
|
|
|
- }else if(this.dialogStatus==='special' && this.createTemp.purchaseType == '3'){
|
|
|
- this.$set(item,'price','0')
|
|
|
- }
|
|
|
if (item.srcpath !== null && item.picpath !== null && item.srcpath !== undefined && item.picpath !== undefined) {
|
|
|
this.$set(item, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
|
|
|
this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
|
|
@@ -1094,6 +1090,12 @@ export default {
|
|
|
}
|
|
|
this.$set(item, 'amount', '')
|
|
|
this.$set(item, 'purpose', '')
|
|
|
+ if(this.dialogStatus==='special' && this.createTemp.purchaseType == '2'){
|
|
|
+ this.$set(item,'price','')
|
|
|
+ }else if(this.dialogStatus==='special' && this.createTemp.purchaseType == '3'){
|
|
|
+ this.$set(item,'price','0')
|
|
|
+ this.$set(item,'amount','0')
|
|
|
+ }
|
|
|
this.listAdd.unshift(item)
|
|
|
this.$forceUpdate()
|
|
|
})
|
|
@@ -1105,9 +1107,6 @@ export default {
|
|
|
if (this.listAdd.find(obj => obj.partId == item.partId)) {
|
|
|
this.$message({ type: 'warning', message: '此备件已存在,请重新选择备件' })
|
|
|
} else {
|
|
|
- if(this.dialogStatus==='special' && this.createTemp.purchaseType == '3'){
|
|
|
- this.$set(item,'price','0')
|
|
|
- }
|
|
|
if (item.srcpath !== null && item.picpath !== null && item.srcpath !== undefined && item.picpath !== undefined) {
|
|
|
this.$set(item, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
|
|
|
this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
|
|
@@ -1117,12 +1116,13 @@ export default {
|
|
|
}
|
|
|
this.$set(item, 'amount', '')
|
|
|
this.$set(item, 'purpose', '')
|
|
|
+ if(this.dialogStatus==='special' && this.createTemp.purchaseType == '3'){
|
|
|
+ this.$set(item,'price','0')
|
|
|
+ this.$set(item,'amount','0')
|
|
|
+ }
|
|
|
this.listAdd.unshift(item)
|
|
|
}
|
|
|
} else {
|
|
|
- if(this.dialogStatus==='special' && this.createTemp.purchaseType == '3'){
|
|
|
- this.$set(item,'price','0')
|
|
|
- }
|
|
|
if (item.srcpath !== null && item.picpath !== null && item.srcpath !== undefined && item.picpath !== undefined) {
|
|
|
this.$set(item, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
|
|
|
this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
|
|
@@ -1132,6 +1132,10 @@ export default {
|
|
|
}
|
|
|
this.$set(item, 'amount', '')
|
|
|
this.$set(item, 'purpose', '')
|
|
|
+ if(this.dialogStatus==='special' && this.createTemp.purchaseType == '3'){
|
|
|
+ this.$set(item,'price','0')
|
|
|
+ this.$set(item,'amount','0')
|
|
|
+ }
|
|
|
this.listAdd.unshift(item)
|
|
|
this.$forceUpdate()
|
|
|
}
|