zck 8 сар өмнө
parent
commit
0d014e293e

+ 9 - 7
src/view/yunyin/shengchanguanli/gongdanziliao.vue

@@ -222,7 +222,7 @@
                           style="width: 100%;height: 36vh" border tooltip-effect="dark" :data="bomtableData" row-key="ID">
                  <!-- <el-table-column type="selection" width="30" /> -->
                   <el-table-column align="left" label="订单编号" prop="订单编号"  width="105"/>
-				  <el-table-column align="left" label="面料分类" prop="BOM_desc"  width="100"/>
+				  <el-table-column align="left" label="物料分类" prop="物料分类"  width="100"/>
 				  <!-- <el-table-column align="left" label="客户编号" prop="客户编号"  width="90"/>
 				  <el-table-column align="left" label="生产款号" prop="生产款号"  width="100"/>
 				  <el-table-column align="left" label="款式" prop="款式"  width="90"/> -->
@@ -711,7 +711,7 @@
 				    <el-table-column #default="{ row, column, $index }" align="left" :label="item.label" :width="item.width">
 				      
 				      <!-- 如果是物料名称且UNIQID没有值,则显示输入框,否则显示内容 -->
-				      <div v-if="item.prop === '物料名称' || item.prop === 'BOM_desc'">
+				      <div v-if="item.prop === '物料名称'">
 				        <el-input
 				          v-if="!row.UNIQID" 
 				          v-model="row[item.prop]"
@@ -723,7 +723,7 @@
 				      </div>
 				
 				      <!-- 其他列的处理 -->
-				      <div v-else-if="['计划用料', '定额用料', '计划门幅', '定额门幅', '备注'].includes(item.prop)">
+				      <div v-else-if="['物料分类','计划用料', '定额用料', '计划门幅', '定额门幅', '备注'].includes(item.prop)">
 				        <el-input
 				          v-model="row[item.prop]"
 				          :clearable="false"
@@ -1464,7 +1464,8 @@ const handleNodeClick = async (node) => {
 // 删除
 const deleteItem = async (row) => {
 	console.log(row)
-	if(row.sys_id.split('/'[1])===_username.value.split('/')[1]||_username.value.split('/')[0] === '超级管理员'){
+	console.log(_username.value.split('/')[0])
+	if(row.sys_id.split('/'[1])===_username.value.split('/')[1]||_username.value.split('/')[1] === '超级管理员'){
 		ElMessageBox.confirm('确定删除此行数据吗?', '提示', {
 	    confirmButtonText: '确定',
 	    cancelButtonText: '取消',
@@ -1546,7 +1547,7 @@ const updateCompanyFunc = async (row) => {
 
 //订单资料修改确认
 const dd_edit_Dialog = async () => {
-	if(edit_ddformData.value.Sys_id.split('/')[1]===_username.value.split('/')[1]||_username.value.split('/')[0] === '超级管理员'){
+	if(edit_ddformData.value.Sys_id.split('/')[1]===_username.value.split('/')[1]||_username.value.split('/')[1] === '超级管理员'){
 //日期转换
 let lhrq_formattedDeliveryDate = '';  
 	if (edit_ddformData.value.落货日期) {  
@@ -2456,7 +2457,7 @@ const ddhformData = reactive({
 });
 const resbom_tableColumns = ref(
     [
-	  { label: '物料分类', prop: 'BOM_desc', width: '130' },
+	  { label: '物料分类', prop: '物料分类', width: '130' },
       { label: '物料名称', prop: '物料名称', width: '300' },
       { label: '计划用料', prop: '计划用料', width: '130' },
 	  { label: '计划门幅', prop: '计划门幅', width: '130' },
@@ -2491,7 +2492,7 @@ const BOMclick = () => {
 }
 
 const handleInput = (value, row, prop) => {
-	if(prop != "物料名称" && prop != "备注" ){
+	if(prop != "物料名称" && prop != "备注" && prop != "物料分类" ){
 		// 使用正则表达式过滤非数字和小数点的字符
 		let filteredValue = value.replace(/[^\d.]/g, '');
 
@@ -2659,6 +2660,7 @@ const res_bomenterDialog = async () => {
 	  return {
 		BOM_工单编号: ddhformData['ddh'],
 		UNIQID: item.UNIQID !== undefined ? item.UNIQID : "",
+		物料分类: item.物料分类 !== null ? item.物料分类 : "",
 		BOM_物料名称: item.物料名称 !== null ? item.物料名称 : "",
 		BOM_计划用量: item.计划用料 !== null ? item.计划用料 : "",
 		BOM_标准用量: item.定额用料 !== null ? item.定额用料 : "",

+ 4 - 4
src/view/yunyin/shengchanguanli/yangyipihe.vue

@@ -88,7 +88,7 @@
             </el-tabs>
 			</div>
 				<!-- 状态更改弹窗 -->
-				<el-dialog v-model="dialogVisible" title="状态更改">
+				<el-dialog v-model="dialogVisible" title="状态更改" style="width: 45vh;height: 25vh;">
 				<el-radio-group v-model="selectedStatus" >
 					<el-radio 
 					v-for="item in statusOptions"
@@ -98,9 +98,9 @@
 					{{ item.label }}
 					</el-radio>
 				</el-radio-group>
-				<template #footer>
-					<el-button @click="dialogVisible = false">取消</el-button>
-					<el-button type="primary" @click="handleStatusConfirm">确认</el-button>
+				<template #footer >
+					<el-button style="margin-top: 70px;" @click="dialogVisible = false">取消</el-button>
+					<el-button style="margin-top: 70px;"type="primary" @click="handleStatusConfirm">确认</el-button>
 				</template>
 				</el-dialog>
 		  <!-- </el-main> -->