diff --git a/ant-design-vue-jeecg/package.json b/ant-design-vue-jeecg/package.json index b6d1b8dd..b1b83cdb 100644 --- a/ant-design-vue-jeecg/package.json +++ b/ant-design-vue-jeecg/package.json @@ -10,63 +10,65 @@ "lint": "vue-cli-service lint" }, "dependencies": { - "@antv/data-set": "^0.11.4", - "@jeecg/antd-online-mini": "2.4.5-RC", - "@jiaminghi/data-view": "^2.10.0", - "@tinymce/tinymce-vue": "^2.1.0", - "@toast-ui/editor": "^2.1.2", "ant-design-vue": "^1.7.2", - "area-data": "^5.0.6", - "axios": "^0.27.2", - "clipboard": "^2.0.10", - "codemirror": "^5.65.1", - "cron-parser": "^2.10.0", + "@antv/data-set": "^0.11.4", + "viser-vue": "^2.4.8", + "axios": "^0.18.0", "dayjs": "^1.8.0", - "dircountdown": "^1.1.0", - "dom-align": "1.12.0", - "echarts": "^5.3.0", - "element-ui": "^2.15.6", "enquire.js": "^2.1.6", - "jquery": "^3.6.0", "js-cookie": "^2.2.0", "lodash.get": "^4.4.2", "lodash.pick": "^4.4.0", "md5": "^2.2.1", "nprogress": "^0.2.0", - "qs": "^6.10.3", - "tinymce": "^5.10.3", - "viser-vue": "^2.4.8", "vue": "^2.6.10", - "vue-area-linkage": "^5.1.0", "vue-cropper": "^0.5.4", - "vue-i18n": "^8.27.0", + "vue-i18n": "^8.7.0", "vue-loader": "^15.7.0", "vue-ls": "^3.2.0", - "vue-photo-preview": "^1.0.9", - "vue-print-nb": "^1.7.5", - "vue-print-nb-jeecg": "^1.0.9", "vue-router": "^3.0.1", + "vuex": "^3.1.0", + "vue-print-nb-jeecg": "^1.0.10", + "clipboard": "^2.0.4", + "vue-photo-preview": "^1.1.3", "vue-splitpane": "^1.0.4", "vuedraggable": "^2.20.0", - "vuex": "^3.1.0", + "codemirror": "^5.46.0", + "@tinymce/tinymce-vue": "2.1.0", + "tinymce": "5.4.1", + "@toast-ui/editor": "^2.1.2", + "vue-area-linkage": "^5.1.0", + "china-area-data": "^5.0.1", + "dom-align": "1.12.0", + "xe-utils": "2.4.8", "vxe-table": "2.9.13", "vxe-table-plugin-antd": "1.8.10", - "xe-utils": "2.4.8" + "cron-parser": "^2.10.0", + "qiankun": "^2.5.1", + "xss": "^1.0.13", + + "@jiaminghi/data-view": "^2.10.0", + "area-data": "^5.0.6", + "dircountdown": "^1.1.0", + "echarts": "^5.3.0", + "element-ui": "^2.15.6", + "jquery": "^3.6.0", + "qs": "^6.10.3" }, "devDependencies": { "@babel/polyfill": "^7.2.5", "@vue/cli-plugin-babel": "^3.3.0", - "@vue/cli-plugin-eslint": "^5.0.8", - "@vue/cli-service": "^5.0.8", + "@vue/cli-plugin-eslint": "^3.3.0", + "@vue/cli-service": "^3.3.0", "@vue/eslint-config-standard": "^4.0.0", "babel-eslint": "7.2.3", - "compression-webpack-plugin": "^10.0.0", "eslint": "^5.16.0", "eslint-plugin-vue": "^5.1.0", - "html-webpack-plugin": "^4.2.0", "less": "^3.9.0", "less-loader": "^4.1.0", - "vue-template-compiler": "^2.6.10" + "vue-template-compiler": "^2.6.10", + "html-webpack-plugin": "^4.2.0", + "compression-webpack-plugin": "^3.1.0" }, "eslintConfig": { "root": true, @@ -104,10 +106,7 @@ "vue/html-closing-bracket-newline": 0, "vue/no-parsing-error": 0, "no-tabs": 0, - "indent": [ - "off", - 2 - ], + "indent": ["off", 2], "no-console": 0, "space-before-function-paren": 0 } diff --git a/ant-design-vue-jeecg/src/main.js b/ant-design-vue-jeecg/src/main.js index 11ee55ba..8271b441 100644 --- a/ant-design-vue-jeecg/src/main.js +++ b/ant-design-vue-jeecg/src/main.js @@ -12,11 +12,14 @@ import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; // YU-优化 -require('@jeecg/antd-online-mini') -require('@jeecg/antd-online-mini/dist/OnlineForm.css') - + require('@jeecg/antd-online-mini') + require('@jeecg/antd-online-mini/dist/OnlineForm.css') +// 引入 按需组件的统一引入文件 +//import './components/use' import Antd, { version } from 'ant-design-vue' -console.log('ant-design-vue version:', version) +// 按需引入所需组件,统一引入文件---优化 +//import './components/lazy_antd' +//console.log('ant-design-vue version:', version) import Viser from 'viser-vue' import 'ant-design-vue/dist/antd.less'; // or 'ant-design-vue/dist/antd.less' @@ -24,7 +27,7 @@ import 'ant-design-vue/dist/antd.less'; // or 'ant-design-vue/dist/antd.less' import '@/permission' // permission control import '@/utils/filter' // base filter // YU-优化 -//import Print from 'vue-print-nb-jeecg' +import Print from 'vue-print-nb-jeecg' import preview from 'vue-photo-preview' import 'vue-photo-preview/dist/skin.css' import SSO from '@/cas/sso.js' @@ -68,13 +71,15 @@ Vue.prototype.$axios=axios; Vue.prototype.rules = rules Vue.config.productionTip = false Vue.use(Storage, config.storageOptions) +// 按需引入所需组件,统一引入文件---优化 Vue.use(Antd) + Vue.use(ElementUI); Vue.use(VueAxios, router) Vue.use(Viser) Vue.use(hasPermission) Vue.use(JDictSelectTag) -//Vue.use(Print) +Vue.use(Print) Vue.use(preview) Vue.use(vueBus); Vue.use(JeecgComponents); diff --git a/ant-design-vue-jeecg/src/views/customerinvoice/custom/CustomerInvoiceList.vue b/ant-design-vue-jeecg/src/views/customerinvoice/custom/CustomerInvoiceList.vue new file mode 100644 index 00000000..b349ef77 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customerinvoice/custom/CustomerInvoiceList.vue @@ -0,0 +1,233 @@ + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customerinvoice/custom/modules/CustomerInvoiceForm.vue b/ant-design-vue-jeecg/src/views/customerinvoice/custom/modules/CustomerInvoiceForm.vue new file mode 100644 index 00000000..b4cc1fdd --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customerinvoice/custom/modules/CustomerInvoiceForm.vue @@ -0,0 +1,158 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customerinvoice/custom/modules/CustomerInvoiceModal.vue b/ant-design-vue-jeecg/src/views/customerinvoice/custom/modules/CustomerInvoiceModal.vue new file mode 100644 index 00000000..cab496ec --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customerinvoice/custom/modules/CustomerInvoiceModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customerinvoice/custom/modules/CustomerInvoiceModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/customerinvoice/custom/modules/CustomerInvoiceModal__Style#Drawer.vue new file mode 100644 index 00000000..e354afe6 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customerinvoice/custom/modules/CustomerInvoiceModal__Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customermeasure/custo/CustomerMeasureList.vue b/ant-design-vue-jeecg/src/views/customermeasure/custo/CustomerMeasureList.vue new file mode 100644 index 00000000..276cfa7b --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customermeasure/custo/CustomerMeasureList.vue @@ -0,0 +1,258 @@ + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customermeasure/custo/modules/CustomerMeasureForm.vue b/ant-design-vue-jeecg/src/views/customermeasure/custo/modules/CustomerMeasureForm.vue new file mode 100644 index 00000000..c5d86e26 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customermeasure/custo/modules/CustomerMeasureForm.vue @@ -0,0 +1,199 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customermeasure/custo/modules/CustomerMeasureModal.vue b/ant-design-vue-jeecg/src/views/customermeasure/custo/modules/CustomerMeasureModal.vue new file mode 100644 index 00000000..9d99c79d --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customermeasure/custo/modules/CustomerMeasureModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customermeasure/custo/modules/CustomerMeasureModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/customermeasure/custo/modules/CustomerMeasureModal__Style#Drawer.vue new file mode 100644 index 00000000..c83433ad --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customermeasure/custo/modules/CustomerMeasureModal__Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customerpayment/custom/CustomerPaymentList.vue b/ant-design-vue-jeecg/src/views/customerpayment/custom/CustomerPaymentList.vue new file mode 100644 index 00000000..84e5c579 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customerpayment/custom/CustomerPaymentList.vue @@ -0,0 +1,246 @@ + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customerpayment/custom/modules/CustomerPaymentForm.vue b/ant-design-vue-jeecg/src/views/customerpayment/custom/modules/CustomerPaymentForm.vue new file mode 100644 index 00000000..66ab7602 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customerpayment/custom/modules/CustomerPaymentForm.vue @@ -0,0 +1,119 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customerpayment/custom/modules/CustomerPaymentModal.vue b/ant-design-vue-jeecg/src/views/customerpayment/custom/modules/CustomerPaymentModal.vue new file mode 100644 index 00000000..23e63743 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customerpayment/custom/modules/CustomerPaymentModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customerpayment/custom/modules/CustomerPaymentModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/customerpayment/custom/modules/CustomerPaymentModal__Style#Drawer.vue new file mode 100644 index 00000000..1131f243 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customerpayment/custom/modules/CustomerPaymentModal__Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customerreceivingaddress/custom/CustomerReceivingAddressList.vue b/ant-design-vue-jeecg/src/views/customerreceivingaddress/custom/CustomerReceivingAddressList.vue new file mode 100644 index 00000000..fc7e7b4a --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customerreceivingaddress/custom/CustomerReceivingAddressList.vue @@ -0,0 +1,250 @@ + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customerreceivingaddress/custom/modules/CustomerReceivingAddressForm.vue b/ant-design-vue-jeecg/src/views/customerreceivingaddress/custom/modules/CustomerReceivingAddressForm.vue new file mode 100644 index 00000000..64802266 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customerreceivingaddress/custom/modules/CustomerReceivingAddressForm.vue @@ -0,0 +1,143 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customerreceivingaddress/custom/modules/CustomerReceivingAddressModal.vue b/ant-design-vue-jeecg/src/views/customerreceivingaddress/custom/modules/CustomerReceivingAddressModal.vue new file mode 100644 index 00000000..40d6de4b --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customerreceivingaddress/custom/modules/CustomerReceivingAddressModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customerreceivingaddress/custom/modules/CustomerReceivingAddressModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/customerreceivingaddress/custom/modules/CustomerReceivingAddressModal__Style#Drawer.vue new file mode 100644 index 00000000..e7b8eaa1 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customerreceivingaddress/custom/modules/CustomerReceivingAddressModal__Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customershoppingcart/admin/CustomerShoppingCartList.vue b/ant-design-vue-jeecg/src/views/customershoppingcart/admin/CustomerShoppingCartList.vue index dca7260a..795a9817 100644 --- a/ant-design-vue-jeecg/src/views/customershoppingcart/admin/CustomerShoppingCartList.vue +++ b/ant-design-vue-jeecg/src/views/customershoppingcart/admin/CustomerShoppingCartList.vue @@ -138,7 +138,6 @@ return { selectedRows: [], totalPrice: 0, - ssrjian: 0, description: '购物车管理页面', // 表头 columns: [ @@ -217,7 +216,6 @@ this.selectedRowKeys = selectedRowKeys }, onSelect(record, selected) { - var ssr // 若选中,直接push if (selected) { this.selectedRows.push(record) @@ -227,8 +225,8 @@ let index = this.selectedRows.findIndex((item) => item.id == record.id) if (index >= 0) { this.selectedRows.splice(index, 1) - this.ssrjian = record.number*record.price - this.totalPrice=this.totalPrice- this.ssrjian + this.totalPrice=this.totalPrice- record.number*record.price + } } diff --git a/ant-design-vue-jeecg/src/views/customershoppingcart/custum/CustomerShoppingCartList.vue b/ant-design-vue-jeecg/src/views/customershoppingcart/custum/CustomerShoppingCartList.vue new file mode 100644 index 00000000..937151f8 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customershoppingcart/custum/CustomerShoppingCartList.vue @@ -0,0 +1,257 @@ + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customershoppingcart/custum/modules/CustomerShoppingCartForm.vue b/ant-design-vue-jeecg/src/views/customershoppingcart/custum/modules/CustomerShoppingCartForm.vue new file mode 100644 index 00000000..7f9a42f6 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customershoppingcart/custum/modules/CustomerShoppingCartForm.vue @@ -0,0 +1,150 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customershoppingcart/custum/modules/CustomerShoppingCartModal.vue b/ant-design-vue-jeecg/src/views/customershoppingcart/custum/modules/CustomerShoppingCartModal.vue new file mode 100644 index 00000000..cb2eca2b --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customershoppingcart/custum/modules/CustomerShoppingCartModal.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/customershoppingcart/custum/modules/CustomerShoppingCartModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/customershoppingcart/custum/modules/CustomerShoppingCartModal__Style#Drawer.vue new file mode 100644 index 00000000..767f052a --- /dev/null +++ b/ant-design-vue-jeecg/src/views/customershoppingcart/custum/modules/CustomerShoppingCartModal__Style#Drawer.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesList.vue b/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesList.vue index 4d692164..fe45a212 100644 --- a/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesList.vue +++ b/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesList.vue @@ -4,6 +4,22 @@
+ + + + + + + + + + + + + 查询 + 重置 + +
@@ -161,7 +177,7 @@ { title:'供货商信息', align:"center", - dataIndex: 'supplierInfo' + dataIndex: 'supplierInfo_dictText' }, { title: '操作', diff --git a/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesTypeList.vue b/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesTypeList.vue index 7ba77af3..1e6a4cbf 100644 --- a/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesTypeList.vue +++ b/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesTypeList.vue @@ -3,8 +3,24 @@
- - + + + + + + + + + + + + + + 查询 + 重置 + + +
diff --git a/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue b/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue index 88aa62ba..3716f4bf 100644 --- a/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue +++ b/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue @@ -52,9 +52,14 @@ + + + + + - + @@ -104,6 +109,10 @@ contents: [ { required: true, message: '请输入名称!'}, ], + store: [ + { + pattern: /^\d*\.?\d+$/,message:'请输入正数' + }], }, url: { add: "/accessories/zyAccessories/add", diff --git a/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricForm.vue b/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricForm.vue index f87c343b..83a5e190 100644 --- a/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricForm.vue +++ b/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricForm.vue @@ -63,12 +63,12 @@ - + - + @@ -83,7 +83,7 @@ - + @@ -189,6 +189,14 @@ name: [ { required: true, message: '请输入名称!'}, ], + money: [ + { required: true, message: '请输入单价!'}, + {pattern: /^\d+$/,message:'请输入正整数'} + ], + retailPrice: [ + { required: true, message: '请输入零售价!'}, + {pattern: /^\d+$/,message:'请输入正整数'} + ], // money: [ // { required: false}, // { pattern: /^\d{0,11}$/, message: '长度不能超过11位数字'}, diff --git a/ant-design-vue-jeecg/src/views/maker/modules/QRCode.vue b/ant-design-vue-jeecg/src/views/maker/modules/QRCode.vue index dd6ff48d..9ca26091 100644 --- a/ant-design-vue-jeecg/src/views/maker/modules/QRCode.vue +++ b/ant-design-vue-jeecg/src/views/maker/modules/QRCode.vue @@ -29,7 +29,7 @@ import { httpAction } from '@/api/manage' import { validateDuplicateValue } from '@/utils/util' - import { Print } from 'vue-print-nb' + import { Print } from 'vue-print-nb-jeecg' export default { name: "MakerQRCode", components: { diff --git a/ant-design-vue-jeecg/src/views/process/ZyClothsTypeList.vue b/ant-design-vue-jeecg/src/views/process/ZyClothsTypeList.vue index ba3fe20b..09bf3ebe 100644 --- a/ant-design-vue-jeecg/src/views/process/ZyClothsTypeList.vue +++ b/ant-design-vue-jeecg/src/views/process/ZyClothsTypeList.vue @@ -10,9 +10,16 @@ - - + + + + + + @@ -111,6 +118,8 @@ import { mixinDevice } from '@/utils/mixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import ZyClothsTypeModal from './modules/ZyClothsTypeModal' + import {filterObj} from "@/utils/util"; + import {getAction} from "@api/manage"; export default { name: 'ZyClothsTypeList', @@ -147,7 +156,7 @@ title:'类型名称', align:"center", dataIndex: 'typeName', - sorter:true + sorter:true, }, { title:'企业', @@ -174,7 +183,6 @@ deleteBatch: "/base/zyClothsType/deleteBatch", exportXlsUrl: "/base/zyClothsType/exportXls", importExcelUrl: "base/zyClothsType/importExcel", - }, dictOptions:{}, superFieldList:[], @@ -182,6 +190,7 @@ }, created() { this.getSuperFieldList(); + // this.loadParameter(); }, computed: { importExcelUrl: function(){ diff --git a/ant-design-vue-jeecg/src/views/process/ZyProcessList.vue b/ant-design-vue-jeecg/src/views/process/ZyProcessList.vue index 89c2d4e7..f0269e4c 100644 --- a/ant-design-vue-jeecg/src/views/process/ZyProcessList.vue +++ b/ant-design-vue-jeecg/src/views/process/ZyProcessList.vue @@ -10,6 +10,21 @@ v-model="styleId"> + + + + + + + + + + + + + + + 查询 @@ -312,6 +327,9 @@ export default { //参数 loadRouteType: false, styleId: "", + processCode:'', + processName:'', + enterpriseId:'', dictOptions: {}, superFieldList: [], } @@ -378,8 +396,18 @@ export default { param.pageNo = this.ipagination.current; param.pageSize = this.ipagination.pageSize; param.styleId = this.styleId; + param.enterpriseId=this.enterpriseId; + param.processCode=this.processCode; + param.processName=this.processName; return filterObj(param); }, + searchReset() { + this.styleId = '' + this.processCode = '' + this.processName = '' + this.enterpriseId = '' + this.loadData(1); + }, getSuperFieldList() { let fieldList = []; fieldList.push({type: 'string', value: 'processCode', text: '工序代码', dictCode: ''}) diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyClothActionForm.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyClothActionForm.vue index e56374db..9a55745f 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyClothActionForm.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyClothActionForm.vue @@ -75,12 +75,15 @@ validatorRules: { freq: [ { required: true, message: '请输入频率!'}, + {pattern: /^\d+$/,message:'请输入正整数'} ], machineTmu: [ { required: true, message: '请输入机器TMU!'}, + {pattern: /^\d+$/,message:'请输入正整数'} ], manualTmu: [ { required: true, message: '请输入手工TMU!'}, + {pattern: /^\d+$/,message:'请输入正整数'} ], nums: [ { required: true, message: '请输入编号!'}, diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue index 03512483..b5fc7100 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue @@ -5,7 +5,12 @@ - + + + + + + @@ -18,11 +23,7 @@ {{ typeId }} - - - - - + @@ -62,6 +63,7 @@ data () { return { model:{ + nums:'' }, typeId:"", labelCol: { @@ -79,7 +81,7 @@ // ], typeName: [ { required: true, message: '请输入类型名称!'}, - { pattern: /^[0-9A-Za-z\u4e00-\u9fa5.,;,。;、!?]{0,5}$/, message: '文本长度过长'}, + { pattern: /^[0-9A-Za-z\u4e00-\u9fa5.,;,。;、!?]{0,50}$/, message: '文本长度过长'}, ], enterpriseId: [ { required: true, message: '请输入企业!'}, @@ -88,7 +90,8 @@ url: { add: "/base/zyClothsType/add", edit: "/base/zyClothsType/edit", - queryById: "/base/zyClothsType/queryById" + queryById: "/base/zyClothsType/queryById", + weiyi:"/base/zyClothsType/weiyi" } } }, @@ -102,6 +105,20 @@ this.modelDefault = JSON.parse(JSON.stringify(this.model)); }, methods: { + bianhao(){ + var n=6 + getAction(this.url.weiyi,null).then((res)=>{ + var num=parseInt(res.result,10)+1 + console.log(num) + num=num.toString() + while(num.length{ if(res.success){ + this.loadData(); this.$message.success(res.message); }else{ this.$message.warning(res.message); @@ -215,6 +221,7 @@ down(id){ getAction(this.url.down,{id:id}).then((res)=>{ if(res.success){ + this.loadData(); this.$message.success(res.message); }else{ this.$message.warning(res.message); diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessForm.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessForm.vue index 2af440c6..777262af 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessForm.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessForm.vue @@ -1,14 +1,14 @@