|
|
|
|
@ -165,6 +165,17 @@
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-model-item>-->
|
|
|
|
|
<a-form-model-item ref="policy" label="政策" prop="policy" class="policyContainer" :wrapperCol="{ span: 18 }" :labelCol="{ span: 4 }">
|
|
|
|
|
<div class="policy" style="min-height: 30px !important">{{form.policy }}</div>
|
|
|
|
|
<div style class="mb20 mt12">
|
|
|
|
|
<a-radio-group v-model="currentPolicy" class="fss policyRadios" @change="policyChange($event)">
|
|
|
|
|
<div v-for="(item,index) in zhengceTextList" class="mt12">
|
|
|
|
|
<a-radio class="fss" :value="item.value">
|
|
|
|
|
<!-- {{'政策' + (index + 1)}} -->
|
|
|
|
|
<span class="mt12" style="max-width:480px;white-space: pre-line;">{{item.name}}</span>
|
|
|
|
|
</a-radio>
|
|
|
|
|
</div>
|
|
|
|
|
</a-radio-group>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <a-input v-model="form.policy" type='textarea'/> -->
|
|
|
|
|
<!-- <div style="transform:translateY(8px)" v-if="form.policy.length != 0">
|
|
|
|
|
<a-radio-group v-model="currentPolicy" @change="policyChange($event)">
|
|
|
|
|
@ -177,11 +188,11 @@
|
|
|
|
|
</a-radio-group>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>-</div>-->
|
|
|
|
|
<div class="policy" style="min-height: 30px !important">{{ form.policy }}</div>
|
|
|
|
|
<!-- <div class="policy" style="min-height: 30px !important">{{ form.policy }}</div>
|
|
|
|
|
<div class="openContral" v-if="isContainerShow">
|
|
|
|
|
<span v-if="isFold" @click="toFold(1)">展开</span>
|
|
|
|
|
<span v-else @click="toFold(2)">收起</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>-->
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
|
|
|
|
|
<a-form-model-item ref="desp" style="margin-bottom:12px;" label="备注" prop="desp" :wrapperCol="{ span: 18 }" :labelCol="{ span: 4 }">
|
|
|
|
|
@ -224,7 +235,7 @@ import { nationlist } from '../../utils/datalist'
|
|
|
|
|
import moment from 'moment'
|
|
|
|
|
import { isEmptyCheck, getAgeFromBirthday } from '../../utils/commonUtil'
|
|
|
|
|
import timepicker from './components/timepicker.vue'
|
|
|
|
|
import { recordBillApi, getProxyInfoApi, getStoreAliasApi, getStoreJobApi, getPolicyByJobIdApi, getPolicyListByJobIdApi } from '@/api/job'
|
|
|
|
|
import { recordBillApi, getProxyInfoApi, getStoreAliasApi, getStoreJobApi, getPolicyByJobIdApi, getPolicyListByJobIdApi, getJobDetailApi } from '@/api/job'
|
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
import qs from 'qs'
|
|
|
|
|
// import axios from "axios";
|
|
|
|
|
@ -366,6 +377,8 @@ export default {
|
|
|
|
|
proxyinfo: {},
|
|
|
|
|
|
|
|
|
|
firminfo: {},
|
|
|
|
|
zhengceTextList: [],
|
|
|
|
|
policyNum: 0, // 政策的数目
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 计算属性
|
|
|
|
|
@ -393,10 +406,12 @@ export default {
|
|
|
|
|
if (this.proxyinfo.roleOfPmd) {
|
|
|
|
|
this.isMaster = true
|
|
|
|
|
}
|
|
|
|
|
console.log(this.proxyinfo);
|
|
|
|
|
console.log(this.proxyinfo)
|
|
|
|
|
this.getProxyInfo(this.proxyinfo.id)
|
|
|
|
|
this.getJob(this.firminfo)
|
|
|
|
|
this.getPolicyByJobId(this.firminfo.id)
|
|
|
|
|
this.getPolicyByJobId(this.firminfo.id || '').then(() => {
|
|
|
|
|
this.getJobDetail(this.firminfo.id || '')
|
|
|
|
|
})
|
|
|
|
|
// this.getPolicyListByJobId(this.firminfo.id)
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
@ -417,18 +432,18 @@ export default {
|
|
|
|
|
let that = this
|
|
|
|
|
const policy = document.querySelector('.policy')
|
|
|
|
|
// this.$nextTick(()=>{
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
console.log(policy.offsetHeight)
|
|
|
|
|
console.log(policy.innerHTML)
|
|
|
|
|
if (policy.offsetHeight >= 230) {
|
|
|
|
|
policy.style.maxHeight = '230px'
|
|
|
|
|
policy.style.marginBottom = '24px'
|
|
|
|
|
that.isContainerShow = true
|
|
|
|
|
} else {
|
|
|
|
|
policy.style.minHeight = '230px'
|
|
|
|
|
that.isContainerShow = false
|
|
|
|
|
}
|
|
|
|
|
}, 100)
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// console.log(policy.offsetHeight)
|
|
|
|
|
// console.log(policy.innerHTML)
|
|
|
|
|
// if (policy.offsetHeight >= 230) {
|
|
|
|
|
// policy.style.maxHeight = '230px'
|
|
|
|
|
// policy.style.marginBottom = '24px'
|
|
|
|
|
// that.isContainerShow = true
|
|
|
|
|
// } else {
|
|
|
|
|
// policy.style.minHeight = '230px'
|
|
|
|
|
// that.isContainerShow = false
|
|
|
|
|
// }
|
|
|
|
|
// }, 100)
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.log(error)
|
|
|
|
|
@ -464,17 +479,73 @@ export default {
|
|
|
|
|
console.log(error)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async getPolicyByJobId(value) {
|
|
|
|
|
console.log(value)
|
|
|
|
|
async getJobDetail(value) {
|
|
|
|
|
try {
|
|
|
|
|
const { data } = await getPolicyByJobIdApi(value)
|
|
|
|
|
const { data } = await getJobDetailApi(value)
|
|
|
|
|
console.log(data)
|
|
|
|
|
if (data.status === 200) {
|
|
|
|
|
this.form.policyNum = data.data.storeJob.policyNum
|
|
|
|
|
console.log(this.form.policyNum)
|
|
|
|
|
if (this.form.policyNum == '' && this.form.policy != '') {
|
|
|
|
|
this.form.policyNum = 1
|
|
|
|
|
console.log(this.form.policyNum)
|
|
|
|
|
}
|
|
|
|
|
let list = []
|
|
|
|
|
for (let i = 0; i < this.form.policyNum; i++) {
|
|
|
|
|
let pickerStr
|
|
|
|
|
if (i <= 9) {
|
|
|
|
|
switch (i) {
|
|
|
|
|
case 0:
|
|
|
|
|
pickerStr = '政策一'
|
|
|
|
|
break
|
|
|
|
|
case 1:
|
|
|
|
|
pickerStr = '政策二'
|
|
|
|
|
break
|
|
|
|
|
case 2:
|
|
|
|
|
pickerStr = '政策三'
|
|
|
|
|
break
|
|
|
|
|
case 3:
|
|
|
|
|
pickerStr = '政策四'
|
|
|
|
|
break
|
|
|
|
|
case 4:
|
|
|
|
|
pickerStr = '政策五'
|
|
|
|
|
break
|
|
|
|
|
case 5:
|
|
|
|
|
pickerStr = '政策六'
|
|
|
|
|
break
|
|
|
|
|
case 6:
|
|
|
|
|
pickerStr = '政策七'
|
|
|
|
|
break
|
|
|
|
|
case 7:
|
|
|
|
|
pickerStr = '政策八'
|
|
|
|
|
break
|
|
|
|
|
case 8:
|
|
|
|
|
pickerStr = '政策九'
|
|
|
|
|
break
|
|
|
|
|
case 9:
|
|
|
|
|
pickerStr = '政策十'
|
|
|
|
|
break
|
|
|
|
|
default:
|
|
|
|
|
pickerStr = '政策' + (index + 1)
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
list[i] = { value: i + 1, name: pickerStr }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log(list)
|
|
|
|
|
// policy: res.data.data,
|
|
|
|
|
// isShowZhedie: true,
|
|
|
|
|
this.zhengceTextList = list
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {}
|
|
|
|
|
},
|
|
|
|
|
async getPolicyByJobId(value) {
|
|
|
|
|
return getPolicyByJobIdApi(value).then(({ data }) => {
|
|
|
|
|
console.log(data)
|
|
|
|
|
if (data.status === 200) {
|
|
|
|
|
this.form.policy = data.data
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.log(error)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
onClose() {
|
|
|
|
|
this.form = {
|
|
|
|
|
@ -515,7 +586,7 @@ export default {
|
|
|
|
|
let dataObj = qs.stringify({
|
|
|
|
|
...this.form,
|
|
|
|
|
storeJobId: this.firminfo.id,
|
|
|
|
|
// storeJobPolicyId: this.currentPolicy,
|
|
|
|
|
policyIdx: this.currentPolicy,
|
|
|
|
|
// policy: '',
|
|
|
|
|
})
|
|
|
|
|
console.log(dataObj)
|
|
|
|
|
@ -712,8 +783,8 @@ export default {
|
|
|
|
|
let _self = this
|
|
|
|
|
this.loading = true
|
|
|
|
|
var formData = new FormData()
|
|
|
|
|
let str = file.file.name.replace(/\s/g, "")
|
|
|
|
|
_self.dataObj.key = _self.dataObj.key + str
|
|
|
|
|
let str = file.file.name.replace(/\s/g, '')
|
|
|
|
|
_self.dataObj.key = _self.dataObj.key + str
|
|
|
|
|
//注意formData里append添加的键的大小写
|
|
|
|
|
formData.append('key', _self.dataObj.key) //存储在oss的文件路径
|
|
|
|
|
formData.append('OSSAccessKeyId', _self.dataObj.ossaccessKeyId) //accessKeyId
|
|
|
|
|
@ -802,8 +873,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
let _self = this
|
|
|
|
|
var formData = new FormData()
|
|
|
|
|
let str = file.file.name.replace(/\s/g, "")
|
|
|
|
|
_self.dataObj.key = _self.dataObj.key + str
|
|
|
|
|
let str = file.file.name.replace(/\s/g, '')
|
|
|
|
|
_self.dataObj.key = _self.dataObj.key + str
|
|
|
|
|
//注意formData里append添加的键的大小写
|
|
|
|
|
formData.append('key', _self.dataObj.key) //存储在oss的文件路径
|
|
|
|
|
formData.append('OSSAccessKeyId', _self.dataObj.ossaccessKeyId) //accessKeyId
|
|
|
|
|
@ -939,7 +1010,9 @@ export default {
|
|
|
|
|
// this.storeJobList = [];
|
|
|
|
|
// if(!isEmptyCheck(this.form.qiyeId)){
|
|
|
|
|
// this.getPolicyListByJobId(value.id)
|
|
|
|
|
this.getPolicyByJobId(value.id)
|
|
|
|
|
this.getPolicyByJobId(value.id).then(() => {
|
|
|
|
|
this.getJobDetail(value.id)
|
|
|
|
|
})
|
|
|
|
|
this.form.storeJobId = value.id
|
|
|
|
|
this.jobnameStatus = ''
|
|
|
|
|
this.firminfo.jobName = value.jobName
|
|
|
|
|
@ -1663,4 +1736,7 @@ export default {
|
|
|
|
|
/deep/ .ant-select-selection {
|
|
|
|
|
border-radius: 0px !important;
|
|
|
|
|
}
|
|
|
|
|
.policyRadios{
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|