|
|
@@ -42,158 +42,146 @@
|
|
|
<el-col :span="2"><el-input v-model="add_formData['人员']" readonly style="width: 100%; height: 40px;"/></el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-row :gutter="0">
|
|
|
- <el-col :span="2.5"><el-text style="font-size: 30px;margin-left: 90px;">尺 码</el-text></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmformdata.cm1" id="cm1" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmformdata.cm2" id="cm2" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmformdata.cm3" id="cm3" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmformdata.cm4" id="cm4" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmformdata.cm5" id="cm5" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmformdata.cm6" id="cm6" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmformdata.cm7" id="cm7" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmformdata.cm8" id="cm8" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmformdata.cm9" id="cm9" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmformdata.cm10" id="cm10" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1"><el-input v-model="cmformdata.cm11" id="cm11" readonly style="width: 80px;height: 40px;" /></el-col>
|
|
|
- <el-button type="danger" icon="delete" @click="del_delclick"
|
|
|
- v-if="delall === true" :disabled="Selection === ''"
|
|
|
- :style="{
|
|
|
- backgroundColor: Selection === '' ? '' : 'red',
|
|
|
- borderColor: Selection === '' ? '' : 'red',
|
|
|
- color: Selection === '' ? '' : '#fff'
|
|
|
- }"
|
|
|
- style="width:104px;height: 50px; font-size: 20px;margin: 0px 10px 10px 60px">删除报工</el-button>
|
|
|
- </el-row>
|
|
|
-
|
|
|
-
|
|
|
- <el-row :gutter="0">
|
|
|
- <el-col :span="2.5"><el-text style="font-size: 30px;margin-left: 70px;">制单数</el-text></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmslformdata.cmsl1" id="zdsc1" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmslformdata.cmsl2" id="zdsc2" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmslformdata.cmsl3" id="zdsc3" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmslformdata.cmsl4" id="zdsc4" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmslformdata.cmsl5" id="zdsc5" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmslformdata.cmsl6" id="zdsc6" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmslformdata.cmsl7" id="zdsc7" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmslformdata.cmsl8" id="zdsc8" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmslformdata.cmsl9" id="zdsc9" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="cmslformdata.cmsl10" id="zdsc10" readonly style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1"><el-input v-model="cmslformdata.zdtotal" id="zdtotal" readonly style="width: 80px;height: 40px;" /></el-col>
|
|
|
- <el-button type="primary" @click="gd_yulan" style="width: 100px;height: 55px;font-size: 20px;margin: 0px 10px 10px 60px">订单表预览</el-button>
|
|
|
- </el-row>
|
|
|
-
|
|
|
- <el-row :gutter="0">
|
|
|
- <el-col :span="2.5"><el-text style="font-size: 30px;margin-left: 10px;">新增实裁数</el-text></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="scsformdata.scs1" @input="updateTotal" id="scs1" style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="scsformdata.scs2" @input="updateTotal" id="scs2" style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="scsformdata.scs3" @input="updateTotal" id="scs3" style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="scsformdata.scs4" @input="updateTotal" id="scs4" style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="scsformdata.scs5" @input="updateTotal" id="scs5" style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="scsformdata.scs6" @input="updateTotal" id="scs6" style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="scsformdata.scs7" @input="updateTotal" id="scs7" style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="scsformdata.scs8" @input="updateTotal" id="scs8" style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="scsformdata.scs9" @input="updateTotal" id="scs9" style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1" style="padding: 0px;margin: 0px;"><el-input v-model="scsformdata.scs10" @input="updateTotal" id="scs10" style="width: 70px;height: 40px;" /></el-col>
|
|
|
- <el-col :span="1"><el-input v-model="scsformdata.sctotal" id="sctotal" readonly style="width: 80px;height: 40px;" /></el-col>
|
|
|
- <el-button type="primary" @click="add_Dialog"style="width: 100px;height: 50px;font-size: 20px;margin: 0px 0 0 60px">报工</el-button>
|
|
|
- </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="0">
|
|
|
+ <el-col :span="2.5">
|
|
|
+ <el-text style="font-size: 24px; margin-left: 70px;">尺 码 </el-text>
|
|
|
+ </el-col>
|
|
|
+ <el-col v-for="(item, index) in 10" :key="index" :span="1" style="padding: 0; margin: 0;">
|
|
|
+ <el-input v-model="cmformdata[`cm${index + 1}`]" :id="`cm${index + 1}`" readonly style="width: 70px; height: 40px;"/>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1"><el-input v-model="cmformdata.cmtotal" id="cmtotal" readonly style="width: 80px;height: 40px;" /></el-col>
|
|
|
+ </el-row>
|
|
|
|
|
|
+ <el-row :gutter="0">
|
|
|
+ <el-col :span="2.5">
|
|
|
+ <el-text style="font-size: 24px; margin-left: 53px;">制单数 </el-text>
|
|
|
+ </el-col>
|
|
|
+ <el-col v-for="(item, index) in 10" :key="index" :span="1" style="padding: 0; margin: 0;">
|
|
|
+ <el-input v-model="cmslformdata[`cmsl${index + 1}`]" :id="`cmsl${index + 1}`" readonly style="width: 70px; height: 40px;"/>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1"><el-input v-model="cmslformdata.zdtotal" id="zdtotal" readonly style="width: 80px;height: 40px;" /></el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="0">
|
|
|
+ <el-col :span="2.5">
|
|
|
+ <el-text style="font-size: 24px; margin-left: 10px;">新增实裁数</el-text>
|
|
|
+ </el-col>
|
|
|
+ <el-col v-for="(item, index) in 10" :key="index" :span="1" style="padding: 0; margin: 0;">
|
|
|
+ <el-input v-model="scsformdata[`scs${index + 1}`]" :id="`scs${index + 1}`" @input="updateTotal" style="width: 70px; height: 40px;"/>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1"><el-input v-model="scsformdata.sctotal" id="sctotal" readonly style="width: 80px;height: 40px;" /></el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+
|
|
|
+ <el-main>
|
|
|
+ <!-- 表格数据 -->
|
|
|
+ <el-tabs v-model="activeName">
|
|
|
+ <el-tab-pane label="报工历史记录" @click="showTable('报工历史记录')" name="first">
|
|
|
+ <el-table ref="multipleTable" style="width: 100%;height: 52vh" tooltip-effect="dark"
|
|
|
+ :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
|
|
|
+ :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
|
|
|
+ :data="bgjdhz_tableData" border row-key="ID"
|
|
|
+ size="small"
|
|
|
+ highlight-current-row="true" @row-dblclick="updateCompanyFunc"
|
|
|
+ @row-click="tableRowClick" :show-overflow-tooltip="true"
|
|
|
+ @selection-change="selectionChange">
|
|
|
+ <el-table-column type="selection" width="60" />
|
|
|
+ <el-table-column align="left" label="报工时间" prop="sys_rq" width="150"/>
|
|
|
+ <el-table-column align="left" label="子订单编号" prop="子订单编号" width="130"/>
|
|
|
+ <el-table-column align="left" label="生产款号" prop="款号" width="120"/>
|
|
|
+ <el-table-column align="left" label="款式" prop="款式" width="100"/>
|
|
|
+ <el-table-column align="left" label="组别" prop="sczl_jtbh" width="80"/>
|
|
|
+ <el-table-column align="left" label="尺码" prop="尺码" width="70"/>
|
|
|
+ <el-table-column align="left" label="实裁数量" prop="数量" width="100"/>
|
|
|
+ </el-table>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
+
|
|
|
+ <el-tab-pane label="产量进度汇总记录" @click="showTable('产量进度汇总记录')" name="two">
|
|
|
+ <el-table ref="multipleTable" style="width: 100%;height: 52vh" tooltip-effect="dark"
|
|
|
+ :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
|
|
|
+ :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
|
|
|
+ :data="jdhz_tableData" border row-key="ID"
|
|
|
+ size="small"
|
|
|
+ show-summary :summary-method="getSummaries"
|
|
|
+ highlight-current-row="true" @row-dblclick="updateCompanyFunc"
|
|
|
+ @row-click="tableRowClick" :show-overflow-tooltip="true"
|
|
|
+ @selection-change="handleSelectionChange">
|
|
|
+ <el-table-column align="left" label="订单子编号" prop="子订单编号" width="130"/>
|
|
|
+ <el-table-column align="left" label="款号" prop="款号" width="140" />
|
|
|
+ <el-table-column align="left" label="色系名称" prop="颜色" width="100" />
|
|
|
+ <el-table-column v-for="item in sizeDatas" :key="item" align="left" :label="item" :prop="item" width="60" :cell-style="cellStyle">
|
|
|
+ <template v-slot="scope">
|
|
|
+ <div style="width: 80px;" @click="handleSizeClick(scope.$index, item, scope.row)">
|
|
|
+ {{ scope.row[item] }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="实裁总数" prop="裁剪数" width="90" />
|
|
|
+ <!-- <el-table-column align="left" label="上报时间" prop="上报时间" width="160" /> -->
|
|
|
+ </el-table>
|
|
|
+ </el-tab-pane>
|
|
|
|
|
|
+ <el-tab-pane label="订单资料附件" name="third">
|
|
|
+ <el-table ref="multipleTable"
|
|
|
+ :row-style="{ height: '30px' }"
|
|
|
+ :cell-style="{ padding: '0px' }" :header-row-style="{ height: '30px' }"
|
|
|
+ :header-cell-style="{ padding: '0px' }"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ :cell-class-name="planUsageCellClass"
|
|
|
+ highlight-current-row="true"
|
|
|
+ @row-dblclick="gdbomupdateCompanyFunc"
|
|
|
+ style="width: 100%;height: 36vh" border tooltip-effect="dark" :data="ddtableData" row-key="ID"
|
|
|
+ @selection-change="fjSelectionChange">
|
|
|
+ <el-table-column align="left" label="关联编号" prop="关联编号" width="115"/>
|
|
|
+ <el-table-column align="left" label="备注" prop="附件备注" width="110"/>
|
|
|
+ <el-table-column align="left" label="文件类型" prop="附件类型" width="100"/>
|
|
|
+ <el-table-column align="left" label="建档时间" prop="sys_rq" width="160"/>
|
|
|
+ <el-table-column align="left" label="建档用户" prop="sys_id" width="200"/>
|
|
|
+ <el-table-column align="left" label="操作"width="100"fixed="right">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button type="success" size="small" :data="ddtableData" @click="showPdf(scope.row)" >PDF预览</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-tab-pane>
|
|
|
|
|
|
|
|
|
- <el-main>
|
|
|
- <!-- 表格数据 -->
|
|
|
- <el-tabs v-model="activeName">
|
|
|
- <el-tab-pane label="报工历史记录" @click="showTable('报工历史记录')" name="first">
|
|
|
- <el-table ref="multipleTable" style="width: 100%;height: 52vh" tooltip-effect="dark"
|
|
|
- :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
|
|
|
- :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
|
|
|
- :data="bgjdhz_tableData" border row-key="ID"
|
|
|
- size="small"
|
|
|
- show-summary :summary-method="getSummaries"
|
|
|
- highlight-current-row="true" @row-dblclick="updateCompanyFunc"
|
|
|
- @row-click="tableRowClick" :show-overflow-tooltip="true"
|
|
|
- @selection-change="selectionChange">
|
|
|
- <el-table-column type="selection" width="60" />
|
|
|
- <el-table-column align="left" label="报工时间" prop="sys_rq" width="150"/>
|
|
|
- <el-table-column align="left" label="子订单编号" prop="子订单编号" width="130"/>
|
|
|
- <el-table-column align="left" label="生产款号" prop="款号" width="120"/>
|
|
|
- <el-table-column align="left" label="款式" prop="款式" width="100"/>
|
|
|
- <el-table-column align="left" label="组别" prop="sczl_jtbh" width="80"/>
|
|
|
- <el-table-column align="left" label="尺码" prop="尺码" width="70"/>
|
|
|
- <el-table-column align="left" label="实裁数量" prop="数量" width="100"/>
|
|
|
- </el-table>
|
|
|
- </el-tab-pane>
|
|
|
-
|
|
|
-
|
|
|
- <el-tab-pane label="产量进度汇总记录" @click="showTable('产量进度汇总记录')" name="two">
|
|
|
- <el-table ref="multipleTable" style="width: 100%;height: 52vh" tooltip-effect="dark"
|
|
|
- :row-style="{ height: '50px' }" :header-cell-style="{ padding: '5px', fontSize: '20px' }"
|
|
|
- :cell-style="{ padding: '10px', fontSize: '20px' }" :header-row-style="{ height: '20px' }"
|
|
|
- :data="jdhz_tableData" border row-key="ID"
|
|
|
- size="small"
|
|
|
- show-summary :summary-method="getSummaries"
|
|
|
- highlight-current-row="true" @row-dblclick="updateCompanyFunc"
|
|
|
- @row-click="tableRowClick" :show-overflow-tooltip="true"
|
|
|
- @selection-change="handleSelectionChange">
|
|
|
- <el-table-column align="left" label="订单子编号" prop="子订单编号" width="130"/>
|
|
|
- <el-table-column align="left" label="款号" prop="款号" width="140" />
|
|
|
- <el-table-column align="left" label="色系名称" prop="颜色" width="100" />
|
|
|
- <el-table-column v-for="item in sizeDatas" :key="item" align="left" :label="item"
|
|
|
- :prop="item" width="60" :cell-style="cellStyle">
|
|
|
- <template v-slot="scope">
|
|
|
- <div
|
|
|
- style="width: 80px;"
|
|
|
- @click="handleSizeClick(scope.$index, item, scope.row)">
|
|
|
- {{ scope.row[item] }}
|
|
|
- </div>
|
|
|
+ <el-tab-pane label="技术附件" @click="showTable('技术附件')" name="fourth">
|
|
|
+ <el-table ref="multipleTable"
|
|
|
+ :row-style="{ height: '30px' }"
|
|
|
+ :cell-style="{ padding: '0px' }" :header-row-style="{ height: '30px' }"
|
|
|
+ :header-cell-style="{ padding: '0px' }"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ :cell-class-name="planUsageCellClass"
|
|
|
+ highlight-current-row="true"
|
|
|
+ @row-dblclick="ExcelShow"
|
|
|
+ style="width: 100%;height: 36vh" border tooltip-effect="dark" :data="jstableData" row-key="ID" @selection-change="fjSelectionChange">
|
|
|
+ <el-table-column align="left" label="关联编号" prop="关联编号" width="115"/>
|
|
|
+ <el-table-column align="left" label="备注" prop="附件备注" width="110"/>
|
|
|
+ <el-table-column align="left" label="文件类型" prop="附件类型" width="100"/>
|
|
|
+ <el-table-column align="left" label="建档时间" prop="sys_rq" width="160"/>
|
|
|
+ <el-table-column align="left" label="建档用户" prop="sys_id" width="200"/>
|
|
|
+ <el-table-column align="left" label="操作"width="100"fixed="right">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button type="success" size="small" :data="ddtableData" @click="showPdf(scope.row)" >PDF预览</el-button>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column align="left" label="裁剪数" prop="裁剪数" width="90" />
|
|
|
- <el-table-column align="left" label="上报时间" prop="上报时间" width="160" />
|
|
|
- </el-table>
|
|
|
- </el-tab-pane>
|
|
|
-
|
|
|
- <el-tab-pane label="订单资料附件" name="third">
|
|
|
- <el-table ref="multipleTable"
|
|
|
- :row-style="{ height: '30px' }"
|
|
|
- :cell-style="{ padding: '0px' }" :header-row-style="{ height: '30px' }"
|
|
|
- :header-cell-style="{ padding: '0px' }"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- :cell-class-name="planUsageCellClass"
|
|
|
- highlight-current-row="true"
|
|
|
- @row-dblclick="gdbomupdateCompanyFunc"
|
|
|
- style="width: 100%;height: 36vh" border tooltip-effect="dark" :data="ddtableData" row-key="ID"
|
|
|
- @selection-change="fjSelectionChange">
|
|
|
- <el-table-column align="left" label="关联编号" prop="关联编号" width="115"/>
|
|
|
- <el-table-column align="left" label="备注" prop="附件备注" width="110"/>
|
|
|
- <el-table-column align="left" label="文件类型" prop="附件类型" width="100"/>
|
|
|
- <el-table-column align="left" label="建档时间" prop="sys_rq" width="160"/>
|
|
|
- <el-table-column align="left" label="建档用户" prop="sys_id" width="200"/>
|
|
|
-
|
|
|
-
|
|
|
- </el-table>
|
|
|
- </el-tab-pane>
|
|
|
-
|
|
|
- <el-tab-pane label="技术附件" @click="showTable('技术附件')" name="fourth">
|
|
|
- <el-table ref="multipleTable"
|
|
|
- :row-style="{ height: '30px' }"
|
|
|
- :cell-style="{ padding: '0px' }" :header-row-style="{ height: '30px' }"
|
|
|
- :header-cell-style="{ padding: '0px' }"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- :cell-class-name="planUsageCellClass"
|
|
|
- highlight-current-row="true"
|
|
|
- @row-dblclick="ExcelShow"
|
|
|
- style="width: 100%;height: 36vh" border tooltip-effect="dark" :data="jstableData" row-key="ID" @selection-change="handleSelectionChange">
|
|
|
- <!-- <el-table-column type="selection" width="55" /> -->
|
|
|
- <el-table-column align="left" label="关联编号" prop="关联编号" width="115"/>
|
|
|
- <el-table-column align="left" label="备注" prop="附件备注" width="110"/>
|
|
|
- <el-table-column align="left" label="文件类型" prop="附件类型" width="100"/>
|
|
|
- <el-table-column align="left" label="建档时间" prop="sys_rq" width="160"/>
|
|
|
- <el-table-column align="left" label="建档用户" prop="sys_id" width="200"/>
|
|
|
- </el-table>
|
|
|
- </el-tab-pane>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-tab-pane>
|
|
|
</el-tabs>
|
|
|
+
|
|
|
+ <el-button type="danger" icon="delete" @click="del_delclick"
|
|
|
+ v-if="delall === true" :disabled="Selection === ''"
|
|
|
+ :style="{
|
|
|
+ backgroundColor: Selection === '' ? '' : 'red',
|
|
|
+ borderColor: Selection === '' ? '' : 'red',
|
|
|
+ color: Selection === '' ? '' : '#fff'
|
|
|
+ }"
|
|
|
+ style="width: 150px; height: 40px; font-size: 20px; margin-left: 10px;">删除报工</el-button>
|
|
|
+ <el-button type="primary" @click="cp_gdprintonClick" style="width: 150px; height: 40px; font-size: 20px; margin-left: 10px;" > 子订单详情页 </el-button>
|
|
|
+ <el-button type="primary" @click="add_Dialog" style="width: 100px; height: 40px; font-size: 20px; margin-left: 10px;" >报工</el-button>
|
|
|
</el-main>
|
|
|
</div>
|
|
|
|
|
|
@@ -206,16 +194,13 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <!-- 查看技术附件弹窗 -->
|
|
|
- <el-dialog v-model="luckyexcelVisible" :before-close="luckyexcelCloseDialog" width="100%" top="0vh">
|
|
|
- <div id="luckyexcel" style="width: 100%;height: 100vh;"></div>
|
|
|
- </el-dialog>
|
|
|
|
|
|
</layout-content>
|
|
|
</layout>
|
|
|
-
|
|
|
- <PrintPage ref="printPageRef" />
|
|
|
- <!-- </el-main> -->
|
|
|
+ <SubOrderPage ref="SubOrderPageRef" />
|
|
|
+ <PrintPage ref="printPageRef" />
|
|
|
+ <!-- 子订单详情页 -->
|
|
|
+ <luckyexcelPage ref="luckyexcelPageRef" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -268,7 +253,6 @@ export default {
|
|
|
break;
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
@@ -279,13 +263,21 @@ import $ from 'jquery';
|
|
|
import LuckyExcel from 'luckyexcel';
|
|
|
import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
|
|
|
import {ref, reactive} from 'vue';
|
|
|
-import {getSpotList,getInfo,OrderAttachments,getTabByGdbh,search,spotcheckdel} from '@/api/mes/job';
|
|
|
+import {getSpotList,getInfo,OrderAttachments,getTabByGdbh,search,spotcheckdel,SubWorkOrderStatusList,Mabaolist} from '@/api/mes/job';
|
|
|
import {getMachineMac} from '@/api/jixiaoguanli/jitairibaobiao'
|
|
|
import {getMac} from '@/api/jixiaoguanli/baogong'
|
|
|
import {ElMessage} from "element-plus";
|
|
|
import PrintPage from '../yunyin/shengchanguanli/components/print.vue';
|
|
|
+import luckyexcelPage from '../yunyin/shengchanguanli/components/luckyexcel.vue';
|
|
|
+import SubOrderPage from '../yunyin/shengchanguanli/components/SubOrder.vue';
|
|
|
import { useUserStore } from '@/pinia/modules/user';
|
|
|
defineOptions({name: 'Company'})
|
|
|
+const path = `${import.meta.env.VITE_BASE_PATH}:${import.meta.env.VITE_UPLOADS_PORT}`
|
|
|
+console.log(path)
|
|
|
+//定义跳转页面
|
|
|
+const SubOrderPageRef = ref()//子订单详情页
|
|
|
+const printPageRef = ref()//打印预览
|
|
|
+const luckyexcelPageRef = ref()//pdf预览
|
|
|
//获取登录用户信息
|
|
|
const userStore = useUserStore()
|
|
|
const _username = ref('')
|
|
|
@@ -301,7 +293,6 @@ const minutes = String(today.getMinutes()).padStart(2, '0');
|
|
|
const seconds = String(today.getSeconds()).padStart(2, '0');
|
|
|
const currentDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
|
|
const currentDates = `${year}-${month}-${day}`;
|
|
|
-const printPageRef = ref()
|
|
|
const add_searchInfo = ref('')
|
|
|
|
|
|
//全局获取code,接口接收code
|
|
|
@@ -316,13 +307,16 @@ const getMachineMacdata = async () => {
|
|
|
try {
|
|
|
const data = await getMachineMac({sys_sbID:Machine.value});
|
|
|
if (data.data === null) {
|
|
|
- ElMessage({
|
|
|
- type: 'error',
|
|
|
- message: '未获取到机台编号请确认MAC地址或与管理员联系'
|
|
|
- })
|
|
|
+ // ElMessage({
|
|
|
+ // type: 'error',
|
|
|
+ // message: '未获取到机台编号请确认MAC地址或与管理员联系'
|
|
|
+ // })
|
|
|
+ add_formData['机台号'] = '测试机台'
|
|
|
+ add_formData['工序'] = _code
|
|
|
+ add_formData['组别'] = "测试"
|
|
|
+ add_formData['人员'] = "测试"
|
|
|
return;
|
|
|
}
|
|
|
- // console.log(data)
|
|
|
add_formData['机台号'] = data.data['机台号']
|
|
|
add_formData['工序'] = data.data['生产工序']
|
|
|
add_formData['组别'] = data.data['组别']
|
|
|
@@ -368,11 +362,10 @@ const GetAddr = () => {
|
|
|
}
|
|
|
// getMachineMacdata();
|
|
|
GetAddr()
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-//技术附件
|
|
|
-
|
|
|
+// PDF预览
|
|
|
+const showPdf = async (row) => {
|
|
|
+ luckyexcelPageRef.value.open(row)
|
|
|
+}
|
|
|
|
|
|
const add_formData = reactive({
|
|
|
机台号: '',
|
|
|
@@ -401,7 +394,9 @@ const cmformdata = reactive({
|
|
|
cm8:'',
|
|
|
cm9:'',
|
|
|
cm10:'',
|
|
|
- cm11:'合计',
|
|
|
+ cm11:'',
|
|
|
+ cm12:'',
|
|
|
+ cmtotal:'合计',
|
|
|
});
|
|
|
|
|
|
// 制单数
|
|
|
@@ -437,7 +432,7 @@ const scsformdata = reactive({
|
|
|
function updateTotal() {
|
|
|
// 直接指定要累加的属性名
|
|
|
const relevantKeys = ['scs1', 'scs2', 'scs3', 'scs4', 'scs5', 'scs6', 'scs7', 'scs8', 'scs9', 'scs10'];
|
|
|
- const values = relevantKeys.map(key => parseInt(scsformdata[key], 10) || 0); // 使用 || 0 来处理可能的 NaN 或 undefined/null
|
|
|
+ const values = relevantKeys.map(key => parseInt(scsformdata[key], 10) || 0);
|
|
|
scsformdata.sctotal = values.reduce((sum, value) => sum + value, 0);
|
|
|
}
|
|
|
|
|
|
@@ -456,7 +451,6 @@ const _list = ref('');
|
|
|
|
|
|
//查询
|
|
|
const add_onSubmit = async ()=>{
|
|
|
-
|
|
|
if(add_searchInfo.value === '' || add_searchInfo.value === undefined){
|
|
|
const WorkListdata = [];
|
|
|
// add_tableData.splice(0,add_tableData.length,...WorkListdata);
|
|
|
@@ -468,16 +462,11 @@ const add_onSubmit = async ()=>{
|
|
|
if (!add_searchInfo.value.startsWith('DC')) {
|
|
|
add_searchInfo.value = 'DC' + add_searchInfo.value;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
sizeDatas.length = 0;
|
|
|
_order.value = add_searchInfo.value;
|
|
|
//进度汇总表格数据
|
|
|
const getSpotLists = await getSpotList({order:_order.value,code:_code});
|
|
|
-
|
|
|
- if(getSpotLists.data.total === 0){
|
|
|
- ElMessage({type: 'warning',message: '此订单未出库,请先出库' })
|
|
|
- return false
|
|
|
- }
|
|
|
if(add_searchInfo.value === ''){
|
|
|
//光标跳转搜索框
|
|
|
_searchInput()
|
|
|
@@ -488,7 +477,6 @@ const add_onSubmit = async ()=>{
|
|
|
inputElement.focus();
|
|
|
}
|
|
|
}, 100);//100毫秒
|
|
|
-
|
|
|
}
|
|
|
|
|
|
sizeDatas.splice(0, getSpotLists.data.headers.length, ...getSpotLists.data.headers);
|
|
|
@@ -516,7 +504,6 @@ const add_onSubmit = async ()=>{
|
|
|
cmslformdata[key] = getSpotLists.data.list[key];
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}else{
|
|
|
for (let key of keys1) {
|
|
|
cmformdata[key] = '';
|
|
|
@@ -526,12 +513,9 @@ const add_onSubmit = async ()=>{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- // getSummaries();
|
|
|
};
|
|
|
|
|
|
-
|
|
|
-//合计
|
|
|
+ //总数量合计
|
|
|
const getSummaries = (param) => {
|
|
|
const { columns, data } = param;
|
|
|
const sums = {};
|
|
|
@@ -541,10 +525,8 @@ const add_onSubmit = async ()=>{
|
|
|
sums[index] = '总数量合计';
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
if (summableLabels.includes(column.label)) {
|
|
|
const values = data.map(item => Number(item[column.property]));
|
|
|
-
|
|
|
// 检查数组中是否所有值都是 NaN
|
|
|
if (!values.every(value => isNaN(value))) {
|
|
|
sums[index] = values.reduce((prev, curr) => {
|
|
|
@@ -561,169 +543,9 @@ const add_onSubmit = async ()=>{
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
return sums;
|
|
|
};
|
|
|
|
|
|
-//订单资料excel展示
|
|
|
-const gdbomupdateCompanyFunc = (row) =>{
|
|
|
- // 加载插件和样式
|
|
|
- const loadScriptsAndStyles = () => {
|
|
|
- $.getScript('/luckysheet/plugins/js/plugin.js', () => {
|
|
|
- $script('/luckysheet/luckysheet.umd.js', () => {
|
|
|
- initializeLuckysheet();
|
|
|
- });
|
|
|
- });
|
|
|
-
|
|
|
- const styles = [
|
|
|
- '/luckysheet/plugins/css/pluginsCss.css',
|
|
|
- '/luckysheet/plugins/plugins.css',
|
|
|
- '/luckysheet/css/luckysheet.css',
|
|
|
- '/luckysheet/assets/iconfont/iconfont.css'
|
|
|
- ];
|
|
|
-
|
|
|
- styles.forEach(style => {
|
|
|
- $('head').append($('<link rel="stylesheet" type="text/css" />').attr('href', style));
|
|
|
- });
|
|
|
- };
|
|
|
-
|
|
|
- // 初始化 Luckysheet
|
|
|
- const initializeLuckysheet = () => {
|
|
|
- const callback = (exportJson, luckysheetfile) => {
|
|
|
- if (!exportJson.sheets || exportJson.sheets.length === 0) {
|
|
|
- alert("Failed to read the content of the excel file, currently does not support xls files!");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (luckyExcel) luckyExcel.destroy();
|
|
|
- luckysheet.create({
|
|
|
- container: 'luckyexcel',
|
|
|
- data: exportJson.sheets,
|
|
|
- title: exportJson.info.name,
|
|
|
- lang: "zh",
|
|
|
- showtoolbar: false,
|
|
|
- showinfobar: false,
|
|
|
- allowEdit: false,
|
|
|
- enableAddRow: false,
|
|
|
- enableAddCol: false,
|
|
|
- userInfo: false,
|
|
|
- showRowBar: false,
|
|
|
- showColumnBar: false,
|
|
|
- sheetFormulaBar: false,
|
|
|
- enableAddBackTop: false,
|
|
|
- });
|
|
|
- luckyExcel = luckysheet;
|
|
|
- };
|
|
|
-
|
|
|
- if (row['url'] === null || row['url'] === '') {
|
|
|
- const blob = dataURLtoBlob(row.附件内容);
|
|
|
- luckyexcelVisible.value = true;
|
|
|
- LuckyExcel.transformExcelToLucky(blob, callback);
|
|
|
- } else {
|
|
|
- const excelPath = `/${row.url.replace(/\\/g, "/")}`;
|
|
|
- const excelName = excelPath.split('/').pop();
|
|
|
- luckyexcelVisible.value = true;
|
|
|
- LuckyExcel.transformExcelToLuckyByUrl(excelPath, excelName, callback);
|
|
|
- }
|
|
|
- };
|
|
|
-
|
|
|
- // Data URL 转 Blob
|
|
|
- const dataURLtoBlob = (dataUrl) => {
|
|
|
- const byteString = atob(dataUrl.split(',')[1]);
|
|
|
- const ab = new ArrayBuffer(byteString.length);
|
|
|
- const ia = new Uint8Array(ab);
|
|
|
-
|
|
|
- for (let i = 0; i < byteString.length; i++) {
|
|
|
- ia[i] = byteString.charCodeAt(i);
|
|
|
- }
|
|
|
-
|
|
|
- return new Blob([ab], { type: 'application/octet-stream' });
|
|
|
- };
|
|
|
-
|
|
|
- loadScriptsAndStyles();
|
|
|
-}
|
|
|
-//技术资料excel展示
|
|
|
-const ExcelShow = (row) =>{
|
|
|
- // 加载插件和样式
|
|
|
- const loadScriptsAndStyles = () => {
|
|
|
- $.getScript('/luckysheet/plugins/js/plugin.js', () => {
|
|
|
- $script('/luckysheet/luckysheet.umd.js', () => {
|
|
|
- initializeLuckysheet();
|
|
|
- });
|
|
|
- });
|
|
|
-
|
|
|
- const styles = [
|
|
|
- '/luckysheet/plugins/css/pluginsCss.css',
|
|
|
- '/luckysheet/plugins/plugins.css',
|
|
|
- '/luckysheet/css/luckysheet.css',
|
|
|
- '/luckysheet/assets/iconfont/iconfont.css'
|
|
|
- ];
|
|
|
-
|
|
|
- styles.forEach(style => {
|
|
|
- $('head').append($('<link rel="stylesheet" type="text/css" />').attr('href', style));
|
|
|
- });
|
|
|
- };
|
|
|
-
|
|
|
- // 初始化 Luckysheet
|
|
|
- const initializeLuckysheet = () => {
|
|
|
- const callback = (exportJson, luckysheetfile) => {
|
|
|
- if (!exportJson.sheets || exportJson.sheets.length === 0) {
|
|
|
- alert("Failed to read the content of the excel file, currently does not support xls files!");
|
|
|
- return;
|
|
|
- }
|
|
|
- if (luckyExcel) luckyExcel.destroy();
|
|
|
- luckysheet.create({
|
|
|
- container: 'luckyexcel',
|
|
|
- data: exportJson.sheets,
|
|
|
- title: exportJson.info.name,
|
|
|
- lang: "zh",
|
|
|
- showtoolbar: false,
|
|
|
- showinfobar: false,
|
|
|
- allowEdit: false,
|
|
|
- enableAddRow: false,
|
|
|
- enableAddCol: false,
|
|
|
- userInfo: false,
|
|
|
- showRowBar: false,
|
|
|
- showColumnBar: false,
|
|
|
- sheetFormulaBar: false,
|
|
|
- enableAddBackTop: false,
|
|
|
- });
|
|
|
- luckyExcel = luckysheet;
|
|
|
- };
|
|
|
-
|
|
|
- if (row['url'] === null || row['url'] === '') {
|
|
|
- const blob = dataURLtoBlob(row.附件内容);
|
|
|
- luckyexcelVisible.value = true;
|
|
|
- LuckyExcel.transformExcelToLucky(blob, callback);
|
|
|
- } else {
|
|
|
- const excelPath = `/${row.url.replace(/\\/g, "/")}`;
|
|
|
- const excelName = excelPath.split('/').pop();
|
|
|
- luckyexcelVisible.value = true;
|
|
|
- LuckyExcel.transformExcelToLuckyByUrl(excelPath, excelName, callback);
|
|
|
- }
|
|
|
- };
|
|
|
-
|
|
|
- // Data URL 转 Blob
|
|
|
- const dataURLtoBlob = (dataUrl) => {
|
|
|
- const byteString = atob(dataUrl.split(',')[1]);
|
|
|
- const ab = new ArrayBuffer(byteString.length);
|
|
|
- const ia = new Uint8Array(ab);
|
|
|
-
|
|
|
- for (let i = 0; i < byteString.length; i++) {
|
|
|
- ia[i] = byteString.charCodeAt(i);
|
|
|
- }
|
|
|
-
|
|
|
- return new Blob([ab], { type: 'application/octet-stream' });
|
|
|
- };
|
|
|
-
|
|
|
- loadScriptsAndStyles();
|
|
|
-}
|
|
|
-let luckyExcel = null
|
|
|
-
|
|
|
-const luckyexcelVisible = ref(false)
|
|
|
-const luckyexcelCloseDialog = () => {
|
|
|
- luckyexcelVisible.value = false
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
//表格行点击
|
|
|
const tableRowClick = async (row)=>{
|
|
|
@@ -749,8 +571,23 @@ const _searchInput = async ()=>{
|
|
|
}
|
|
|
}, 100);
|
|
|
}
|
|
|
+
|
|
|
+//子订单详情页
|
|
|
+const cp_gdprintonClick = async () => {
|
|
|
+ if(add_searchInfo.value === '' || add_searchInfo.value === null){
|
|
|
+ ElMessage({ type: 'warning', message: '请扫描子订单(条码)后再查看' });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ SubOrderPageRef.value.open(add_searchInfo.value,add_formData['工序'])
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
//报工
|
|
|
const add_Dialog = async ()=>{
|
|
|
+ if(add_formData['机台号'] === '测试机台'){
|
|
|
+ ElMessage({ type: 'warning', message: '测试机台禁止报工' });
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (!add_formData['机台号']) {
|
|
|
ElMessage({ type: 'warning', message: '未获取到机台' });
|
|
|
return false;
|
|
|
@@ -801,20 +638,17 @@ const add_Dialog = async ()=>{
|
|
|
paramsList.push(params);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
if (paramsList.length === 0) {
|
|
|
ElMessage({type: 'info',message: '请填写实裁数'});
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
let allSuccess = true;
|
|
|
for (let i = 0; i < paramsList.length; i++) {
|
|
|
const cf_gettab = await search(paramsList[i]);
|
|
|
console.log('新增产量计酬返回信息',cf_gettab)
|
|
|
if (cf_gettab.code !== 0) {
|
|
|
- // ElMessage({ type: 'error', message: '报工失败' });
|
|
|
allSuccess = false;
|
|
|
- break; // 如果某个报工失败,则中断循环
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1067,6 +901,12 @@ const handleSizeChange = (val) => {
|
|
|
::v-deep .el-input__wrapper #cm11{
|
|
|
font-size: 20px;
|
|
|
}
|
|
|
+::v-deep .el-input__wrapper #cm12{
|
|
|
+ font-size: 20px;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #cmtotal{
|
|
|
+ font-size: 20px;
|
|
|
+}
|
|
|
/* 本次实裁新增样式 */
|
|
|
::v-deep .el-input__wrapper #cmsl1{
|
|
|
font-size: 20px;
|
|
|
@@ -1108,29 +948,35 @@ const handleSizeChange = (val) => {
|
|
|
font-size: 20px;
|
|
|
color: red !important;
|
|
|
}
|
|
|
+::v-deep .el-input__wrapper #cmsl11{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
+::v-deep .el-input__wrapper #cmsl12{
|
|
|
+ font-size: 20px;
|
|
|
+ color: red !important;
|
|
|
+}
|
|
|
::v-deep .el-input__wrapper #zdtotal{
|
|
|
font-size: 20px;
|
|
|
color: red !important;
|
|
|
}
|
|
|
/* 表格复选框大小调整 */
|
|
|
- :deep(.el-checkbox.el-checkbox--small .el-checkbox__inner) {
|
|
|
- width: 30px;
|
|
|
- /* 复选框宽度 */
|
|
|
- height: 20px;
|
|
|
- /* 复选框高度 */
|
|
|
- }
|
|
|
-
|
|
|
- :deep(.el-checkbox.el-checkbox--small.is-checked .el-checkbox__inner::after) {
|
|
|
- transform: scale(1.2) rotate(45deg);
|
|
|
- /* 调整选中后的对勾大小 */
|
|
|
- top: 5%;
|
|
|
- /* 调整对勾位置 */
|
|
|
- left: 40%;
|
|
|
- /* 调整对勾位置 */
|
|
|
- width: 5px;
|
|
|
- /* 调整对勾宽度 */
|
|
|
- height: 9px;
|
|
|
- /* 调整对勾高度 */
|
|
|
- }
|
|
|
-
|
|
|
+:deep(.el-checkbox.el-checkbox--small .el-checkbox__inner) {
|
|
|
+ width: 30px;
|
|
|
+ /* 复选框宽度 */
|
|
|
+ height: 20px;
|
|
|
+ /* 复选框高度 */
|
|
|
+}
|
|
|
+:deep(.el-checkbox.el-checkbox--small.is-checked .el-checkbox__inner::after) {
|
|
|
+ transform: scale(1.2) rotate(45deg);
|
|
|
+ /* 调整选中后的对勾大小 */
|
|
|
+ top: 5%;
|
|
|
+ /* 调整对勾位置 */
|
|
|
+ left: 40%;
|
|
|
+ /* 调整对勾位置 */
|
|
|
+ width: 5px;
|
|
|
+ /* 调整对勾宽度 */
|
|
|
+ height: 9px;
|
|
|
+ /* 调整对勾高度 */
|
|
|
+}
|
|
|
</style>
|