|
@@ -28,10 +28,31 @@
|
|
</p>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
|
|
+ <!--合同类型-->
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="合同类型"
|
|
|
|
+ span="1"
|
|
|
|
+ prop="agreementType"
|
|
|
|
+ >
|
|
|
|
+ <ws-select
|
|
|
|
+ v-model="deptBudgetList.agreementType"
|
|
|
|
+ placeholder
|
|
|
|
+ class="deal"
|
|
|
|
+ @change="selectType"
|
|
|
|
+ >
|
|
|
|
+ <ws-option
|
|
|
|
+ v-for="item in agreementList"
|
|
|
|
+ :key="item.constKey"
|
|
|
|
+ :label="item.constValue"
|
|
|
|
+ :value="item.constValue"
|
|
|
|
+ />
|
|
|
|
+ </ws-select>
|
|
|
|
+ </ws-form-item>
|
|
<!--合同编号-->
|
|
<!--合同编号-->
|
|
<ws-form-item
|
|
<ws-form-item
|
|
label="合同编号"
|
|
label="合同编号"
|
|
span="1"
|
|
span="1"
|
|
|
|
+ v-if="deptBudgetList.agreementType == '采购合同'"
|
|
prop="contractNo"
|
|
prop="contractNo"
|
|
class="readonly"
|
|
class="readonly"
|
|
required
|
|
required
|
|
@@ -43,7 +64,40 @@
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
-
|
|
|
|
|
|
+ <!--关联合同-->
|
|
|
|
+ <ws-form-item
|
|
|
|
+ prop="contractNo"
|
|
|
|
+ label="关联合同"
|
|
|
|
+ span="1"
|
|
|
|
+ v-if="deptBudgetList.agreementType == '补充协议'"
|
|
|
|
+ >
|
|
|
|
+ <ws-select
|
|
|
|
+ v-model="deptBudgetList.contractNo"
|
|
|
|
+ placeholder="请选择编号"
|
|
|
|
+ @change="selectRelation"
|
|
|
|
+ >
|
|
|
|
+ <ws-option
|
|
|
|
+ v-for="item in contractNoList"
|
|
|
|
+ :key="item.constKey"
|
|
|
|
+ :label="item.contractNo"
|
|
|
|
+ :value="item.contractNo"
|
|
|
|
+ ></ws-option>
|
|
|
|
+ </ws-select>
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--补充协议编号-->
|
|
|
|
+ <ws-form-item
|
|
|
|
+ v-show="deptBudgetList.agreementType == '补充协议'"
|
|
|
|
+ label="补充协议编号"
|
|
|
|
+ span="1"
|
|
|
|
+ prop="agreementNo"
|
|
|
|
+ >
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.agreementNo"
|
|
|
|
+ placeholder="请输入补充协议编号"
|
|
|
|
+ maxlength="100"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
<!--运输方式-->
|
|
<!--运输方式-->
|
|
<ws-form-item label="运输方式" span="1" prop="shippingType">
|
|
<ws-form-item label="运输方式" span="1" prop="shippingType">
|
|
<ws-input
|
|
<ws-input
|
|
@@ -550,6 +604,7 @@ import {
|
|
editxiala,
|
|
editxiala,
|
|
delxiala,
|
|
delxiala,
|
|
getstafffind,
|
|
getstafffind,
|
|
|
|
+ getRelationContractNo
|
|
} from '@/model/contarct/index'
|
|
} from '@/model/contarct/index'
|
|
import { regionData, CodeToText, TextToCode } from 'element-china-area-data'
|
|
import { regionData, CodeToText, TextToCode } from 'element-china-area-data'
|
|
import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
@@ -601,12 +656,23 @@ export default {
|
|
appendixIdsAdd: '',
|
|
appendixIdsAdd: '',
|
|
size: 10,
|
|
size: 10,
|
|
unitList: [],
|
|
unitList: [],
|
|
|
|
+ agreementList: [
|
|
|
|
+ {
|
|
|
|
+ constValue: '采购合同',
|
|
|
|
+ constKey: '1'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ constValue: '补充协议',
|
|
|
|
+ constKey: '2'
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ contractNoList: [],
|
|
goodnameList: [],
|
|
goodnameList: [],
|
|
value1: '袋装',
|
|
value1: '袋装',
|
|
value2: '未回收',
|
|
value2: '未回收',
|
|
gradeList: [],
|
|
gradeList: [],
|
|
ChapterTwoList: [],
|
|
ChapterTwoList: [],
|
|
-
|
|
|
|
|
|
+ agreementType:'',
|
|
deptBudgetList: {
|
|
deptBudgetList: {
|
|
deliverType: '1',
|
|
deliverType: '1',
|
|
addressUrl:'',
|
|
addressUrl:'',
|
|
@@ -730,6 +796,19 @@ export default {
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.ChapterTwoList = response
|
|
this.ChapterTwoList = response
|
|
})
|
|
})
|
|
|
|
+ //关联合同
|
|
|
|
+ getRelationContractNo({
|
|
|
|
+ agreementType: '采购合同',
|
|
|
|
+ goodsType: 1
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.contractNoList = response
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ selectRelation(e){
|
|
|
|
+ // this.deptBudgetList.agreementNo = e
|
|
|
|
+ this.$set(this.deptBudgetList,'agreementNo',e)
|
|
},
|
|
},
|
|
onChange() {
|
|
onChange() {
|
|
this.$refs.upload
|
|
this.$refs.upload
|
|
@@ -1360,6 +1439,14 @@ export default {
|
|
resetForm(deptBudgetList) {
|
|
resetForm(deptBudgetList) {
|
|
this.$refs[deptBudgetList].resetFields()
|
|
this.$refs[deptBudgetList].resetFields()
|
|
},
|
|
},
|
|
|
|
+ //选择合同类型
|
|
|
|
+ selectType(e) {
|
|
|
|
+ for (var i = 0; i < this.invoiceList.length; i++) {
|
|
|
|
+ if (this.agreementList[i].constValue == e) {
|
|
|
|
+ this.deptBudgetList.agreementType = this.agreementList[i].constValue
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
addClick() {
|
|
addClick() {
|
|
this.unitList.push({
|
|
this.unitList.push({
|
|
flag: 'add',
|
|
flag: 'add',
|
|
@@ -1596,7 +1683,7 @@ export default {
|
|
.wenzi p {
|
|
.wenzi p {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
}
|
|
}
|
|
-.upload-demo{
|
|
|
|
|
|
+.upload-demo {
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
.center {
|
|
.center {
|
|
@@ -1707,10 +1794,10 @@ export default {
|
|
}
|
|
}
|
|
//上传文件成功标识
|
|
//上传文件成功标识
|
|
/deep/.el-upload-list__item-status-label {
|
|
/deep/.el-upload-list__item-status-label {
|
|
- position: absolute;
|
|
|
|
- right: 22px;
|
|
|
|
- top: -1px;
|
|
|
|
- line-height: inherit;
|
|
|
|
- display: none;
|
|
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 22px;
|
|
|
|
+ top: -1px;
|
|
|
|
+ line-height: inherit;
|
|
|
|
+ display: none;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|