|
@@ -84,7 +84,6 @@
|
|
|
<el-table-column label="申购状态" min-width="80px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.purchase_type == 1">暂估</span>
|
|
|
- <span v-else-if="scope.row.purchase_type == 2">垫付</span>
|
|
|
<span v-else-if="scope.row.purchase_type == 3">赠品</span>
|
|
|
<span v-else>正常</span>
|
|
|
</template>
|
|
@@ -214,7 +213,7 @@
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="申购类型:" prop="purchaseType">
|
|
|
<el-radio v-model="createTemp.purchaseType" label="1" @change="changeType()">暂估</el-radio>
|
|
|
- <el-radio v-model="createTemp.purchaseType" label="2" @change="changeType()">垫付</el-radio>
|
|
|
+ <!-- <el-radio v-model="createTemp.purchaseType" label="2" @change="changeType()">垫付</el-radio> -->
|
|
|
<el-radio v-model="createTemp.purchaseType" label="3" @change="changeType()">赠品</el-radio>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -283,6 +282,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="dialogStatus==='create'">{{ scope.row.brandName }}</span>
|
|
|
<span v-if="dialogStatus==='update'">{{ scope.row.brandName }}</span>
|
|
|
+ <span v-if="dialogStatus==='special'">{{ scope.row.brandName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="计量单位" prop="unit" align="center" min-width="60">
|
|
@@ -297,7 +297,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column v-if="dialogStatus==='special'" label="价格" prop="price" align="center" min-width="60">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="createTemp.purchaseType == '1' || createTemp.purchaseType == '3'">{{ scope.row.price }}</span>
|
|
|
+ <span v-if="createTemp.purchaseType == '1'">{{ scope.row.price }}</span>
|
|
|
<el-form v-else :model="scope.row" :rules="rules">
|
|
|
<el-form-item prop="price">
|
|
|
<el-input v-model="scope.row.price" style="margin-top:15px" />
|
|
@@ -415,7 +415,7 @@
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="申购类型:" prop="purchaseType">
|
|
|
<el-radio v-model="seeTemp.purchaseType" disabled label="1">暂估</el-radio>
|
|
|
- <el-radio v-model="seeTemp.purchaseType" disabled label="2">垫付</el-radio>
|
|
|
+ <!-- <el-radio v-model="seeTemp.purchaseType" disabled label="2">垫付</el-radio> -->
|
|
|
<el-radio v-model="seeTemp.purchaseType" disabled label="3">赠品</el-radio>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -596,7 +596,7 @@ export default {
|
|
|
findAllPasture: [],
|
|
|
findAllDepart: [],
|
|
|
findAllEmploye: [],
|
|
|
- subscriptionStatusList:[{id:0,name:'正常'},{id:1,name:'暂估'},{id:2,name:'垫付'},{id:3,name:'赠品'}],//申购状态
|
|
|
+ subscriptionStatusList:[{id:0,name:'正常'},{id:1,name:'暂估'},{id:3,name:'赠品'}],//申购状态
|
|
|
onlineSubscriptionList: [], createDepartList: [], edit: 0,
|
|
|
requestParams: [
|
|
|
{ name: 'findAllProvider', offset: 0, pagecount: 0, params: [] },
|
|
@@ -1007,16 +1007,20 @@ export default {
|
|
|
sparePartSearch(queryString, cb) {
|
|
|
console.log('备件模糊查询输入值', queryString)
|
|
|
if(this.dialogStatus==='special'){
|
|
|
- if(this.createTemp.providerId !== '' && this.createTemp.purchaseType !== '3'){
|
|
|
- this.requestSparePart.name = 'getPartsListSG'
|
|
|
- this.requestSparePart.parammaps['providerId'] = this.createTemp.providerId
|
|
|
- }else{
|
|
|
- if(this.createTemp.purchaseType == 1){
|
|
|
+ if(this.createTemp.purchaseType == 1 || this.createTemp.purchaseType == '3'){
|
|
|
+ if(this.createTemp.providerId == ''){
|
|
|
this.$message({ type: 'warning', message: '请选择供应商' })
|
|
|
return false;
|
|
|
}else{
|
|
|
- this.requestSparePart.name = 'getPartsListSG'
|
|
|
- this.requestSparePart.parammaps['providerId'] = ''
|
|
|
+ if(this.createTemp.purchaseType == '3'){
|
|
|
+ this.requestSparePart.name = 'getStockListByGiveaway'
|
|
|
+ this.requestSparePart.parammaps['providerName'] = this.providerList.find(obj => obj.id == this.createTemp.providerId).providerName
|
|
|
+ this.requestSparePart.parammaps['providerId'] = this.createTemp.providerId
|
|
|
+ this.requestSparePart.parammaps['pastureId'] = this.createTemp.pastureId
|
|
|
+ }else{
|
|
|
+ this.requestSparePart.name = 'getPartsListSG'
|
|
|
+ this.requestSparePart.parammaps['providerId'] = this.createTemp.providerId
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
@@ -1896,7 +1900,7 @@ export default {
|
|
|
this.isokDisable = true
|
|
|
setTimeout(() => {
|
|
|
this.isokDisable = false
|
|
|
- }, 1000)
|
|
|
+ }, 10000)
|
|
|
this.$refs['examineTemp'].validate(valid => {
|
|
|
if (valid) {
|
|
|
this.requestParam = {}
|
|
@@ -1957,7 +1961,7 @@ export default {
|
|
|
this.isokDisable = true
|
|
|
setTimeout(() => {
|
|
|
this.isokDisable = false
|
|
|
- }, 1000)
|
|
|
+ }, 10000)
|
|
|
this.$refs['examineTemp'].validate(valid => {
|
|
|
if (valid) {
|
|
|
this.requestParam = {}
|
|
@@ -2099,6 +2103,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
let url = 'authdata/spare/parts/requisitions'
|
|
|
+ for(let i=0;i<this.listAdd.length;i++){
|
|
|
+ this.$set(this.listAdd[i],'contractId',String(this.listAdd[i].contractId))
|
|
|
+ }
|
|
|
let data = {
|
|
|
"pastureId": parseInt(this.createTemp.pastureId),
|
|
|
"departmentId": parseInt(this.createTemp.departmentId),
|