This commit is contained in:
lb
2023-03-30 09:31:26 +08:00
parent 15978f6055
commit 6ccfef90f6
4 changed files with 66 additions and 7 deletions

View File

@@ -1,6 +1,8 @@
import TableOperaionComponent from "@/components/noTemplateComponents/operationComponent";
import request from "@/utils/request";
import { timeFilter, dictFilter } from "@/utils/filters";
import { getDictDataList } from '@/utils';
// import StateSelect from '@/components/StateSelect.vue';
@@ -22,7 +24,7 @@ export default function () {
subcomponent: TableOperaionComponent,
options: [
{ name: "print", label: "打印", icon: "printer" },
{ name: "view-car-record", label: "窑车记录", emitFull: true, icon: "shopping-cart-1" },
{ name: "view-car-record", label: "窑车记录", emitField: 'hisId', icon: "shopping-cart-1" },
],
},
];
@@ -58,7 +60,51 @@ export default function () {
},
];
const dialogJustFormConfigs = null;
const dialogJustFormConfigs = {
form: {
rows: [
[
{
select: true,
label: "窑车号",
prop: "carId",
options: [],
fetchData: () => this.$http.get("/pms/car/page", { params: { page: 1, limit: 999 } }),
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
elparams: {
fliterable: true
}
},
{
select: true,
label: "状态",
prop: "stateDictValue",
options: getDictDataList('car_state').map(i => ({ label: i.dictLabel, value: i.dictValue })),
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
elparams: {
fliterable: true
}
},
{
// select: true,
input: true,
label: "位置",
prop: "pos",
// options: getDictDataList(),
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
// elparams: {
// fliterable: true
// }
},
],
],
operations: [
// { name: "add", label: "保存", type: "primary", permission: "", showOnEdit: false },
// { name: "update", label: "更新", type: "primary", permission: "", showOnEdit: true },
// { name: "reset", label: "重置", type: "warning", showAlways: true },
],
},
};
const carPayloadDialogConfigs = {
dialogWidth: '70%',
@@ -97,9 +143,11 @@ export default function () {
rules: null, // 名称是由 BaseSearchForm.vue 组件固定的
fields: headFormFields, // 名称是由 BaseSearchForm.vue 组件固定的
},
urls: {
urls: {
base: '/pms/carHistory',
page: "/pms/pallet/pageView",
pageIsPostApi: true,
printLog: '/pms/pallet/print', // post
},
};
}

View File

@@ -7,8 +7,8 @@
/** { pos: [] } **/
]"
:trigger-update="triggerUpdateKey"
:car-payload-dialog-configs="carPayloadDialogConfigs"
/>
<!-- :car-payload-dialog-configs="carPayloadDialogConfigs" -->
</template>
<script>
@@ -24,9 +24,8 @@ export default {
};
},
data() {
const { tableConfig, headFormConfigs, urls, carPayloadDialogConfigs, dialogConfigs } = initConfig.call(this);
const { tableConfig, headFormConfigs, urls, dialogConfigs } = initConfig.call(this);
return {
carPayloadDialogConfigs,
tableConfig,
headFormConfigs,
allUrls: urls,