离线件入库查询
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-card>
|
<el-card>
|
||||||
<span>供应商:</span>
|
<span>供应商:</span>
|
||||||
<el-select v-model="supplierValue" placeholder="请选择供应商" filterable size="small" style="width: 200px" @change="supplierChange">
|
<el-select v-model="supplierValue" placeholder="请选择供应商" filterable size="small" style="width: 200px" @change="supplierChange();searchContractDetail()">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in supplier"
|
v-for="item in supplier"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span>合同:</span>
|
<span>合同:</span>
|
||||||
<el-select v-model="contractValue" placeholder="请选择合同" filterable clearable size="small" style="width: 200px">
|
<el-select v-model="contractValue" placeholder="请选择合同" filterable clearable size="small" style="width: 200px" @change="searchContractDetail()">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in contract"
|
v-for="item in contract"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@@ -234,16 +234,17 @@ export default {
|
|||||||
async searchContractDetail() {
|
async searchContractDetail() {
|
||||||
if (this.contractValue && this.searchType === '2') {
|
if (this.contractValue && this.searchType === '2') {
|
||||||
this.qrCode = this.contractValue
|
this.qrCode = this.contractValue
|
||||||
} else if (this.searchType === '2') {
|
} else if (!this.supplierValue) {
|
||||||
this.$message.warning('请选择合同')
|
this.$message.error('请选择供货商')
|
||||||
}
|
}
|
||||||
|
if (this.contractValue) { this.contractValue_check = 1 } else { this.contractValue_check = 0 }
|
||||||
const param = {
|
const param = {
|
||||||
url: url,
|
url: url,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '离线合同扫描合同打印物料',
|
name: '离线合同扫描合同打印物料_NEW',
|
||||||
param: `离线合同流水号=${this.qrCode}`
|
param: `供应商流水号=${this.supplierValue}&离线合同流水号_check=${this.contractValue_check}&离线合同流水号=${this.qrCode}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const res = await axios(param)
|
const res = await axios(param)
|
||||||
|
|||||||
Reference in New Issue
Block a user