已添加6个文件
已复制2个文件
已重命名1个文件
已修改11个文件
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // 该æ©å±æä»¶ç¨äºä»»å¡åå²é¡µé¢çä¸å¡æ©å±ã
|
| | | // æ¹æ³ç®çï¼ç»ä¸é¢çå表æ¥è¯¢ãä¿ååååå¼¹çªæå¼æ¶çæ©å±å
¥å£ï¼ä¿æä¸é¡¹ç®å
task 页é¢ä¸è´çæ©å±ç¹ã
|
| | | // åæ°å«ä¹ï¼ç±æ¡æ¶æçå½å¨æä¼ å
¥ï¼å
嫿¥è¯¢åæ°ãè¡¨åæ°æ®ãè¡æ°æ®çä¸ä¸æã
|
| | | // è¿åå¼è¯´æï¼è¿å true 代表继ç»é»è®¤è¡ä¸ºï¼è¿å false ä»£è¡¨ä¸æé»è®¤è¡ä¸ºã
|
| | | // å¼å¸¸å¤ç说æï¼å½åæªå¼å
¥å¤é¨è°ç¨ï¼è¥åç»æ°å¢æ¥å£è°ç¨ï¼é卿¹æ³å
è¡¥å
try-catch å¹¶è®°å½å
³é®ä¸å¡åæ°ã
|
| | |
|
| | | let extension = {
|
| | | components: {
|
| | | gridHeader: "",
|
| | | gridBody: "",
|
| | | gridFooter: "",
|
| | | modelHeader: "",
|
| | | modelBody: "",
|
| | | modelFooter: "",
|
| | | },
|
| | | tableAction: "",
|
| | | buttons: { view: [], box: [], detail: [] },
|
| | | methods: {
|
| | | // æ¹æ³ç®çï¼é¡µé¢åå§åæ¶æ§è¡èªå®ä¹é»è¾ã
|
| | | // åæ°ï¼æ ã
|
| | | // è¿åå¼ï¼æ ã
|
| | | onInit() {},
|
| | |
|
| | | // æ¹æ³ç®çï¼é¡µé¢åå§å宿忧è¡èªå®ä¹é»è¾ã
|
| | | // åæ°ï¼æ ã
|
| | | // è¿åå¼ï¼æ ã
|
| | | onInited() {},
|
| | |
|
| | | // æ¹æ³ç®çï¼æ¥è¯¢åå¤çæ¥è¯¢æ¡ä»¶ã
|
| | | // åæ°ï¼param æ¥è¯¢åæ°å¯¹è±¡ã
|
| | | // è¿åå¼ï¼true ç»§ç»æ¥è¯¢ï¼false ç»æ¢æ¥è¯¢ã
|
| | | searchBefore(param) {
|
| | | // 第ä¸ä¸ªè¿æ»¤æ¡ä»¶
|
| | | const roadwayFilter1 = {
|
| | | name: "roadway",
|
| | | value: "ZJ1",
|
| | | displayType: "like",
|
| | | };
|
| | |
|
| | | // 第äºä¸ªè¿æ»¤æ¡ä»¶
|
| | | const roadwayFilter2 = {
|
| | | name: "roadway",
|
| | | value: "FJ1",
|
| | | displayType: "like",
|
| | | };
|
| | |
|
| | | if (!param.wheres) {
|
| | | param.wheres = [];
|
| | | }
|
| | |
|
| | | // å°ä¸¤ä¸ªè¿æ»¤æ¡ä»¶æ·»å å°æ¥è¯¢åæ°ä¸
|
| | | param.wheres.push(roadwayFilter1);
|
| | | param.wheres.push(roadwayFilter2);
|
| | |
|
| | | return true;
|
| | | return true;
|
| | | },
|
| | |
|
| | | // æ¹æ³ç®çï¼æ¥è¯¢åå¤çè¿åç»æã
|
| | | // åæ°ï¼result å端è¿åæ°æ®ã
|
| | | // è¿åå¼ï¼true ç»§ç»æ¸²æï¼false ç»æ¢åç»å¤çã
|
| | | searchAfter(result) {
|
| | | return true;
|
| | | },
|
| | |
|
| | | // æ¹æ³ç®çï¼æ°å¢åæ ¡éªæè¡¥å
æäº¤å段ã
|
| | | // åæ°ï¼formData 表åæäº¤å¯¹è±¡ã
|
| | | // è¿åå¼ï¼true ç»§ç»æäº¤ï¼false ç»æ¢æäº¤ã
|
| | | addBefore(formData) {
|
| | | return true;
|
| | | },
|
| | |
|
| | | // æ¹æ³ç®çï¼ç¼è¾åæ ¡éªæè¡¥å
æäº¤å段ã
|
| | | // åæ°ï¼formData 表åæäº¤å¯¹è±¡ã
|
| | | // è¿åå¼ï¼true ç»§ç»æäº¤ï¼false ç»æ¢æäº¤ã
|
| | | updateBefore(formData) {
|
| | | return true;
|
| | | },
|
| | |
|
| | | // æ¹æ³ç®çï¼ç¹å»è¡æ¶æ©å±å¤çã
|
| | | // åæ°ï¼row è¡æ°æ®ï¼column åé
ç½®ï¼event åå§äºä»¶ã
|
| | | // è¿åå¼ï¼æ ã
|
| | | rowClick({ row, column, event }) {},
|
| | |
|
| | | // æ¹æ³ç®çï¼ç¼è¾å¼¹çªæå¼åæ§è¡æ©å±é»è¾ã
|
| | | // åæ°ï¼row å½åè¡æ°æ®ã
|
| | | // è¿åå¼ï¼æ ã
|
| | | modelOpenAfter(row) {},
|
| | | },
|
| | | };
|
| | |
|
| | | export default extension;
|
| | |
| | | // åæ°ï¼param æ¥è¯¢åæ°å¯¹è±¡ã |
| | | // è¿åå¼ï¼true ç»§ç»æ¥è¯¢ï¼false ç»æ¢æ¥è¯¢ã |
| | | searchBefore(param) { |
| | | const roadwayFilter1 = { |
| | | name: "roadway", |
| | | value: "ZJSC1", |
| | | displayType: "notequal", |
| | | }; |
| | | |
| | | // 第äºä¸ªè¿æ»¤æ¡ä»¶ |
| | | const roadwayFilter2 = { |
| | | name: "roadway", |
| | | value: "FJSC1", |
| | | displayType: "notequal", |
| | | }; |
| | | |
| | | if (!param.wheres) { |
| | | param.wheres = []; |
| | | } |
| | | |
| | | // å°ä¸¤ä¸ªè¿æ»¤æ¡ä»¶æ·»å å°æ¥è¯¢åæ°ä¸ |
| | | param.wheres.push(roadwayFilter1); |
| | | param.wheres.push(roadwayFilter2); |
| | | return true; |
| | | return true; |
| | | }, |
| | | |
| | |
| | | component: () => import("@/views/taskinfo/agvTask.vue"), |
| | | }, |
| | | { |
| | | path: "/agvTask_hty", |
| | | name: "agvTask_hty", |
| | | component: () => import("@/views/taskinfo/agvTask_hty.vue"), |
| | | }, |
| | | { |
| | | path: "/taskHty", |
| | | name: "taskHty", |
| | | component: () => import("@/views/taskinfo/taskHty.vue"), |
| | |
| | | const loading = ref(false); |
| | | const codeImgSrc = ref(''); |
| | | const userInfo = reactive({ |
| | | userName: 'admin', |
| | | userName: 'QKA02', |
| | | password: '123456', |
| | | verificationCode: '1234', |
| | | UUID: undefined |
copy from Code/WMS/WIDESEA_WMSClient/src/views/taskinfo/task_agv.vue
copy to Code/WCS/WIDESEAWCS_Client/src/views/taskinfo/agvTask_hty.vue
| Îļþ´Ó Code/WMS/WIDESEA_WMSClient/src/views/taskinfo/task_agv.vue ¸´ÖÆ |
| | |
| | |
|
| | | <template>
|
| | | <view-grid
|
| | | ref="grid"
|
| | |
| | | >
|
| | | </view-grid>
|
| | | </template>
|
| | | <script>
|
| | | import extend from "@/extension/taskinfo/agvTask.jsx";
|
| | | <script>
|
| | | import extend from "@/extension/taskinfo/agvTask_hty.jsx";
|
| | | import { ref, defineComponent } from "vue";
|
| | |
|
| | | export default defineComponent({
|
| | | setup() {
|
| | | const table = ref({
|
| | | key: "taskId",
|
| | | footer: "Foots",
|
| | | cnName: "ä»»å¡ä¿¡æ¯",
|
| | | name: "task",
|
| | | url: "/Task/",
|
| | | sortName: "CreateDate",
|
| | | cnName: "ä»»å¡åå²",
|
| | | name: "taskHty",
|
| | | url: "/Task_Hty/",
|
| | | sortName: "insertTime",
|
| | | });
|
| | |
|
| | | const editFormFields = ref({});
|
| | | const editFormOptions = ref([]);
|
| | |
|
| | | const searchFormFields = ref({
|
| | | taskNum: "",
|
| | | palletCode: "",
|
| | | roadway: "",
|
| | | taskStatus: "",
|
| | | taskType: "",
|
| | | sourceAddress: "",
|
| | | targetAddress: "",
|
| | | currentAddress: "",
|
| | | nextAddress: "",
|
| | | creater: "",
|
| | | createDate: "",
|
| | | operateType: "",
|
| | | insertTime: "",
|
| | | });
|
| | |
|
| | | const searchFormOptions = ref([
|
| | | [
|
| | | { title: "ä»»å¡å·", field: "taskNum", type: "int" },
|
| | | { title: "æçç¼å·", field: "palletCode", type: "like" },
|
| | | { title: "å建人", field: "creater", type: "like" },
|
| | | ],
|
| | | [
|
| | | { title: "ä»»å¡ç±»å",field: "taskType",type: "selectList",dataKey: "taskTypeEnum",data: [],},
|
| | | { title: "ä»»å¡ç¶æ",field: "taskStatus",type: "selectList",dataKey: "taskStatusEnum",data: [],},
|
| | | { title: "å··éå·", field: "roadway", type: "like" },
|
| | | { title: "æçç¼ç ", field: "palletCode", type: "like" },
|
| | | {
|
| | | title: "ä»»å¡ç±»å",
|
| | | field: "taskType",
|
| | | type: "selectList",
|
| | | dataKey: "taskType",
|
| | | data: [],
|
| | | },
|
| | | {
|
| | | title: "ä»»å¡ç¶æ",
|
| | | field: "taskStatus",
|
| | | type: "selectList",
|
| | | dataKey: "taskState",
|
| | | data: [],
|
| | | },
|
| | | ],
|
| | | [
|
| | | { title: "èµ·å§å°å", field: "sourceAddress", type: "like" },
|
| | | { title: "ç®æ å°å", field: "targetAddress", type: "like" },
|
| | | { title: "å建æ¶é´", field: "createDate", type: "datetime" },
|
| | | { title: "å½åä½ç½®", field: "currentAddress", type: "like" },
|
| | | { title: "ä¸ä¸ä½ç½®", field: "nextAddress", type: "like" },
|
| | | ],
|
| | | [
|
| | | { title: "å··éå·", field: "roadway", type: "like" },
|
| | | { title: "å建人", field: "creater", type: "like" },
|
| | | { title: "æä½ç±»å", field: "operateType", type: "like" },
|
| | | { title: "ç§»å
¥å岿¶é´", field: "insertTime", type: "datetime" },
|
| | | ],
|
| | | ]);
|
| | |
|
| | | const columns = ref([
|
| | | {
|
| | | field: "taskId",
|
| | | title: "taskId",
|
| | | title: "TaskId",
|
| | | type: "int",
|
| | | width: 90,
|
| | | hidden: true,
|
| | |
| | | field: "taskNum",
|
| | | title: "ä»»å¡å·",
|
| | | type: "int",
|
| | | width: 120,
|
| | | width: 100,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "palletCode",
|
| | | title: "æçç¼å·",
|
| | | title: "æçç¼ç ",
|
| | | type: "string",
|
| | | width: 160,
|
| | | width: 150,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "roadway",
|
| | | title: "å··éå·",
|
| | | type: "string",
|
| | | width: 120,
|
| | | width: 90,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "taskType",
|
| | | title: "ä»»å¡ç±»å",
|
| | | type: "int",
|
| | | width: 120,
|
| | | width: 90,
|
| | | align: "left",
|
| | | bind: { key: "taskTypeEnum", data: [] },
|
| | | bind: { key: "taskType", data: [] },
|
| | | },
|
| | | {
|
| | | field: "taskStatus",
|
| | | title: "ä»»å¡ç¶æ",
|
| | | type: "int",
|
| | | width: 150,
|
| | | width: 120,
|
| | | align: "left",
|
| | | bind: { key: "taskStatusEnum", data: [] },
|
| | | bind: { key: "taskState", data: [] },
|
| | | },
|
| | | {
|
| | | field: "sourceAddress",
|
| | | title: "èµ·å§å°å",
|
| | | type: "int",
|
| | | type: "string",
|
| | | width: 120,
|
| | | align: "left",
|
| | | },
|
| | |
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "exceptionMessage",
|
| | | title: "å¼å¸¸ä¿¡æ¯",
|
| | | type: "string",
|
| | | field: "grade",
|
| | | title: "ä¼å
级",
|
| | | type: "int",
|
| | | width: 90,
|
| | | align: "left",
|
| | | },
|
| | | // {
|
| | | // field: "grade",
|
| | | // title: "ä¼å
级",
|
| | | // type: "int",
|
| | | // width: 80,
|
| | | // align: "left",
|
| | | // },
|
| | | {
|
| | | field: "depth",
|
| | | title: "深度",
|
| | | field: "sourceId",
|
| | | title: "å表主é®",
|
| | | type: "int",
|
| | | width: 80,
|
| | | width: 100,
|
| | | align: "left",
|
| | | bind: { key: "locationDepth", data: [] },
|
| | | },
|
| | | {
|
| | | field: "dispatchertime",
|
| | | title: "ä»»å¡ä¸åæ¶é´",
|
| | | type: "datetime",
|
| | | width: 160,
|
| | | align: "left",
|
| | | // hidden:true,
|
| | | },
|
| | | {
|
| | | field: "wMSId",
|
| | | title: "WMSä»»å¡ä¸»é®",
|
| | | type: "int",
|
| | | field: "operateType",
|
| | | title: "æä½ç±»å",
|
| | | type: "string",
|
| | | width: 120,
|
| | | align: "left",
|
| | | hidden: true,
|
| | | },
|
| | | {
|
| | | field: "insertTime",
|
| | | title: "ç§»å
¥å岿¶é´",
|
| | | type: "datetime",
|
| | | width: 170,
|
| | | align: "left",
|
| | | sort: true,
|
| | | },
|
| | | {
|
| | | field: "creater",
|
| | | title: "å建人",
|
| | | type: "string",
|
| | | width: 90,
|
| | | width: 100,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | |
| | | field: "remark",
|
| | | title: "夿³¨",
|
| | | type: "string",
|
| | | width: 100,
|
| | | width: 120,
|
| | | align: "left",
|
| | | hidden: true,
|
| | | },
|
| | | ]);
|
| | |
|
| | | const detail = ref({
|
| | | cnName: "#detailCnName",
|
| | | cnName: "",
|
| | | table: "",
|
| | | columns: [],
|
| | | sortName: "",
|
| | | key: "",
|
| | | });
|
| | |
|
| | | return {
|
| | | table,
|
| | | extend,
|
| | |
| | | },
|
| | | });
|
| | | </script>
|
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /*****************************************************************************************
|
| | | ** Author:jxx 2022
|
| | | ** QQ:283591387
|
| | | **宿´ææ¡£è§ï¼http://v2.volcore.xyz/document/api ã代ç çæé¡µé¢ViewGridã
|
| | | **常ç¨ç¤ºä¾è§ï¼http://v2.volcore.xyz/document/vueDev
|
| | | **åå°æä½è§ï¼http://v2.volcore.xyz/document/netCoreDev
|
| | | *****************************************************************************************/
|
| | | //æ¤jsæä»¶æ¯ç¨æ¥èªå®ä¹æ©å±ä¸å¡ä»£ç ï¼å¯ä»¥æ©å±ä¸äºèªå®ä¹é¡µé¢æè
éæ°é
ç½®çæç代ç
|
| | |
|
| | | let extension = {
|
| | | components: {
|
| | | //æ¥è¯¢ç颿©å±ç»ä»¶
|
| | | gridHeader: "",
|
| | | gridBody: "",
|
| | | gridFooter: "",
|
| | | //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶
|
| | | modelHeader: "",
|
| | | modelBody: "",
|
| | | modelFooter: "",
|
| | | },
|
| | | tableAction: "", //æå®æå¼ 表çæé(è¿éå¡«å表å,é»è®¤ä¸ç¨å¡«å)
|
| | | buttons: { view: [], box: [], detail: [] }, //æ©å±çæé®
|
| | | methods: {
|
| | | //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤
|
| | | onInit() {
|
| | | //æ¡æ¶åå§åé
ç½®åï¼
|
| | | //示ä¾ï¼å¨æé®çæå颿·»å ä¸ä¸ªæé®
|
| | | // this.buttons.unshift({ //ä¹å¯ä»¥ç¨pushæè
spliceæ¹æ³æ¥ä¿®æ¹buttonsæ°ç»
|
| | | // name: 'æé®', //æé®åç§°
|
| | | // icon: 'el-icon-document', //æé®å¾æ vue2çæ¬è§iviewææ¡£iconï¼vue3çæ¬è§element uiææ¡£icon(注æä¸æ¯element pulsææ¡£)
|
| | | // type: 'primary', //æé®æ ·å¼vue2çæ¬è§iviewææ¡£buttonï¼vue3çæ¬è§element uiææ¡£button
|
| | | // onClick: function () {
|
| | | // this.$Message.success('ç¹å»äºæé®');
|
| | | // }
|
| | | // });
|
| | | //示ä¾ï¼è®¾ç½®ä¿®æ¹æ°å»ºãç¼è¾å¼¹åºæ¡å段æ ç¾çé¿åº¦
|
| | | // this.boxOptions.labelWidth = 150;
|
| | | },
|
| | | onInited() {
|
| | | //æ¡æ¶åå§åé
ç½®å
|
| | | //妿è¦é
ç½®æç»è¡¨,卿¤æ¹æ³æä½
|
| | | //this.detailOptions.columns.forEach(column=>{ });
|
| | | },
|
| | | searchBefore(param) {
|
| | | //ç颿¥è¯¢å,å¯ä»¥ç»param.wheresæ·»å æ¥è¯¢åæ°
|
| | | //è¿åfalseï¼åä¸ä¼æ§è¡æ¥è¯¢
|
| | | const warehouseIdFilter1 = {
|
| | | name: "warehouseId",
|
| | | value: "6",
|
| | | displayType: "ThanOrEqual",
|
| | | };
|
| | |
|
| | | // // 第äºä¸ªè¿æ»¤æ¡ä»¶
|
| | | // const warehouseIdFilter2 = {
|
| | | // name: "warehouseId",
|
| | | // value: "7",
|
| | | // displayType: "int",
|
| | | // };
|
| | |
|
| | | if (!param.wheres) {
|
| | | param.wheres = [];
|
| | | }
|
| | |
|
| | | // å°ä¸¤ä¸ªè¿æ»¤æ¡ä»¶æ·»å å°æ¥è¯¢åæ°ä¸
|
| | | param.wheres.push(warehouseIdFilter1);
|
| | | // param.wheres.push(warehouseIdFilter2);
|
| | | return true;
|
| | | },
|
| | | searchAfter(result) {
|
| | | //æ¥è¯¢åï¼resultè¿åçæ¥è¯¢æ°æ®,å¯ä»¥å¨æ¾ç¤ºå°è¡¨æ ¼åå¤çè¡¨æ ¼çå¼
|
| | | return true;
|
| | | },
|
| | | addBefore(formData) {
|
| | | //æ°å»ºä¿ååformData为对象ï¼å
æ¬æç»è¡¨ï¼å¯ä»¥ç»ç»è¡¨å设置å¼ï¼èªå·±è¾åºçformDataçå¼
|
| | | return true;
|
| | | },
|
| | | updateBefore(formData) {
|
| | | //ç¼è¾ä¿ååformData为对象ï¼å
æ¬æç»è¡¨ãå é¤è¡çId
|
| | | return true;
|
| | | },
|
| | | rowClick({ row, column, event }) {
|
| | | //æ¥è¯¢çé¢ç¹å»è¡äºä»¶
|
| | | // this.$refs.table.$refs.table.toggleRowSelection(row); //åå»è¡æ¶éä¸å½åè¡;
|
| | | },
|
| | | modelOpenAfter(row) {
|
| | | //ç¹å»ç¼è¾ãæ°å»ºæé®å¼¹åºæ¡åï¼å¯ä»¥å¨æ¤å¤åé»è¾ï¼å¦ï¼ä»åå°è·åæ°æ®
|
| | | //(1)夿æ¯ç¼è¾è¿æ¯æ°å»ºæä½ï¼ this.currentAction=='Add';
|
| | | //(2)ç»å¼¹åºæ¡è®¾ç½®é»è®¤å¼
|
| | | //(3)this.editFormFields.åæ®µ='xxx';
|
| | | //妿éè¦ç»ä¸ææ¡è®¾ç½®é»è®¤å¼ï¼è¯·éåthis.editFormOptionsæ¾å°å段é
置对åºdata屿§çkeyå¼
|
| | | //ç䏿就æè¾åºçï¼console.log(this.editFormOptions)
|
| | | },
|
| | | },
|
| | | };
|
| | | export default extension;
|
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | /*****************************************************************************************
|
| | | ** Author:jxx 2022
|
| | | ** QQ:283591387
|
| | | **宿´ææ¡£è§ï¼http://v2.volcore.xyz/document/api ã代ç çæé¡µé¢ViewGridã
|
| | | **常ç¨ç¤ºä¾è§ï¼http://v2.volcore.xyz/document/vueDev
|
| | | **åå°æä½è§ï¼http://v2.volcore.xyz/document/netCoreDev
|
| | | *****************************************************************************************/
|
| | | //æ¤jsæä»¶æ¯ç¨æ¥èªå®ä¹æ©å±ä¸å¡ä»£ç ï¼å¯ä»¥æ©å±ä¸äºèªå®ä¹é¡µé¢æè
éæ°é
ç½®çæç代ç
|
| | |
|
| | | let extension = {
|
| | | components: {
|
| | | //æ¥è¯¢ç颿©å±ç»ä»¶
|
| | | gridHeader: "",
|
| | | gridBody: "",
|
| | | gridFooter: "",
|
| | | //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶
|
| | | modelHeader: "",
|
| | | modelBody: "",
|
| | | modelFooter: "",
|
| | | },
|
| | | tableAction: "", //æå®æå¼ 表çæé(è¿éå¡«å表å,é»è®¤ä¸ç¨å¡«å)
|
| | | buttons: { view: [], box: [], detail: [] }, //æ©å±çæé®
|
| | | methods: {
|
| | | //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤
|
| | | onInit() {
|
| | | //æ¡æ¶åå§åé
ç½®åï¼
|
| | | //示ä¾ï¼å¨æé®çæå颿·»å ä¸ä¸ªæé®
|
| | | // this.buttons.unshift({ //ä¹å¯ä»¥ç¨pushæè
spliceæ¹æ³æ¥ä¿®æ¹buttonsæ°ç»
|
| | | // name: 'æé®', //æé®åç§°
|
| | | // icon: 'el-icon-document', //æé®å¾æ vue2çæ¬è§iviewææ¡£iconï¼vue3çæ¬è§element uiææ¡£icon(注æä¸æ¯element pulsææ¡£)
|
| | | // type: 'primary', //æé®æ ·å¼vue2çæ¬è§iviewææ¡£buttonï¼vue3çæ¬è§element uiææ¡£button
|
| | | // onClick: function () {
|
| | | // this.$Message.success('ç¹å»äºæé®');
|
| | | // }
|
| | | // });
|
| | | //示ä¾ï¼è®¾ç½®ä¿®æ¹æ°å»ºãç¼è¾å¼¹åºæ¡å段æ ç¾çé¿åº¦
|
| | | // this.boxOptions.labelWidth = 150;
|
| | | },
|
| | | onInited() {
|
| | | //æ¡æ¶åå§åé
ç½®å
|
| | | //妿è¦é
ç½®æç»è¡¨,卿¤æ¹æ³æä½
|
| | | //this.detailOptions.columns.forEach(column=>{ });
|
| | | },
|
| | | searchBefore(param) {
|
| | | //ç颿¥è¯¢å,å¯ä»¥ç»param.wheresæ·»å æ¥è¯¢åæ°
|
| | | //è¿åfalseï¼åä¸ä¼æ§è¡æ¥è¯¢
|
| | | //ç颿¥è¯¢å,å¯ä»¥ç»param.wheresæ·»å æ¥è¯¢åæ°
|
| | | //è¿åfalseï¼åä¸ä¼æ§è¡æ¥è¯¢
|
| | | const remarkFilter = {
|
| | | name: "remark",
|
| | | value: "æå·åº",
|
| | | displayType: "like",
|
| | | };
|
| | |
|
| | |
|
| | | if (!param.wheres) {
|
| | | param.wheres = [];
|
| | | }
|
| | |
|
| | | // å°ä¸¤ä¸ªè¿æ»¤æ¡ä»¶æ·»å å°æ¥è¯¢åæ°ä¸
|
| | | param.wheres.push(remarkFilter);
|
| | | return true;
|
| | | },
|
| | | searchAfter(result) {
|
| | | //æ¥è¯¢åï¼resultè¿åçæ¥è¯¢æ°æ®,å¯ä»¥å¨æ¾ç¤ºå°è¡¨æ ¼åå¤çè¡¨æ ¼çå¼
|
| | | return true;
|
| | | },
|
| | | addBefore(formData) {
|
| | | //æ°å»ºä¿ååformData为对象ï¼å
æ¬æç»è¡¨ï¼å¯ä»¥ç»ç»è¡¨å设置å¼ï¼èªå·±è¾åºçformDataçå¼
|
| | | return true;
|
| | | },
|
| | | updateBefore(formData) {
|
| | | //ç¼è¾ä¿ååformData为对象ï¼å
æ¬æç»è¡¨ãå é¤è¡çId
|
| | | return true;
|
| | | },
|
| | | rowClick({ row, column, event }) {
|
| | | //æ¥è¯¢çé¢ç¹å»è¡äºä»¶
|
| | | // this.$refs.table.$refs.table.toggleRowSelection(row); //åå»è¡æ¶éä¸å½åè¡;
|
| | | },
|
| | | modelOpenAfter(row) {
|
| | | //ç¹å»ç¼è¾ãæ°å»ºæé®å¼¹åºæ¡åï¼å¯ä»¥å¨æ¤å¤åé»è¾ï¼å¦ï¼ä»åå°è·åæ°æ®
|
| | | //(1)夿æ¯ç¼è¾è¿æ¯æ°å»ºæä½ï¼ this.currentAction=='Add';
|
| | | //(2)ç»å¼¹åºæ¡è®¾ç½®é»è®¤å¼
|
| | | //(3)this.editFormFields.åæ®µ='xxx';
|
| | | //妿éè¦ç»ä¸ææ¡è®¾ç½®é»è®¤å¼ï¼è¯·éåthis.editFormOptionsæ¾å°å段é
置对åºdata屿§çkeyå¼
|
| | | //ç䏿就æè¾åºçï¼console.log(this.editFormOptions)
|
| | | },
|
| | | },
|
| | | };
|
| | | export default extension;
|
| | |
| | | let extension = { |
| | | components: { |
| | | //æ¥è¯¢ç颿©å±ç»ä»¶ |
| | | gridHeader: '', |
| | | gridBody: '', |
| | | gridFooter: '', |
| | | gridHeader: "", |
| | | gridBody: "", |
| | | gridFooter: "", |
| | | //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶ |
| | | modelHeader: "", |
| | | modelBody: "", |
| | |
| | | render: (h, { row, column, index }) => { |
| | | return ( |
| | | <div> |
| | | |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | onClick={($e) => { this.handleInbound(row); }} |
| | | >è¿ç«</el-button> |
| | | onClick={($e) => { |
| | | this.handleInbound(row); |
| | | }} |
| | | > |
| | | è¿ç« |
| | | </el-button> |
| | | <el-button |
| | | type="success" |
| | | size="small" |
| | | style="margin-left: 8px" |
| | | onClick={($e) => { this.handleOutbound(row); }} |
| | | >åºç«</el-button> |
| | | onClick={($e) => { |
| | | this.handleOutbound(row); |
| | | }} |
| | | > |
| | | åºç« |
| | | </el-button> |
| | | </div> |
| | | ); |
| | | }, |
| | | }); |
| | | }, |
| | | |
| | | |
| | | // æçè¿ç«æä½ |
| | | async handleInbound(row) { |
| | |
| | | } |
| | | }, |
| | | |
| | | |
| | | onInited() { |
| | | // æ¡æ¶åå§åé
ç½®å |
| | | }, |
| | | searchBefore(param) { |
| | | const stockStatusFilter = { |
| | | name: "stockStatus", |
| | | value: "1", |
| | | displayType: "notequal", |
| | | name: "LocationId", |
| | | value: "0", |
| | | displayType: "notequal" |
| | | }; |
| | | if (!param.wheres) { |
| | | param.wheres = []; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | //æ¤jsæä»¶æ¯ç¨æ¥èªå®ä¹æ©å±ä¸å¡ä»£ç ï¼å¯ä»¥æ©å±ä¸äºèªå®ä¹é¡µé¢æè
éæ°é
ç½®çæç代ç
|
| | |
|
| | | let extension = {
|
| | | components: {
|
| | | //æ¥è¯¢ç颿©å±ç»ä»¶
|
| | | gridHeader: "",
|
| | | gridBody: "",
|
| | | gridFooter: "",
|
| | | //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶
|
| | | modelHeader: "",
|
| | | modelBody: "",
|
| | | modelFooter: "",
|
| | | },
|
| | | tableAction: "", //æå®æå¼ 表çæé(è¿éå¡«å表å,é»è®¤ä¸ç¨å¡«å)
|
| | | buttons: { view: [], box: [], detail: [] }, //æ©å±çæé®
|
| | | methods: {
|
| | | //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤
|
| | | onInit() {},
|
| | | onInited() {
|
| | | //æ¡æ¶åå§åé
ç½®å
|
| | | //妿è¦é
ç½®æç»è¡¨,卿¤æ¹æ³æä½
|
| | | //this.detailOptions.columns.forEach(column=>{ });
|
| | | },
|
| | | searchBefore(param) {
|
| | | //ç颿¥è¯¢å,å¯ä»¥ç»param.wheresæ·»å æ¥è¯¢åæ°
|
| | | //è¿åfalseï¼åä¸ä¼æ§è¡æ¥è¯¢
|
| | |
|
| | | // 第ä¸ä¸ªè¿æ»¤æ¡ä»¶
|
| | | const roadwayFilter1 = {
|
| | | name: "roadway",
|
| | | value: "ZJSC1",
|
| | | displayType: "like",
|
| | | };
|
| | |
|
| | | // 第äºä¸ªè¿æ»¤æ¡ä»¶
|
| | | const roadwayFilter2 = {
|
| | | name: "roadway",
|
| | | value: "FJSC1",
|
| | | displayType: "like",
|
| | | };
|
| | |
|
| | | if (!param.wheres) {
|
| | | param.wheres = [];
|
| | | }
|
| | |
|
| | | // å°ä¸¤ä¸ªè¿æ»¤æ¡ä»¶æ·»å å°æ¥è¯¢åæ°ä¸
|
| | | param.wheres.push(roadwayFilter1);
|
| | | param.wheres.push(roadwayFilter2);
|
| | | |
| | | return true;
|
| | | },
|
| | | searchAfter(result) {
|
| | | //æ¥è¯¢åï¼resultè¿åçæ¥è¯¢æ°æ®,å¯ä»¥å¨æ¾ç¤ºå°è¡¨æ ¼åå¤çè¡¨æ ¼çå¼
|
| | | return true;
|
| | | },
|
| | | addBefore(formData) {
|
| | | //æ°å»ºä¿ååformData为对象ï¼å
æ¬æç»è¡¨ï¼å¯ä»¥ç»ç»è¡¨å设置å¼ï¼èªå·±è¾åºçformDataçå¼
|
| | | return true;
|
| | | },
|
| | | updateBefore(formData) {
|
| | | //ç¼è¾ä¿ååformData为对象ï¼å
æ¬æç»è¡¨ãå é¤è¡çId
|
| | | return true;
|
| | | },
|
| | | rowClick({ row, column, event }) {
|
| | | //æ¥è¯¢çé¢ç¹å»è¡äºä»¶
|
| | | this.$refs.table.$refs.table.toggleRowSelection(row); //åå»è¡æ¶éä¸å½åè¡;
|
| | | },
|
| | | modelOpenAfter(row) {
|
| | | //ç¹å»ç¼è¾ãæ°å»ºæé®å¼¹åºæ¡åï¼å¯ä»¥å¨æ¤å¤åé»è¾ï¼å¦ï¼ä»åå°è·åæ°æ®
|
| | | //(1)夿æ¯ç¼è¾è¿æ¯æ°å»ºæä½ï¼ this.currentAction=='Add';
|
| | | //(2)ç»å¼¹åºæ¡è®¾ç½®é»è®¤å¼
|
| | | //(3)this.editFormFields.åæ®µ='xxx';
|
| | | //妿éè¦ç»ä¸ææ¡è®¾ç½®é»è®¤å¼ï¼è¯·éåthis.editFormOptionsæ¾å°å段é
置对åºdata屿§çkeyå¼
|
| | | //ç䏿就æè¾åºçï¼console.log(this.editFormOptions)
|
| | | },
|
| | | },
|
| | | };
|
| | | export default extension;
|
| | |
| | | |
| | | //æ¤jsæä»¶æ¯ç¨æ¥èªå®ä¹æ©å±ä¸å¡ä»£ç ï¼å¯ä»¥æ©å±ä¸äºèªå®ä¹é¡µé¢æè
éæ°é
ç½®çæç代ç |
| | | |
| | | let extension = { |
| | | components: { |
| | | //æ¥è¯¢ç颿©å±ç»ä»¶ |
| | | gridHeader: '', |
| | | gridBody: '', |
| | | gridFooter: '', |
| | | //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶ |
| | | modelHeader: '', |
| | | modelBody: '', |
| | | modelFooter: '' |
| | | components: { |
| | | //æ¥è¯¢ç颿©å±ç»ä»¶ |
| | | gridHeader: "", |
| | | gridBody: "", |
| | | gridFooter: "", |
| | | //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶ |
| | | modelHeader: "", |
| | | modelBody: "", |
| | | modelFooter: "", |
| | | }, |
| | | tableAction: "", //æå®æå¼ 表çæé(è¿éå¡«å表å,é»è®¤ä¸ç¨å¡«å) |
| | | buttons: { view: [], box: [], detail: [] }, //æ©å±çæé® |
| | | methods: { |
| | | //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤ |
| | | onInit() {}, |
| | | onInited() { |
| | | //æ¡æ¶åå§åé
ç½®å |
| | | //妿è¦é
ç½®æç»è¡¨,卿¤æ¹æ³æä½ |
| | | //this.detailOptions.columns.forEach(column=>{ }); |
| | | }, |
| | | tableAction: '', //æå®æå¼ 表çæé(è¿éå¡«å表å,é»è®¤ä¸ç¨å¡«å) |
| | | buttons: { view: [], box: [], detail: [] }, //æ©å±çæé® |
| | | methods: { |
| | | //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤ |
| | | onInit() { |
| | | }, |
| | | onInited() { |
| | | //æ¡æ¶åå§åé
ç½®å |
| | | //妿è¦é
ç½®æç»è¡¨,卿¤æ¹æ³æä½ |
| | | //this.detailOptions.columns.forEach(column=>{ }); |
| | | }, |
| | | searchBefore(param) { |
| | | //ç颿¥è¯¢å,å¯ä»¥ç»param.wheresæ·»å æ¥è¯¢åæ° |
| | | //è¿åfalseï¼åä¸ä¼æ§è¡æ¥è¯¢ |
| | | return true; |
| | | }, |
| | | searchAfter(result) { |
| | | //æ¥è¯¢åï¼resultè¿åçæ¥è¯¢æ°æ®,å¯ä»¥å¨æ¾ç¤ºå°è¡¨æ ¼åå¤çè¡¨æ ¼çå¼ |
| | | return true; |
| | | }, |
| | | addBefore(formData) { |
| | | //æ°å»ºä¿ååformData为对象ï¼å
æ¬æç»è¡¨ï¼å¯ä»¥ç»ç»è¡¨å设置å¼ï¼èªå·±è¾åºçformDataçå¼ |
| | | return true; |
| | | }, |
| | | updateBefore(formData) { |
| | | //ç¼è¾ä¿ååformData为对象ï¼å
æ¬æç»è¡¨ãå é¤è¡çId |
| | | return true; |
| | | }, |
| | | rowClick({ row, column, event }) { |
| | | //æ¥è¯¢çé¢ç¹å»è¡äºä»¶ |
| | | this.$refs.table.$refs.table.toggleRowSelection(row); //åå»è¡æ¶éä¸å½åè¡; |
| | | }, |
| | | modelOpenAfter(row) { |
| | | //ç¹å»ç¼è¾ãæ°å»ºæé®å¼¹åºæ¡åï¼å¯ä»¥å¨æ¤å¤åé»è¾ï¼å¦ï¼ä»åå°è·åæ°æ® |
| | | //(1)夿æ¯ç¼è¾è¿æ¯æ°å»ºæä½ï¼ this.currentAction=='Add'; |
| | | //(2)ç»å¼¹åºæ¡è®¾ç½®é»è®¤å¼ |
| | | //(3)this.editFormFields.åæ®µ='xxx'; |
| | | //妿éè¦ç»ä¸ææ¡è®¾ç½®é»è®¤å¼ï¼è¯·éåthis.editFormOptionsæ¾å°å段é
置对åºdata屿§çkeyå¼ |
| | | //ç䏿就æè¾åºçï¼console.log(this.editFormOptions) |
| | | searchBefore(param) { |
| | | //ç颿¥è¯¢å,å¯ä»¥ç»param.wheresæ·»å æ¥è¯¢åæ° |
| | | //è¿åfalseï¼åä¸ä¼æ§è¡æ¥è¯¢ |
| | | const roadwayFilter1 = { |
| | | name: "roadway", |
| | | value: "ZJSC1", |
| | | displayType: "notequal", |
| | | }; |
| | | |
| | | // 第äºä¸ªè¿æ»¤æ¡ä»¶ |
| | | const roadwayFilter2 = { |
| | | name: "roadway", |
| | | value: "FJSC1", |
| | | displayType: "notequal", |
| | | }; |
| | | |
| | | if (!param.wheres) { |
| | | param.wheres = []; |
| | | } |
| | | } |
| | | }; |
| | | export default extension; |
| | | |
| | | |
| | | // å°ä¸¤ä¸ªè¿æ»¤æ¡ä»¶æ·»å å°æ¥è¯¢åæ°ä¸ |
| | | param.wheres.push(roadwayFilter1); |
| | | param.wheres.push(roadwayFilter2); |
| | | return true; |
| | | }, |
| | | searchAfter(result) { |
| | | //æ¥è¯¢åï¼resultè¿åçæ¥è¯¢æ°æ®,å¯ä»¥å¨æ¾ç¤ºå°è¡¨æ ¼åå¤çè¡¨æ ¼çå¼ |
| | | return true; |
| | | }, |
| | | addBefore(formData) { |
| | | //æ°å»ºä¿ååformData为对象ï¼å
æ¬æç»è¡¨ï¼å¯ä»¥ç»ç»è¡¨å设置å¼ï¼èªå·±è¾åºçformDataçå¼ |
| | | return true; |
| | | }, |
| | | updateBefore(formData) { |
| | | //ç¼è¾ä¿ååformData为对象ï¼å
æ¬æç»è¡¨ãå é¤è¡çId |
| | | return true; |
| | | }, |
| | | rowClick({ row, column, event }) { |
| | | //æ¥è¯¢çé¢ç¹å»è¡äºä»¶ |
| | | this.$refs.table.$refs.table.toggleRowSelection(row); //åå»è¡æ¶éä¸å½åè¡; |
| | | }, |
| | | modelOpenAfter(row) { |
| | | //ç¹å»ç¼è¾ãæ°å»ºæé®å¼¹åºæ¡åï¼å¯ä»¥å¨æ¤å¤åé»è¾ï¼å¦ï¼ä»åå°è·åæ°æ® |
| | | //(1)夿æ¯ç¼è¾è¿æ¯æ°å»ºæä½ï¼ this.currentAction=='Add'; |
| | | //(2)ç»å¼¹åºæ¡è®¾ç½®é»è®¤å¼ |
| | | //(3)this.editFormFields.åæ®µ='xxx'; |
| | | //妿éè¦ç»ä¸ææ¡è®¾ç½®é»è®¤å¼ï¼è¯·éåthis.editFormOptionsæ¾å°å段é
置对åºdata屿§çkeyå¼ |
| | | //ç䏿就æè¾åºçï¼console.log(this.editFormOptions) |
| | | }, |
| | | }, |
| | | }; |
| | | export default extension; |
| | |
| | | path: '/task_hty', |
| | | name: 'task_hty', |
| | | component: () => import('@/views/taskinfo/task_hty.vue') |
| | | }, |
| | | { |
| | | path: '/agvTask', |
| | | name: 'agvTask', |
| | | component: () => import('@/views/taskinfo/agvTask.vue') |
| | | }, |
| | | { |
| | | path: '/agvStock', |
| | | name: 'agvStock', |
| | | component: () => import('@/views/stock/agvStock.vue') |
| | | },{ |
| | | path: '/task_agv', |
| | | name: 'task_agv', |
| | | component: () => import('@/views/taskinfo/task_agv.vue') |
| | | path: '/agvStockDetail', |
| | | name: 'agvStockDetail', |
| | | component: () => import('@/views/stock/agvStockDetail.vue') |
| | | }, |
| | | { |
| | | path: '/agvTask_hty', |
| | | name: 'agvTask_hty', |
| | | component: () => import('@/views/taskinfo/agvTask_hty.vue') |
| | | }, |
| | | { |
| | | path: '/groupPalle', |
| | |
| | | const loading = ref(false); |
| | | const codeImgSrc = ref(""); |
| | | const userInfo = reactive({ |
| | | userName: "admin", |
| | | userName: "QKA02", |
| | | password: "123456", |
| | | verificationCode: "1234", |
| | | UUID: undefined, |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template>
|
| | | <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/stock/agvStock.jsx";
|
| | | import { ref, defineComponent } from "vue";
|
| | | export default defineComponent({
|
| | | setup() {
|
| | | const table = ref({
|
| | | key: "id",
|
| | | footer: "Foots",
|
| | | cnName: "æçä¿¡æ¯",
|
| | | name: "stockInfo",
|
| | | url: "/StockInfo/",
|
| | | sortName: "id",
|
| | | });
|
| | | const editFormFields = ref({
|
| | | palletCode: "",
|
| | | locationCode: "",
|
| | | stockStatus: "",
|
| | | palletType: "",
|
| | | warehouseId: "",
|
| | | roadway: "",
|
| | |
|
| | | });
|
| | | const editFormOptions = ref([
|
| | | [
|
| | | { field: 'palletCode', title: 'æçç¼å·', type: 'string' },
|
| | | { field: 'locationCode', title: 'è´§ä½ç¼å·', type: 'string' },
|
| | | { field: "stockStatus", title: 'åºåç¶æ', type: 'select', dataKey: 'stockStatusEmun', data: [] }
|
| | | ]
|
| | | ]);
|
| | | const searchFormFields = ref({
|
| | | palletCode: "",
|
| | | locationCode: "",
|
| | | // roadway: "",
|
| | | warehouseId: "",
|
| | | });
|
| | | const searchFormOptions = ref([
|
| | | [
|
| | | { title: "æçç¼å·", field: "palletCode", type: 'like' },
|
| | | { title: "è´§ä½ç¼å·", field: "locationCode", type: 'like' },
|
| | | // { title: "å··éç¼å·", field: "roadway", type: 'string' },
|
| | | { title: "ä»åº", field: "warehouseId", type: 'select', dataKey: "warehousetype", data: [] }
|
| | | ],
|
| | | ]);
|
| | | const columns = ref([
|
| | | {
|
| | | field: "id",
|
| | | title: "Id",
|
| | | type: "int",
|
| | | width: 90,
|
| | | hidden: true,
|
| | | readonly: true,
|
| | | require: true,
|
| | | align: "left",
|
| | | }, {
|
| | | field: "warehouseId",
|
| | | title: "ä»åºç¼å·",
|
| | | type: "int",
|
| | | width: 80,
|
| | | align: "left",
|
| | | bind: { key: "warehouseEnum", data: [] },
|
| | | },
|
| | | {
|
| | | field: "palletCode",
|
| | | title: "æçç¼å·",
|
| | | type: "string",
|
| | | width: 120,
|
| | | align: "left",
|
| | | link: true,
|
| | | },
|
| | | // {
|
| | | // field: "roadway",
|
| | | // title: "å··éå·",
|
| | | // type: "string",
|
| | | // width: 70,
|
| | | // align: "left",
|
| | | // },
|
| | | {
|
| | | field: "locationCode",
|
| | | title: "è´§ä½ç¼å·",
|
| | | type: "string",
|
| | | width: 120,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "palletType",
|
| | | title: "æçç±»å",
|
| | | type: "string",
|
| | | width: 150,
|
| | | align: "center",
|
| | | sort: true,
|
| | | bind: { key: "palletTypesEmun", data: [] }
|
| | | }, {
|
| | | field: "stockStatus",
|
| | | title: "åºåç¶æ",
|
| | | type: "string",
|
| | | width: 150,
|
| | | align: "left",
|
| | | sort: true,
|
| | | bind: { key: "stockStatusEmun", data: [] },
|
| | | },
|
| | | {
|
| | | field: "warehouseId",
|
| | | title: "ä»åº",
|
| | | type: "select",
|
| | | width: 100,
|
| | | align: "left",
|
| | | bind: { key: "warehousetype", data: [] },
|
| | | },
|
| | | {
|
| | | field: "creater",
|
| | | title: "å建人",
|
| | | type: "string",
|
| | | width: 90,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "createDate",
|
| | | title: "å建æ¶é´",
|
| | | type: "datetime",
|
| | | width: 160,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "modifier",
|
| | | title: "ä¿®æ¹äºº",
|
| | | type: "string",
|
| | | width: 100,
|
| | | align: "left",
|
| | | hidden: true
|
| | | },
|
| | | {
|
| | | field: "modifyDate",
|
| | | title: "ä¿®æ¹æ¶é´",
|
| | | type: "datetime",
|
| | | width: 160,
|
| | | align: "left",
|
| | | hidden: true
|
| | | },
|
| | | {
|
| | | field: "remark",
|
| | | title: "夿³¨",
|
| | | type: "string",
|
| | | width: 100,
|
| | | align: "left",
|
| | | hidden: true
|
| | | },
|
| | | ]);
|
| | | const detail = ref({
|
| | | cnName: "æçè´§ç©æç»",
|
| | | table: "StockInfoDetail",
|
| | | columns: [
|
| | | {
|
| | | field: "id",
|
| | | title: "Id",
|
| | | type: "int",
|
| | | width: 90,
|
| | | hidden: true,
|
| | | require: true,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "stockId",
|
| | | title: "åºåä¿¡æ¯ä¸»é®",
|
| | | type: "string",
|
| | | width: 90,
|
| | | hidden: true,
|
| | | readonly: true,
|
| | | require: true,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "materielCode",
|
| | | title: "ç©æç¼å·",
|
| | | type: "string",
|
| | | width: 150,
|
| | | require: true,
|
| | | align: "left",
|
| | | sortable: true,
|
| | | edit: { type: "" },
|
| | | },
|
| | | {
|
| | | field: "materielName",
|
| | | title: "ç©æåç§°",
|
| | | type: "string",
|
| | | width: 150,
|
| | | require: true,
|
| | | align: "left",
|
| | | edit: { type: "" },
|
| | | },
|
| | | {
|
| | | field: "orderNo",
|
| | | title: "åæ®ç¼å·",
|
| | | type: "string",
|
| | | width: 120,
|
| | | require: true,
|
| | | align: "left",
|
| | | edit: { type: "" },
|
| | | },
|
| | | {
|
| | | field: "batchNo",
|
| | | title: "æ¹æ¬¡å·",
|
| | | type: "string",
|
| | | width: 120,
|
| | | align: "left",
|
| | | edit: { type: "" },
|
| | | },
|
| | | {
|
| | | field: "serialNumber",
|
| | | title: "åºåå·",
|
| | | type: "string",
|
| | | width: 120,
|
| | | align: "left",
|
| | | edit: { type: "" },
|
| | | },
|
| | | {
|
| | | field: "stockQuantity",
|
| | | title: "åºåæ°é",
|
| | | type: "decimal",
|
| | | width: 100,
|
| | | require: true,
|
| | | align: "right",
|
| | | edit: { type: "number" },
|
| | | },
|
| | | {
|
| | | field: "outboundQuantity",
|
| | | title: "åºåºæ°é",
|
| | | type: "decimal",
|
| | | width: 100,
|
| | | align: "right",
|
| | | edit: { type: "number" },
|
| | | },
|
| | | {
|
| | | field: "status",
|
| | | title: "åºåæç»ç¶æ",
|
| | | type: "string",
|
| | | width: 120,
|
| | | require: true,
|
| | | align: "left",
|
| | | edit: { type: "select", key: "stockStatusEmun" },
|
| | | },
|
| | | {
|
| | | field: "creater",
|
| | | title: "å建人",
|
| | | type: "string",
|
| | | width: 90,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "createDate",
|
| | | title: "å建æ¶é´",
|
| | | type: "datetime",
|
| | | width: 160,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "modifier",
|
| | | title: "ä¿®æ¹äºº",
|
| | | type: "string",
|
| | | width: 100,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "modifyDate",
|
| | | title: "ä¿®æ¹æ¶é´",
|
| | | type: "datetime",
|
| | | width: 160,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "remark",
|
| | | title: "夿³¨",
|
| | | type: "string",
|
| | | width: 100,
|
| | | align: "left",
|
| | | edit: { type: "textarea" },
|
| | | },
|
| | | ],
|
| | | sortName: "createDate",
|
| | | key: "id",
|
| | | });
|
| | | return {
|
| | | table,
|
| | | extend,
|
| | | editFormFields,
|
| | | editFormOptions,
|
| | | searchFormFields,
|
| | | searchFormOptions,
|
| | | columns,
|
| | | detail,
|
| | | };
|
| | | },
|
| | | });
|
| | | </script> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template>
|
| | | <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/stock/agvStockDetail.jsx";
|
| | | import { ref, defineComponent } from "vue";
|
| | | export default defineComponent({
|
| | | setup() {
|
| | | const table = ref({
|
| | | key: "id",
|
| | | footer: "Foots",
|
| | | cnName: "æçè´§ç©æç»",
|
| | | name: "stockInfoDetail",
|
| | | url: "/StockInfoDetail/",
|
| | | sortName: "id",
|
| | | });
|
| | | const editFormFields = ref({
|
| | | deviceCode: "",
|
| | | deviceName: "",
|
| | | deviceType: "",
|
| | | deviceStatus: "",
|
| | | deviceIp: "",
|
| | | devicePort: "",
|
| | | devicePlcType: "",
|
| | | deviceRemark: "",
|
| | | });
|
| | | const editFormOptions = ref([
|
| | | [
|
| | | {
|
| | | title: "ç©æç¼å·",
|
| | | required: true,
|
| | | field: "materielCode",
|
| | | type: "string",
|
| | | },
|
| | | {
|
| | | title: "åæ®ç¼å·",
|
| | | required: true,
|
| | | field: "materielName",
|
| | | type: "string",
|
| | | },
|
| | | {
|
| | | title: "æ¹æ¬¡å·",
|
| | | required: true,
|
| | | field: "orderNo",
|
| | | type: "string",
|
| | | },
|
| | | {
|
| | | title: "åºåå·",
|
| | | required: true,
|
| | | field: "serialNumber",
|
| | | type: "string",
|
| | | },
|
| | | ],
|
| | | |
| | | ]);
|
| | | const searchFormFields = ref({
|
| | | materielCode: "",
|
| | | materielName: "",
|
| | | orderNo: "",
|
| | | });
|
| | | const searchFormOptions = ref([
|
| | | [
|
| | | { title: "ç©æç¼å·", field: "materielCode" },
|
| | | { title: "ç©æåç§°", field: "materielName" },
|
| | | { title: "åæ®ç¼å·", field: "orderNo" },
|
| | | ],
|
| | | ]);
|
| | | const columns = ref([
|
| | | {
|
| | | field: "id",
|
| | | title: "Id",
|
| | | type: "int",
|
| | | width: 90,
|
| | | hidden: true,
|
| | | readonly: true,
|
| | | require: true,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "stockId",
|
| | | title: "æçID",
|
| | | type: "string",
|
| | | width: 90,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "materielCode",
|
| | | title: "ç©æç¼å·",
|
| | | type: "string",
|
| | | width: 150,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "materielName",
|
| | | title: "ç©æåç§°",
|
| | | type: "string",
|
| | | width: 150,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "orderNo",
|
| | | title: "åæ®ç¼å·",
|
| | | type: "decimal",
|
| | | width: 90,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "batchNo",
|
| | | title: "æ¹æ¬¡å·",
|
| | | type: "string",
|
| | | width: 90,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "serialNumber",
|
| | | title: "åºåå·",
|
| | | type: "int",
|
| | | width: 120,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "stockQuantity",
|
| | | title: "åºåæ°é",
|
| | | type: "string",
|
| | | width: 200,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "outboundQuantity",
|
| | | title: "åºåºæ°é",
|
| | | type: "string",
|
| | | width: 180,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "status",
|
| | | title: "åºåæç»ç¶æ",
|
| | | type: "string",
|
| | | width: 120,
|
| | | align: "left",
|
| | | bind: { key: "stockStatusEmun", data: [] },
|
| | | },
|
| | | {
|
| | | field: "creater",
|
| | | title: "å建人",
|
| | | type: "string",
|
| | | width: 90,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "createDate",
|
| | | title: "å建æ¶é´",
|
| | | type: "datetime",
|
| | | width: 160,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "modifier",
|
| | | title: "ä¿®æ¹äºº",
|
| | | type: "string",
|
| | | width: 100,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "modifyDate",
|
| | | title: "ä¿®æ¹æ¶é´",
|
| | | type: "datetime",
|
| | | width: 160,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "remark",
|
| | | title: "夿³¨",
|
| | | type: "string",
|
| | | width: 100,
|
| | | align: "left",
|
| | | },
|
| | | ]);
|
| | | const detail = ref({
|
| | | cnName: "#detailCnName",
|
| | | table: "",
|
| | | columns: [],
|
| | | sortName: "",
|
| | | });
|
| | | return {
|
| | | table,
|
| | | extend,
|
| | | editFormFields,
|
| | | editFormOptions,
|
| | | searchFormFields,
|
| | | searchFormOptions,
|
| | | columns,
|
| | | detail,
|
| | | };
|
| | | },
|
| | | });
|
| | | </script> |
| ÎļþÃû´Ó Code/WMS/WIDESEA_WMSClient/src/views/taskinfo/task_agv.vue ÐÞ¸Ä |
| | |
| | | const table = ref({
|
| | | key: "taskId",
|
| | | footer: "Foots",
|
| | | cnName: "ä»»å¡ä¿¡æ¯",
|
| | | cnName: "æå·åºä»»å¡ä¿¡æ¯",
|
| | | name: "task",
|
| | | url: "/Task/",
|
| | | sortName: "CreateDate",
|
copy from Code/WMS/WIDESEA_WMSClient/src/views/taskinfo/task_agv.vue
copy to Code/WMS/WIDESEA_WMSClient/src/views/taskinfo/agvTask_hty.vue
| Îļþ´Ó Code/WMS/WIDESEA_WMSClient/src/views/taskinfo/task_agv.vue ¸´ÖÆ |
| | |
| | | </view-grid>
|
| | | </template>
|
| | | <script>
|
| | | import extend from "@/extension/taskinfo/agvTask.jsx";
|
| | | import extend from "@/extension/taskinfo/agvTask_hty.jsx";
|
| | | import { ref, defineComponent } from "vue";
|
| | | export default defineComponent({
|
| | | setup() {
|
| | | const table = ref({
|
| | | key: "taskId",
|
| | | footer: "Foots",
|
| | | cnName: "ä»»å¡ä¿¡æ¯",
|
| | | name: "task",
|
| | | url: "/Task/",
|
| | | sortName: "CreateDate",
|
| | | cnName: "æå·åºåå²ä¿¡æ¯",
|
| | | name: "task_hty",
|
| | | url: "/Task_Hty/",
|
| | | sortName: "taskId",
|
| | | });
|
| | | const editFormFields = ref({});
|
| | | const editFormOptions = ref([]);
|
| | |
| | | createDate: "",
|
| | | });
|
| | | const searchFormOptions = ref([
|
| | | [
|
| | | [
|
| | | { title: "ä»»å¡å·", field: "taskNum", type: "int" },
|
| | | { title: "æçç¼å·", field: "palletCode", type: "like" },
|
| | | { title: "å建人", field: "creater", type: "like" },
|
| | | ],
|
| | | [
|
| | | { title: "ä»»å¡ç±»å",field: "taskType",type: "selectList",dataKey: "taskTypeEnum",data: [],},
|
| | | { title: "ä»»å¡ç±»å",field: "taskType",type: "selectList",dataKey: "taskType",data: [],},
|
| | | { title: "ä»»å¡ç¶æ",field: "taskStatus",type: "selectList",dataKey: "taskStatusEnum",data: [],},
|
| | | { title: "å··éå·", field: "roadway", type: "like" },
|
| | | ],
|
| | |
| | | type: "string",
|
| | | width: 120,
|
| | | align: "left",
|
| | | },{
|
| | | field: "operateType",
|
| | | title: "æä½ç±»å",
|
| | | type: "string",
|
| | | width: 120,
|
| | | align: "left"
|
| | | },
|
| | | {
|
| | | field: "taskType",
|
| | |
| | | width: 120,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "currentAddress",
|
| | | title: "å½åä½ç½®",
|
| | | type: "string",
|
| | | width: 120,
|
| | | align: "left",
|
| | | },
|
| | | {
|
| | | field: "nextAddress",
|
| | | title: "ä¸ä¸ä½ç½®",
|
| | | type: "string",
|
| | | width: 120,
|
| | | align: "left",
|
| | | },
|
| | | // {
|
| | | // field: "currentAddress",
|
| | | // title: "å½åä½ç½®",
|
| | | // type: "string",
|
| | | // width: 120,
|
| | | // align: "left",
|
| | | // },
|
| | | // {
|
| | | // field: "nextAddress",
|
| | | // title: "ä¸ä¸ä½ç½®",
|
| | | // type: "string",
|
| | | // width: 120,
|
| | | // align: "left",
|
| | | // },
|
| | | {
|
| | | field: "exceptionMessage",
|
| | | title: "å¼å¸¸ä¿¡æ¯",
|
| | | type: "string",
|
| | | width: 90,
|
| | | align: "left",
|
| | | hidden: true,
|
| | | },
|
| | | // {
|
| | | // field: "grade",
|
| | |
| | | field: "dispatchertime",
|
| | | title: "ä»»å¡ä¸åæ¶é´",
|
| | | type: "datetime",
|
| | | width: 160,
|
| | | width: 150,
|
| | | align: "left",
|
| | | // hidden:true,
|
| | | },
|
| | | {
|
| | | field: "wMSId",
|
| | |
| | | |
| | | [Description("å
¥åºæ¤é")] |
| | | å
¥åºæ¤é = 199, |
| | | }
|
| | | /// <summary> |
| | | /// æçç±»å |
| | | /// </summary> |
| | | public enum PalletTypesEmun |
| | | {
|
| | | [Description("æ¨¡åæ®µ")] |
| | | æ¨¡åæ®µ = 1,
|
| | | [Description("å·ç»æ®µ")] |
| | | å·ç»æ®µ = 2,
|
| | | } |
| | | } |
| | |
| | | result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data }; |
| | | } |
| | | break; |
| | | case "palletTypesEmun": |
| | | { |
| | | List<object> data = new List<object>(); |
| | | |
| | | { |
| | | Type type = typeof(PalletTypesEmun); |
| | | List<int> enums = Enum.GetValues(typeof(PalletTypesEmun)).Cast<int>().ToList(); |
| | | int index = 0; |
| | | foreach (var item in enums) |
| | | { |
| | | FieldInfo? fieldInfo = typeof(PalletTypesEmun).GetField(((PalletTypesEmun)item).ToString()); |
| | | DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>(); |
| | | if (description != null) |
| | | { |
| | | data.Add(new { key = item.ToString(), value = description.Description }); |
| | | } |
| | | else |
| | | { |
| | | data.Add(new { key = item.ToString(), value = item.ToString() }); |
| | | } |
| | | index++; |
| | | } |
| | | } |
| | | |
| | | { |
| | | Type type = typeof(TaskOutStatusEnum); |
| | | List<int> enums = Enum.GetValues(typeof(TaskOutStatusEnum)).Cast<int>().ToList(); |
| | | int index = 0; |
| | | foreach (var item in enums) |
| | | { |
| | | FieldInfo? fieldInfo = typeof(TaskOutStatusEnum).GetField(((TaskOutStatusEnum)item).ToString()); |
| | | DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>(); |
| | | if (description != null) |
| | | { |
| | | data.Add(new { key = item.ToString(), value = description.Description }); |
| | | } |
| | | else |
| | | { |
| | | data.Add(new { key = item.ToString(), value = item.ToString() }); |
| | | } |
| | | index++; |
| | | } |
| | | } |
| | | |
| | | { |
| | | Type type = typeof(TaskRobotStatusEnum); |
| | | List<int> enums = Enum.GetValues(typeof(TaskRobotStatusEnum)).Cast<int>().ToList(); |
| | | int index = 0; |
| | | foreach (var item in enums) |
| | | { |
| | | FieldInfo? fieldInfo = typeof(TaskRobotStatusEnum).GetField(((TaskRobotStatusEnum)item).ToString()); |
| | | DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>(); |
| | | if (description != null) |
| | | { |
| | | data.Add(new { key = item.ToString(), value = description.Description }); |
| | | } |
| | | else |
| | | { |
| | | data.Add(new { key = item.ToString(), value = item.ToString() }); |
| | | } |
| | | index++; |
| | | } |
| | | } |
| | | |
| | | result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data }; |
| | | } |
| | | break; |
| | | case "taskStatusEnum": |
| | | { |
| | | List<object> data = new List<object>(); |
| | |
| | | InboundOrderRowNo = 1,
|
| | | Creater = StockConstants.AGV_USER,
|
| | | CreateDate = DateTime.Now,
|
| | | Remark = $"AGVå
¥åºä»»å¡å建ï¼ä»»å¡å·ï¼{dto.TaskId}"
|
| | | Remark = $"æå·åºAGVå
¥åºä»»å¡å建ï¼ä»»å¡å·ï¼{dto.TaskId}"
|
| | | };
|
| | |
|
| | | // å建åºå主记å½
|
| | |
| | | StockStatus = (int)StockStatusEmun.å
¥åºç¡®è®¤,
|
| | | Creater = StockConstants.AGV_USER,
|
| | | CreateDate = DateTime.Now,
|
| | | Remark = $"AGVå
¥åºä»»å¡å建ï¼ä»»å¡å·ï¼{dto.TaskId}",
|
| | | Remark = $"æå·åºAGVå
¥åºä»»å¡å建ï¼ä»»å¡å·ï¼{dto.TaskId}",
|
| | | Details = new List<Dt_StockInfoDetail> { details }
|
| | | };
|
| | |
|
| | |
| | | "Microsoft.AspNetCore.Mvc.ModelBinding": "Warning" |
| | | } |
| | | }, |
| | | "dics": "inOrderType,outOrderType,inboundState,createType,enableEnum,enableStatusEnum,locationStatusEnum,locationTypeEnum,taskTypeEnum,taskStatusEnum,outboundStatusEnum,orderDetailStatusEnum,stockStatusEmun,locationDepth,stockChangeType,outStockStatus,receiveOrderTypeEnum,authorityScope,authorityScopes,locationChangeType,warehouses,suppliers,taskType,receiveStatus,purchaseType,purchaseOrderStatus,printStatus,warehouseEnum", |
| | | "dics": "inOrderType,outOrderType,inboundState,createType,enableEnum,enableStatusEnum,locationStatusEnum,locationTypeEnum,taskTypeEnum,taskStatusEnum,outboundStatusEnum,orderDetailStatusEnum,stockStatusEmun,locationDepth,stockChangeType,outStockStatus,receiveOrderTypeEnum,authorityScope,authorityScopes,locationChangeType,warehouses,suppliers,taskType,receiveStatus,purchaseType,purchaseOrderStatus,printStatus,warehouseEnum,palletTypesEmun", |
| | | "AllowedHosts": "*", |
| | | "ConnectionStringsEncryption": false, |
| | | "MainDB": "DB_WIDESEA", //å½å项ç®ç主åºï¼æå¯¹åºçè¿æ¥å符串çEnabledå¿
须为true |