星油车管小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
24 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/lenovo/Desktop/new_git/FleetManagement-MPWEIXIN/Order/pages/created/index.vue?d7b5","webpack:///C:/Users/lenovo/Desktop/new_git/FleetManagement-MPWEIXIN/Order/pages/created/index.vue?e79a","webpack:///C:/Users/lenovo/Desktop/new_git/FleetManagement-MPWEIXIN/Order/pages/created/index.vue?e2f7","webpack:///C:/Users/lenovo/Desktop/new_git/FleetManagement-MPWEIXIN/Order/pages/created/index.vue?99f0","uni-app:///Order/pages/created/index.vue","webpack:///C:/Users/lenovo/Desktop/new_git/FleetManagement-MPWEIXIN/Order/pages/created/index.vue?e4c9","webpack:///C:/Users/lenovo/Desktop/new_git/FleetManagement-MPWEIXIN/Order/pages/created/index.vue?ab4e"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","orderItem","selectPopup","options","styleIsolation","data","user","dataMark","cargoTypes","isCargoType","customerName","isDriversSelect","drivers","isPlateSelect","plates","checkPage","plateNumber","tacitly","WrongText","freight","custom","cargoType","departureDate","submitData","orderData","created","onLoad","methods","back","uni","init","getCargoTypes","label","value","cargoTypeSettle","platesSettle","settle","id","searchDrivers","getDrivers","orderApi","getPlates","companyId","showSelect","whenChanged","console","change","submit","icon","title","setTimeout","type","message","imageRemove","previewImage","current","urls","longPressActions","success","fail","uploadImagesFn","imageUrl"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACsC;;;AAG1F;AACgN;AAChN,gBAAgB,wNAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,sTAEN;AACP,KAAK;AACL;AACA,aAAa,gZAEN;AACP,KAAK;AACL;AACA,aAAa,0MAEN;AACP,KAAK;AACL;AACA,aAAa,oSAEN;AACP,KAAK;AACL;AACA,aAAa,iPAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACrDA;AAAA;AAAA;AAAA;AAAszB,CAAgB,s0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;AC0F10B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAGA;EACAC;IACAC;IACAC;EACA;EACAC;IACAC;EACA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;QACAC;UACAC;UACAC;QACA;QACAC;UACAF;UACAG;UACAF;QACA;QACAG;UACAJ;UACAC;QACA;QACAI;UACAL;UACAC;QACA;MACA;MACAK;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;MACA;MACAC;IACA;EACA;EACAC;IACA;EACA;EACAC;EACAC;IACAC;MACAC;IACA;IACAC;MACA;MACA;MACA;MACA;IACA;IACAC;MACA;MACA;QACA;UACA;YACAC;YACAC;UACA;QACA;MACA;QACA;MACA;IACA;IACAC;MACA;QACA;MACA;QACA;MACA;IACA;IACAC;MACA;IACA;IACAC;MAAA;MACAxB;QACAF;QACA2B;MACA,2CACAzB,SACA;MACA;QAAA;MAAA;MACA;QAAA;MAAA;IACA;IACA0B;MACA;IACA;IACAC;MAAA;MACAC;QACA9B;MACA;QACA;UAAA;QAAA;MACA;IACA;IACA+B;MAAA;MACAD;QACAE;QACA;MACA;QACA;MACA;IACA;IACAC;MACA;QACA;UACA;UACA;QACA;UACA;UACA;QACA;UACA;UACA;QACA;UACA;MAAA;IAEA;IACAC;MACAC;MACA;IACA;IACAC;MACAD;IACA;IACAE;MACA;MACA;QACAP;UACA;YACAX;cACAmB;cACAC;YACA;YACAC;cACArB;YACA;UACA;QACA;MACA;QACA;UACAsB;UACAH;UACAC;UACAG;QACA;MACA;IACA;IACAC;MAAA;MAAA;MACA;IACA;IACAC;MAAA;MAAA;MACA;QACAzB;UACA0B;UACAC;YAAA;UAAA;UACAC;YACAC;YACAC;UACA;QACA;MACA;QAAA;QACA;MACA;IACA;IACAC;MAAA;MACA;QACA;UACAC;QACA;MACA;IACA;EAEA;AACA;AAAA,2B;;;;;;;;;;;;;ACzRA;AAAA;AAAA;AAAA;AAAqiD,CAAgB,y/CAAG,EAAC,C;;;;;;;;;;;ACAzjD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"Order/pages/created/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './Order/pages/created/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=0b905661&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=0b905661&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0b905661\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"Order/pages/created/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=0b905661&scoped=true&\"","var components\ntry {\n components = {\n uniIcons: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uni-icons/components/uni-icons/uni-icons\" */ \"@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue\"\n )\n },\n uniDatetimePicker: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker\" */ \"@/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue\"\n )\n },\n selectPopup: function () {\n return import(\n /* webpackChunkName: \"components/selectPopup/selectPopup\" */ \"@/components/selectPopup/selectPopup.vue\"\n )\n },\n uniEasyinput: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput\" */ \"@/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue\"\n )\n },\n uToast: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-toast/u-toast\" */ \"@/uni_modules/uview-ui/components/u-toast/u-toast.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"created-body flex column\">\r\n\t\t<order-item v-if=\"orderData\" :order-data='orderData' type=\"card\"></order-item>\r\n\t\t<view class=\"oneflex\">\r\n\t\t\t<view class=\"created-form\">\r\n\t\t\t\t<view class=\"created-form-item flex ac\">\r\n\t\t\t\t\t<view class=\"created-form-item-label\"><text style=\"color: red;\">*</text>选择车牌:</view>\r\n\t\t\t\t\t<view @click=\"showSelect('plate')\" class=\"created-form-item-value flex oneflex flex-end\">\r\n\t\t\t\t\t\t<view :class=\"submitData.plateNumber?'':'selectPlaceholder'\" class=\"oneflex textov\">\r\n\t\t\t\t\t\t\t{{ submitData.plateNumber ||'请选择车牌'}}\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<uni-icons type=\"right\" size=\"20\" color=\"#999999\"></uni-icons>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"created-form-item flex ac\">\r\n\t\t\t\t\t<view class=\"created-form-item-label\">\r\n\t\t\t\t\t\t<text style=\"color: red;\">*</text>\r\n\t\t\t\t\t\t选择同城司机:\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view @click=\"showSelect('drivers')\" class=\"created-form-item-value oneflex\">\r\n\t\t\t\t\t\t<view class=\"created-form-item-value flex oneflex flex-end\">\r\n\t\t\t\t\t\t\t<view :class=\"submitData.driverNames?'':'selectPlaceholder'\" class=\"oneflex textov\">\r\n\t\t\t\t\t\t\t\t{{ submitData.driverNames ||'请选择同城司机'}}\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<uni-icons type=\"right\" size=\"20\" color=\"#999999\"></uni-icons>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"created-form-item flex ac\">\r\n\t\t\t\t\t<view class=\"created-form-item-label\"><text style=\"color: red;\">*</text>运费金额:</view>\r\n\t\t\t\t\t<view class=\"created-form-item-value oneflex\">\r\n\t\t\t\t\t\t<input type=\"digit\" v-model=\"submitData.freight\" placeholder=\"请输入运费金额\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"created-form-item flex ac\">\r\n\t\t\t\t\t<view class=\"created-form-item-label\"><text style=\"color: red;\">*</text>货物类型:</view>\r\n\t\t\t\t\t<view @click=\"showSelect('cargoType')\" class=\"created-form-item-value oneflex\">\r\n\t\t\t\t\t\t<view class=\"created-form-item-value flex oneflex flex-end\">\r\n\t\t\t\t\t\t\t<view :class=\"submitData.cargoType?'':'selectPlaceholder'\" class=\"oneflex textov\">\r\n\t\t\t\t\t\t\t\t{{ dataMark.CARGO_TYPE[submitData.cargoType]||'请选择货物类型'}}\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<uni-icons type=\"right\" size=\"20\" color=\"#999999\"></uni-icons>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"created-form-item flex ac\">\r\n\t\t\t\t\t<view class=\"created-form-item-label\"><text style=\"color: red;\">*</text>发货日期:</view>\r\n\t\t\t\t\t<view class=\"created-form-item-value oneflex\">\r\n\t\t\t\t\t\t<uni-datetime-picker v-model=\"submitData.departureDate\">\r\n\t\t\t\t\t\t\t{{submitData.departureDate||'选择发货日期'}}\r\n\t\t\t\t\t\t</uni-datetime-picker>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"created-form-item flex jc column\">\r\n\t\t\t\t\t<view class=\"created-form-item-label\">\r\n\t\t\t\t\t\t备注:\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"created-form-item-value oneflex\">\r\n\t\t\t\t\t\t<textarea v-model=\"submitData.remark\" placeholder=\"请输入备注\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"created-footer flex around\">\r\n\t\t\t<view @click=\"back\" class=\"cancel flex jc ac\">返回</view>\r\n\t\t\t<view @click=\"submit\" class=\"submit flex jc ac\">提交</view>\r\n\t\t</view>\r\n\t\t<!-- 选择货物类型 -->\r\n\t\t<selectPopup @settle='cargoTypeSettle' :isMultiple=\"false\" :options='cargoTypes' v-model=\"isCargoType\">\r\n\t\t\t<template #title>请选择货物类型</template>\r\n\t\t</selectPopup>\r\n\t\t<!-- 选择车牌号 -->\r\n\t\t<selectPopup @settle='platesSettle' :isMultiple=\"false\" label='plateNumber' selectValue='plateNumber'\r\n\t\t\t:options='plates' v-model=\"isPlateSelect\">\r\n\t\t\t<template #title>请选择车牌号</template>\r\n\t\t</selectPopup>\r\n\t\t<!-- 选择司机 -->\r\n\t\t<selectPopup ref='selectDrivers' @settle='settle' label='customerName' selectValue='id' :options='drivers'\r\n\t\t\tv-model=\"isDriversSelect\">\r\n\t\t\t<template #title>请选择司机 </template>\r\n\t\t\t<template #search>\r\n\t\t\t\t<uni-easyinput @confirm='searchDrivers' suffixIcon=\"search\" v-model=\"customerName\"\r\n\t\t\t\t\tplaceholder=\"输入司机名字搜索\"></uni-easyinput>\r\n\t\t\t</template>\r\n\t\t</selectPopup>\r\n\t\t<u-toast ref=\"uToast\"></u-toast>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport orderApi from '@/api/order.js'\r\n\timport orderItem from \"@/components/orderItem/orderItem.vue\";\r\n\timport selectPopup from '../../../components/selectPopup/selectPopup.vue';\r\n\texport default {\r\n\t\tcomponents: {\r\n\t\t\torderItem,\r\n\t\t\tselectPopup\r\n\t\t},\r\n\t\toptions: {\r\n\t\t\tstyleIsolation: 'shared'\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tuser: uni.getStorageSync('user'),\r\n\t\t\t\tdataMark: uni.getStorageSync('dataMark') || null,\r\n\t\t\t\tcargoTypes: [],\r\n\t\t\t\tisCargoType: false,\r\n\t\t\t\tcustomerName: '',\r\n\t\t\t\tisDriversSelect: false,\r\n\t\t\t\tdrivers: [],\r\n\t\t\t\tisPlateSelect: false,\r\n\t\t\t\tplates: [],\r\n\t\t\t\tcheckPage: {\r\n\t\t\t\t\tplateNumber: {\r\n\t\t\t\t\t\ttacitly: '',\r\n\t\t\t\t\t\tWrongText: '车牌不能为空'\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfreight: {\r\n\t\t\t\t\t\ttacitly: '',\r\n\t\t\t\t\t\tcustom:/^\\d+(?=\\.{0,1}\\d+$|$)/,\r\n\t\t\t\t\t\tWrongText: '运费金额不能为空且必须为数字'\r\n\t\t\t\t\t},\r\n\t\t\t\t\tcargoType: {\r\n\t\t\t\t\t\ttacitly: '',\r\n\t\t\t\t\t\tWrongText: '货物类型不能为空'\r\n\t\t\t\t\t},\r\n\t\t\t\t\tdepartureDate: {\r\n\t\t\t\t\t\ttacitly: '',\r\n\t\t\t\t\t\tWrongText: '发货日期不能为空'\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tsubmitData: {\r\n\t\t\t\t\t\"remark\": \"\",\r\n\t\t\t\t\t\"freight\": \"\",\r\n\t\t\t\t\t\"status\": \"1\",\r\n\t\t\t\t\t\"cargoType\": \"\",\r\n\t\t\t\t\t\"drivers\": \"\",\r\n\t\t\t\t\t\"driverNames\": \"\",\r\n\t\t\t\t\t\"departureDate\": \"\",\r\n\t\t\t\t\t\"orderType\": \"2\",\r\n\t\t\t\t\t\"plateNumber\": \"\"\r\n\t\t\t\t},\r\n\t\t\t\torderData: null,\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tthis.init();\r\n\t\t},\r\n\t\tonLoad() {},\r\n\t\tmethods: {\r\n\t\t\tback() {\r\n\t\t\t\tuni.navigateBack()\r\n\t\t\t},\r\n\t\t\tinit() {\r\n\t\t\t\tthis.getDrivers();\r\n\t\t\t\tthis.getPlates();\r\n\t\t\t\tthis.getCargoTypes();\r\n\t\t\t\tthis.settle()\r\n\t\t\t},\r\n\t\t\tgetCargoTypes() {\r\n\t\t\t\tlet dataMark = this.dataMark;\r\n\t\t\t\tif (dataMark && dataMark.CARGO_TYPE) {\r\n\t\t\t\t\tthis.cargoTypes = Object.keys(dataMark.CARGO_TYPE).map(item => {\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\tlabel: dataMark.CARGO_TYPE[item],\r\n\t\t\t\t\t\t\tvalue: item\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.cargoTypes = []\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcargoTypeSettle(e) {\r\n\t\t\t\tif (e) {\r\n\t\t\t\t\tthis.submitData.cargoType = e.value;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.submitData.cargoType = \"\";\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tplatesSettle(e) {\r\n\t\t\t\tthis.submitData.plateNumber = e ? e.plateNumber : '';\r\n\t\t\t},\r\n\t\t\tsettle(drivers = []) {\r\n\t\t\t\tdrivers = [{\r\n\t\t\t\t\t\tcustomerName: this.user.name,\r\n\t\t\t\t\t\tid: this.user.driverId\r\n\t\t\t\t\t},\r\n\t\t\t\t\t...drivers\r\n\t\t\t\t]\r\n\t\t\t\tthis.submitData.driverNames = drivers.map(item => item.customerName).join(',');\r\n\t\t\t\tthis.submitData.drivers = drivers.map(item => item.id).join(',');\r\n\t\t\t},\r\n\t\t\tsearchDrivers() {\r\n\t\t\t\tthis.getDrivers()\r\n\t\t\t},\r\n\t\t\tgetDrivers() {\r\n\t\t\t\torderApi.getCustomersByName({\r\n\t\t\t\t\tcustomerName: this.customerName\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tthis.drivers = res.data.filter(item => item.id !== this.user.driverId);\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tgetPlates() {\r\n\t\t\t\torderApi.findByPlateNumber({\r\n\t\t\t\t\tcompanyId:this.user.userCompany,\r\n\t\t\t\t\t\"plateNumber\": \"\"\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tthis.plates = res.data;\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tshowSelect(e) {\r\n\t\t\t\tswitch (e) {\r\n\t\t\t\t\tcase 'plate':\r\n\t\t\t\t\t\tthis.isPlateSelect = true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 'drivers':\r\n\t\t\t\t\t\tthis.isDriversSelect = true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 'cargoType':\r\n\t\t\t\t\t\tthis.isCargoType = true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\twhenChanged(e) {\r\n\t\t\t\tconsole.log(JSON.stringify(e))\r\n\t\t\t\tthis.options = e\r\n\t\t\t},\r\n\t\t\tchange(e) {\r\n\t\t\t\tconsole.log(\"e:\", e);\r\n\t\t\t},\r\n\t\t\tsubmit() {\r\n\t\t\t\tlet chenkResult = this.tool.checkFn(this.submitData, [], this.checkPage);\r\n\t\t\t\tif (chenkResult.result) {\r\n\t\t\t\t\torderApi.createOrder(this.submitData).then(res => {\r\n\t\t\t\t\t\tif (res.code == 20000) {\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ticon: \"success\",\r\n\t\t\t\t\t\t\t\ttitle: \"操作成功\"\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\tuni.navigateBack()\r\n\t\t\t\t\t\t\t}, 1000)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.$refs.uToast.show({\r\n\t\t\t\t\t\ttype: 'error',\r\n\t\t\t\t\t\ticon: false,\r\n\t\t\t\t\t\ttitle: 'error',\r\n\t\t\t\t\t\tmessage: chenkResult.WrongText,\r\n\t\t\t\t\t}) \r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\timageRemove(uploadImages = this.submitData.proofsList, index) {\r\n\t\t\t\tthis.submitData.proofsList.splice(index, 1);\r\n\t\t\t},\r\n\t\t\tpreviewImage(uploadImages = this.submitData.proofsList, index = undefined) {\r\n\t\t\t\tif (index !== undefined && uploadImages[index] !== undefined) {\r\n\t\t\t\t\tuni.previewImage({\r\n\t\t\t\t\t\tcurrent: index,\r\n\t\t\t\t\t\turls: uploadImages.map(item => item.imageUrl),\r\n\t\t\t\t\t\tlongPressActions: {\r\n\t\t\t\t\t\t\tsuccess: function(data) {},\r\n\t\t\t\t\t\t\tfail: function(err) {}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.log('数据错误=>', ...arguments)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tuploadImagesFn() {\r\n\t\t\t\tthis.tool.chooseImage((imageUrl) => {\r\n\t\t\t\t\tthis.submitData.proofsList.push({\r\n\t\t\t\t\t\timageUrl\r\n\t\t\t\t\t});\r\n\t\t\t\t})\r\n\t\t\t},\r\n\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n\t::v-deep .uni-select {\r\n\t\tborder: none !important;\r\n\t}\r\n\r\n\t@import 'index.scss';\r\n</style>","import mod from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&id=0b905661&scoped=true&lang=scss&\"; export default mod; export * from \"-!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\hbuliderx\\\\HBuilderX.3.3.11.20220209.full\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&id=0b905661&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1709112646359\n var cssReload = require(\"D:/hbuliderx/HBuilderX.3.3.11.20220209.full/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}