1 line
5.9 KiB
JSON
1 line
5.9 KiB
JSON
{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\device\\customPolicy\\task\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\device\\customPolicy\\task\\index.vue","mtime":1732871026560},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\babel.config.js","mtime":1732871025888},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _interopRequireWildcard = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireWildcard.js\");\nvar _interopRequireDefault = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _defineProperty2 = _interopRequireDefault(require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/defineProperty.js\"));\nvar _objectSpread2 = _interopRequireDefault(require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/objectSpread2.js\"));\nvar _customPolicyType = require(\"@/api/acs/device/customPolicyType\");\nvar _crud = _interopRequireDefault(require(\"@/mixins/crud\"));\nvar _device = _interopRequireDefault(require(\"@/api/acs/device/device\"));\nvar _customPolicy = _interopRequireDefault(require(\"@/api/acs/device/customPolicy\"));\nvar _crud2 = _interopRequireDefault(require(\"@crud/crud\"));\nvar constants = _interopRequireWildcard(require(\"constants\"));\nvar _Index = _interopRequireDefault(require(\"@/views/system/build/tinymce/example/Index.vue\"));\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = exports.default = {\n name: 'CustomPolicyType',\n computed: {\n index: function index() {\n return _Index.default;\n }\n },\n mixins: [_crud.default],\n props: {\n parentForm: {\n type: Object,\n require: true\n }\n },\n cruds: function cruds() {\n return (0, _crud2.default)({\n title: '自定义策略',\n url: 'api/customPolicy',\n idField: 'id',\n sort: 'id,desc',\n crudMethod: (0, _objectSpread2.default)({}, _customPolicy.default)\n });\n },\n data: function data() {\n return {\n requestMethodList: [{\n code: 1,\n name: '出库(起点货架终点输送线)'\n }, {\n code: 2,\n name: '入库(起点输送线终点货位)'\n }, {\n code: 3,\n name: '移库(起点终点为货位)'\n }],\n key_code: this.$route.query.key_code,\n id: this.$route.query.id,\n deviceList: [],\n modeform: {\n deviceCode: '',\n plans: [{\n from: '',\n to: '',\n quantity: null,\n type: null\n }]\n },\n rules: {}\n };\n },\n created: function created() {\n var _this = this;\n _device.default.selectDeviceList().then(function (data) {\n _this.deviceList = data;\n });\n (0, _customPolicyType.selectById)(this.id).then(function (data) {\n if (data != null && data !== '') {\n console.log(data);\n _this.modeform = data;\n }\n });\n },\n methods: (0, _defineProperty2.default)((0, _defineProperty2.default)({\n moveUp: function moveUp(index) {\n if (index > 0) {\n var upDate = this.modeform.plans[index - 1];\n this.modeform.plans.splice(index - 1, 1);\n this.modeform.plans.splice(index, 0, upDate);\n } else {\n this.$message.error('已经是第一条,不可上移');\n }\n },\n moveDown: function moveDown(index) {\n if (index + 1 === this.modeform.plans.length) {\n this.$message.error('已经是最后一条,不可下移');\n } else {\n console.log(index);\n var downDate = this.modeform.plans[index + 1];\n this.modeform.plans.splice(index + 1, 1);\n this.modeform.plans.splice(index, 0, downDate);\n }\n },\n insertdtl: function insertdtl() {\n this.modeform.plans.push({\n quantity: '',\n type: ''\n });\n },\n deleteRow: function deleteRow(index, rows) {\n rows.splice(index, 1);\n },\n doSubmit: function doSubmit() {\n var _this2 = this;\n (0, _customPolicyType.updateConfig)(this.modeform.plans, this.key_code, this.id).then(function (res) {\n _this2.notify('保存成功', 'success');\n _this2.configLoading = false;\n }).catch(function (err) {\n _this2.configLoading = false;\n console.log(err.response.data.message);\n });\n }\n }, _crud2.default.HOOK.beforeRefresh, function () {\n return true;\n }), \"back\", function back() {\n this.$router.push('/devices/customPolicy');\n })\n};",null]} |