|
@@ -25,9 +25,11 @@
|
|
|
<h3>所属合同</h3>
|
|
|
<p>
|
|
|
<template>
|
|
|
- <span v-if="this.$route.query.contractType == '1'">销售合同</span>
|
|
|
- <span v-if="this.$route.query.contractType == '2'">采购合同</span>
|
|
|
- </template>(
|
|
|
+ <span v-if="this.$route.query.contractType == 1">销售合同</span>
|
|
|
+ <span v-if="this.$route.query.contractType == 2"
|
|
|
+ >采购合同</span
|
|
|
+ > </template
|
|
|
+ >(
|
|
|
<template>{{ this.$route.query.contractNo }}</template>
|
|
|
)
|
|
|
</p>
|
|
@@ -53,7 +55,7 @@
|
|
|
>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-for="(item,index) in deptBudgetList" :key="index">
|
|
|
+ <div v-for="(item, index) in deptBudgetList" :key="index">
|
|
|
<div class="dianjiadanbianhao">
|
|
|
<h3>点价单编号</h3>
|
|
|
<p>
|
|
@@ -76,25 +78,28 @@
|
|
|
</el-upload>
|
|
|
<div class="shangchuan">
|
|
|
<template>
|
|
|
- <span v-if="item.enclosureTypeFlag == '0'">未上传</span>
|
|
|
- <span v-if="item.enclosureTypeFlag == '1'">已上传</span>
|
|
|
+ <span v-if="item.enclosureTypeFlag == 0">未上传</span>
|
|
|
+ <span v-if="item.enclosureTypeFlag == 1">已上传</span>
|
|
|
</template>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="caozuoanniu">
|
|
|
- <el-button class="find" type="primary" @click="sheetEdit(item)"
|
|
|
- >编辑</el-button
|
|
|
- >
|
|
|
- <el-button class="find" type="primary" @click="sheetDelete(item)"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ <template>
|
|
|
+ <el-button class="find" type="primary" @click="sheetEdit(item)"
|
|
|
+ >编辑</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ class="find"
|
|
|
+ type="primary"
|
|
|
+ @click="sheetDelete(item)"
|
|
|
+ v-if="item.enclosureTypeFlag != 1"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="center">
|
|
|
- <ws-form
|
|
|
- ref="deptBudgetList"
|
|
|
- :model="deptBudgetList"
|
|
|
- >
|
|
|
+ <ws-form ref="deptBudgetList" :model="deptBudgetList">
|
|
|
<!--基本信息-->
|
|
|
<ws-info-table>
|
|
|
<ws-form-item
|
|
@@ -207,8 +212,8 @@ export default {
|
|
|
// 提交类型
|
|
|
submitType: true,
|
|
|
contractNo: '',
|
|
|
- contractType:'',
|
|
|
- id:'',
|
|
|
+ contractType: '',
|
|
|
+ id: '',
|
|
|
size: 10,
|
|
|
unitList: [],
|
|
|
addressUrls: [],
|
|
@@ -246,41 +251,50 @@ export default {
|
|
|
},
|
|
|
//创建点价确认单
|
|
|
sheetAdd() {
|
|
|
- this.$router.push({ path: 'priceConfirmationSheetAdd'
|
|
|
- ,query: { contractNo: this.$route.query.contractNo , contractType: this.$route.query.contractType } })
|
|
|
+ this.$router.push({
|
|
|
+ path: 'priceConfirmationSheetAdd',
|
|
|
+ query: {
|
|
|
+ contractNo: this.$route.query.contractNo,
|
|
|
+ contractType: this.$route.query.contractType,
|
|
|
+ },
|
|
|
+ })
|
|
|
},
|
|
|
// 编辑点价确认单
|
|
|
sheetEdit(item) {
|
|
|
- this.$router.push({ path: 'priceConfirmationSheetEdit' ,
|
|
|
- query: { contractNo: this.$route.query.contractNo , contractType: this.$route.query.contractType ,id:item.id}})
|
|
|
+ this.$router.push({
|
|
|
+ path: 'priceConfirmationSheetEdit',
|
|
|
+ query: {
|
|
|
+ contractNo: this.$route.query.contractNo,
|
|
|
+ contractType: this.$route.query.contractType,
|
|
|
+ id: item.id,
|
|
|
+ },
|
|
|
+ })
|
|
|
},
|
|
|
// 删除点价确认单
|
|
|
sheetDelete(item) {
|
|
|
- this.$confirm(`确认单删除后不可恢复,是否确定删除?`, '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.id =
|
|
|
- deletePriceConfirmationSheet({ id: item.id })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$notify.success({
|
|
|
- title: '成功',
|
|
|
- message: '删除成功',
|
|
|
- })
|
|
|
- this.getUnitList()
|
|
|
- })
|
|
|
- .catch((response) => {
|
|
|
- console.log(response)
|
|
|
- EventBus.$emit('error', response.message)
|
|
|
+ this.$confirm(`确认单删除后不可恢复,是否确定删除?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.id = deletePriceConfirmationSheet({ id: item.id })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$notify.success({
|
|
|
+ title: '成功',
|
|
|
+ message: '删除成功',
|
|
|
})
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- return false
|
|
|
- })
|
|
|
-
|
|
|
+ this.getUnitList()
|
|
|
+ })
|
|
|
+ .catch((response) => {
|
|
|
+ console.log(response)
|
|
|
+ EventBus.$emit('error', response.message)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
},
|
|
|
fujian(row) {
|
|
|
if (row.addressUrl === null || row.addressUrl === '') {
|
|
@@ -296,7 +310,7 @@ export default {
|
|
|
getUnitList() {
|
|
|
selectConfirmationSheet({
|
|
|
contractNo: this.$route.query.contractNo,
|
|
|
- contractType :this.$route.query.contractType,
|
|
|
+ contractType: this.$route.query.contractType,
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|