update 质量检查信息
This commit is contained in:
@@ -2,6 +2,8 @@ import TableOperaionComponent from "@/components/noTemplateComponents/operationC
|
||||
import TableTextComponent from "@/components/noTemplateComponents/detailComponent";
|
||||
// import StatusComponent from "@/components/noTemplateComponents/statusComponent";
|
||||
import { timeFilter } from "@/utils/filters";
|
||||
import { getDictDataList } from "@/utils";
|
||||
|
||||
|
||||
export default function () {
|
||||
const tableProps = [
|
||||
@@ -94,32 +96,39 @@ export default function () {
|
||||
rows: [
|
||||
[
|
||||
{
|
||||
input: true,
|
||||
select: true,
|
||||
label: "窑车号",
|
||||
prop: "carId",
|
||||
options: [],
|
||||
optionLabel: 'code',
|
||||
optionValue: 'carId',
|
||||
fetchData: () => this.$http.post("/pms/carHandle/pageView", { page: 1, limit: 999 }),
|
||||
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
|
||||
elparams: { placeholder: "请输入批次编码" },
|
||||
elparams: { placeholder: "请输入批次编码", filterable: true },
|
||||
injectTo: [
|
||||
['posCode', 'posCode'], // TODO
|
||||
['carState', 'stateDictValue']
|
||||
]
|
||||
},
|
||||
{
|
||||
input: true,
|
||||
// select: true,
|
||||
forceDisabled: true,
|
||||
label: "当前位置",
|
||||
// options: getDictDataList(),
|
||||
prop: "posCode",
|
||||
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
|
||||
elparams: { placeholder: "请入当前位置" },
|
||||
},
|
||||
{
|
||||
select: true,
|
||||
forceDisabledSelect: true,
|
||||
// select: true,
|
||||
label: "当前状态",
|
||||
prop: "carState",
|
||||
options: [
|
||||
{ label: '没有数据', value: 0 },
|
||||
{ label: '正常窑车', value: 1 },
|
||||
{ label: '判废窑车', value: 2 },
|
||||
{ label: '摆渡车', value: 3 },
|
||||
{ label: '空窑车', value: 4 },
|
||||
{ label: '没有数据', value: '0' },
|
||||
{ label: '正常窑车', value: '1' },
|
||||
{ label: '判废窑车', value: '2' },
|
||||
{ label: '摆渡车', value: '3' },
|
||||
{ label: '空窑车', value: '4' },
|
||||
],
|
||||
rules: { required: true, message: "必选项不能为空", trigger: "blur" },
|
||||
elparams: { placeholder: "请选择状态" },
|
||||
},
|
||||
{
|
||||
select: true,
|
||||
@@ -129,32 +138,44 @@ export default function () {
|
||||
{ label: '是', value: 'yes' },
|
||||
{ label: '否', value: 'no', default: true },
|
||||
],
|
||||
rules: { required: true, message: "必选项不能为空", trigger: "blur" },
|
||||
// rules: { required: true, message: "必选项不能为空", trigger: "blur" },
|
||||
elparams: { placeholder: "请选择报废状态" },
|
||||
},
|
||||
],
|
||||
[
|
||||
{
|
||||
input: true,
|
||||
select: true,
|
||||
label: "订单号",
|
||||
prop: "orderId",
|
||||
options: [],
|
||||
optionLabel: 'orderCode',
|
||||
toggleFetchData: 'carId', // 当 carId 改变的时候,也会 fetchData
|
||||
fetchData: (carId) => this.$http.post("/pms/carHandle/getCurrent", { id: carId ?? null, page: 1, limit: 999 }),
|
||||
rules: { required: true, message: "必选项不能为空", trigger: "blur" },
|
||||
elparams: { placeholder: "请选择订单" },
|
||||
injectTo: [
|
||||
['orderCate', 'orderCate'], // TODO
|
||||
['shapeCode', 'shapeCode'],
|
||||
['orderQty', 'qty'],
|
||||
]
|
||||
},
|
||||
{
|
||||
input: true,
|
||||
forceDisabled: true,
|
||||
label: "子号",
|
||||
prop: "orderCate"
|
||||
prop: "orderCate",
|
||||
elparams: { placeholder: "无" },
|
||||
},
|
||||
{
|
||||
input: true,
|
||||
forceDisabled: true,
|
||||
label: "砖型",
|
||||
prop: "shapeCode"
|
||||
prop: "shapeCode",
|
||||
elparams: { placeholder: "无" },
|
||||
},
|
||||
{
|
||||
input: true,
|
||||
forceDisabled: true,
|
||||
label: "订单砖数",
|
||||
prop: "orderQty",
|
||||
elparams: { placeholder: "无" },
|
||||
},
|
||||
],
|
||||
[
|
||||
@@ -172,18 +193,18 @@ export default function () {
|
||||
input: true,
|
||||
label: "不合格量",
|
||||
prop: "badqty",
|
||||
rules: [
|
||||
{ required: true, message: "必填项不能为空", trigger: "blur" },
|
||||
{ type: 'number', message: '请输入正确的数字类型', trigger: 'blur', transform: val => Number(val) }
|
||||
],
|
||||
// rules: [
|
||||
// { required: true, message: "必填项不能为空", trigger: "blur" },
|
||||
// { type: 'number', message: '请输入正确的数字类型', trigger: 'blur', transform: val => Number(val) }
|
||||
// ],
|
||||
elparams: { placeholder: "请输入不合格量" },
|
||||
},
|
||||
{
|
||||
input: true,
|
||||
label: "检测人",
|
||||
prop: "checkPerson",
|
||||
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
|
||||
elparams: { placeholder: "请输入批次编码" },
|
||||
// rules: { required: true, message: "必填项不能为空", trigger: "blur" },
|
||||
elparams: { placeholder: "请输入检测人" },
|
||||
},
|
||||
{
|
||||
datetime: true,
|
||||
@@ -221,7 +242,7 @@ export default function () {
|
||||
fields: headFormFields, // 名称是由 BaseSearchForm.vue 组件固定的
|
||||
},
|
||||
urls: {
|
||||
// base: "/pms/qualityInspectionRecord/pageView",
|
||||
base: "/pms/qualityInspectionRecord",
|
||||
page: "/pms/qualityInspectionRecord/pageView",
|
||||
pageIsPostApi: true,
|
||||
// subase: "/pms/equipmentTechParam",
|
||||
|
||||
Reference in New Issue
Block a user