|
|
@@ -12,7 +12,7 @@
|
|
|
<el-input clearable :maxlength="20" v-model="form.code" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
+<!-- <el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
<el-form-item label="订单类型:">
|
|
|
<DictSelection
|
|
|
dictName="订单类型"
|
|
|
@@ -21,7 +21,7 @@
|
|
|
>
|
|
|
</DictSelection>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
<el-form-item label="按单按库:">
|
|
|
<DictSelection
|
|
|
@@ -60,6 +60,7 @@
|
|
|
cache-key="systemRoleTable2"
|
|
|
row-key="id"
|
|
|
@done="setSelect"
|
|
|
+ :initLoad="false"
|
|
|
>
|
|
|
<!-- <template v-slot:name='{row}'>
|
|
|
<el-link :underline="false" @click="openDetails(row)">
|
|
|
@@ -237,6 +238,11 @@
|
|
|
this.requestDict('生产状态');
|
|
|
},
|
|
|
methods: {
|
|
|
+ reload(where) {
|
|
|
+ this.$nextTick(() =>
|
|
|
+ this.$refs.table.reload({ page: 1, limit: 10, where })
|
|
|
+ );
|
|
|
+ },
|
|
|
/* 表格数据源 */
|
|
|
async datasource ({ page, limit, where, order }) {
|
|
|
const params = {
|
|
|
@@ -272,8 +278,10 @@
|
|
|
this.form = {};
|
|
|
this.search();
|
|
|
},
|
|
|
- open () {
|
|
|
+ open (orderType) {
|
|
|
+ this.$set(this.form,'orderType',orderType)
|
|
|
this.visible = true;
|
|
|
+ this.reload()
|
|
|
},
|
|
|
cancel () {
|
|
|
this.form = {};
|