|
@@ -1,519 +1,16 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- <!-- 查询区域 -->
|
|
|
- <div class="jeecg-basic-table-form-container">
|
|
|
- <a-form layout="inline" :model="templateInfo" :label-col="labelCol" :wrapper-col="wrapperCol">
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :xl="2" :lg="7" :md="2" :sm="24">
|
|
|
- <a-form-item label="铸 机">
|
|
|
- <a-input placeholder="请输入" defaultValue="5#机" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2" :lg="7" :md="8" :sm="24">
|
|
|
- <a-form-item label="总支数">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.amountTotalf" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="3" :lg="7" :md="8" :sm="24">
|
|
|
- <a-form-item label="轧钢接收">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.stackRecivef" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="3" :lg="7" :md="8" :sm="24">
|
|
|
- <a-form-item label="判废支数">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.wasteAmountf" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2" :lg="7" :md="8" :sm="24" :offset="2">
|
|
|
- <a-form-item label="铸 机">
|
|
|
- <a-input placeholder="请输入" defaultValue="6#机" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2" :lg="7" :md="8" :sm="24">
|
|
|
- <a-form-item label="总支数">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.amountTotals" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="3">
|
|
|
- <a-form-item label="轧钢接收">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.stackRecives" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="3">
|
|
|
- <a-form-item label="判废支数">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.wasteAmounts" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :xl="2" :lg="7" :md="8" :sm="24">
|
|
|
- <a-form-item
|
|
|
- label="热送支数"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 16 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 12 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.hotfeignAmounts" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
-
|
|
|
- <a-col :xl="2" :lg="7" :md="8" :sm="24">
|
|
|
- <a-form-item
|
|
|
- label="热送接收"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 16 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 12 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.hotsendRecivef" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2" :lg="7" :md="8" :sm="24">
|
|
|
- <a-form-item
|
|
|
- label="总车次数"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 18 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 21 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.carTimesf" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2" :lg="7" :md="8" :sm="24" :offset="6">
|
|
|
- <a-form-item
|
|
|
- label="热送支数"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 16 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 12},
|
|
|
- }"
|
|
|
- >
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.hotfeignAmountf" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2" :lg="7" :md="8" :sm="24">
|
|
|
- <a-form-item
|
|
|
- label="热送接收"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 16 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 12 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.hotsendRecives" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :xl="2" :lg="7" :md="8" :sm="24">
|
|
|
- <a-form-item
|
|
|
- label="热装支数"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 16 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 12 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.hotfeignAmount" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item
|
|
|
- label="热装接收"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 16 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 12 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.hotfeignRecives" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item label="棒二">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.clubOneHotfeignf" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item label="棒三">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.clubTwoHotfeignf" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item label="上若">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.srHotfeignf" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2" :lg="7" :md="8" :sm="24" :offset="2">
|
|
|
- <a-form-item
|
|
|
- label="热装支数"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 16 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 12 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.hotfeignAmount" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item
|
|
|
- label="热装接收"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 16 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 12 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.hotfeignRecivef" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item label="棒二">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.clubOneHotfeigns" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item label="棒三">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.clubTwoHotfeigns" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item label="上若">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.srHotfeigns" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :xl="2" :lg="7" :md="8" :sm="24">
|
|
|
- <a-form-item
|
|
|
- label="起垛支数"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 16 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 12 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.stackAmountf" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item
|
|
|
- label="垛位接收"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 16 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 12 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.stackRecivef" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item label="棒二">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.clubOneStackf" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item label="棒三">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.clubTwoStackf" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item label="上若">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.srStackf" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2" :lg="7" :md="8" :sm="24" :offset="2">
|
|
|
- <a-form-item
|
|
|
- label="起垛支数"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 16 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 12 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.stackAmounts" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item
|
|
|
- label="垛位接收"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 16 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 12 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.stackRecives" defaultValue="0" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item label="棒二">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.clubOneStacks" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item label="棒三">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.clubTwoStacks" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="2">
|
|
|
- <a-form-item label="上若">
|
|
|
- <a-input placeholder="请输入" v-model:value="templateInfo.srStacks" defaultValue="" @blur="editTemplateInfo" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :xl="9">
|
|
|
- <a-form-item
|
|
|
- label="厂内车辆"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 3 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 24 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <JCheckbox v-model:value="templateInfo.inCarsf" :options="carInnerOption" @change="editTemplateInfo('inCarsf')" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="9" :offset="2">
|
|
|
- <a-form-item
|
|
|
- label="厂内车辆"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 6 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 24 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <JCheckbox v-model:value="templateInfo.inCarss" :options="carInnerOption" @change="editTemplateInfo('inCarss')" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <div style="display: flex; width: auto">
|
|
|
- <div v-if="templateInfo.inCarsf">
|
|
|
- <a-row v-for="(item, index) in carInfo.inCarsf" :key="'nadr' + index" :gutter="24">
|
|
|
- <a-col>
|
|
|
- <a-form-item
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 1 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 24 },
|
|
|
- }"
|
|
|
- :label="carOutOption?.find((e) => e.value === item?.carNm)?.label"
|
|
|
- ></a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="5">
|
|
|
- <a-form-item label="车次数">
|
|
|
- <a-input v-model:value="item.outCarNum" placeholder="请输入" @blur="editCar(item)"></a-input>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="5">
|
|
|
- <a-form-item label="支数">
|
|
|
- <a-input v-model:value="item.amount" placeholder="请输入" @blur="editCar(item)"></a-input>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="5">
|
|
|
- <a-form-item label="目的地">
|
|
|
- <a-input v-model:value="item.destination" placeholder="请输入" @blur="editCar(item)"></a-input>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 2%; border: 0px solid red">
|
|
|
- <div v-if="templateInfo.inCarss">
|
|
|
- <a-row v-for="(item, index) in carInfo.inCarss" :key="'nadr' + index" :gutter="24">
|
|
|
- <a-col>
|
|
|
- <a-form-item
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 2 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 24 },
|
|
|
- }"
|
|
|
- :label="carOutOption?.find((e) => e.value === item?.carNm)?.label"
|
|
|
- ></a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="5" :offset="1">
|
|
|
- <a-form-item label="车次数">
|
|
|
- <a-input v-model:value="item.outCarNum" placeholder="请输入" @blur="editCar(item)"></a-input>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="5">
|
|
|
- <a-form-item label="支数">
|
|
|
- <a-input v-model:value="item.amount" placeholder="请输入" @blur="editCar(item)"></a-input>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="5">
|
|
|
- <a-form-item label="目的地">
|
|
|
- <a-input v-model:value="item.destination" placeholder="请输入" @blur="editCar(item)"></a-input>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :xl="9">
|
|
|
- <a-form-item
|
|
|
- label="外运车辆"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 3 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 24 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <JCheckbox v-model:value="templateInfo.outCarsf" :options="carOutOption" @change="editTemplateInfo('outCarsf')" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="9" :offset="2">
|
|
|
- <a-form-item
|
|
|
- label="外运车辆"
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 6 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 24 },
|
|
|
- }"
|
|
|
- >
|
|
|
- <JCheckbox v-model:value="templateInfo.outCarss" :options="carOutOption" @change="editTemplateInfo('outCarss')" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <div style="display: flex; width: auto">
|
|
|
- <div v-if="templateInfo.outCarsf">
|
|
|
- <a-row v-for="(item, index) in carInfo.outCarsf" :key="'nadr' + index" :gutter="24">
|
|
|
- <a-col>
|
|
|
- <a-form-item
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 1 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 24 },
|
|
|
- }"
|
|
|
- :label="carOutOption?.find((e) => e.value === item?.carNm)?.label"
|
|
|
- ></a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="5">
|
|
|
- <a-form-item label="车次数">
|
|
|
- <a-input v-model:value="item.outCarNum" placeholder="请输入" @blur="editCar(item)"></a-input>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="5">
|
|
|
- <a-form-item label="支数">
|
|
|
- <a-input v-model:value="item.amount" placeholder="请输入" @blur="editCar(item)"></a-input>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="5">
|
|
|
- <a-form-item label="目的地">
|
|
|
- <a-input v-model:value="item.destination" placeholder="请输入" @blur="editCar(item)"></a-input>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </div>
|
|
|
- <div style="margin-left: 2%; border: 0px solid red">
|
|
|
- <div v-if="templateInfo.outCarss">
|
|
|
- <a-row v-for="(item, index) in carInfo.outCarss" :key="'nadr' + index" :gutter="24">
|
|
|
- <a-col>
|
|
|
- <a-form-item
|
|
|
- :label-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 2 },
|
|
|
- }"
|
|
|
- :wrapper-col="{
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 24 },
|
|
|
- }"
|
|
|
- :label="carOutOption?.find((e) => e.value === item?.carNm)?.label"
|
|
|
- ></a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="5" :offset="1">
|
|
|
- <a-form-item label="车次数">
|
|
|
- <a-input v-model:value="item.outCarNum" placeholder="请输入" @blur="editCar(item)"></a-input>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="5">
|
|
|
- <a-form-item label="支数">
|
|
|
- <a-input v-model:value="item.amount" placeholder="请输入" @blur="editCar(item)"></a-input>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xl="5">
|
|
|
- <a-form-item label="目的地">
|
|
|
- <a-input v-model:value="item.destination" placeholder="请输入" @blur="editCar(item)"></a-input>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </a-form>
|
|
|
- </div>
|
|
|
- <!--引用表格-->
|
|
|
+ <div class="storageAndTransportation">
|
|
|
<BasicTable @register="registerTable" @edit-end="handleEditEnd">
|
|
|
- <!--插槽:table标题-->
|
|
|
- <template #tableTitle>
|
|
|
- <a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
|
|
|
+ <template #form-ccmNo="{ model, field }">
|
|
|
+ <segmented-select
|
|
|
+ v-model:value="model[field]"
|
|
|
+ @change="
|
|
|
+ () => {
|
|
|
+ reload();
|
|
|
+ }
|
|
|
+ "
|
|
|
+ dict="lg_zj"
|
|
|
+ />
|
|
|
</template>
|
|
|
<!--操作栏-->
|
|
|
<template #action="{ record }">
|
|
@@ -525,63 +22,17 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
-<script lang="ts" name="barlineTwo" setup>
|
|
|
- import { BasicTable, useTable, EditRecordRow } from '/@/components/Table';
|
|
|
- import { JCheckbox } from '/@/components/Form';
|
|
|
+<script lang="ts" name="storageAndTransportation" setup>
|
|
|
+ import { BasicTable, EditRecordRow } from '/@/components/Table';
|
|
|
import { useListPage } from '/@/hooks/system/useListPage';
|
|
|
- import { columns, searchFormSchema, initDictConfig } from './storageAndTransportation.data';
|
|
|
+ import { columns, initDictConfig, searchFormSchema } from './storageAndTransportation.data';
|
|
|
import { list, editCell } from './storageAndTransportation.api';
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
- import { onMounted, ref, reactive } from 'vue';
|
|
|
- const labelCol = reactive({
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 11 },
|
|
|
- });
|
|
|
- const wrapperCol = reactive({
|
|
|
- xs: { span: 24 },
|
|
|
- sm: { span: 13 },
|
|
|
- });
|
|
|
- const templateInfo = ref({});
|
|
|
- const carInfo = ref({});
|
|
|
- const carInnerOption = ref([]);
|
|
|
- const carOutOption = ref([]);
|
|
|
- // 勾选车辆
|
|
|
- const editCar = (param) => {
|
|
|
- defHttp.put({ url: '/storageCarConfig/edit', params: { ...param } }, { joinParamsToUrl: true });
|
|
|
- };
|
|
|
- // 获取车辆接口
|
|
|
- const getCarOption = () => {
|
|
|
- defHttp.get({ url: '/sys/dictItem/getCar', params: {} }, { joinParamsToUrl: true }).then((res) => {
|
|
|
- carInnerOption.value = res?.map((e) => ({ label: e?.itemText, value: e?.itemValue })) || [];
|
|
|
- carOutOption.value = res?.map((e) => ({ label: e?.itemText, value: e?.itemValue })) || [];
|
|
|
- });
|
|
|
- };
|
|
|
- // 获取车辆具体信息
|
|
|
- const getCarInfo = (key, param) => {
|
|
|
- defHttp.get({ url: '/storageCarConfig/getCarConfig', params: { carNums: param } }, { joinParamsToUrl: true }).then((res) => {
|
|
|
- carInfo.value[key] = res || [];
|
|
|
- });
|
|
|
- };
|
|
|
- // 获取表单配置信息
|
|
|
- const getTemplateInfo = () => {
|
|
|
- defHttp.get({ url: '/storageCastConfig/getConfig', params: {} }, { joinParamsToUrl: true }).then((res) => {
|
|
|
- templateInfo.value = res || {};
|
|
|
- if (res.inCarsf) {
|
|
|
- getCarInfo('inCarsf', res.inCarsf);
|
|
|
- }
|
|
|
- if (res.inCarss) {
|
|
|
- getCarInfo('inCarss', res.inCarss);
|
|
|
- }
|
|
|
- if (res.outCarsf) {
|
|
|
- getCarInfo('outCarsf', res.outCarsf);
|
|
|
- }
|
|
|
- if (res.outCarss) {
|
|
|
- getCarInfo('outCarss', res.outCarss);
|
|
|
- }
|
|
|
- });
|
|
|
- };
|
|
|
+ import { onMounted } from 'vue';
|
|
|
+ import SegmentedSelect from '/@/components/SegmentedSelect/index.vue';
|
|
|
+
|
|
|
// 编辑单元格
|
|
|
- async function handleEditEnd({ record, index, key, value }: Recordable) {
|
|
|
+ async function handleEditEnd({ record }: Recordable) {
|
|
|
const {
|
|
|
amount,
|
|
|
carNm,
|
|
@@ -630,25 +81,28 @@
|
|
|
}
|
|
|
|
|
|
//注册table数据
|
|
|
- const { prefixCls, tableContext } = useListPage({
|
|
|
+ const { tableContext } = useListPage({
|
|
|
tableProps: {
|
|
|
- title: '轧钢棒线二',
|
|
|
api: list,
|
|
|
columns,
|
|
|
canResize: false,
|
|
|
showActionColumn: false,
|
|
|
showIndexColumn: true,
|
|
|
- useSearchForm: false,
|
|
|
+ useSearchForm: true,
|
|
|
formConfig: {
|
|
|
//labelWidth: 120,
|
|
|
- // schemas: searchFormSchema,
|
|
|
+ schemas: searchFormSchema,
|
|
|
autoSubmitOnEnter: true,
|
|
|
showAdvancedButton: true,
|
|
|
+ autoAdvancedCol: 3,
|
|
|
fieldMapToNumber: [],
|
|
|
- fieldMapToTime: [],
|
|
|
+ fieldMapToTime: [['dataTime', ['dataTime_begin', 'dataTime_end'], 'YYYY-MM-DD']],
|
|
|
},
|
|
|
+ striped: true,
|
|
|
actionColumn: {
|
|
|
width: 150,
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'action',
|
|
|
fixed: 'right',
|
|
|
},
|
|
|
},
|
|
@@ -656,13 +110,6 @@
|
|
|
|
|
|
const [registerTable, { reload }] = tableContext;
|
|
|
|
|
|
- /**
|
|
|
- * 新增事件
|
|
|
- */
|
|
|
- function handleAdd() {
|
|
|
- defHttp.post({ url: '/storageCarLog/add', params: {} }, { joinParamsToUrl: true }).then(() => {});
|
|
|
- }
|
|
|
-
|
|
|
// 同步数据至目的地表
|
|
|
function confirm(obj: EditRecordRow) {
|
|
|
const {
|
|
@@ -712,23 +159,16 @@
|
|
|
|
|
|
defHttp.post({ url: '/storageCarLog/editAndAddRoll', params }, { joinParamsToUrl: true }).then(() => {});
|
|
|
}
|
|
|
- // 编辑表单
|
|
|
- const editTemplateInfo = (key) => {
|
|
|
- defHttp.post({ url: '/storageCastConfig/add', params: { ...templateInfo.value } }, { joinParamsToUrl: true }).then(() => {
|
|
|
- // 当编辑厂内、外运车辆信息,获取对应配置信息
|
|
|
- if (['inCarsf', 'inCarss', 'outCarsf', 'outCarss'].includes(key)) {
|
|
|
- getCarInfo(key, templateInfo.value[key]);
|
|
|
- }
|
|
|
- });
|
|
|
- };
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
- getTemplateInfo();
|
|
|
- getCarOption();
|
|
|
initDictConfig();
|
|
|
});
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
+ .storageAndTransportation {
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
:deep(.ant-table-thead) {
|
|
|
.anticon-form {
|
|
|
display: none;
|