1 line
9.0 KiB
JSON
1 line
9.0 KiB
JSON
{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\views\\supplier\\order\\addOrder\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\supplier\\order\\addOrder\\index.vue","mtime":1737610069449},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _interopRequireDefault = require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _getdata = require(\"@/api/getdata\");\nvar _popup = _interopRequireDefault(require(\"@/views/estate/examine/dialog/popup.vue\"));\nvar _crypto = require(\"crypto\");\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 components: {\n Popup: _popup.default\n },\n data: function data() {\n var _this = this;\n var valNum = function valNum(rule, value, callback) {\n var reg = /^[0-9]\\d*$/;\n if (reg.test(value)) {\n if (value == 0) {\n _this.ruleForm.ORDER_NUM = 0;\n }\n callback();\n } else {\n callback(new Error('请输入正整数数字'));\n }\n };\n var orderTelRule = function orderTelRule(rule, value, callback) {\n var isPhone = /^1(3|4|5|7|8|9)\\d{9}$/;\n var isMob = /^\\d{8}$/;\n // var isMob = /^\\d{2,5}-\\d{7,8}$/\n if (isMob.test(value) || isPhone.test(value)) {\n callback();\n } else {\n callback(new Error(\"请输入正确格式的手机号码\"));\n }\n };\n return {\n indexCall: this.$route.query.index ? this.$route.query.index : window.localStorage.getItem(\"pageIndex\"),\n validation: false,\n completeTitle: \"\",\n nav: \"\",\n imgData: {},\n dialogImageUrl: \"\",\n dialogVisible: false,\n view: false,\n timeUpdate: \"\",\n ruleForm: {\n ORDER_NUMBER: \"\",\n ORDER_INFORMATION: \"\",\n ORDER_NUM: \"\",\n SUPPLIER: \"\",\n ORDER_TIME: \"\",\n LICENSE: \"\"\n },\n til: \"添加\",\n UUID: \"\",\n rules: {\n ORDER_NUMBER: [{\n required: true,\n message: \"请输入订单编号\",\n trigger: [\"blur\", \"change\"]\n }],\n ORDER_INFORMATION: [{\n required: true,\n message: \"请输入订单信息\",\n trigger: [\"blur\", \"change\"]\n }],\n ORDER_NUM: [{\n required: true,\n message: \"请输入订单数量\",\n trigger: [\"blur\", \"change\"]\n }, {\n validator: valNum,\n trigger: \"change\"\n }],\n SUPPLIER: [{\n required: true,\n message: \"请选择供应商名称\",\n trigger: [\"blur\", \"change\"]\n }],\n ORDER_TIME: [{\n required: true,\n message: \"请选择订单时间\",\n trigger: [\"blur\", \"change\"]\n }]\n },\n supplierList: [],\n parentData: []\n };\n },\n created: function created() {\n this.getSupplier('');\n },\n mounted: function mounted() {\n var data = this.$route.query.rowdata;\n console.log(data);\n if (data) {\n this.ruleForm.ORDER_NUMBER = data.ORDER_NUMBER;\n this.ruleForm.ORDER_INFORMATION = data.ORDER_INFORMATION;\n this.ruleForm.ORDER_NUM = data.ORDER_NUM;\n this.ruleForm.SUPPLIER = data.SUPPLIER;\n this.ruleForm.SUPPLIER_ID = data.SUPPLIER_ID;\n this.ruleForm.ORDER_TIME = data.ORDER_TIME;\n // this.ruleForm.HEALTH_PHOTO = data.HEALTH_PHOTO?data.HEALTH_PHOTO : [];\n // this.ruleForm.OPERATE_PHOTO = data.OPERATE_PHOTO ? data.OPERATE_PHOTO : [];\n this.UUID = data.UUID;\n this.til = data.til;\n //仅适用查看\n this.view = data ? data.view : false;\n }\n },\n methods: {\n visibleChange: function visibleChange() {\n if (this.supplierList.length == 0) {\n this.getSupplier('');\n }\n },\n selectSupplier: function selectSupplier(select) {\n this.ruleForm.SUPPLIER_ID = select;\n },\n getSupplier: function getSupplier(query) {\n var _this2 = this;\n var Content = {\n SUPPLIER: query\n };\n (0, _getdata.getSupplier)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.supplierList = res.returnData;\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n /**返回上一级 */comeBack: function comeBack() {\n this.$router.push({\n name: \"supplier-order-index\",\n params: {\n index: this.indexCall\n }\n });\n },\n submitForm: function submitForm(formName) {\n var _this3 = this;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n if (_this3.til == \"编辑\") {\n _this3.validation = true;\n _this3.completeTitle = \"编辑\";\n _this3.nav = \"是否编辑?\";\n } else {\n _this3.validation = true;\n _this3.completeTitle = \"添加\";\n _this3.nav = \"是否添加?\";\n }\n }\n });\n },\n closeDialogDel: function closeDialogDel(val) {\n var _this4 = this;\n if (val == \"2\") {\n var Content = {\n ORDER_NUMBER: this.ruleForm.ORDER_NUMBER,\n ORDER_INFORMATION: this.ruleForm.ORDER_INFORMATION,\n ORDER_NUM: this.ruleForm.ORDER_NUM,\n SUPPLIER: this.ruleForm.SUPPLIER,\n SUPPLIER_ID: this.ruleForm.SUPPLIER_ID,\n ORDER_TIME: this.ruleForm.ORDER_TIME,\n // HEALTH_PHOTO: this.ruleForm.HEALTH_PHOTO.join(\"&#&\"),\n // OPERATE_PHOTO: this.ruleForm.OPERATE_PHOTO.join(\"&#&\"),\n UUID: this.UUID\n };\n // console.log(this.ruleForm.picture)\n (0, _getdata.modifyCanteenOrder)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this4.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this4.$router.push({\n name: \"supplier-order-index\",\n params: {\n index: _this4.indexCall\n }\n });\n } else {\n _this4.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n } else if (val == \"3\") {\n var _Content = {\n ORDER_NUMBER: this.ruleForm.ORDER_NUMBER,\n ORDER_INFORMATION: this.ruleForm.ORDER_INFORMATION,\n ORDER_NUM: this.ruleForm.ORDER_NUM,\n SUPPLIER: this.ruleForm.SUPPLIER,\n SUPPLIER_ID: this.ruleForm.SUPPLIER_ID,\n ORDER_TIME: this.ruleForm.ORDER_TIME\n };\n console.log(_Content);\n (0, _getdata.addCanteenOrder)(_Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this4.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n if (_this4.completeTitle == \"添加\") {\n _this4.$router.push({\n name: \"supplier-order-index\",\n params: {\n index: 1\n }\n });\n }\n } else {\n _this4.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n }\n // this.$refs[\"ruleForm\"].resetFields();\n this.validation = false;\n },\n handlePictureCardPreview: function handlePictureCardPreview(file) {\n this.dialogImageUrl = file.url;\n this.dialogVisible = true;\n },\n resetForm: function resetForm(formName) {\n if (!this.view) {\n this.$refs[formName].resetFields();\n }\n this.$router.push({\n name: \"supplier-order-index\",\n params: {\n index: this.indexCall\n }\n });\n if (!this.view) {\n this.$message({\n message: \"取消成功\",\n type: \"success\",\n duration: 800\n });\n }\n }\n }\n};",null]} |