|
|
@@ -885,14 +885,14 @@
|
|
|
<el-table-column type="selection" width="55" />
|
|
|
<!-- <el-table-column align="left" label="选择" prop="工单编号" width="100"/> -->
|
|
|
<el-table-column fixed align="left" sortable label="产品名称" prop="产品名称" width="200"/>
|
|
|
- <el-table-column fixed align="left" label="工序" prop="工序" width="100"/>
|
|
|
- <el-table-column fixed align="left" label="产量" prop="产量" width="70"/>
|
|
|
+ <el-table-column fixed align="left" label="工序" prop="工序" width="170"/>
|
|
|
+ <el-table-column fixed align="left" label="产量" prop="产量" width="100"/>
|
|
|
<el-table-column align="left" label="千件工价" prop="千件工价" width="85"/>
|
|
|
<el-table-column align="left" label="日定额" prop="日定额" width="85"/>
|
|
|
<el-table-column align="left" label="补产标准" prop="补产标准" width="85"/>
|
|
|
<el-table-column align="left" label="难度系数" prop="难度系数" width="85"/>
|
|
|
<el-table-column align="left" label="印刷方式" prop="印刷方式" width="85"/>
|
|
|
- <el-table-column align="left" label="备注" prop="备注" width="100"/>
|
|
|
+ <el-table-column align="left" label="备注" prop="备注" width="200"/>
|
|
|
<el-table-column align="left" label="组员1" prop="组员1" width="170" />
|
|
|
<el-table-column align="left" label="组员2" prop="组员2" width="170" />
|
|
|
<el-table-column align="left" label="组员3" prop="组员3" width="170" />
|
|
|
@@ -2337,7 +2337,7 @@ import Shebeizhuangtai from '@/view/performance/09-workOrderVerification/compone
|
|
|
import { getDictFunc, formatDate, formatBoolean, filterDict, ReturnArrImg, onDownloadFile } from '@/utils/format'
|
|
|
import { Layout, LayoutContent, LayoutHeader, LayoutSider } from '@arco-design/web-vue'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
-import { ref, reactive } from 'vue'
|
|
|
+import { ref, reactive,watch } from 'vue'
|
|
|
import { useUserStore } from '@/pinia/modules/user'
|
|
|
import PrintPage from './components/print.vue'
|
|
|
|
|
|
@@ -3610,6 +3610,7 @@ const onADD = async() => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
//班组产量提报 获取当天日期接口
|
|
|
const getTimelistss = async () => {
|
|
|
const getTimelistss = await getTimelist();
|
|
|
@@ -5289,6 +5290,22 @@ const initfordata3 = () => {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+initfordata3()
|
|
|
+for (let i = 1; i <= 10; i++) {
|
|
|
+ (function(index) {
|
|
|
+ watch(
|
|
|
+ () => formdata3.value[`组员${index}`].编号,
|
|
|
+ (newVal, oldVal) => {
|
|
|
+ if (!newVal) {
|
|
|
+ formdata3.value[`组员${index}`].姓名 = '';
|
|
|
+ formdata3.value[`组员${index}`].比例 = '';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ );
|
|
|
+ })(i); // 使用立即执行的函数表达式(IIFE)来捕获当前的i值
|
|
|
+}
|
|
|
+
|
|
|
function gytableDatadoubleClick(row, column, event) {
|
|
|
console.log(row)
|
|
|
type2.value="update"
|
|
|
@@ -5556,15 +5573,17 @@ const employeeDatalist = ref('')
|
|
|
const Special = ref('')
|
|
|
const GetYg = async (value,key) => {
|
|
|
Special.value = key
|
|
|
+
|
|
|
let bzyg=''
|
|
|
bzyg=`组员${key}`
|
|
|
let bzxm=''
|
|
|
bzxm=`组员${key}`
|
|
|
+
|
|
|
// console.log(formdata3.value[bzyg]['编号'])
|
|
|
|
|
|
const response = await getYg({sczl_bh:formdata3.value[bzyg]['编号']});
|
|
|
// console.log(response)
|
|
|
-
|
|
|
+ formdata3.value[bzyg]['编号'] = ""
|
|
|
if (response.code === 0) {
|
|
|
if(response.data.length === 1){
|
|
|
formdata3.value[bzxm]['姓名'] = response.data[0].ygxm
|
|
|
@@ -5575,6 +5594,7 @@ const GetYg = async (value,key) => {
|
|
|
employeeDatalist.value = response.data // 假设响应数据是数组
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
const clickedlist = ref(false);
|
|
|
@@ -5584,7 +5604,7 @@ const tablebllickHandlerlist = async (row, column, event) => {
|
|
|
return;
|
|
|
}
|
|
|
let nextIndex = 1;
|
|
|
- while (formdata3.value[`组员${nextIndex}`]['编号'] !== '') {
|
|
|
+ while (formdata3.value[`组员${nextIndex}`]['编号'] !== '' && formdata3.value[`组员${nextIndex}`]['姓名'] !== '') {
|
|
|
nextIndex++;
|
|
|
if (nextIndex > 10) {
|
|
|
// 如果所有字段都已经填满,则不做任何事情并退出函数
|