更新
This commit is contained in:
@@ -11,6 +11,12 @@
|
||||
icon="el-icon-search"
|
||||
style="margin-left:10px"
|
||||
@click="total1=0;pageCurrent1=1;pageSize1=10;searchTable1()">查询</el-button>
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
icon="el-icon-back"
|
||||
style="margin-left:10px"
|
||||
@click="back">打回</el-button>
|
||||
</el-row>
|
||||
</div>
|
||||
</el-card>
|
||||
@@ -109,7 +115,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { searchOfflineContract, searchOfflineContractContent } from '@/api/PurchasingCenter/OfflineContractSearch'
|
||||
import { searchOfflineContract, searchOfflineContractContent, back } from '@/api/PurchasingCenter/OfflineContractSearch'
|
||||
import QRCode from 'qrcode'
|
||||
import $ from 'jquery'
|
||||
export default {
|
||||
@@ -119,6 +125,7 @@ export default {
|
||||
contractNumber: '',
|
||||
supplierName: '',
|
||||
total1: 0,
|
||||
number: '',
|
||||
pageCurrent1: 1,
|
||||
pageSize1: 20,
|
||||
tableData1: [],
|
||||
@@ -152,7 +159,28 @@ export default {
|
||||
this.pageCurrent1 = val
|
||||
this.searchTable1()
|
||||
},
|
||||
back() {
|
||||
this.$confirm('确定打回合同?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
if (this.number) {
|
||||
back(this.number).then(response => {
|
||||
if (response.data[0].result !== '0') {
|
||||
this.$message.success('打回成功')
|
||||
this.searchTable1()
|
||||
} else {
|
||||
this.$message.success('打回失败')
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请选择要打回的合同')
|
||||
}
|
||||
})
|
||||
},
|
||||
searchTable2(row) {
|
||||
this.number = row.离线合同流水号
|
||||
searchOfflineContractContent(row.离线合同流水号).then(response => {
|
||||
this.contractDetail = response.data
|
||||
this.showOffline(row)
|
||||
|
||||
Reference in New Issue
Block a user