| | |
| | | import request from "@/utils/request" |
| | | import {ElMessage} from "element-plus" |
| | | import {changeFilterEvent,filterChanged} from "@/hook" |
| | | import SelectProduct from "@/views/sd/product/SelectProduct.vue"; |
| | | import {useI18n} from "vue-i18n" |
| | | const { t } = useI18n() |
| | | |
| | | const router = useRouter() |
| | | const route = useRoute() |
| | |
| | | showStatus: true |
| | | },//表头参数 |
| | | columns:[ |
| | | {title: '操作', width: 110, slots: { default: 'button_slot' },fixed:"left",}, |
| | | {field: 'orderNumber',width:120, title: '序号',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {title: t('basicData.operate'), width: 110, slots: { default: 'button_slot' },fixed:"left",}, |
| | | {field: 'orderNumber',width:120, title: t('order.OrderNum'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | //{field: 'orderDetail.buildingNumber',width:120, title: '楼号',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'orderDetail.productName',width:120, title: '成品名称',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'glassAddress',width:120, title: '标记',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'glassChild',width:120, title: '子产品',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.width',width:120, title: '成品宽',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.height',width:120, title: '成品高',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.shape',width:120, title: '形状',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'totalArea',width:120, title: '总尺寸',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'childWidth',width:120, title: '单片宽',editRender: { name: 'input'},filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'childHeight',width:120, title: '单片高',editRender: { name: 'input'},filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'area',width:120, title: '单片尺寸',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.quantity',width:120, title: '数量',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'process',width:120, title: '工艺流程',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'icon',width:120, title: '商标',editRender: { name: 'input'},filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.processingNote',width:120, title: '加工要求',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.remarks',width:120, title: '备注',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.edgingType',width:120, title: '磨边类型',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged} |
| | | {field: 'orderDetail.productName',width:120, title: t('order.product'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'glassAddress',width:120, title: t('craft.glassAddress'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'glassChild',width:120, title: t('craft.glassChild'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.width',width:120, title: t('craft.width'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.height',width:120, title: t('craft.height'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.shape',width:120, title: t('order.shape'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'totalArea',width:120, title: t('craft.totalArea'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'childWidth',width:120, title: t('craft.childWidth'),editRender: { name: 'input'},filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'childHeight',width:120, title: t('craft.childHeight'),editRender: { name: 'input'},filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'area',width:120, title: t('craft.area'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.quantity',width:120, title: t('order.quantity'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'process',width:120, title: t('craft.process'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'icon',width:120, title: t('order.icon'),editRender: { name: 'input'},filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.processingNote',width:120, title: t('order.processingNote'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.remarks',width:120, title: t('order.remarks'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged}, |
| | | {field: 'orderDetail.edgingType',width:120, title: t('order.edgingType'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true,filterMethod:filterChanged} |
| | | ],//表头按钮 |
| | | mergeCells: [ |
| | | /*{ row: 0, col: 1, rowspan: 4, colspan: 1 }, |
| | |
| | | ], |
| | | toolbarConfig: { |
| | | buttons: [ |
| | | {'code': 'remarks', 'name': '加工要求'}, |
| | | {'code': 'Craft', 'name': '订单详情',status: 'primary'}, |
| | | {'code': 'review', 'name': '审核',status: 'primary'}, |
| | | {'code': 'remarks', 'name': t('order.processingNote')}, |
| | | {'code': 'Craft', 'name': t('craft.orderDetail'),status: 'primary'}, |
| | | {'code': 'review', 'name': t('basicData.review'),status: 'primary'}, |
| | | ], |
| | | // import: false, |
| | | // export: true, |
| | |
| | | return[ |
| | | columns.map((column, columnIndex) => { |
| | | if (columnIndex === 0) { |
| | | return '合计:' |
| | | return t('basicData.total') |
| | | } |
| | | // if (props.tableProp.footList.includes(column.field)) { |
| | | // return sumNum(data, column.field) |
| | |
| | | if(res.data.order.processReview === 2 ){ |
| | | //gridOptions.toolbarConfig.buttons[2].disabled = false |
| | | gridOptions.toolbarConfig.buttons[2].code='reviews' |
| | | gridOptions.toolbarConfig.buttons[2].name='反审' |
| | | gridOptions.toolbarConfig.buttons[2].name=t('basicData.cancelReview') |
| | | |
| | | } |
| | | |
| | |
| | | if(res.code==200){ |
| | | gridOptions.toolbarConfig.buttons[2].disabled = true |
| | | if(state==2){ |
| | | ElMessage.success('审核成功!') |
| | | ElMessage.success(t('basicData.msg.reviewSuccess')) |
| | | }else if (state==0){ |
| | | ElMessage.success('反审成功!') |
| | | ElMessage.success(t('basicData.msg.cancelReviewSuccess')) |
| | | } |
| | | setTimeout(() =>{ |
| | | location.reload() |
| | | },1500) |
| | | router.push({path:'/main/order/updateOrderCraft',query:{orderId:titleUploadData.value.orderId,random:Math.random()}}) |
| | | |
| | | }else{ |
| | | ElMessage.error(res.msg) |
| | |
| | | |
| | | <div class="order-primary" style="background-color: white"> |
| | | <el-row> |
| | | <el-col :span="4"><el-text>销售单号:</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{t('order.orderId')}}</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{titleUploadData.orderId}}</el-text></el-col> |
| | | <el-col :span="4"><el-text>客户名称:</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{t('customer.customerName')}}</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{titleUploadData.customerName}}</el-text></el-col> |
| | | <el-col :span="4"><el-text>项目名称:</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{t('order.project')}}</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{titleUploadData.project}}</el-text></el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="4"><el-text>订单批次:</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{t('order.batch')}}</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{titleUploadData.batch}}</el-text></el-col> |
| | | <el-col :span="4"><el-text>订单类型:</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{t('order.orderType')}}</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{ titleUploadData.orderType }}</el-text></el-col> |
| | | <el-col :span="4"><el-text>业务员</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{t('order.salesman')}}</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{titleUploadData.salesman}}</el-text></el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="4"><el-text>包装方式:</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{t('order.packType')}}</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{titleUploadData.packType}}</el-text></el-col> |
| | | <el-col :span="4"><el-text>交货日期:</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{t('order.deliveryDate')}}</el-text></el-col> |
| | | <el-col :span="4"><el-text>{{titleUploadData.deliveryDate}}</el-text></el-col> |
| | | </el-row> |
| | | </div> |
| | |
| | | |
| | | <!--左边固定显示的插槽--> |
| | | <template #button_slot="{ row }"> |
| | | <el-button @click="updateCraft(row)" link type="primary" size="small">修改工艺</el-button> |
| | | <el-button @click="updateCraft(row)" link type="primary" size="small">{{t('craft.updateCraft')}}</el-button> |
| | | </template> |
| | | |
| | | <template #num1_filter="{ column, $panel }"> |
| | |
| | | </vxe-grid> |
| | | |
| | | </div> |
| | | <el-dialog v-model="dialogTableVisible" title="加工要求" style="width: 60%;height:75% "> |
| | | <el-dialog v-model="dialogTableVisible" :title="$t('order.processingNote')" style="width: 60%;height:75% "> |
| | | <el-input |
| | | v-model="titleUploadData.processingNote" |
| | | type="textarea" |
| | |
| | | /> |
| | | </el-dialog> |
| | | |
| | | <el-dialog v-model="craftVisible" title="工艺流程" style="width: 60%;height:60% ;position: relative;" > |
| | | <h5>工艺属性</h5> |
| | | <el-dialog v-model="craftVisible" :title="$t('craft.technologicalProcess')" style="width: 60%;height:60% ;position: relative;" > |
| | | <h5>{{$t('craft.processAttribute')}}</h5> |
| | | <el-checkbox |
| | | v-model="craftObj.newCraft" |
| | | v-for="item in process" |
| | |
| | | <el-row style="width: 90%;border: 0;position: absolute;bottom: 1rem; left: 50%;transform: translateX(-50%);"> |
| | | |
| | | <span class="ml-3 w-35 text-gray-600 inline-flex items-center" |
| | | >原流程: |
| | | >{{$t('craft.oldProcess')}}: |
| | | </span> |
| | | <el-input :value="oldCraftComputed" disabled class="w-50 m-2" /> |
| | | <span class="ml-3 w-35 text-gray-600 inline-flex items-center" |
| | | >流程: |
| | | >{{$t('craft.newProcess')}}: |
| | | </span> |
| | | <el-input :value="newCraftComputed" disabled class="w-50 m-2" /> |
| | | <el-col style="margin-top: 0.5rem"> |
| | | <el-button type="primary" @click="resetCraft">重置</el-button> |
| | | <el-button type="primary" @click="saveCraft">保存</el-button> |
| | | <el-button type="primary" @click="resetCraft">{{$t('craft.reset')}}</el-button> |
| | | <el-button type="primary" @click="saveCraft">{{$t('basicData.save')}}</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | |