|
@@ -18,6 +18,7 @@
|
|
|
>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+
|
|
|
<ws-form
|
|
|
ref="deptBudgetList"
|
|
|
:rules="mainReportAdd"
|
|
@@ -260,8 +261,9 @@
|
|
|
<div class="remark">
|
|
|
<h3>备注信息</h3>
|
|
|
</div>
|
|
|
- {{deptBudgetList.contractProcessInfo.remarks}}
|
|
|
- <img :src="deptBudgetList.contractProcessInfo.addressUrl" alt="">
|
|
|
+ {{deptBudgetList.remarks}}
|
|
|
+ <img :src="deptBudgetList.addressUrl" alt="">
|
|
|
+
|
|
|
<!-- </base-card> -->
|
|
|
|
|
|
</ws-form>
|
|
@@ -279,8 +281,16 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getVesselOne } from '@/model/procurement/basic'
|
|
|
-import{getList}from'@/model/contarct/index'
|
|
|
+import {
|
|
|
+ getList,
|
|
|
+ packList,
|
|
|
+ addList,
|
|
|
+ xiala,
|
|
|
+ addxiala,
|
|
|
+ editxiala,
|
|
|
+ delxiala,
|
|
|
+ examineList,
|
|
|
+} from '@/model/contarct/index'
|
|
|
import { dayjs } from 'base-core-lib'
|
|
|
export default {
|
|
|
name: 'viewSpareMoney',
|
|
@@ -307,20 +317,79 @@ export default {
|
|
|
year: '',
|
|
|
// 提交类型
|
|
|
submitType: true,
|
|
|
- tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
|
|
|
+ tableData: [],
|
|
|
ruleDeptBudget: [],
|
|
|
- deptBudgetList: {},
|
|
|
+ deptBudgetList: {
|
|
|
+ contractProcessInfo: {},
|
|
|
+ contractGoodsInfo: {},
|
|
|
+ },
|
|
|
mainReportAdd: {},
|
|
|
+ list: {},
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
created() {
|
|
|
- //cg.viewBudget
|
|
|
- //cg.viewSpareMoney
|
|
|
- // this.getVesselData();
|
|
|
+ this.loaddata()
|
|
|
this.showType = this.isShow
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
+ loaddata() {
|
|
|
+ // 数据
|
|
|
+ examineList({ id: this.$route.params.id })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.deptBudgetList = response
|
|
|
+ })
|
|
|
+ // 包装方式
|
|
|
+ packList({ constId: 'CON1' })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.packtypeList = response
|
|
|
+ })
|
|
|
+ // 验收方式
|
|
|
+ this.getUnitList()
|
|
|
+ // 货名
|
|
|
+ packList({ constId: 'CON2' })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.goodnameList = response
|
|
|
+ })
|
|
|
+ // 品级
|
|
|
+ packList({ constId: 'CON3' })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.gradeList = response
|
|
|
+ })
|
|
|
+ // 双章
|
|
|
+ packList({ constId: 'CON4' })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.ChapterTwoList = response
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getUnitList() {
|
|
|
+ xiala({
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ constCode: 'TYPEYAN',
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.unitList = response
|
|
|
+ let currItem
|
|
|
+ this.unitList.forEach((item, index, arr) => {
|
|
|
+ item.flag = 'delete'
|
|
|
+ if (this.vModel == item.constKey) {
|
|
|
+ currItem = item
|
|
|
+ }
|
|
|
+ })
|
|
|
+ //
|
|
|
+ if (currItem) {
|
|
|
+ this.selectContract(currItem.constValue)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 关闭 dialog时 处理文件url 初始化upload组件
|
|
|
handleClose() {
|
|
|
this.dialogViewSpareMoney = false
|
|
@@ -328,7 +397,7 @@ export default {
|
|
|
handleExamine() {},
|
|
|
approve() {},
|
|
|
returnsales() {
|
|
|
- this.$router.push({ path: 'purchaseContract' })
|
|
|
+ this.$router.push({ path: 'salesContract' })
|
|
|
},
|
|
|
},
|
|
|
}
|
|
@@ -488,4 +557,4 @@ export default {
|
|
|
overflow: scroll;
|
|
|
height: 93vh;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|