|
|
@@ -15,6 +15,7 @@
|
|
|
<el-button type="primary" icon="edit" @click="addgdgy_onclick" class="bt" title="新增工序资料" >新增工序资料</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="CSclick" class="bt" title="库存测试">库存测试</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
@@ -184,10 +185,9 @@
|
|
|
:show-overflow-tooltip="true"
|
|
|
:cell-class-name="planUsageCellClass"
|
|
|
highlight-current-row="true"
|
|
|
- @row-dblclick="gdbomupdateCompanyFunc"
|
|
|
+ @row-dblclick="bombomupdateCompanyFunc"
|
|
|
style="width: 100%;height: 36vh" border tooltip-effect="dark" :data="bomtableData" row-key="ID" @selection-change="handleSelectionChange">
|
|
|
<!-- <el-table-column type="selection" width="30" />-->
|
|
|
- <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="物料名称" width="400"/>
|
|
|
<el-table-column align="left" label="消耗定量" prop="消耗定量" width="210"/>
|
|
|
@@ -198,7 +198,7 @@
|
|
|
</el-table>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
- <el-tab-pane label="面料资料" @click="showTable('面料资料')" name="seven">
|
|
|
+ <el-tab-pane label="面料库存" @click="showTable('面料库存')" name="seven">
|
|
|
<el-table ref="multipleTable"
|
|
|
:row-style="{ height: '20px' }"
|
|
|
:cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
|
|
|
@@ -206,15 +206,15 @@
|
|
|
:show-overflow-tooltip="true"
|
|
|
:cell-class-name="planUsageCellClass"
|
|
|
highlight-current-row="true"
|
|
|
- @row-dblclick="gdbomupdateCompanyFunc"
|
|
|
+ @row-dblclick="mlupdateCompanyFunc"
|
|
|
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 align="left" label="面料" prop="面料" width="240"/>
|
|
|
<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="210"/>
|
|
|
- <el-table-column align="left" label="领料数量" prop="领料数量" width="100" />
|
|
|
- <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="库存数量" width="120"/>
|
|
|
<el-table-column align="left" label="建档时间" prop="建档时间" width="160"/>
|
|
|
<el-table-column align="left" label="更新时间" prop="更新时间" width="160"/>
|
|
|
</el-table>
|
|
|
@@ -936,6 +936,42 @@
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <!-- 面料库存弹窗 -->
|
|
|
+ <el-dialog v-model="mlinventoryVisible" :before-close="mlcloseDialog" title="面料库存出入库记录"
|
|
|
+ style="margin-top: 40px" height="300px" width="1000px" destroy-on-close>
|
|
|
+ <el-form :model="mlformdata" label-position="right" ref="elFormRef" :rules="rule" label-width="90px">
|
|
|
+ <el-table
|
|
|
+ ref="table"
|
|
|
+ highlight-current-row
|
|
|
+ show-overflow-tooltip
|
|
|
+ border
|
|
|
+ :data="historytableData"
|
|
|
+ :row-style="{ height: '25px' }"
|
|
|
+ :cell-style="{ padding: '0px' }"
|
|
|
+ :header-row-style="{ height: '20px' }"
|
|
|
+ :header-cell-style="{ padding: '0px' }"
|
|
|
+ style="width: 100%;height: 75vh;"
|
|
|
+ >
|
|
|
+
|
|
|
+ <el-table-column label="订单编号" prop="订单编号"width="110" ></el-table-column>
|
|
|
+ <el-table-column label="面料" prop="面料" width="110"></el-table-column>
|
|
|
+ <el-table-column label="颜色" prop="颜色" width="110"></el-table-column>
|
|
|
+ <el-table-column label="入库数量" prop="入库数量" width="110"></el-table-column>
|
|
|
+ <el-table-column label="出库数量" prop="出库数量" width="110"></el-table-column>
|
|
|
+ <el-table-column label="领料部门" prop="领料部门" width="110"></el-table-column>
|
|
|
+ <el-table-column label="领料时间" prop="领料时间" width="110"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <br>
|
|
|
+ </el-form>
|
|
|
+ <template #footer>
|
|
|
+ <br>
|
|
|
+ <div class="dialog-footer">
|
|
|
+ <el-button @click="mlcloseDialog">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="mlenterDialog">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
</el-main>
|
|
|
</layout-content>
|
|
|
</layout>
|
|
|
@@ -1419,8 +1455,22 @@ function buildSizeQuantitiesMap(sizes, formData) {
|
|
|
const ys_edit_closeDialog = async (row) => {
|
|
|
dialogFormVisible.value = false;
|
|
|
};
|
|
|
+const mlinventoryVisible = ref(false)
|
|
|
+const historytableData = ref([])
|
|
|
+//双击面料库存
|
|
|
+const mlupdateCompanyFunc = async (row) => {
|
|
|
+ mlinventoryVisible.value = true;
|
|
|
+}
|
|
|
|
|
|
+//库存测试
|
|
|
+const CSclick = async (row) => {
|
|
|
+ mlinventoryVisible.value = true;
|
|
|
+}
|
|
|
|
|
|
+//技术附件弹窗取消
|
|
|
+const mlcloseDialog = () => {
|
|
|
+ mlinventoryVisible.value = false
|
|
|
+}
|
|
|
// 分页
|
|
|
const page = ref(1)
|
|
|
const total = ref(0)
|
|
|
@@ -1955,6 +2005,8 @@ const tableRowClick = async (row) => {
|
|
|
gytableData.splice(0, gytableData.length);
|
|
|
ddtableData.splice(0, ddtableData.length);
|
|
|
jstableData.splice(0, jstableData.length);
|
|
|
+ bomtableData.splice(0, bomtableData.length);
|
|
|
+ mltableData.splice(0, mltableData.length);
|
|
|
_Gd_gdbh.value = row.订单编号
|
|
|
_ddhval.value = row.订单编号
|
|
|
try {
|
|
|
@@ -1962,7 +2014,7 @@ const tableRowClick = async (row) => {
|
|
|
const PrintListDatas = await PrintListData({order:_Gd_gdbh.value})
|
|
|
const jsOrderAttachments = await OrderAttachments({order:_Gd_gdbh.value,desc:'技术附件'})
|
|
|
const ddOrderAttachments = await OrderAttachments({order:_Gd_gdbh.value,desc:'订单资料附件'})
|
|
|
-
|
|
|
+
|
|
|
//颜色资料
|
|
|
if(PrintListDatas.data.列表.length === 0 ){
|
|
|
ystableData.length = 0
|
|
|
@@ -1987,7 +2039,7 @@ const tableRowClick = async (row) => {
|
|
|
}
|
|
|
//BOM资料
|
|
|
|
|
|
- //面料资料
|
|
|
+ //面料库存
|
|
|
} catch (error) {
|
|
|
console.error(error);
|
|
|
}
|