|
@@ -22,6 +22,11 @@
|
|
|
<el-button type="primary" icon="edit" class="bt" @click="pd_lcdlistonClick">流程单查询</el-button>
|
|
<el-button type="primary" icon="edit" class="bt" @click="pd_lcdlistonClick">流程单查询</el-button>
|
|
|
<el-button type="primary" icon="edit" class="bt" @click="exportExcel">导出Excel</el-button>
|
|
<el-button type="primary" icon="edit" class="bt" @click="exportExcel">导出Excel</el-button>
|
|
|
<el-button type="primary" icon="edit" class="bt" @click="ygdy">超节损员工打印</el-button>
|
|
<el-button type="primary" icon="edit" class="bt" @click="ygdy">超节损员工打印</el-button>
|
|
|
|
|
+ 123
|
|
|
|
|
+ {{qwer}}
|
|
|
|
|
+ <p> {{yinjianhao['value']}}</p>
|
|
|
|
|
+ <p> 999</p>
|
|
|
|
|
+
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
@@ -283,7 +288,6 @@
|
|
|
</layout>
|
|
</layout>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import service from '@/utils/request'
|
|
import service from '@/utils/request'
|
|
|
import { writeXLSX } from 'xlsx'
|
|
import { writeXLSX } from 'xlsx'
|
|
@@ -401,8 +405,7 @@ const renew = async() => {
|
|
|
ElMessage({type: 'success',message: '更新成功'})
|
|
ElMessage({type: 'success',message: '更新成功'})
|
|
|
//更新成功刷新表格,获取最新的数据
|
|
//更新成功刷新表格,获取最新的数据
|
|
|
const res = await getTable({ date:cjsriqi.value, code: _code.value, limit: 9999, page: 1 });
|
|
const res = await getTable({ date:cjsriqi.value, code: _code.value, limit: 9999, page: 1 });
|
|
|
- console.log(res.data.data); // 调试数据
|
|
|
|
|
- tableData1.value = res.data.data.map((item) => ({
|
|
|
|
|
|
|
+ tableData1.value = res.data.map((item) => ({
|
|
|
...item,
|
|
...item,
|
|
|
csgd:
|
|
csgd:
|
|
|
parseFloat(item['target_rate']) - parseFloat(item['real_rate']) > 0
|
|
parseFloat(item['target_rate']) - parseFloat(item['real_rate']) > 0
|
|
@@ -471,7 +474,7 @@ const tableCols1 = [
|
|
|
{ label: '参与考核', prop: '考核', width: '110' ,sortable:'sortable'},
|
|
{ label: '参与考核', prop: '考核', width: '110' ,sortable:'sortable'},
|
|
|
{ label: '印件号', prop: 'jjcp_yjno', width: '70'},
|
|
{ label: '印件号', prop: 'jjcp_yjno', width: '70'},
|
|
|
{ label: '联数', prop: 'yj_ls', width: '70'},
|
|
{ label: '联数', prop: 'yj_ls', width: '70'},
|
|
|
- { label: '产品代号', prop: '成品编号', width: '110' ,sortable:'sortable'},
|
|
|
|
|
|
|
+ { label: '产品代号', prop: '成品编码', width: '110' ,sortable:'sortable'},
|
|
|
{ label: '产品名称', prop: '成品名称', width: '250' ,sortable:'sortable'},
|
|
{ label: '产品名称', prop: '成品名称', width: '250' ,sortable:'sortable'},
|
|
|
{ label: '实际投料', prop: '实际投料', width: '90'},
|
|
{ label: '实际投料', prop: '实际投料', width: '90'},
|
|
|
{ label: '计量单位', prop: '计量单位', width: '85'},
|
|
{ label: '计量单位', prop: '计量单位', width: '85'},
|
|
@@ -485,11 +488,11 @@ const tableCols1 = [
|
|
|
{ label: '工单无形损', prop: '工单无形损', width: '120',sortable:'sortable' },
|
|
{ label: '工单无形损', prop: '工单无形损', width: '120',sortable:'sortable' },
|
|
|
{ label: '材料废', prop: '材料废', width: '80' },
|
|
{ label: '材料废', prop: '材料废', width: '80' },
|
|
|
{ label: '零头处理', prop: '零头处理', width: '90'},
|
|
{ label: '零头处理', prop: '零头处理', width: '90'},
|
|
|
- { label: '外发废', prop: '外发废', width: '80' },
|
|
|
|
|
|
|
+ { label: '处发废', prop: '外发废', width: '80' },
|
|
|
{ label: '外摊废', prop: '分摊废', width: '80'},
|
|
{ label: '外摊废', prop: '分摊废', width: '80'},
|
|
|
{ label: '工单计划损耗', prop: '工单计划损耗', width: '110'},
|
|
{ label: '工单计划损耗', prop: '工单计划损耗', width: '110'},
|
|
|
{ label: '工单制程废', prop: 'zcfp', width: '100' },
|
|
{ label: '工单制程废', prop: 'zcfp', width: '100' },
|
|
|
- { label: '工单检验废', prop: '班组分摊质检废品', width: '100'},
|
|
|
|
|
|
|
+ { label: '工单检验废', prop: '工单质检废', width: '100'},
|
|
|
{ label: '年月', prop: 'date', width: '80'},
|
|
{ label: '年月', prop: 'date', width: '80'},
|
|
|
]
|
|
]
|
|
|
const tableCols2 = [
|
|
const tableCols2 = [
|
|
@@ -532,7 +535,7 @@ const handleNodeClick = async (node) => {
|
|
|
//全局客户编号
|
|
//全局客户编号
|
|
|
_code.value = code
|
|
_code.value = code
|
|
|
const res = await getTable({ date, code, limit: 9999, page: 1 });
|
|
const res = await getTable({ date, code, limit: 9999, page: 1 });
|
|
|
- console.log(res.data.data); // 调试数据
|
|
|
|
|
|
|
+ console.log(res.data); // 调试数据
|
|
|
tableData1.value = res.data.map((item) => ({
|
|
tableData1.value = res.data.map((item) => ({
|
|
|
...item,
|
|
...item,
|
|
|
csgd:
|
|
csgd:
|
|
@@ -545,7 +548,7 @@ const handleNodeClick = async (node) => {
|
|
|
} else {
|
|
} else {
|
|
|
const { date, code } = node;
|
|
const { date, code } = node;
|
|
|
const res = await getTable({ date, code: '', limit: 9999, page: 1 });
|
|
const res = await getTable({ date, code: '', limit: 9999, page: 1 });
|
|
|
- console.log(res.data.data); // 调试数据
|
|
|
|
|
|
|
+ console.log(res.data); // 调试数据
|
|
|
tableData1.value = res.data.map((item) => ({
|
|
tableData1.value = res.data.map((item) => ({
|
|
|
...item,
|
|
...item,
|
|
|
csgd:
|
|
csgd:
|
|
@@ -558,12 +561,19 @@ const handleNodeClick = async (node) => {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+const yinjianhao = ref('')
|
|
|
|
|
+
|
|
|
|
|
+const qwer = '852'
|
|
|
// 显示下方表格
|
|
// 显示下方表格
|
|
|
const showOrderSuperLossGy = async() => {
|
|
const showOrderSuperLossGy = async() => {
|
|
|
jjcp_yjno.value = currentRow.value['jjcp_yjno']
|
|
jjcp_yjno.value = currentRow.value['jjcp_yjno']
|
|
|
const { Gd_gdbh: order } = currentRow.value
|
|
const { Gd_gdbh: order } = currentRow.value
|
|
|
const yjno = jjcp_yjno.value
|
|
const yjno = jjcp_yjno.value
|
|
|
- console.log(yjno)
|
|
|
|
|
|
|
+ yjno.value = jjcp_yjno.value
|
|
|
|
|
+
|
|
|
|
|
+ console.log("order",order)
|
|
|
|
|
+ console.log("yjno",yjno)
|
|
|
const res = await getOrderSuperLossGy({ order,yjno })
|
|
const res = await getOrderSuperLossGy({ order,yjno })
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
const { data } = res
|
|
const { data } = res
|
|
@@ -576,6 +586,9 @@ const showOrderSuperLossGy = async() => {
|
|
|
: `${item.Gy0_gxmc}〖${item.Add_gxmc}〗`,
|
|
: `${item.Gy0_gxmc}〖${item.Add_gxmc}〗`,
|
|
|
}))
|
|
}))
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ yinjianhao.value = '666';
|
|
|
|
|
+ console.log(yinjianhao.value)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 定位
|
|
// 定位
|
|
@@ -584,7 +597,7 @@ const handleSearch = async() => {
|
|
|
//调用搜索接口
|
|
//调用搜索接口
|
|
|
const res = await getTable({ search:searchInfo.value,limit:999,page:1})
|
|
const res = await getTable({ search:searchInfo.value,limit:999,page:1})
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
- tableData1.value = res.data.data.map((item) => ({
|
|
|
|
|
|
|
+ tableData1.value = res.data.map((item) => ({
|
|
|
...item,
|
|
...item,
|
|
|
csgd:
|
|
csgd:
|
|
|
parseFloat(item['target_rate']) - parseFloat(item['real_rate']) > 0
|
|
parseFloat(item['target_rate']) - parseFloat(item['real_rate']) > 0
|