|
@@ -292,12 +292,12 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="现有库存" prop="reportery" align="center" min-width="60">
|
|
<el-table-column label="现有库存" prop="reportery" align="center" min-width="60">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span v-if="createTemp.providerId == ''">{{ scope.row.reportery }}</span>
|
|
|
|
|
|
+ <span v-if="createTemp.providerId == '' || parseFloat(createTemp.purchaseType) > 0">{{ scope.row.reportery }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column v-if="dialogStatus==='special'" label="价格" prop="price" align="center" min-width="60">
|
|
<el-table-column v-if="dialogStatus==='special'" label="价格" prop="price" align="center" min-width="60">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span v-if="createTemp.purchaseType == '1'">{{ scope.row.price }}</span>
|
|
|
|
|
|
+ <span v-if="createTemp.purchaseType == '1' || createTemp.purchaseType == '3'">{{ scope.row.price }}</span>
|
|
<el-form v-else :model="scope.row" :rules="rules">
|
|
<el-form v-else :model="scope.row" :rules="rules">
|
|
<el-form-item prop="price">
|
|
<el-form-item prop="price">
|
|
<el-input v-model="scope.row.price" style="margin-top:15px" />
|
|
<el-input v-model="scope.row.price" style="margin-top:15px" />
|
|
@@ -1007,7 +1007,8 @@ export default {
|
|
sparePartSearch(queryString, cb) {
|
|
sparePartSearch(queryString, cb) {
|
|
console.log('备件模糊查询输入值', queryString)
|
|
console.log('备件模糊查询输入值', queryString)
|
|
if(this.dialogStatus==='special'){
|
|
if(this.dialogStatus==='special'){
|
|
- if(this.createTemp.providerId !== ''){
|
|
|
|
|
|
+ if(this.createTemp.providerId !== '' && this.createTemp.purchaseType !== '3'){
|
|
|
|
+ console.log(1111, this.createTemp.purchaseType)
|
|
this.requestSparePart.name = 'getPartsListSG'
|
|
this.requestSparePart.name = 'getPartsListSG'
|
|
this.requestSparePart.parammaps['providerId'] = this.createTemp.providerId
|
|
this.requestSparePart.parammaps['providerId'] = this.createTemp.providerId
|
|
}else{
|
|
}else{
|
|
@@ -1101,11 +1102,13 @@ export default {
|
|
}
|
|
}
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
} else {
|
|
} else {
|
|
- console.log(2222222222)
|
|
|
|
if (this.listAdd.length > 0) {
|
|
if (this.listAdd.length > 0) {
|
|
if (this.listAdd.find(obj => obj.partId == item.partId)) {
|
|
if (this.listAdd.find(obj => obj.partId == item.partId)) {
|
|
this.$message({ type: 'warning', message: '此备件已存在,请重新选择备件' })
|
|
this.$message({ type: 'warning', message: '此备件已存在,请重新选择备件' })
|
|
} else {
|
|
} 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) {
|
|
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, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
|
|
this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
|
|
this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
|
|
@@ -1118,6 +1121,9 @@ export default {
|
|
this.listAdd.unshift(item)
|
|
this.listAdd.unshift(item)
|
|
}
|
|
}
|
|
} else {
|
|
} 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) {
|
|
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, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
|
|
this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
|
|
this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
|