| | |
| | | |
| | | let basic = ref({ |
| | | basicType : ['',''], |
| | | input:'' |
| | | input:'', |
| | | nickname:'' |
| | | }) |
| | | let options=ref([ |
| | | { "label": t('orderBasicData.order'), |
| | |
| | | basic.value.basicType[0] = props.rowIndex.basicType |
| | | basic.value.basicType[1] = props.rowIndex.basicCategory |
| | | basic.value.input = props.rowIndex.basicName |
| | | basic.value.nickname = props.rowIndex.nickname |
| | | } |
| | | }) |
| | | |
| | |
| | | submitArr.basicType = basic.value.basicType[0] |
| | | submitArr.basicCategory = basic.value.basicType[1] |
| | | submitArr.basicName = basic.value.input |
| | | submitArr.nickname = basic.value.nickname |
| | | request.post(`/basicData/updateBasicData`, submitArr).then(res => { |
| | | if (res.data) { |
| | | ElMessage.success(t('basicData.msg.saveSuccess')) |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="4">{{ $t('mainBasicData.operateType') }}:</el-col> |
| | | <el-col :span="12"> |
| | | <el-input v-model="basic.nickname"/> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="4"></el-col> |
| | | <el-col :span="12"> |
| | | <el-button v-show="!props.rowIndex" @click="saveBasicData" type="primary">{{ $t('basicData.insert') }}</el-button> |
| | |
| | | {title: t('basicData.operate'), width: 110, slots: { default: 'button_slot' },fixed:"left",}, |
| | | {type: 'seq', title: t('basicData.number'), width: 80 ,fixed:"left",}, |
| | | {field:'basicName',title: t('orderBasicData.name')}, |
| | | {field:'nickname',title: t('mainBasicData.operateType')}, |
| | | {field:'createTime',title: t('basicData.creationTime')}, |
| | | |
| | | |
| | |
| | | thickness:'', |
| | | totalThickness:'', |
| | | typeId:'', |
| | | productAbbreviation:'', |
| | | creator:userInfo.user.userName |
| | | }) |
| | | |
| | |
| | | }) |
| | | |
| | | const saveProduct = () => { |
| | | console.log(productDetailList.value) |
| | | if(productDetailList.value.length===0){ |
| | | ElMessage.warning(t('product.msg.productLength')) |
| | | return |
| | |
| | | } |
| | | case 'hollow' :{ |
| | | productName+='*'+item.detail+"*" |
| | | console.log(item.detail.slice(0,-2)) |
| | | break |
| | | } |
| | | } |
| | | }) |
| | | productTotal.value.productName=productName |
| | | productTotal.value.productAbbreviation=productName.split("mm").join("") |
| | | let product = { |
| | | title: productTotal.value, |
| | | detail:productDetailList.value |
| | |
| | | clearable :placeholder="$t('product.msg.hollowGasType')" > |
| | | <el-option v-for="item in BasicData.hollowGasType" |
| | | :key="item.id" |
| | | :label="item.basicName" |
| | | :value="item.basicName" |
| | | :label="item.basicName+'('+item.nickname+')'" |
| | | :value="item.nickname" |
| | | /> |
| | | </el-select> |
| | | <el-select |
| | |
| | | clearable :placeholder="$t('product.msg.hollowType')" > |
| | | <el-option v-for="item in BasicData.hollowType" |
| | | :key="item.id" |
| | | :label="item.basicName" |
| | | :value="item.basicName" |
| | | :label="item.basicName+'('+item.nickname+')'" |
| | | :value="'('+item.nickname+')'" |
| | | /> |
| | | </el-select> |
| | | <el-select |
| | |
| | | clearable :placeholder="$t('product.msg.interlayerType')" > |
| | | <el-option v-for="item in BasicData.InterlayerType" |
| | | :key="item.id" |
| | | :label="item.basicName" |
| | | :value="item.basicName" |
| | | :label="item.basicName+'('+item.nickname+')'" |
| | | :value="'('+item.nickname+')'" |
| | | /> |
| | | </el-select> |
| | | <el-select |
| | |
| | | <el-button |
| | | @click = "updateInterlayer(index)" |
| | | size="small" |
| | | type="primary">{{ $t('product.msg.updateHollow') }}</el-button> |
| | | type="primary">{{ $t('product.msg.updateInterlayer') }}</el-button> |
| | | </el-col> |
| | | <el-col :span="4" v-show="item.detailType === 'hollow'"> |
| | | <el-button |
| | | @click = "updateHollow(index)" |
| | | size="small" |
| | | type="primary">{{ $t('product.msg.updateInterlayer') }}</el-button> |
| | | type="primary">{{ $t('product.msg.updateHollow') }}</el-button> |
| | | </el-col> |
| | | <el-col :span="16"> |
| | | <el-input |
| | |
| | | //第一次加载数据 |
| | | request.post(`/product/1/100/${productGlassTypeStore.GlassType}`,filterData.value).then((res) => { |
| | | if(res.code==200){ |
| | | console.log(res.data.data) |
| | | pageTotal.value=res.data.total |
| | | produceList = produceList.value.concat(deepClone(res.data.data)) |
| | | xGrid.value.reloadData(produceList) |
| | |
| | | {type: 'seq',fixed:"left", title: t('basicData.Number'), width: 80 }, |
| | | {field: 'id', title: t('basicData.number'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: false}, |
| | | {field: 'productName', title: t('product.productName'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: false}, |
| | | {field: 'productAbbreviation', title: '产品简称',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: false}, |
| | | {field: 'basicGlassType.typeName', title: t('product.typeName'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: false}, |
| | | {field: 'query', title: t('product.query'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: false}, |
| | | {field: 'remarks', title: t('basicData.remarks'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: false}, |
| | |
| | | private Integer id; |
| | | private String basicType; |
| | | private String basicName; |
| | | private String nickname; |
| | | private String basicCategory; |
| | | private LocalDate createTime; |
| | | private LocalDate updateTime; |
| | |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | private String productName; |
| | | private String productAbbreviation; |
| | | private String typeId; |
| | | private String typeName; |
| | | private Double totalThickness; |
| | |
| | | basicData.setBasicType(basicTypeList.get(0)); |
| | | basicData.setBasicCategory(basicTypeList.get(1)); |
| | | basicData.setBasicName(map.get("input").toString()); |
| | | basicData.setNickname(map.get("nickname").toString()); |
| | | basicDateMapper.insert(basicData); |
| | | } |
| | | return true; |
| | |
| | | JSONObject orderJson = new JSONObject(orderMap); |
| | | Order order = JSONObject.parseObject(JSONObject.toJSONString(orderJson.get("title")), Order.class); |
| | | Map<String,Object> map = new HashMap<>(); |
| | | if(order.getOrderId()!=null){ |
| | | if(order.getOrderId()!=null && !order.getOrderId().isEmpty()){ |
| | | map.put("data",0); |
| | | }else{ |
| | | map.put("data",orderMapper.selectOrder(order)); |
| | |
| | | <resultMap id="productMap" type="com.example.erp.entity.sd.Product" > |
| | | <id column="id" property="id"/> |
| | | <result column="product_name" property="productName"/> |
| | | <result column="product" property="productName"/> |
| | | <result column="product_abbreviation" property="productAbbreviation"/> |
| | | <result column="total_thickness" property="totalThickness"/> |
| | | <result column="thickness" property="thickness"/> |
| | | <result column="query" property="query"/> |
| | |
| | | <select id="defaultProduct" resultMap="productMap"> |
| | | select a.id , |
| | | a.product_name, |
| | | a.product_abbreviation, |
| | | a.total_thickness, |
| | | a.thickness, |
| | | a.query, |
| | |
| | | <if test="product.productName != null and product.productName != ''"> |
| | | and a.product_name like concat('%',#{product.productName},'%') |
| | | </if> |
| | | <if test="product.productAbbreviation != null and product.productAbbreviation != ''"> |
| | | and a.product_abbreviation like concat('%',#{product.productAbbreviation},'%') |
| | | </if> |
| | | <if test="product.basicGlassType.typeName != null and product.basicGlassType.typeName!= ''"> |
| | | and bgt.type_name like concat('%',#{product.basicGlassType.typeName},'%') |
| | | </if> |