Merge branch 'master' of http://bore.pub:10439/r/ERP_override
| | |
| | | |
| | | if(column.field.indexOf('.')>-1){ |
| | | let array = column.field.split('.') |
| | | console.log(row[array[0]][array[1]]) |
| | | if (row[array[0]][array[1]]==null){ |
| | | return ''.indexOf(option.data) > -1 |
| | | }else { |
| | |
| | | typeName:'Категория', |
| | | query:'Быстрый запрос', |
| | | creator:'Создатель', |
| | | |
| | | usingAbbreviations:'Использование сокращений', |
| | | msg:{ |
| | | productLength:'Пожалуйста, добавьте подробную информацию о продукте', |
| | | lastGlass:'Последней деталью продукта является не стекло. Пожалуйста, закончите.', |
| | |
| | | typeName:'所属类别', |
| | | query:'快速查询', |
| | | creator:'创建人', |
| | | |
| | | usingAbbreviations:'使用简称', |
| | | msg:{ |
| | | productLength:'请添加产品详情', |
| | | lastGlass:'产品详情最后一条不是玻璃,请完善', |
| | |
| | | filters:[{ data: '' }], |
| | | slots: { filter: 'num1_filter' }, |
| | | filterMethod:filterChanged} |
| | | console.log(column) |
| | | gridOption.columns.push(column) |
| | | |
| | | } |
| | |
| | | |
| | | const emit = defineEmits(['gaveParent']) |
| | | const saveBasicData = () =>{ |
| | | console.log(basic.value.basicType[1]) |
| | | if(basic.value.basicType[1]==="hollowThickness"||basic.value.basicType[1]==="stuffThickness"||basic.value.basicType[1]==="InterlayerThickness"){ |
| | | if(!basic.value.input.includes("mm")){ |
| | | basic.value.input=basic.value.input+"mm" |
| | | } |
| | | } |
| | | console.log(basic.value.input) |
| | | request.post(`/basicData/addBasicData`, basic.value).then(res => { |
| | | if (res.data) { |
| | | ElMessage.success(t('basicData.msg.saveSuccess')) |
| | |
| | | } |
| | | |
| | | const handleChange = () => { |
| | | console.log(basic.value.basicType[1]) |
| | | request.get(`/basicData/BasicDataByType/${basic.value.basicType[0]}/${basic.value.basicType[1]}`).then(res => { |
| | | if(res.code==='200'){ |
| | | xGrid.value.reloadData(res.data) |
| | | } |
| | | }) |
| | | if(basic.value.basicType==null){ |
| | | request.get('/basicData/getBasicData').then(res => { |
| | | if(res.code==='200'){ |
| | | xGrid.value.reloadData(res.data) |
| | | } |
| | | }) |
| | | }else{ |
| | | request.get(`/basicData/BasicDataByType/${basic.value.basicType[0]}/${basic.value.basicType[1]}`).then(res => { |
| | | if(res.code==='200'){ |
| | | xGrid.value.reloadData(res.data) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | const str = route.query.id |
| | | if (typeof str != 'undefined' && str != null && str !== '' && str !== '\n' && str !== '\r'){ |
| | | ruleForm.value.id = Number(str) |
| | | console.log(ruleForm.value) |
| | | request.post(`/customer/getSelectCustomer/1/100`,ruleForm.value).then((res) => { |
| | | if(res.code==200){ |
| | | console.log(res.data.data[0]) |
| | |
| | | ElMessage.error(t('customer.pleaseEnterTheAmountOfFunds')) |
| | | return |
| | | }*/ |
| | | const address = ruleForm.value.address |
| | | /*const address = ruleForm.value.address |
| | | if(address === null || address === undefined || address === ''){ |
| | | ElMessage.error(t('customer.pleaseEnterTheContactAddress')) |
| | | return |
| | |
| | | if(phone === null || phone === undefined || phone === ''){ |
| | | ElMessage.error(t('customer.pleaseEnterTheContactPhoneNumber')) |
| | | return |
| | | } |
| | | }*/ |
| | | |
| | | let flowData = ref({ |
| | | customer: ruleForm |
| | | }) |
| | | console.log() |
| | | request.post("/customer/insertCustomer", flowData.value).then((res) => { |
| | | if(res.code==200 && res.data===true){ |
| | | resetForm() |
| | |
| | | <script setup> |
| | | import {ArrowLeftBold, ArrowRight, Search} from "@element-plus/icons-vue" |
| | | import {useRouter} from "vue-router"; |
| | | import {useRoute, useRouter} from "vue-router"; |
| | | import { useI18n } from 'vue-i18n' |
| | | |
| | | //语言获取 |
| | | const { t } = useI18n() |
| | | const router = useRouter() |
| | | const route = useRoute() |
| | | let indexFlag=$ref(1) |
| | | function changeRouter(index){ |
| | | indexFlag=index |
| | |
| | | request.post(`/customer/getSelectCustomer/1/${total.pageSize}`,filterData.value).then((res) => { |
| | | |
| | | if(res.code==200){ |
| | | console.log(res.data.data) |
| | | total.dataTotal = res.data.total.total*1 |
| | | total.pageTotal= res.data.total.pageTotal |
| | | pageNum.value=1 |
| | |
| | | |
| | | const hasDecimalhtml=(item,row)=>{ |
| | | let aa=item.split('.').length |
| | | console.log(item) |
| | | if (aa===2){ |
| | | |
| | | return row[item.split('.')[0]][item.split('.')[1]] |
| | |
| | | ElMessage.warning(t('searchOrder.msgList.checkOrder')) |
| | | return |
| | | } |
| | | console.log(rowClickIndex.value.deliveryId) |
| | | dialogTableVisible.value = true |
| | | sheetIndex.value=1 |
| | | break |
| | |
| | | } |
| | | } |
| | | //获取子页面产品方法 |
| | | const getProductRow = (row) => { |
| | | const getProductRow = (row,type) => { |
| | | if(row.state!=1){ |
| | | ElMessage.warning(t('order.msg.productStateCheck')) |
| | | return |
| | | } |
| | | |
| | | rowIndex.productName = row.productName |
| | | if(type==1){ |
| | | rowIndex.productName = row.productName |
| | | }else{ |
| | | rowIndex.productName = row.productAbbreviation |
| | | } |
| | | rowIndex.productId = row.id |
| | | productVisible.value = false |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //初始化判断是否有id传入 |
| | | onMounted(()=>{ |
| | | //启用表格拖动选中 |
| | |
| | | } |
| | | request.post(`/order/getOrderCraftById/${str}`).then((res) => { |
| | | if(res.code==200){ |
| | | console.log(res.data) |
| | | titleUploadData.value = res.data.order |
| | | |
| | | //取消审核按钮禁用 |
| | |
| | | }) |
| | | |
| | | const saveProduct = () => { |
| | | console.log(productGlassTypeStore.GlassType); |
| | | if(productDetailList.value.length===0){ |
| | | ElMessage.warning(t('product.msg.productLength')) |
| | | return |
| | |
| | | <el-input v-model="productTotal.remarks" size="small" /> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-col :span="12"> |
| | | <div class="grid-content ep-bg-purple" > |
| | | <el-text class="mx-1" |
| | | style="margin-left: 0.5rem;text-align: center"> |
| | |
| | | </el-col> |
| | | <el-col :span="20"> |
| | | <div class="grid-content ep-bg-purple" > |
| | | <el-input :value="productName" size="large" /> |
| | | <el-input :value="productName" size="large" disabled /> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | }, |
| | | columns:[ |
| | | {type:'expand',fixed:"left",slots: { content:'content' },width: 60}, |
| | | {title: t('basicData.operate'), width: 110, slots: { default: 'button_slot' },fixed:"left"}, |
| | | {title: t('basicData.operate'), width: 120, slots: { default: 'button_slot' },fixed:"left"}, |
| | | {field:'state',title: t('basicData.review'), width: 40, slots: { default: 'state' }}, |
| | | {type: 'seq',fixed:"left", title: t('basicData.Number'), width: 80 }, |
| | | {field: 'id', title: t('basicData.number'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: false}, |
| | |
| | | 'getProductRow' |
| | | ]) |
| | | |
| | | const emitParent = (row) => { |
| | | emit('getProductRow', row) |
| | | const emitParent = (row,type) => { |
| | | emit('getProductRow', row,type) |
| | | } |
| | | |
| | | |
| | | |
| | | /*后端返回结果多层嵌套展示*/ |
| | |
| | | </el-popconfirm> |
| | | </template> |
| | | <template #button_slot="{ row }" v-else> |
| | | <el-button @click="emitParent(row)" link type="primary" size="small">{{ $t('basicData.add') }}</el-button> |
| | | <el-button @click="emitParent(row,1)" link type="primary" size="small">{{ $t('basicData.add') }}</el-button> |
| | | <el-button @click="emitParent(row,2)" link type="primary" size="small">{{ $t('product.usingAbbreviations') }}</el-button> |
| | | </template> |
| | | |
| | | <template #num1_filter="{ column, $panel }"> |
| | |
| | | |
| | | @GetMapping |
| | | public List<User> getUser(){ |
| | | System.out.println(cacheUtil.getCacheData("admin")); |
| | | return userMapper.findAll(); |
| | | } |
| | | @ApiOperation("登录") |