|
@@ -14,9 +14,9 @@
|
|
|
<el-button type="primary" icon="edit" @click="addgdyj_onclick" class="bt" title="新增颜色资料">新增颜色资料</el-button>
|
|
<el-button type="primary" icon="edit" @click="addgdyj_onclick" class="bt" title="新增颜色资料">新增颜色资料</el-button>
|
|
|
<el-button type="primary" icon="edit" @click="addgdgy_onclick" class="bt" title="新增工序资料" >新增工序资料</el-button>
|
|
<el-button type="primary" icon="edit" @click="addgdgy_onclick" class="bt" title="新增工序资料" >新增工序资料</el-button>
|
|
|
<el-button type="primary" icon="edit" @click="BOMclick" class="bt" title="BOM面料">批量修改BOM资料</el-button>
|
|
<el-button type="primary" icon="edit" @click="BOMclick" class="bt" title="BOM面料">批量修改BOM资料</el-button>
|
|
|
- <el-button type="primary" icon="edit" @click="del_ddzlClick" v-if="table_del=== true" :disabled="table_Selection === ''" class="bt" title="删除订单资料" >删除订单资料</el-button>
|
|
|
|
|
- <el-button type="primary" icon="edit" @click="delgd_delclick" v-if="delall=== true" :disabled="ysSelection === '' && gySelection === ''" class="bt" >删除颜色工艺资料</el-button>
|
|
|
|
|
- <el-button type="primary" icon="edit" @click="delbom_delclick" v-if="del_bom=== true" :disabled="bom_Selection === '' " class="bt" >删除bom资料</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" icon="edit" @click="del_ddzlClick" v-if="table_del=== true" :disabled="table_Selection === ''" class="bt" title="选中复选框进行删除订单数据">删除订单资料</el-button>
|
|
|
|
|
+ <el-button type="primary" icon="edit" @click="delgd_delclick" v-if="delall=== true" :disabled="ysSelection === '' && gySelection === ''" class="bt" title="选中复选框进行删除颜色数据">删除颜色资料</el-button>
|
|
|
|
|
+ <el-button type="primary" icon="edit" @click="delbom_delclick" v-if="del_bom=== true" :disabled="bom_Selection === '' " class="bt" title="选中复选框进行删除bom数据">删除bom资料</el-button>
|
|
|
|
|
|
|
|
<!-- <el-button type="primary" icon="edit" @click="CSclick" class="bt" title="库存测试">库存测试</el-button> -->
|
|
<!-- <el-button type="primary" icon="edit" @click="CSclick" class="bt" title="库存测试">库存测试</el-button> -->
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -46,15 +46,15 @@
|
|
|
:cell-class-name="tableDataCellClass"
|
|
:cell-class-name="tableDataCellClass"
|
|
|
@row-click="tableRowClick" @row-dblclick="updateCompanyFunc"
|
|
@row-click="tableRowClick" @row-dblclick="updateCompanyFunc"
|
|
|
@selection-change="ddzlSelectionChange" :show-overflow-tooltip="true">
|
|
@selection-change="ddzlSelectionChange" :show-overflow-tooltip="true">
|
|
|
- <el-table-column align="center" type="selection" width="30"/>
|
|
|
|
|
|
|
+ <el-table-column align="center" type="selection" width="40"/>
|
|
|
<el-table-column align="center" label="附件状态" prop="status" width="100" />
|
|
<el-table-column align="center" label="附件状态" prop="status" width="100" />
|
|
|
- <el-table-column align="left" sortable label="订单编号" prop="订单编号" width="105" />
|
|
|
|
|
|
|
+ <el-table-column align="left" sortable label="订单编号" prop="订单编号" width="110" />
|
|
|
<el-table-column align="left" sortable label="客户" prop="客户编号" width="80" />
|
|
<el-table-column align="left" sortable label="客户" prop="客户编号" width="80" />
|
|
|
<el-table-column align="left" sortable label="生产款号" prop="生产款号" width="110" />
|
|
<el-table-column align="left" sortable label="生产款号" prop="生产款号" width="110" />
|
|
|
<el-table-column align="left" sortable label="款式" prop="款式" width="100"/>
|
|
<el-table-column align="left" sortable label="款式" prop="款式" width="100"/>
|
|
|
- <el-table-column align="left" sortable label="订单数量" prop="订单数量" width="105" />
|
|
|
|
|
|
|
+ <el-table-column align="left" sortable label="订单数量" prop="订单数量" width="110" />
|
|
|
<el-table-column align="left" sortable label="落货日期" prop="落货日期" width="120" />
|
|
<el-table-column align="left" sortable label="落货日期" prop="落货日期" width="120" />
|
|
|
- <el-table-column align="left" sortable label="船样合计" prop="船样合计" width="105" />
|
|
|
|
|
|
|
+ <el-table-column align="left" sortable label="船样合计" prop="船样合计" width="110" />
|
|
|
<el-table-column align="left" sortable label="船样描述" prop="船样描述" width="140" />
|
|
<el-table-column align="left" sortable label="船样描述" prop="船样描述" width="140" />
|
|
|
<el-table-column align="left" sortable label="单位" prop="单位" width="80" />
|
|
<el-table-column align="left" sortable label="单位" prop="单位" width="80" />
|
|
|
<el-table-column align="left" sortable label="面料" prop="面料" width="130" />
|
|
<el-table-column align="left" sortable label="面料" prop="面料" width="130" />
|
|
@@ -95,8 +95,8 @@
|
|
|
<el-table-column type="selection" width="30" />
|
|
<el-table-column type="selection" width="30" />
|
|
|
<el-table-column align="left" sortable label="子订单编号" prop="子订单编号" width="140"/>
|
|
<el-table-column align="left" sortable label="子订单编号" prop="子订单编号" width="140"/>
|
|
|
<el-table-column align="left" sortable label="PO号 " prop="款号" width="180"/>
|
|
<el-table-column align="left" sortable label="PO号 " prop="款号" width="180"/>
|
|
|
- <el-table-column align="left" sortable label="颜色备注" prop="颜色备注" width="105"/>
|
|
|
|
|
- <el-table-column align="left" sortable label="色系名称" prop="颜色" width="105"/>
|
|
|
|
|
|
|
+ <el-table-column align="left" sortable label="颜色备注" prop="颜色备注" width="110"/>
|
|
|
|
|
+ <el-table-column align="left" sortable label="色系名称" prop="颜色" width="110"/>
|
|
|
<el-table-column align="left" sortable label="船样" prop="船样" width="80"/>
|
|
<el-table-column align="left" sortable label="船样" prop="船样" width="80"/>
|
|
|
<!-- 尺码列表 -->
|
|
<!-- 尺码列表 -->
|
|
|
<template v-for="item in sizeDatas">
|
|
<template v-for="item in sizeDatas">
|
|
@@ -193,13 +193,13 @@
|
|
|
@selection-change="bomSelectionChange"
|
|
@selection-change="bomSelectionChange"
|
|
|
style="width: 100%;height: 36vh" border tooltip-effect="dark" :data="bomtableData" row-key="ID">
|
|
style="width: 100%;height: 36vh" border tooltip-effect="dark" :data="bomtableData" row-key="ID">
|
|
|
<el-table-column type="selection" width="30" />
|
|
<el-table-column type="selection" width="30" />
|
|
|
- <el-table-column align="left" label="订单编号" prop="订单编号" width="105"/>
|
|
|
|
|
|
|
+ <el-table-column align="left" label="订单编号" prop="订单编号" width="110"/>
|
|
|
<el-table-column align="left" label="物料名称" prop="物料名称" width="170"/>
|
|
<el-table-column align="left" label="物料名称" prop="物料名称" width="170"/>
|
|
|
- <el-table-column align="left" label="计划用料" prop="计划用料" width="100" />
|
|
|
|
|
- <el-table-column align="left" label="计划门幅" prop="计划门幅" width="100"/>
|
|
|
|
|
|
|
+ <el-table-column align="left" label="计划用料" prop="计划用料" width="110" />
|
|
|
|
|
+ <el-table-column align="left" label="计划门幅" prop="计划门幅" width="110"/>
|
|
|
<el-table-column align="left" label="定额用料" prop="定额用料" width="90"/>
|
|
<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="100"/>
|
|
|
|
|
|
|
+ <el-table-column align="left" label="定额门幅" prop="定额门幅" width="110"/>
|
|
|
|
|
+ <el-table-column align="left" label="实际门幅" prop="实际门幅" width="110"/>
|
|
|
<el-table-column align="left" label="单位" prop="投料单位" width="60"/>
|
|
<el-table-column align="left" label="单位" prop="投料单位" width="60"/>
|
|
|
<el-table-column align="left" label="备注" prop="备注" width="180"/>
|
|
<el-table-column align="left" label="备注" prop="备注" width="180"/>
|
|
|
<el-table-column align="left" label="更新用户" prop="ID" width="160"/>
|
|
<el-table-column align="left" label="更新用户" prop="ID" width="160"/>
|
|
@@ -221,20 +221,20 @@
|
|
|
style="width: 100%;height: 36vh" border tooltip-effect="dark" :data="mltableData" row-key="ID" @selection-change="handleSelectionChange">
|
|
style="width: 100%;height: 36vh" border tooltip-effect="dark" :data="mltableData" row-key="ID" @selection-change="handleSelectionChange">
|
|
|
<!-- <el-table-column type="selection" width="30" />-->
|
|
<!-- <el-table-column type="selection" width="30" />-->
|
|
|
<el-table-column type="selection" width="30" />
|
|
<el-table-column type="selection" width="30" />
|
|
|
- <el-table-column align="left" label="物料编号" prop="物料编号" width="105"/>
|
|
|
|
|
- <el-table-column align="left" label="材料分类" prop="材料分类" width="100"/>
|
|
|
|
|
|
|
+ <el-table-column align="left" label="物料编号" prop="物料编号" width="110"/>
|
|
|
|
|
+ <el-table-column align="left" label="材料分类" prop="材料分类" width="110"/>
|
|
|
<el-table-column align="left" label="物料名称" prop="物料名称" width="170"/>
|
|
<el-table-column align="left" label="物料名称" prop="物料名称" width="170"/>
|
|
|
<el-table-column align="left" label="颜色" prop="颜色" width="100"/>
|
|
<el-table-column align="left" label="颜色" prop="颜色" width="100"/>
|
|
|
- <el-table-column align="left" label="计划用料" prop="计划用料" width="100" />
|
|
|
|
|
- <el-table-column align="left" label="计划门幅" prop="计划门幅" width="100"/>
|
|
|
|
|
|
|
+ <el-table-column align="left" label="计划用料" prop="计划用料" width="110" />
|
|
|
|
|
+ <el-table-column align="left" label="计划门幅" prop="计划门幅" width="110"/>
|
|
|
<el-table-column align="left" label="定额用料" prop="定额用料" width="90"/>
|
|
<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="100"/>
|
|
|
|
|
|
|
+ <el-table-column align="left" label="定额门幅" prop="定额门幅" width="110"/>
|
|
|
|
|
+ <el-table-column align="left" label="实际门幅" prop="实际门幅" width="110"/>
|
|
|
<el-table-column align="left" label="裁床实际用料" prop="裁床实际用料" width="120"/>
|
|
<el-table-column align="left" label="裁床实际用料" prop="裁床实际用料" width="120"/>
|
|
|
<el-table-column align="left" label="裁床领用面料" prop="裁床领用面料" width="120"/>
|
|
<el-table-column align="left" label="裁床领用面料" prop="裁床领用面料" width="120"/>
|
|
|
<el-table-column align="left" label="裁床退回仓库面料" prop="裁床退回仓库面料" width="140"/>
|
|
<el-table-column align="left" label="裁床退回仓库面料" prop="裁床退回仓库面料" width="140"/>
|
|
|
- <el-table-column align="left" label="入库总量" prop="入库总量" width="90"/>
|
|
|
|
|
- <el-table-column align="left" label="面料结余" prop="面料结余" width="90"/>
|
|
|
|
|
|
|
+ <el-table-column align="left" label="入库总量" prop="入库总量" width="110"/>
|
|
|
|
|
+ <el-table-column align="left" label="面料结余" prop="面料结余" width="110"/>
|
|
|
<el-table-column align="left" label="单位" prop="投料单位" width="60"/>
|
|
<el-table-column align="left" label="单位" prop="投料单位" width="60"/>
|
|
|
<el-table-column align="left" label="备注" prop="备注" width="180"/>
|
|
<el-table-column align="left" label="备注" prop="备注" width="180"/>
|
|
|
<el-table-column align="left" label="更新用户" prop="ID" width="160"/>
|
|
<el-table-column align="left" label="更新用户" prop="ID" width="160"/>
|
|
@@ -535,17 +535,21 @@
|
|
|
<el-table-column align="left" label="物料名称" prop="物料名称" width="170"/>
|
|
<el-table-column align="left" label="物料名称" prop="物料名称" width="170"/>
|
|
|
<el-table-column align="left" label="计划门幅" prop="计划门幅" width="90"/>
|
|
<el-table-column align="left" label="计划门幅" prop="计划门幅" width="90"/>
|
|
|
<el-table-column align="left" label="定额门幅" prop="定额门幅" width="90"/>
|
|
<el-table-column align="left" label="定额门幅" prop="定额门幅" width="90"/>
|
|
|
- <el-table-column align="left" label="款式" prop="款式" width="110"/>
|
|
|
|
|
- <el-table-column align="left" label="入库总量" prop="入库总量" width="90"/>
|
|
|
|
|
- <el-table-column align="left" label="面料结余" prop="面料结余" width="90"/>
|
|
|
|
|
- <el-table-column align="left" label="单位" prop="投料单位" width="60"/>
|
|
|
|
|
- <el-table-column align="left" label="裁床实际用料" prop="裁床实际用料" width="110"/>
|
|
|
|
|
- <el-table-column align="left" label="裁床领用面料" prop="裁床领用面料" width="110"/>
|
|
|
|
|
- <el-table-column align="left" label="裁床退回仓库面料" prop="裁床退回仓库面料" width="140"/>
|
|
|
|
|
- <el-table-column align="left" label="备注" prop="备注" width="180"/>
|
|
|
|
|
- <!-- <el-table-column align="left" label="客户编号" prop="客户编号" width="100" /> -->
|
|
|
|
|
- <!-- <el-table-column align="left" label="id" prop="ID" width="100"/> -->
|
|
|
|
|
- <!-- <el-table-column align="left" label="UNIQID" prop="UNIQID" width="80"/> -->
|
|
|
|
|
|
|
+ <el-table-column align="left" label="款式" prop="款式" width="110" />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ fixed="right"
|
|
|
|
|
+ label="操作"
|
|
|
|
|
+ width="120">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ @click.native.prevent="deleteRow(scope.$index, zsglddtableData)"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ size="small">
|
|
|
|
|
+ 移除
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<!-- 底部操作按钮 -->
|
|
<!-- 底部操作按钮 -->
|
|
|
<template #footer>
|
|
<template #footer>
|
|
@@ -1174,7 +1178,9 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
-
|
|
|
|
|
|
|
+ deleteRow(index, rows) {
|
|
|
|
|
+ rows.splice(index, 1);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
@@ -1692,9 +1698,21 @@ const add_gdscgdformData = reactive({
|
|
|
合并: false,
|
|
合并: false,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+let isClickable = true;
|
|
|
const add_gddialogFormVisible = ref(false)
|
|
const add_gddialogFormVisible = ref(false)
|
|
|
//点击新增订单资料按钮
|
|
//点击新增订单资料按钮
|
|
|
const addgd_onclick = async () => {
|
|
const addgd_onclick = async () => {
|
|
|
|
|
+ if (!isClickable) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ // 禁用按钮
|
|
|
|
|
+ isClickable = false;
|
|
|
|
|
+
|
|
|
|
|
+ // 设置定时器,2 秒后重新启用按钮
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ isClickable = true;
|
|
|
|
|
+ }, 2000);
|
|
|
|
|
+
|
|
|
console.log("用户信息", _username.value);
|
|
console.log("用户信息", _username.value);
|
|
|
// 判断客户代号是否为空
|
|
// 判断客户代号是否为空
|
|
|
if (!_Gd_khdh.value) {
|
|
if (!_Gd_khdh.value) {
|
|
@@ -2722,20 +2740,39 @@ const ddzlSelectionChange = (selection, type) => {
|
|
|
table_Selection.value = ids.join(',')
|
|
table_Selection.value = ids.join(',')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-//删除按钮
|
|
|
|
|
|
|
+// 删除按钮
|
|
|
const del_ddzlClick = async () => {
|
|
const del_ddzlClick = async () => {
|
|
|
- let params = {};
|
|
|
|
|
- params.Uniqid = table_Selection._value;
|
|
|
|
|
- console.log(params)
|
|
|
|
|
- const res1 = await orderDataDel(params)
|
|
|
|
|
- res1.code === 0 && ElMessage.success('删除成功')
|
|
|
|
|
- const WorkListdata = await WorkOrderList({search:_Gd_khdh.value,page:"1",limit:"10"});
|
|
|
|
|
- tableData.value= WorkListdata.data.data
|
|
|
|
|
- ystableData.splice(0, ystableData.length);//颜色资料清空
|
|
|
|
|
- gytableData.splice(0, gytableData.length);//工艺资料情空
|
|
|
|
|
- ddtableData.splice(0, ddtableData.length);//订单资料附件清空
|
|
|
|
|
- jstableData.splice(0, jstableData.length);//技术附件清空
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ // 显示确认弹窗
|
|
|
|
|
+ await ElMessageBox.confirm('确定要删除这条记录吗?', '提示', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ // 如果用户点击了确定
|
|
|
|
|
+ let params = {};
|
|
|
|
|
+ params.Uniqid = table_Selection._value;
|
|
|
|
|
+ console.log(params);
|
|
|
|
|
+ const res1 = await orderDataDel(params);
|
|
|
|
|
+ if (res1.code === 0) {
|
|
|
|
|
+ ElMessage.success('删除成功');
|
|
|
|
|
+
|
|
|
|
|
+ // 重新加载工单列表
|
|
|
|
|
+ const WorkListdata = await WorkOrderList({ search: _Gd_khdh.value, page: "1", limit: "10" });
|
|
|
|
|
+ tableData.value = WorkListdata.data.data;
|
|
|
|
|
+
|
|
|
|
|
+ // 清空相关数据
|
|
|
|
|
+ ystableData.splice(0, ystableData.length); // 颜色资料清空
|
|
|
|
|
+ gytableData.splice(0, gytableData.length); // 工艺资料清空
|
|
|
|
|
+ ddtableData.splice(0, ddtableData.length); // 订单资料附件清空
|
|
|
|
|
+ jstableData.splice(0, jstableData.length); // 技术附件清空
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ // 用户点击了取消或关闭了弹窗
|
|
|
|
|
+ ElMessage.info('删除操作已取消');
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
|
|
|
|
|
const delall = ref(true)
|
|
const delall = ref(true)
|