更新
This commit is contained in:
@@ -543,7 +543,7 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="供应商名称" prop="供应商名称">
|
||||
<el-select v-model="form2.供应商名称" style="width:150px" placeholder="供应商" size="small" filterable>
|
||||
<el-select v-model="form2.供应商流水号" style="width:150px" placeholder="供应商" size="small" filterable>
|
||||
<el-option
|
||||
v-for="item in supplierNames"
|
||||
:key="item.value"
|
||||
@@ -823,6 +823,7 @@ export default {
|
||||
created() {
|
||||
this.getPerson()
|
||||
this.projectChange()
|
||||
this.getSupplier1()
|
||||
// this.searchTable2()
|
||||
this.searchTable11()
|
||||
this.initDirection()
|
||||
@@ -1082,7 +1083,6 @@ export default {
|
||||
if (this.$refs['form2'] !== undefined) {
|
||||
this.$refs['form2'].resetFields()
|
||||
}
|
||||
this.getSupplier1()
|
||||
this.title2 = '创建离线合同'
|
||||
getBillNum().then(response => { // 查询询价单号
|
||||
this.form2.离线合同编号 = response.data[0].单号
|
||||
@@ -1095,8 +1095,6 @@ export default {
|
||||
})
|
||||
},
|
||||
getSupplier1() {
|
||||
this.supplierNames = []
|
||||
this.form2.供应商名称 = ''
|
||||
searchSupplier1(0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '').then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.supplierNames.push({
|
||||
@@ -1142,7 +1140,7 @@ export default {
|
||||
this.form2.离线合同流水号 = row.离线合同流水号
|
||||
this.form2.离线合同编号 = row.离线合同编号
|
||||
this.form2.离线合同名称 = row.离线合同名称
|
||||
this.form2.供应商流水号 = row.供应商流水号
|
||||
this.form2.供应商流水号 = parseInt(row.供应商流水号)
|
||||
this.form2.供应商名称 = row.供应商名称
|
||||
this.form2.规定到货时间 = row.规定到货时间
|
||||
this.form2.离线合同备注 = row.离线合同备注
|
||||
|
||||
@@ -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