|
@@ -496,14 +496,14 @@ export const useHooks = (t?: any) => {
|
|
|
title: "新物料编码",
|
|
|
basicinfo: {
|
|
|
el: "input",
|
|
|
- props: {
|
|
|
- clearable: true,
|
|
|
- onClick: (scope: any) => {
|
|
|
- console.log("columns_detail scope :>> ", scope);
|
|
|
- // fModelChoseMtrl()
|
|
|
- }
|
|
|
- },
|
|
|
- editable: ALLOW_EDIT_STATE,
|
|
|
+ // props: {
|
|
|
+ // clearable: true,
|
|
|
+ // onClick: (scope: any) => {
|
|
|
+ // console.log("columns_detail scope :>> ", scope);
|
|
|
+ // // fModelChoseMtrl()
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // editable: ALLOW_EDIT_STATE,
|
|
|
group: "单据信息",
|
|
|
order: 1,
|
|
|
span: 1
|
|
@@ -656,11 +656,13 @@ export const useHooks = (t?: any) => {
|
|
|
},
|
|
|
{
|
|
|
field: "erp_pzcode",
|
|
|
- title: "ERP配置编码"
|
|
|
+ title: "ERP配置编码",
|
|
|
+ width: 100
|
|
|
},
|
|
|
{
|
|
|
field: "erp_pzname",
|
|
|
- title: "ERP配置名称"
|
|
|
+ title: "ERP配置名称",
|
|
|
+ width: 120
|
|
|
},
|
|
|
{
|
|
|
field: "bj_inputtype",
|
|
@@ -679,24 +681,25 @@ export const useHooks = (t?: any) => {
|
|
|
value: 2,
|
|
|
label: "带出"
|
|
|
}
|
|
|
- ]
|
|
|
- // editRender: {
|
|
|
- // name: "$select",
|
|
|
- // options: [
|
|
|
- // {
|
|
|
- // value: 0,
|
|
|
- // label: "选择"
|
|
|
- // },
|
|
|
- // {
|
|
|
- // value: 1,
|
|
|
- // label: "录入"
|
|
|
- // },
|
|
|
- // {
|
|
|
- // value: 2,
|
|
|
- // label: "带出"
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // }
|
|
|
+ ],
|
|
|
+ editRender: {
|
|
|
+ name: "$select",
|
|
|
+ enabled: false,
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ value: 0,
|
|
|
+ label: "选择"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 1,
|
|
|
+ label: "录入"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 2,
|
|
|
+ label: "带出"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
field: "bj_namemx",
|
|
@@ -706,7 +709,7 @@ export const useHooks = (t?: any) => {
|
|
|
editColRender: (scope: any) => {
|
|
|
const { $table, column, row, status } = scope;
|
|
|
|
|
|
- console.log("bj_namemx scope :>> ", scope);
|
|
|
+ // console.log("bj_namemx scope :>> ", scope);
|
|
|
let params = {
|
|
|
pzid: row.erp_pzid
|
|
|
};
|
|
@@ -877,23 +880,30 @@ export const useHooks = (t?: any) => {
|
|
|
{
|
|
|
field: "printid",
|
|
|
title: "排序",
|
|
|
- width: 80
|
|
|
+ width: 80,
|
|
|
+ fixed: "left"
|
|
|
},
|
|
|
{
|
|
|
field: "itemname",
|
|
|
- title: "项目"
|
|
|
+ title: "项目",
|
|
|
+ width: 100,
|
|
|
+ fixed: "left"
|
|
|
},
|
|
|
{
|
|
|
field: "bj_pzname",
|
|
|
- title: "二级项目"
|
|
|
+ title: "二级项目",
|
|
|
+ fixed: "left"
|
|
|
},
|
|
|
{
|
|
|
field: "bj_pzname_mx",
|
|
|
- title: "明细项目"
|
|
|
+ title: "明细项目",
|
|
|
+ width: 100,
|
|
|
+ fixed: "left"
|
|
|
},
|
|
|
{
|
|
|
field: "bj_pzname_mx_mx",
|
|
|
- title: "二级明细项目"
|
|
|
+ title: "二级明细项目",
|
|
|
+ fixed: "left"
|
|
|
},
|
|
|
{
|
|
|
field: "erp_mtrlcode",
|
|
@@ -909,8 +919,8 @@ export const useHooks = (t?: any) => {
|
|
|
autoFocus: "input"
|
|
|
},
|
|
|
editColRender: (scope: any) => {
|
|
|
- console.log("mtrlname hooks render scope :>> ", scope);
|
|
|
- console.log("mtrlname hooks render LjDetailRef.value._mainData :>> ", state.LjDetailRef);
|
|
|
+ // console.log("mtrlname hooks render scope :>> ", scope);
|
|
|
+ // console.log("mtrlname hooks render LjDetailRef.value._mainData :>> ", state.LjDetailRef);
|
|
|
const { $table, column, row, status } = scope;
|
|
|
let field = column.field;
|
|
|
let _label = column.title;
|
|
@@ -1054,7 +1064,7 @@ export const useHooks = (t?: any) => {
|
|
|
autoFocus: "input"
|
|
|
},
|
|
|
editColRender: (scope: any) => {
|
|
|
- console.log("formulakind editColRender scope :>> ", scope);
|
|
|
+ // console.log("formulakind editColRender scope :>> ", scope);
|
|
|
return (
|
|
|
<el-select v-model={scope.row.wrkgrpid} filterable onChange={val => rModelSetWrkgrp1(val, scope.row)}>
|
|
|
{{
|
|
@@ -1100,7 +1110,7 @@ export const useHooks = (t?: any) => {
|
|
|
autoFocus: "input"
|
|
|
},
|
|
|
editColRender: (scope: any) => {
|
|
|
- console.log("formulakind editColRender scope :>> ", scope);
|
|
|
+ // console.log("formulakind editColRender scope :>> ", scope);
|
|
|
return (
|
|
|
<el-select v-model={scope.row.wrkgrpid2} filterable onChange={val => rModelSetWrkgrp2(val, scope.row)}>
|
|
|
{{
|
|
@@ -1491,7 +1501,7 @@ export const useHooks = (t?: any) => {
|
|
|
const $table = state.QdTableRef.element;
|
|
|
if ($table) {
|
|
|
let mergeCells = autoMergeCells($table, ["itemname", "bj_pzname", "bj_pzname_mx_mx"]);
|
|
|
- console.log("autoMergeCells mergeCells :>> ", mergeCells);
|
|
|
+ // console.log("autoMergeCells mergeCells :>> ", mergeCells);
|
|
|
$table.setMergeCells(mergeCells);
|
|
|
}
|
|
|
});
|
|
@@ -1514,8 +1524,8 @@ export const useHooks = (t?: any) => {
|
|
|
* 获取产品配置,产品清单
|
|
|
* @param mattressid 床垫ID
|
|
|
*/
|
|
|
- const RefreshMattressInterfaceList = async (mattressid: number, isPz: number) => {
|
|
|
- let res = await RefreshMattressInterface({ mattressid, isPz });
|
|
|
+ const RefreshMattressInterfaceList = async (mattressid: number, isPz: number, configcodetype: number = 0) => {
|
|
|
+ let res = await RefreshMattressInterface({ mattressid, isPz, configcodetype });
|
|
|
state.mattressYWList = res.mxList;
|
|
|
|
|
|
resetMergeCells();
|