| | |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wcs/order/Dt_CheckOrder.jsæ¤å¤ç¼å |
| | | --> |
| | | <template> |
| | | <view-grid ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | | :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend"> |
| | | </view-grid> |
| | | <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/check/checkOrder.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'checkOrderId', |
| | | footer: "Foots", |
| | | cnName: 'æ£éªå', |
| | | name: 'checkOrder', |
| | | url: "/CheckOrder/", |
| | | sortName: "checkOrderId" |
| | | }); |
| | | const editFormFields = ref({}); |
| | | const editFormOptions = ref([]); |
| | | const searchFormFields = ref({}); |
| | | const searchFormOptions = ref([]); |
| | | const columns = ref([{field:'checkOrderId',title:'主é®',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'}, |
| | | {field:'checkOrderNo',title:'æ£éªåå·',type:'string',width:110,require:true,align:'left',sort:true}, |
| | | {field:'receiveOrderNo',title:'æ¶è´§åå·',type:'string',width:110,require:true,align:'left'}, |
| | | {field:'checkOrderStatus',title:'è´¨æ£åç¶æ',type:'int',width:110,require:true,align:'left'}, |
| | | {field:'auditStatus',title:'审æ¹ç¶æ',type:'int',width:110,require:true,align:'left'}, |
| | | {field:'receiveDetailRowNo',title:'æ¶è´§åæç»è¡å·',type:'int',width:110,require:true,align:'left'}, |
| | | {field:'materielCode',title:'ç©æç¼å·',type:'string',width:110,require:true,align:'left'}, |
| | | {field:'qualifiedQuantity',title:'åæ ¼æ°é',type:'float',width:110,align:'left'}, |
| | | {field:'defectedQuantity',title:'ç¹éæ°é',type:'float',width:110,align:'left'}, |
| | | {field:'returnQuantity',title:'éè´§æ°é',type:'float',width:110,align:'left'}, |
| | | {field:'scrappedQuantity',title:'æ¥åºæ°é',type:'float',width:110,align:'left'}, |
| | | {field:'receivedQuantity',title:'æ£éªæ»æ°',type:'float',width:110,require:true,align:'left'}, |
| | | {field:'result',title:'æ£éªç»æ',type:'string',width:110,align:'left'}, |
| | | {field:'defectedNote',title:'ç¹é说æ',type:'string',width:110,align:'left'}, |
| | | {field:'checkUserName',title:'æ£éªäºº',type:'string',width:110,align:'left'}, |
| | | {field:'creater',title:'å建è
',type:'string',width:110,require:true,align:'left'}, |
| | | {field:'createDate',title:'å建æ¶é´',type:'datetime',width:150,require:true,align:'left',sort:true}, |
| | | {field:'modifier',title:'ä¿®æ¹äºº',type:'string',width:100,align:'left'}, |
| | | {field:'modifyDate',title:'ä¿®æ¹æ¥æ',type:'datetime',width:150,align:'left',sort:true}]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | import extend from "@/extension/check/checkOrder.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: "checkOrderId", |
| | | footer: "Foots", |
| | | cnName: "æ£éªå", |
| | | name: "checkOrder", |
| | | url: "/CheckOrder/", |
| | | sortName: "checkOrderId", |
| | | }); |
| | | const editFormFields = ref({}); |
| | | const editFormOptions = ref([]); |
| | | const searchFormFields = ref({ |
| | | checkOrderNo: "", |
| | | receiveOrderNo: "", |
| | | checkOrderStatus: "", |
| | | auditStatus: "", |
| | | orderType: "0", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "æ£éªåå·", field: "checkOrderNo", type: "like" }, |
| | | { title: "æ¶è´§åå·", field: "receiveOrderNo", type: "like" }, |
| | | { |
| | | title: "è´¨æ£åç¶æ", |
| | | field: "checkOrderStatus", |
| | | type: "select", |
| | | dataKey: "checkOrderStatusEnum", |
| | | data: [], |
| | | }, |
| | | ], |
| | | [ |
| | | { title: "æ¶è´§åæç»è¡å·", field: "receiveDetailRowNo", type: "like" }, |
| | | { title: "ç©æç¼å·", field: "materielCode", type: "like" }, |
| | | { |
| | | title: "æ£éªç»æ", |
| | | field: "result", |
| | | type: "select", |
| | | dataKey: "checkAcceptEnum", |
| | | data: [], |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | title: "ä¸ä¼ ç¶æ", |
| | | field: "UploadStatus", |
| | | type: "select", |
| | | dataKey: "checkUploadEnum", |
| | | data: [], |
| | | }, |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | | { |
| | | field: "checkOrderId", |
| | | title: "主é®", |
| | | type: "int", |
| | | width: 150, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "checkOrderNo", |
| | | title: "æ£éªåå·", |
| | | type: "string", |
| | | width: 180, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "orderType", |
| | | title: "æ£éªåç±»å", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "checkTypeEnum", data: [] }, |
| | | }, |
| | | { |
| | | field: "receiveOrderNo", |
| | | title: "æ¶è´§åå·", |
| | | type: "string", |
| | | width: 180, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "warehouseId", |
| | | title: "ä»åº", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | bind: { key: "warehouses", data: [] }, |
| | | }, |
| | | // {field:'auditStatus',title:'审æ¹ç¶æ',type:'int',width:110,require:true,align:'left'}, |
| | | { |
| | | field: "receiveDetailRowNo", |
| | | title: "æ¶è´§æç»è¡", |
| | | type: "int", |
| | | width: 100, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "materielCode", |
| | | title: "ç©æç¼å·", |
| | | type: "string", |
| | | width: 110, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "materielSpec", |
| | | title: "ç©æè§æ ¼", |
| | | type: "select", |
| | | type: "string", |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "lotNo", |
| | | title: "æ¹æ¬¡å·", |
| | | type: "string", |
| | | width: 150, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "checkOrderStatus", |
| | | title: "è´¨æ£åç¶æ", |
| | | type: "string", |
| | | width: 110, |
| | | require: true, |
| | | align: "left", |
| | | bind: { key: "checkOrderStatusEnum", data: [] }, |
| | | }, |
| | | { |
| | | field: "qualifiedQuantity", |
| | | title: "åæ ¼æ°é", |
| | | type: "float", |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "returnQuantity", |
| | | title: "éè´§æ°é", |
| | | type: "float", |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "receivedQuantity", |
| | | title: "æ£éªæ»æ°", |
| | | type: "float", |
| | | width: 110, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "unit", |
| | | title: "åä½", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "result", |
| | | title: "æ£éªå¤æ", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "checkAcceptEnum", data: [] }, |
| | | }, |
| | | { |
| | | field: "uploadStatus", |
| | | title: "ä¸ä¼ ç¶æ", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | bind: { key: "checkUploadEnum", data: [] }, |
| | | }, |
| | | // {field:'defectedNote',title:'ç¹é说æ',type:'string',width:110,align:'left'}, |
| | | { |
| | | field: "checkUserName", |
| | | title: "æ£éªäºº", |
| | | type: "string", |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "creater", |
| | | // title: "å建è
", |
| | | // type: "string", |
| | | // width: 110, |
| | | // require: true, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "createDate", |
| | | title: "å建æ¶é´", |
| | | type: "datetime", |
| | | width: 180, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | // {field:'modifier',title:'ä¿®æ¹äºº',type:'string',width:100,align:'left'}, |
| | | // {field:'modifyDate',title:'ä¿®æ¹æ¥æ',type:'datetime',width:150,align:'left',sort:true} |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "æ£éªç»æ", |
| | | table: "CheckOrderResult", |
| | | columns: [ |
| | | { |
| | | field: "id", |
| | | title: "主é®", |
| | | type: "int", |
| | | width: 110, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "checkOrderId", |
| | | title: "æ£éªå主é®", |
| | | type: "int", |
| | | width: 110, |
| | | require: true, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "defectCode", |
| | | title: "缺é·ä»£ç ", |
| | | type: "string", |
| | | width: 110, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "result", |
| | | title: "æ£éªç»æ", |
| | | type: "string", |
| | | width: 110, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "quantity", |
| | | title: "æ°é", |
| | | type: "float", |
| | | width: 110, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "note", |
| | | title: "夿³¨", |
| | | type: "string", |
| | | width: 220, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "creater", |
| | | title: "å建è
", |
| | | type: "string", |
| | | width: 110, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "createDate", |
| | | title: "å建æ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | require: true, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "modifier", |
| | | title: "ä¿®æ¹äºº", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "modifyDate", |
| | | title: "ä¿®æ¹æ¥æ", |
| | | type: "datetime", |
| | | width: 150, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | ], |
| | | sortName: "id", |
| | | key: "id", |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |