前端表格与查询条件优化,修正后端排序逻辑
本次提交主要优化了任务、工单、库存等页面的表格字段和查询条件,统一字段名称、顺序及宽度,提升数据展示完整性和可用性。扩展了工单和库存的多维查询项,调整部分字段为更贴合业务的名称。修正后端排序逻辑,避免因大小写导致的排序失效。统一表格组件写法,清理无用代码,提升整体代码规范性。
| | |
| | | searchBefore(param) { |
| | | //ç颿¥è¯¢å,å¯ä»¥ç»param.wheresæ·»å æ¥è¯¢åæ° |
| | | //è¿åfalseï¼åä¸ä¼æ§è¡æ¥è¯¢ |
| | | param.order = "Asc"; |
| | | return true; |
| | | }, |
| | | searchAfter(result) { |
| | |
| | | |
| | | <template> |
| | | <view-grid |
| | | ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | | :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend" |
| | | > |
| | | <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions" |
| | | :table="table" :extend="extend"> |
| | | </view-grid> |
| | | </template> |
| | | <script> |
| | | <script> |
| | | import extend from "@/extension/taskinfo/task.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | |
| | | cnName: "ä»»å¡ä¿¡æ¯", |
| | | name: "task", |
| | | url: "/Task/", |
| | | sortName: "CreateDate", |
| | | sortName: "createDate", |
| | | }); |
| | | const editFormFields = ref({ |
| | | taskNum:"", |
| | | taskNum: "", |
| | | palletCode: "", |
| | | roadway: "", |
| | | taskType:"", |
| | | taskState:"", |
| | | wMSId:"", |
| | | taskType: "", |
| | | taskState: "", |
| | | wMSId: "", |
| | | sourceAddress: "", |
| | | targetAddress: "", |
| | | currentAddress: "", |
| | |
| | | creater: "", |
| | | createDate: "", |
| | | grade: "", |
| | | productionLine:"" |
| | | productionLine: "" |
| | | }); |
| | | const editFormOptions = ref([[{ title: "ä¼å
级", field: "grade", type: "int" },]]); |
| | | const searchFormFields = ref({ |
| | |
| | | }, |
| | | { |
| | | field: "palletCode", |
| | | title: "æçç¼å·", |
| | | title: "æ»æ©å·", |
| | | type: "string", |
| | | width: 160, |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "productionLine", |
| | | title: "产线", |
| | | type: "string", |
| | | width: 70, |
| | | align: "left", |
| | | bind: { key: "ProductionLine", data: [] } |
| | | }, |
| | | // { |
| | | // field: "productionLine", |
| | | // title: "产线", |
| | | // type: "string", |
| | | // width: 70, |
| | | // align: "left", |
| | | // bind: { key: "ProductionLine", data: [] } |
| | | // }, |
| | | { |
| | | field: "exceptionMessage", |
| | | title: "å¼å¸¸ä¿¡æ¯", |
| | | type: "string", |
| | | width: 90, |
| | | width: 150, |
| | | align: "left", |
| | | |
| | | |
| | | }, |
| | | { |
| | | field: "grade", |
| | | title: "ä¼å
级", |
| | | type: "int", |
| | | width: 60, |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | |
| | | |
| | | { |
| | | field: "createDate", |
| | | title: "å建æ¶é´", |
| | |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | |
| | | |
| | | { |
| | | field: "modifyDate", |
| | | title: "ä¿®æ¹æ¶é´", |
| | |
| | | { |
| | | return new Dictionary<string, OrderByType> { |
| | | { |
| | | pageData.Sort,pageData.Order?.ToLower() == OrderByType.Asc.ToString() ? OrderByType.Asc : OrderByType.Desc |
| | | pageData.Sort,pageData.Order?.ToLower() == OrderByType.Asc.ToString().ToLower() ? OrderByType.Asc : OrderByType.Desc |
| | | } }; |
| | | } |
| | | } |
| | |
| | | col.showOverflowTooltip = true |
| | | }) |
| | | |
| | | |
| | | //示ä¾ï¼èªå®ä¹è¡¨æ ¼å |
| | | //è¡¨æ ¼ä¸æ·»å èªå®ä¹æé® |
| | | // this.columns.push({ |
| | |
| | | searchBefore(param) { |
| | | //ç颿¥è¯¢å,å¯ä»¥ç»param.wheresæ·»å æ¥è¯¢åæ° |
| | | //è¿åfalseï¼åä¸ä¼æ§è¡æ¥è¯¢ |
| | | param.order = "asc"; |
| | | return true |
| | | }, |
| | | searchAfter(result) { |
| | |
| | | { "title": "å·¥åå·", "field": "workOrderNo", "type": "text" }, |
| | | { "title": "订åå·", "field": "vehicleOrderNo", "type": "text" }, |
| | | { "title": "pvi", "field": "pvi", "type": "text" }, |
| | | { "title": "车åç¹å¾å¼", "field": "vehicleCharacteristic", "type": "text" }, |
| | | ], |
| | | [ |
| | | { "title": "å·¥å", "field": "plantCode", "type": "text" }, |
| | | { "title": "订åç±»å", "field": "orderType", "type": "select", dataKey: "OrderType", data: [] }, |
| | | { "title": "å·¥å顺åºå·", "field": "sequenceNo", "type": "text" }, |
| | | { "title": "æ´è½¦ç©æå·", "field": "vehicleCode", "type": "text" }, |
| | | ], [ |
| | | { "title": "ç½è½¦èº«ç©æå·", "field": "biwMaterial", "type": "text" }, |
| | | { "title": "å½©è½¦èº«ç©æå·", "field": "pbMaterial", "type": "string" }, |
| | | ], |
| | | ]); |
| | | const columns = ref([{ field: 'Id', title: '主é®', type: 'int', width: 110, hidden: true, readonly: true, require: true, align: 'left' }, |
| | |
| | | //{ field: 'splitStrategy', title: 'ç产模å¼', type: 'string', width: 110, require: true, align: 'left' }, |
| | | { field: 'vehicleOrderNo', title: '订åå·', type: 'string', width: 90, require: true, align: 'left' }, |
| | | { field: 'orderType', title: '订åç±»å', type: 'string', width: 110, require: true, align: 'left', bind: { key: "OrderType", data: [] } }, |
| | | { field: 'workOrderNo', title: 'å·¥åå·', type: 'string', width: 90, require: true, align: 'left' }, |
| | | { field: 'workOrderNo', title: 'å·¥åå·', type: 'string', width: 150, require: true, align: 'left' }, |
| | | { field: 'pvi', title: 'pvi', type: 'string', width: 100, require: true, align: 'left' }, |
| | | { field: 'sequenceNo', title: 'å·¥å顺åºå·', type: 'string', width: 120, require: true, align: 'left', sort: true }, |
| | | { field: 'vehicleCharacteristic', title: '车åç¹å¾å¼', type: 'string', width: 90, require: true, align: 'left' }, |
| | |
| | | //{ field: 'spare3', title: 'å¤ç¨3', type: 'string', width: 110, require: true, align: 'left' }, |
| | | { field: 'creater', title: 'å建人', type: 'string', width: 90, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 150, align: 'left', sort: true }, |
| | | //{ field: 'modifier', title: 'ä¿®æ¹äºº', type: 'string', sort: true, width: 100, align: 'left' }, |
| | | //{ field: 'modifyDate', title: 'ä¿®æ¹æ¶é´', type: 'datetime', sort: true, width: 150, align: 'left', sort: true }, |
| | | //{ field: 'modifier', title: 'ä¿®æ¹äºº', type: 'string', sort: true, width: 100, align: 'left' }, |
| | | //{ field: 'modifyDate', title: 'ä¿®æ¹æ¶é´', type: 'datetime', sort: true, width: 150, align: 'left', sort: true }, |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "åºåºæç»è®¢å", |
| | |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wms/invoices/Dt_OutOrder.jsæ¤å¤ç¼å |
| | | --> |
| | | <template> |
| | | <view-grid ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | | :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend"> |
| | | <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions" |
| | | :table="table" :extend="extend"> |
| | | </view-grid> |
| | | </template> |
| | | <script> |
| | | import extend from "@/extension/widesea_wms/OrderInfo/Dt_PaintingOrderInfo.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'id', |
| | | footer: "Foots", |
| | | cnName: 'æ¶è£
å·¥å', |
| | | name: 'Orderinfo/Dt_PaintingOrderInfo', |
| | | url: "/Dt_PaintingOrderInfo/", |
| | | sortName: "Id" |
| | | }); |
| | | const editFormFields = ref({ |
| | | "orderNumber":"", |
| | | "status":"", |
| | | "orderDate":"", |
| | | "warehouseId":"", |
| | | "upperOutOrderId":"", |
| | | "remarks":"", |
| | | import extend from "@/extension/widesea_wms/OrderInfo/Dt_PaintingOrderInfo.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'id', |
| | | footer: "Foots", |
| | | cnName: 'æ¶è£
å·¥å', |
| | | name: 'Orderinfo/Dt_PaintingOrderInfo', |
| | | url: "/Dt_PaintingOrderInfo/", |
| | | sortName: "Id" |
| | | }); |
| | | const editFormFields = ref({ |
| | | "orderNumber": "", |
| | | "status": "", |
| | | "orderDate": "", |
| | | "warehouseId": "", |
| | | "upperOutOrderId": "", |
| | | "remarks": "", |
| | | |
| | | }); |
| | | const editFormOptions = ref([ |
| | | ]); |
| | | const searchFormFields = ref({}); |
| | | const searchFormOptions = ref([ |
| | | }); |
| | | const editFormOptions = ref([ |
| | | ]); |
| | | const searchFormFields = ref({}); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "å·¥åå·", "field": "workOrderNo", "type": "text" }, |
| | | { "title": "pvi", "field": "pvi", "type": "text" }, |
| | | { "title": "å·¥åç±»å", "field": "workOrderType", "type": "select", dataKey: "OrderType", data: [] }, |
| | | { "title": "åºåºæ¥æ", "field": "orderDate", "type": "datetime" }, |
| | | ], [ |
| | | { "title": "ç½è½¦èº«ç©æå·", "field": "biwMaterial", "type": "text" }, |
| | | { "title": "å½©è½¦èº«ç©æå·", "field": "pbMaterial", "type": "text" }, |
| | | { "title": "车åç¹å¾å¼", "field": "vehicleCharacteristic", "type": "string" }, |
| | | { "title": "天çªç¹å¾å¼", "field": "skylightCharacteristic", "type": "string" }, |
| | | ], [ |
| | | { "title": "车身é¢è²", "field": "carBodyCharacteristic", "type": "text" }, |
| | | { "title": "åè²è½¦èº«", "field": "twoToneCharacteristic", "type": "text" }, |
| | | { "title": "å·¥å顺åºå·", "field": "sequenceNo", "type": "string" }, |
| | | { "title": "CTCé
ç½®", "field": "config1", "type": "string" }, |
| | | ], |
| | | ]); |
| | | const columns = ref([{field:'Id',title:'主é®',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'}, |
| | | {field:'plantCode',title:'å·¥å',type:'string',width:100,require:true,align:'left'}, |
| | | //{field:'workshopCode',title:'车é´',type:'string',width:70,require:true,align:'left'}, |
| | | //{field:'splitStrategy',title:'ç产模å¼',type:'string',width:110,require:true,align:'left'}, |
| | | {field:'workOrderNo',title:'å·¥åå·',type:'string',width:220,require:true,align:'left'}, |
| | | {field:'workOrderType',title:'å·¥åç±»å',type:'string',width:110,require:true,align:'left',bind: { key: "OrderType", data: []}}, |
| | | {field:'pvi',title:'pvi',type:'string',width:100,require:true,align:'left'}, |
| | | {field:'biwMaterial',title:'ç½è½¦èº«ç©æå·',type:'string',width:120,require:true,align:'left'}, |
| | | {field:'vehicleCharacteristic',title:'车åç¹å¾å¼',type:'string',width:100,require:true,align:'left'}, |
| | | {field:'skylightCharacteristic',title:'天çªç¹å¾å¼',type:'string',width:100,require:true,align:'left'}, |
| | | {field:'carBodyCharacteristic',title:'车身é¢è²',type:'string',width:100,require:true,align:'left'}, |
| | | {field:'twoToneCharacteristic',title:'åè²è½¦èº«',type:'string',width:100,require:true,align:'left'}, |
| | | {field:'sequenceNo',title:'å·¥å顺åºå·',type:'string',width:90,require:true,align:'left'}, |
| | | {field:'config1',title:'CTCé
ç½®',type:'string',width:110,require:true,align:'left'}, |
| | | {field:'pbMaterial',title:'å½©è½¦èº«ç©æå·',type:'string',width:220,require:true,align:'left'}, |
| | | //{field:'config3',title:'å¤ç¨3',type:'string',width:110,require:true,align:'left'}, |
| | | {field:'workOrderSendStatus',title:'å·¥åä¸åç¶æ',type:'string',width:220,require:true,align:'left'}, |
| | | {field:'creater',title:'å建人',type:'string',sort:true,width:110,align:'left'}, |
| | | {field:'createDate',title:'å建æ¶é´',type:'datetime',sort:true,width:150,align:'left',sort:true}, |
| | | {field:'modifier',title:'ä¿®æ¹äºº',type:'string',sort:true,width:100,align:'left'}, |
| | | {field:'modifyDate',title:'ä¿®æ¹æ¶é´',type:'datetime',sort:true,width:150,align:'left',sort:true}, |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "åºåºæç»è®¢å", |
| | | table: "#detailTable", |
| | | columns: [ |
| | | ], |
| | | sortName: "id", |
| | | key: "iD" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | ]); |
| | | const columns = ref([{ field: 'Id', title: '主é®', type: 'int', width: 110, hidden: true, readonly: true, require: true, align: 'left' }, |
| | | { field: 'plantCode', title: 'å·¥å', type: 'string', width: 100, require: true, align: 'left' }, |
| | | //{field:'workshopCode',title:'车é´',type:'string',width:70,require:true,align:'left'}, |
| | | //{field:'splitStrategy',title:'ç产模å¼',type:'string',width:110,require:true,align:'left'}, |
| | | { field: 'workOrderNo', title: 'å·¥åå·', type: 'string', width: 200, require: true, align: 'left' }, |
| | | { field: 'workOrderType', title: 'å·¥åç±»å', type: 'string', width: 110, require: true, align: 'left', bind: { key: "OrderType", data: [] } }, |
| | | { field: 'pvi', title: 'pvi', type: 'string', width: 100, require: true, align: 'left' }, |
| | | { field: 'biwMaterial', title: 'ç½è½¦èº«ç©æå·', type: 'string', width: 120, require: true, align: 'left' }, |
| | | { field: 'vehicleCharacteristic', title: '车åç¹å¾å¼', type: 'string', width: 100, require: true, align: 'left' }, |
| | | { field: 'skylightCharacteristic', title: '天çªç¹å¾å¼', type: 'string', width: 100, require: true, align: 'left' }, |
| | | { field: 'carBodyCharacteristic', title: '车身é¢è²', type: 'string', width: 100, require: true, align: 'left' }, |
| | | { field: 'twoToneCharacteristic', title: 'åè²è½¦èº«', type: 'string', width: 100, require: true, align: 'left' }, |
| | | { field: 'sequenceNo', title: 'å·¥å顺åºå·', type: 'string', width: 150, require: true, align: 'left' }, |
| | | { field: 'config1', title: 'CTCé
ç½®', type: 'string', width: 110, require: true, align: 'left' }, |
| | | { field: 'pbMaterial', title: 'å½©è½¦èº«ç©æå·', type: 'string', width: 220, require: true, align: 'left' }, |
| | | //{field:'config3',title:'å¤ç¨3',type:'string',width:110,require:true,align:'left'}, |
| | | { field: 'workOrderSendStatus', title: 'å·¥åä¸åç¶æ', type: 'string', width: 120, require: true, align: 'left' }, |
| | | { field: 'creater', title: 'å建人', type: 'string', sort: true, width: 110, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 150, align: 'left', sort: true }, |
| | | { field: 'modifier', title: 'ä¿®æ¹äºº', type: 'string', sort: true, width: 100, align: 'left' }, |
| | | { field: 'modifyDate', title: 'ä¿®æ¹æ¶é´', type: 'datetime', sort: true, width: 150, align: 'left', sort: true }, |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "åºåºæç»è®¢å", |
| | | table: "#detailTable", |
| | | columns: [ |
| | | ], |
| | | sortName: "id", |
| | | key: "iD" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
| | |
| | | |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | palletCode:"" |
| | | palletCode: "" |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "æ»æ©å·", "field": "palletCode", type: "text" }, |
| | | //{ "title": "ç©æç¼å·", "field": "materielCode", type: "text" }, |
| | | { "title": "PVI", "field": "pvi", type: "text" }, |
| | | { "title": "PVI", "field": "pvi", type: "text" }, |
| | | { "title": "车身类å", "field": "carType", type: "select", dataKey: "BodyType", data: [] }, |
| | | //{ "title": "ç»çç±»å", "field": "groupType", type: "select", dataKey: "GroupType", data: [] }, |
| | | { "title": "æ»è£
å·¥åå·", "field": "assemblyWorrkNo", type: "string" }, |
| | | ], |
| | | [ |
| | | { "title": "å·¥åç±»å", "field": "workOrderType", type: "select", dataKey: "OrderType", data: [] }, |
| | | { "title": "çè£
å·¥åå·", "field": "workOrderNo", type: "string" }, |
| | | { "title": "æ¶è£
å·¥åå·", "field": "plantingWorkNo", type: "string" }, |
| | | { "title": "å½©è½¦èº«ç©æå·", "field": "pbMaterial", type: "string" }, |
| | | { "title": "ç½è½¦èº«ç©æå·", "field": "biwMaterialCode", type: "string" }, |
| | | ], |
| | | [ |
| | | { "title": "车åç¹å¾", "field": "vehicleCharacteristic", type: "string" }, |
| | | { "title": "天çªç¹å¾", "field": "skylightCharacteristic", type: "string" }, |
| | | { "title": "车身é¢è²", "field": "carBodyCharacteristic", type: "string" }, |
| | | { "title": "VIN", "field": "vin", type: "string" }, |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | | { field: 'id', title: 'ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' }, |
| | | { field: 'palletCode', title: 'æ»æ©å·', type: 'string', width: 110, align: 'left', sort: true }, |
| | | { field: 'workOrderNo', title: 'çè£
å·¥åå·', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'plantingWorkNo', title: 'æ¶è£
å·¥åå·', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'assemblyWorrkNo', title: 'æ»è£
å·¥åå·', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'workOrderNo', title: 'çè£
å·¥åå·', type: 'string', width: 180, align: 'left' }, |
| | | { field: 'plantingWorkNo', title: 'æ¶è£
å·¥åå·', type: 'string', width: 180, align: 'left' }, |
| | | { field: 'assemblyWorrkNo', title: 'æ»è£
å·¥åå·', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'pvi', title: 'PVIç ', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'carType', title: '车身类å', type: 'int', width: 110, align: 'left',bind: { key: "BodyType", data: [] } }, |
| | | { field: 'workOrderType', title: 'å·¥åç±»å', type: 'string', width: 110, align: 'left', bind: { key: "OrderType", data: [] } }, |
| | | { field: 'biwMaterialCode', title: 'ç½è½¦èº«ç©æå·', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'pbMaterial', title: 'å½©è½¦èº«ç©æå·', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'vehicleCharacteristic', title: '车åç¹å¾', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'skylightCharacteristic', title: '天çªç¹å¾', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'carBodyCharacteristic', title: '车身é¢è²', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'carType', title: '车身类å', type: 'int', width: 110, align: 'left', bind: { key: "BodyType", data: [] } }, |
| | | { field: 'workOrderType', title: 'å·¥åç±»å', type: 'string', width: 110, align: 'left', bind: { key: "OrderType", data: [] } }, |
| | | { field: 'biwMaterialCode', title: 'ç½è½¦èº«ç©æå·', type: 'string', width: 150, align: 'left' }, |
| | | { field: 'pbMaterial', title: 'å½©è½¦èº«ç©æå·', type: 'string', width: 150, align: 'left' }, |
| | | { field: 'vehicleCharacteristic', title: '车åç¹å¾', type: 'string', width: 90, align: 'left' }, |
| | | { field: 'skylightCharacteristic', title: '天çªç¹å¾', type: 'string', width: 90, align: 'left' }, |
| | | { field: 'carBodyCharacteristic', title: '车身é¢è²', type: 'string', width: 90, align: 'left' }, |
| | | //{ field: 'bodyStatus', title: 'å½åç¶æ', type: 'int', width: 110, align: 'left', bind: { key: "BodyStatus", data: [] } }, |
| | | { field: 'vin', title: 'VIN', type: 'string', width: 110, align: 'left', sort: true,}, |
| | | { field: 'biwInPassTime', title: 'çè£
ä¸çº¿æ¶é´', type: 'datetime', width: 110, align: 'left' }, |
| | | { field: 'vin', title: 'VIN', type: 'string', width: 110, align: 'left', sort: true, }, |
| | | { field: 'biwInPassTime', title: 'çè£
ä¸çº¿æ¶é´', type: 'datetime', width: 150, align: 'left' }, |
| | | { field: 'description', title: '夿³¨', type: 'string', width: 120, align: 'left' }, |
| | | { field: 'creater', title: 'å建人', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 100, align: 'left' }, |
| | |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "æ¡ç ", "field": "palletCode", type: "text" }, |
| | | { "title": "æ»æ©å·", "field": "palletCode", type: "text" }, |
| | | { "title": "åºä½å·", "field": "locationCode", type: "text" }, |
| | | { "title": "åºåç¶æ", "field": "stockStatus", type: "select", dataKey: "CurrentStatue", data: [] }, |
| | | { "title": "éå®ç¶æ", "field": "stockStatus", type: "select", dataKey: "BodyStatus", data: [] }, |
| | | { "title": "æå¨éå®", "field": "lockOrder", type: "select", dataKey: "LockStatus", data: [] }, |
| | | ], |
| | | [ |
| | | { "title": "车身ID", "field": "carBodyID", type: "int" }, |
| | | { "title": "PVI", "field": "pvi", type: "string" }, |
| | | { "title": "å··éå·", "field": "roadwayNo", type: "int" }, |
| | | { "title": "ä»»å¡ç¶æ", "field": "taskStatus", type: "select", dataKey: "TaskInfoStatus", data: [] }, |
| | | ], |
| | | [ |
| | | { "title": "车身类å", "field": "carType", type: "select", dataKey: "BodyType", data: [] }, |
| | | { "title": "å·¥åç±»å", "field": "workOrderType", type: "select", dataKey: "OrderType", data: [] }, |
| | | { "title": "ç½è½¦èº«ç©æå·", "field": "biwMaterialCode", type: "int" }, |
| | | { "title": "å½©è½¦èº«ç©æå·", "field": "pbMaterial", type: "string" }, |
| | | ], |
| | | [ |
| | | { "title": "车身é¢è²", "field": "carBodyCharacteristic", type: "string" }, |
| | | { "title": "天çªç¹å¾", "field": "skylightCharacteristic", type: "string" }, |
| | | { "title": "车å", "field": "vehicleCharacteristic", type: "string" }, |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | { field: 'palletCode', title: 'æ»æ©å·', type: 'string', width: 75, align: 'left' }, |
| | | { field: 'vehicleCharacteristic', title: '车å', type: 'string', width: 75, align: 'left' }, |
| | | { field: 'carType', title: '车身类å', type: 'int', width: 80, align: 'left', bind: { key: "BodyType", data: [] } }, |
| | | { field: 'workOrderType', title: 'å·¥åç±»å', type: 'string', width: 75, align: 'left', bind: { key: "OrderType", data: [] } }, |
| | | { field: 'workOrderType', title: 'å·¥åç±»å', type: 'string', width: 100, align: 'left', bind: { key: "OrderType", data: [] } }, |
| | | { field: 'skylightCharacteristic', title: '天çªç¹å¾', type: 'string', width: 75, align: 'left' }, |
| | | { field: 'carBodyCharacteristic', title: '车身é¢è²', type: 'string', width: 75, align: 'left' }, |
| | | { field: 'biwMaterialCode', title: 'ç½è½¦èº«ç©æå·', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'pbMaterial', title: 'å½©è½¦èº«ç©æå·', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'biwInPassTime', title: 'çè£
ä¸çº¿æ¶é´', type: 'datetime', width: 130, align: 'left' }, |
| | | { field: 'stockStatus', title: 'éå®ç¶æ', type: 'string', width: 80, align: 'left', bind: { key: "BodyStatus", data: [] } }, |
| | | { field: 'lockOrder', title: 'æå¨éå®', type: 'int', width: 75, align: 'left', bind: { key: "LockStatus", data: [] } }, |
| | | { field: 'lockOrder', title: 'æå¨éå®', type: 'int', width: 75, align: 'left', bind: { key: "LockStatus", data: [] } }, |
| | | { field: 'taskStatus', title: 'ä»»å¡ç¶æ', type: 'string', width: 80, align: 'left', bind: { key: "TaskInfoStatus", data: [] } }, |
| | | //{ field: 'stayStatus', title: 'ä¿çç¶æ', type: 'string', width: 80, align: 'left', bind: { key: "StayStatus", data: [] } }, |
| | | //{ field: 'creater', title: 'å建人', type: 'string', width: 100, align: 'left' }, |
| | |
| | | cnName: 'ä»»å¡ä¿¡æ¯', |
| | | name: 'taskinfo/Dt_Task', |
| | | url: "/Task/", |
| | | sortName: "TaskId" |
| | | sortName: "createDate" |
| | | }); |
| | | const editFormFields = ref({ |
| | | }); |
| | |
| | | { "title": "ä»»å¡å·", "field": "taskNum", "type": "text" }, |
| | | { "title": "æ»æ©å·", "field": "palletCode", "type": "text" }, |
| | | { "title": "ä»»å¡ç±»å", "field": "taskType", "type": "select", dataKey: "TaskType", data: [] }, |
| | | { "title": "ä»»å¡ç¶æ", "field": "taskState", "type": "select", dataKey: "TaskStatus", data: [] }, |
| | | |
| | | ], |
| | | [ |
| | | { "title": "èµ·å§ä½ç½®", "field": "sourceAddress", type: "text" }, |
| | | //{ "title": "å½åä½ç½®", "field": "currentAddress", type: "text" }, |
| | | //{ "title": "ä¸ä¸ä½ç½®", "field": "nextAddress", type: "text" }, |
| | | { "title": "ç®æ ä½ç½®", "field": "targetAddress", type: "text" }, |
| | | { "title": "ä»»å¡ç¶æ", "field": "taskState", "type": "select", dataKey: "TaskStatus", data: [] }, |
| | | |
| | | ], |
| | | [ |
| | | { "title": "å··é", "field": "roadway", type: "text" }, |
| | |
| | | ]); |
| | | const columns = ref([{ field: 'TaskId', title: '主é®', type: 'string', width: 110, hidden: true, readonly: true, require: true, align: 'left' }, |
| | | { field: 'taskNum', title: 'ä»»å¡å·', type: 'int', width: 110, align: 'left', sort: true }, |
| | | { field: 'pvi', title: 'pvi', type: 'int', width: 110, align: 'left',}, |
| | | { field: 'palletCode', title: 'æ»æ©å·', type: 'string', width: 180, align: 'left' }, |
| | | { field: 'pnboundNo', title: 'åæ®å·', type: 'string', width: 110, align: 'left',hidden:true }, |
| | | { field: 'pvi', title: 'pvi', type: 'int', width: 150, align: 'left', }, |
| | | { field: 'palletCode', title: 'æ»æ©å·', type: 'string', width: 120, align: 'left' }, |
| | | { field: 'pnboundNo', title: 'åæ®å·', type: 'string', width: 110, align: 'left', hidden: true }, |
| | | { field: 'groupID', title: 'åºåID', type: 'int', width: 110, hidden: true, align: 'left' }, |
| | | { field: 'groupDetailId', title: 'ç»çæç»ID', type: 'int', width: 110, hidden: true, align: 'left' }, |
| | | { field: 'roadway', title: 'å··é', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'taskType', title: 'ä»»å¡ç±»å', type: 'int', width: 110, align: 'left', bind: { key: "TaskType", data: [] } }, |
| | | { field: 'taskState', title: 'ä»»å¡ç¶æ', type: 'int', width: 110, align: 'left', bind: { key: "TaskStatus", data: [] } }, |
| | | { field: 'taskState', title: 'ä»»å¡ç¶æ', type: 'int', width: 150, align: 'left', bind: { key: "TaskStatus", data: [] } }, |
| | | { field: 'sourceAddress', title: 'èµ·å§ä½ç½®', type: 'string', width: 110, align: 'left' }, |
| | | ///{ field: 'currentAddress', title: 'å½åä½ç½®', type: 'string', width: 110, align: 'left' }, |
| | | //{ field: 'nextAddress', title: 'ä¸ä¸ä½ç½®', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'targetAddress', title: 'ç®æ ä½ç½®', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'grade', title: 'ä¼å
级', type: 'int', width: 60, align: 'left' }, |
| | | { field: 'dispatchertime', title: 'ä»»å¡ä¸åæ¶é´', type: 'datetime', width: 150, align: 'left', sort: true }, |
| | | { field: 'remark', title: '夿³¨', type: 'string', width: 110, align: 'left',hidden: true, }, |
| | | { field: 'remark', title: '夿³¨', type: 'string', width: 110, align: 'left', hidden: true, }, |
| | | { field: 'creater', title: 'å建人', type: 'string', sort: true, width: 110, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 150, align: 'left', sort: true }, |
| | | { field: 'modifyDate', title: 'ä¿®æ¹æ¶é´', type: 'datetime', sort: true, width: 150, align: 'left', sort: true }, |
| | |
| | | { field: 'createID', title: 'å建ID', type: 'int', sort: true, width: 100, hidden: true, align: 'left' }, |
| | | { field: 'modifyID', title: 'ä¿®æ¹äººID', type: 'int', sort: true, width: 100, hidden: true, align: 'left' },]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | | columns: [], |
| | | sortName: "", |