{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\contractManagement\\contractPreparation\\component\\contractPreparationAddDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\contractManagement\\contractPreparation\\component\\contractPreparationAddDialog.vue","mtime":1719607232277},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\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//\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//\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\r\nimport Breadcrumb from '@/components/Breadcrumb/index.vue'\r\nexport default {\r\n name: 'contractPreparationAddDialog',\r\n components: {Breadcrumb},\r\n props: {\r\n editData: Object\r\n },\r\n data() {\r\n return {\r\n centralizedData: [\r\n {name: '是', id: 1},\r\n {name: '否', id: 0}\r\n ],\r\n breadcrumbOpt: [{breadcrumbName: '合同编制'}, {breadcrumbName: '新增'}],\r\n cardTypeData: [\r\n {\r\n name: '营业执照',\r\n value: 0\r\n },\r\n {\r\n name: '身份证',\r\n value: 1\r\n },\r\n {\r\n name: '驾驶证',\r\n value: 2\r\n },\r\n {\r\n name: '军官证',\r\n value: 3\r\n },\r\n {\r\n name: '护照',\r\n value: 4\r\n }\r\n ],\r\n rules: {\r\n secondPartyUserName: [\r\n {\r\n required: true,\r\n message: '请输入购货企业签章联系人',\r\n trigger: 'blur'\r\n }\r\n ],\r\n secondPartyCompanyName: [\r\n {\r\n required: true,\r\n message: '请输入购货企业',\r\n trigger: 'blur'\r\n }\r\n ],\r\n firstPartyUserPhone: [\r\n {\r\n required: true,\r\n message: '请输入联系电话',\r\n trigger: 'blur'\r\n },\r\n {\r\n pattern: /^1[3456789]\\d{9}$/,\r\n message: '手机号码格式不正确',\r\n trigger: 'blur'\r\n }\r\n ],\r\n contractNumber: [\r\n {\r\n required: true,\r\n message: '请输入合同编号',\r\n trigger: 'blur'\r\n }\r\n ],\r\n name: [\r\n {\r\n required: true,\r\n message: '请输入合同名称',\r\n trigger: 'blur'\r\n }\r\n ],\r\n type: [\r\n {\r\n required: true,\r\n message: '请选择合同类型',\r\n trigger: 'blur'\r\n }\r\n ],\r\n thirdPartyCompanyName: [\r\n {\r\n required: true,\r\n message: '请输入处置方',\r\n trigger: 'blur'\r\n }\r\n ],\r\n firstPartyCompanyName: [\r\n {\r\n required: true,\r\n message: '请输入销售企业',\r\n trigger: 'blur'\r\n }\r\n ],\r\n firstPartyUserName: [\r\n {\r\n required: true,\r\n message: '请输入销售企业签章联系人',\r\n trigger: 'blur'\r\n }\r\n ],\r\n contractStartDate: [\r\n {\r\n required: true,\r\n message: '请选择合同开始日期',\r\n trigger: 'blur'\r\n }\r\n ],\r\n contractEndDate: [\r\n {\r\n required: true,\r\n message: '请选择合同结束日期',\r\n trigger: 'blur'\r\n }\r\n ]\r\n },\r\n parameter: {\r\n detail: []\r\n }\r\n }\r\n },\r\n created() {\r\n this.addModifyBtn()\r\n },\r\n mounted() {},\r\n methods: {\r\n //列表删除行\r\n addTable() {\r\n this.parameter.detail.push({})\r\n },\r\n //列表删除行\r\n delTable(index, row) {\r\n this.parameter.detail.splice(index, 1)\r\n if (row.id) {\r\n this.parameter.deleteDetailsId.push(row.id)\r\n }\r\n },\r\n //编辑\r\n addModifyBtn() {\r\n if (this.$route.query.editRows) {\r\n console.log()\r\n this.breadcrumbOpt[1].breadcrumbName = '编辑'\r\n this.modifychoData(this.$route.query.editRows)\r\n } else {\r\n this.breadcrumbOpt[1].breadcrumbName = '新增'\r\n }\r\n },\r\n //获取修改回显数据\r\n modifychoData(val) {\r\n console.log(val)\r\n },\r\n // 关闭//面包屑点击\r\n handleClose() {\r\n if (this.breadcrumbOpt[1].breadcrumbName === '编辑') {\r\n this.$router.push({\r\n name: 'contractPreparation',\r\n params: {\r\n pageBean: this.$route.query.pageBean\r\n }\r\n })\r\n } else {\r\n this.$router.push({\r\n name: 'contractPreparation'\r\n })\r\n }\r\n\r\n // this.$emit('closeComponent')\r\n this.parameter = {}\r\n // this.$refs.formInfo.clearValidate()\r\n },\r\n // 保存\r\n handleSave() {\r\n this.$refs.formInfo.validate(valid => {\r\n if (valid) {\r\n }\r\n })\r\n }\r\n }\r\n}\r\n",null]}