|
@@ -50,15 +50,26 @@
|
|
|
ref="dataForm"
|
|
|
label-width="100px"
|
|
|
class="demo-ruleForm">
|
|
|
- <el-form-item label="选择合同类型" prop="contract_type" style="width:70%;padding-left:25px;">
|
|
|
+ <el-form-item label="选择合同类型" prop="contract_type" style="width:70%;padding-left:25px;" v-if="!isRaiSellerShow">
|
|
|
<!-- <i style="color:#f00;fontSize:20px;position:absolute;left:-114px;top:10%;">*</i> -->
|
|
|
<el-radio label="续约合同" v-model="dataForm.contract_type" v-if="$route.path=='/updateCustom'">续约合同</el-radio>
|
|
|
<el-radio label="补充协议" v-model="dataForm.contract_type" v-else>补充协议</el-radio>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label-width="140px" label="请输入合同编号" style="width:100%" prop="CreditCode" v-if="isRaiSellerShow"
|
|
|
+ :rules="{required: true, message: '请输入合同编号', trigger: 'blur'}">
|
|
|
+ <i style="color:#f00;fontSize:20px;position:absolute;left:-128px;top:10%;">*</i>
|
|
|
+ <el-autocomplete
|
|
|
+ style="width:360px;"
|
|
|
+ v-model="dataForm.CreditCode"
|
|
|
+ :fetch-suggestions="querySearchCreditCode"
|
|
|
+ placeholder="请复制申请用印时生成的合同编号"
|
|
|
+ @select="handleSelectCreditCode"
|
|
|
+ ></el-autocomplete>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="合同期限" prop="term" style="marginRight:60px;">
|
|
|
<i style="color:#f00;fontSize:20px;position:absolute;left:-90px;top:10%;">*</i>
|
|
|
<el-date-picker
|
|
|
- :disabled="timeDisable"
|
|
|
+ :disabled="timeDisable || isRaiSellerShow"
|
|
|
v-model="dataForm.term"
|
|
|
type="daterange"
|
|
|
range-separator="至"
|
|
@@ -74,6 +85,7 @@
|
|
|
<i style="color:#f00;fontSize:20px;position:absolute;left:-90px;top:10%;">*</i>
|
|
|
<el-input
|
|
|
v-model.number="dataForm.amount"
|
|
|
+ :disabled="isRaiSellerShow"
|
|
|
placeholder="请输入金额"
|
|
|
style="width:400px"
|
|
|
clearable></el-input>
|
|
@@ -229,7 +241,8 @@ export default {
|
|
|
payfrom:'',
|
|
|
imglist:[],
|
|
|
setmeal:'',
|
|
|
- qyBigServeCheck:0
|
|
|
+ qyBigServeCheck:0,
|
|
|
+ CreditCode:'',
|
|
|
},
|
|
|
formRule:{
|
|
|
// contract_type:[
|
|
@@ -916,6 +929,31 @@ export default {
|
|
|
})
|
|
|
this.$message.warning('请勾选品种')
|
|
|
}
|
|
|
+ },
|
|
|
+ // 获取合同编号
|
|
|
+ async querySearchCreditCode(queryString, cb) {
|
|
|
+ cb([])
|
|
|
+ if(queryString) {
|
|
|
+ const res = await customInterence.searchSealcodeSeal({
|
|
|
+ KeyWord:queryString
|
|
|
+ })
|
|
|
+ if(res.Ret === 200) {
|
|
|
+ if(res.Data.List.length) {
|
|
|
+ const data = res.Data.List.map(item => {
|
|
|
+ return {
|
|
|
+ value: item.Code,
|
|
|
+ ...item
|
|
|
+ }
|
|
|
+ })
|
|
|
+ cb(data)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 选择合同编号
|
|
|
+ handleSelectCreditCode(item) {
|
|
|
+ this.dataForm.term = [item.StartDate,item.EndDate]
|
|
|
+ this.dataForm.amount = item.Money
|
|
|
}
|
|
|
},
|
|
|
created() {},
|
|
@@ -927,6 +965,11 @@ export default {
|
|
|
}else {
|
|
|
this.getAuthBasic();
|
|
|
}
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ isRaiSellerShow() {
|
|
|
+ return localStorage.getItem('Role') === 'rai_seller';
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|