|
@@ -11,6 +11,7 @@
|
|
<el-select
|
|
<el-select
|
|
v-model="query.fCorpid"
|
|
v-model="query.fCorpid"
|
|
filterable
|
|
filterable
|
|
|
|
+ clearable
|
|
remote
|
|
remote
|
|
style="width: 80%"
|
|
style="width: 80%"
|
|
:remote-method="corpsRemoteMethod"
|
|
:remote-method="corpsRemoteMethod"
|
|
@@ -30,6 +31,7 @@
|
|
placeholder="请输入提单号"
|
|
placeholder="请输入提单号"
|
|
clearable
|
|
clearable
|
|
size="small"
|
|
size="small"
|
|
|
|
+ @change="fMblnoChange"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="日期" prop="bsdateList">
|
|
<el-form-item label="日期" prop="bsdateList">
|
|
@@ -171,8 +173,9 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { listpayable , exportOne , exportTwo} from '@/api/singleTicket'
|
|
|
|
|
|
+import { listpayable , exportOne , exportTwo, getCorps} from '@/api/singleTicket'
|
|
import {listCorps} from "@/api/basicdata/corps";
|
|
import {listCorps} from "@/api/basicdata/corps";
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: "index",
|
|
name: "index",
|
|
data(){
|
|
data(){
|
|
@@ -301,6 +304,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
corpsRemoteMethod(name) {
|
|
corpsRemoteMethod(name) {
|
|
|
|
+ if (this.query.fMblno) return
|
|
if (name == null || name === "") {
|
|
if (name == null || name === "") {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -310,6 +314,20 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
resetQuery(){},
|
|
resetQuery(){},
|
|
|
|
+ // 提单号变化触发
|
|
|
|
+ fMblnoChange() {
|
|
|
|
+ this.$set(this.query, 'fCorpid', '')
|
|
|
|
+ if (this.query.fMblno) {
|
|
|
|
+ getCorps({fMblno: this.query.fMblno}).then(res => {
|
|
|
|
+ this.fMblnoOptions = res.data;
|
|
|
|
+ if (this.fMblnoOptions.length > 0) this.query.fCorpid = this.fMblnoOptions[0].fId
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ listCorps({type: 1}).then((response) => {
|
|
|
|
+ this.fMblnoOptions = response.rows;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|