|  | @@ -204,7 +204,7 @@
 | 
	
		
			
				|  |  |              </el-col>
 | 
	
		
			
				|  |  |              <el-col  :span="8" v-if="dialogStatus==='special' && createTemp.purchaseType == '2'">
 | 
	
		
			
				|  |  |                <el-form-item label="垫付人:" prop="funderId">
 | 
	
		
			
				|  |  | -                <el-select v-model="createTemp.funderId" placeholder="垫付人" class="filter-item" style="width:100%" :disabled="dialogStatus==='update'">
 | 
	
		
			
				|  |  | +                <el-select v-model="createTemp.funderId" filterable placeholder="垫付人" class="filter-item" style="width:100%" :disabled="dialogStatus==='update'">
 | 
	
		
			
				|  |  |                    <el-option v-for="item in findAllEmploye" :key="item.id" :label="item.name" :value="item.id" />
 | 
	
		
			
				|  |  |                  </el-select>
 | 
	
		
			
				|  |  |                </el-form-item>
 | 
	
	
		
			
				|  | @@ -390,14 +390,19 @@
 | 
	
		
			
				|  |  |                  <el-date-picker v-model="seeTemp.createTime" :picker-options="pickerOptions" type="date" placeholder="申购日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" disabled />
 | 
	
		
			
				|  |  |                </el-form-item>
 | 
	
		
			
				|  |  |              </el-col>
 | 
	
		
			
				|  |  | -            <el-col :span="8" v-if="seeTemp.purchase_type > 0">
 | 
	
		
			
				|  |  | +            <el-col :span="8" v-if="seeTemp.purchaseType == '2'">
 | 
	
		
			
				|  |  | +              <el-form-item label="供应商:" prop="funderProviderName ">
 | 
	
		
			
				|  |  | +                <el-input ref="funderProviderName " v-model="seeTemp.funderProviderName " disabled />
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +            <el-col :span="8" v-if="seeTemp.purchase_type > 0 && seeTemp.purchaseType !== '2'">
 | 
	
		
			
				|  |  |                <el-form-item label="供应商:" prop="providerName">
 | 
	
		
			
				|  |  |                  <el-input ref="providerName" v-model="seeTemp.providerName" disabled />
 | 
	
		
			
				|  |  |                </el-form-item>
 | 
	
		
			
				|  |  |              </el-col>
 | 
	
		
			
				|  |  |              <el-col :span="8" v-if="seeTemp.purchaseType == '2'">
 | 
	
		
			
				|  |  | -              <el-form-item label="垫付人:" prop="providerName">
 | 
	
		
			
				|  |  | -                <el-input ref="providerName" v-model="seeTemp.providerName" disabled />
 | 
	
		
			
				|  |  | +              <el-form-item label="垫付人:" prop="funder_name">
 | 
	
		
			
				|  |  | +                <el-input ref="funder_name" v-model="seeTemp.funder_name" disabled />
 | 
	
		
			
				|  |  |                </el-form-item>
 | 
	
		
			
				|  |  |              </el-col>
 | 
	
		
			
				|  |  |              <el-col :span="8" v-if="seeTemp.purchase_type < 1">
 | 
	
	
		
			
				|  | @@ -962,6 +967,7 @@ export default {
 | 
	
		
			
				|  |  |      resetCreateTemp() {
 | 
	
		
			
				|  |  |        this.createTemp.pastureId = parseInt(Cookies.get('pastureid'))
 | 
	
		
			
				|  |  |        this.createTemp.departmentId = parseInt(Cookies.get('departmentid'))
 | 
	
		
			
				|  |  | +      this.createTemp.departmentName = Cookies.get('departmentname')
 | 
	
		
			
				|  |  |        this.createTemp.employeId = parseInt(Cookies.get('employeid'))
 | 
	
		
			
				|  |  |        this.createTemp.createTime = parseTime(new Date(), '{y}-{m}-{d}')
 | 
	
		
			
				|  |  |        this.createTemp.orderNumber = ''
 | 
	
	
		
			
				|  | @@ -1005,7 +1011,7 @@ export default {
 | 
	
		
			
				|  |  |            this.requestSparePart.name = 'getPartsListSG'
 | 
	
		
			
				|  |  |            this.requestSparePart.parammaps['providerId'] = this.createTemp.providerId
 | 
	
		
			
				|  |  |          }else{
 | 
	
		
			
				|  |  | -          if(this.createTemp.purchaseType == 3 || this.createTemp.purchaseType == 1){
 | 
	
		
			
				|  |  | +          if(this.createTemp.purchaseType == 1){
 | 
	
		
			
				|  |  |              this.$message({ type: 'warning', message: '请选择供应商' })
 | 
	
		
			
				|  |  |              return false;
 | 
	
		
			
				|  |  |            }else{
 | 
	
	
		
			
				|  | @@ -1049,6 +1055,11 @@ 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 +1080,11 @@ 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)
 | 
	
	
		
			
				|  | @@ -1085,6 +1101,7 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          this.$forceUpdate()
 | 
	
		
			
				|  |  |        } else {
 | 
	
		
			
				|  |  | +        console.log(2222222222)
 | 
	
		
			
				|  |  |          if (this.listAdd.length > 0) {
 | 
	
		
			
				|  |  |            if (this.listAdd.find(obj => obj.partId == item.partId)) {
 | 
	
		
			
				|  |  |              this.$message({ type: 'warning', message: '此备件已存在,请重新选择备件' })
 | 
	
	
		
			
				|  | @@ -1657,6 +1674,7 @@ export default {
 | 
	
		
			
				|  |  |            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
 | 
	
		
			
				|  |  |            PostDataByName(this.requestParam).then(response => {
 | 
	
		
			
				|  |  |              console.log('审核确认发送参数', this.requestParam)
 | 
	
		
			
				|  |  | +            this.isokDisable = false
 | 
	
		
			
				|  |  |              if (response.msg !== 'fail') {
 | 
	
		
			
				|  |  |                this.get_table_data()
 | 
	
		
			
				|  |  |                this.dialogFormVisible_Examine = false
 | 
	
	
		
			
				|  | @@ -1711,6 +1729,7 @@ export default {
 | 
	
		
			
				|  |  |            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
 | 
	
		
			
				|  |  |            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
 | 
	
		
			
				|  |  |            PostDataByName(this.requestParam).then(response => {
 | 
	
		
			
				|  |  | +            this.isokDisable = false
 | 
	
		
			
				|  |  |              console.log('审核确认发送参数', this.requestParam)
 | 
	
		
			
				|  |  |              if (response.msg !== 'fail') {
 | 
	
		
			
				|  |  |                this.get_table_data()
 | 
	
	
		
			
				|  | @@ -1766,6 +1785,7 @@ export default {
 | 
	
		
			
				|  |  |            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
 | 
	
		
			
				|  |  |            PostDataByName(this.requestParam).then(response => {
 | 
	
		
			
				|  |  |              console.log('审核确认发送参数', this.requestParam)
 | 
	
		
			
				|  |  | +            this.isokDisable = false
 | 
	
		
			
				|  |  |              if (response.msg !== 'fail') {
 | 
	
		
			
				|  |  |                this.get_table_data()
 | 
	
		
			
				|  |  |                this.dialogFormVisible_Examine = false
 | 
	
	
		
			
				|  | @@ -1833,6 +1853,7 @@ export default {
 | 
	
		
			
				|  |  |              }}
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |            ExecDataByConfig(this.requestParam).then(response => {
 | 
	
		
			
				|  |  | +            this.isokDisable = false
 | 
	
		
			
				|  |  |              if (response.msg !== 'fail') {
 | 
	
		
			
				|  |  |                this.get_table_data()
 | 
	
		
			
				|  |  |                this.dialogFormVisible_Examine = false
 | 
	
	
		
			
				|  | @@ -1893,6 +1914,7 @@ export default {
 | 
	
		
			
				|  |  |              }}
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |            ExecDataByConfig(this.requestParam).then(response => {
 | 
	
		
			
				|  |  | +            this.isokDisable = false
 | 
	
		
			
				|  |  |              if (response.msg !== 'fail') {
 | 
	
		
			
				|  |  |                this.get_table_data()
 | 
	
		
			
				|  |  |                this.dialogFormVisible_Examine = false
 | 
	
	
		
			
				|  | @@ -1942,6 +1964,7 @@ export default {
 | 
	
		
			
				|  |  |            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
 | 
	
		
			
				|  |  |            PostDataByName(this.requestParam).then(response => {
 | 
	
		
			
				|  |  |              console.log('审核确认发送参数', this.requestParam)
 | 
	
		
			
				|  |  | +            this.isokDisable = false
 | 
	
		
			
				|  |  |              if (response.msg !== 'fail') {
 | 
	
		
			
				|  |  |                this.get_table_data()
 | 
	
		
			
				|  |  |                this.dialogFormVisible_Examine = false
 | 
	
	
		
			
				|  | @@ -2070,16 +2093,17 @@ export default {
 | 
	
		
			
				|  |  |          let data = {
 | 
	
		
			
				|  |  |            "pastureId": parseInt(this.createTemp.pastureId),
 | 
	
		
			
				|  |  |            "departmentId": parseInt(this.createTemp.departmentId),
 | 
	
		
			
				|  |  | +          'departmentName':this.createTemp.departmentName,
 | 
	
		
			
				|  |  |            "orderNumber": this.createTemp.orderNumber,
 | 
	
		
			
				|  |  |            "createTime": this.createTemp.createTime,
 | 
	
		
			
				|  |  |            "employeId": this.createTemp.employeId,
 | 
	
		
			
				|  |  | +          "providerName": this.createTemp.providerName,
 | 
	
		
			
				|  |  |            "purchaseType": parseInt(this.createTemp.purchaseType),
 | 
	
		
			
				|  |  |            "spot_list":this.listAdd
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if(this.createTemp.purchaseType == '2'){
 | 
	
		
			
				|  |  | -          data.providerName =  this.createTemp.providerName
 | 
	
		
			
				|  |  | -        }else{
 | 
	
		
			
				|  |  | +        if(this.createTemp.purchaseType == '1' || this.createTemp.purchaseType == '3'){
 | 
	
		
			
				|  |  |            data.providerId = this.createTemp.providerId
 | 
	
		
			
				|  |  | +          data.providerName =  this.providerList.find(obj => obj.id == this.createTemp.providerId).providerName
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if(this.createTemp.funderId){
 | 
	
		
			
				|  |  |            data.funderId = this.createTemp.funderId
 |