提交 237e5fc8 authored 作者: lidongxu's avatar lidongxu

Merge branch 'ap' into dev

...@@ -262,13 +262,23 @@ ...@@ -262,13 +262,23 @@
"prop": "actualDisplay", "prop": "actualDisplay",
"visible": true, "visible": true,
"type": "input", "type": "input",
options: [
{
label: '是',
value: '是'
},
{
label: '否',
value: '否'
}
],
referenceKey: "plannedDisplay", referenceKey: "plannedDisplay",
render: (_, row, col) => { render: (_, row, col) => {
return ( return (
<div> <div>
<span>{row[col.referenceKey] || '-'}</span> <span>{row[col.referenceKey] || '-'}</span>
<div> <div style="width: 100%">
<el-input modelValue={row[col.prop]} <el-select modelValue={row[col.prop]}
onUpdate:modelValue={(value) => { onUpdate:modelValue={(value) => {
row[col.prop] = value; row[col.prop] = value;
submitChange(row, col); submitChange(row, col);
...@@ -276,7 +286,11 @@ ...@@ -276,7 +286,11 @@
disabled={!row[col.referenceKey]} disabled={!row[col.referenceKey]}
placeholder="" placeholder=""
clearable clearable
/> >
{col.options.map(item => (
<el-option key={item.value} label={item.label} value={item.value} />
))}
</el-select>
</div> </div>
</div> </div>
) )
...@@ -326,24 +340,24 @@ ...@@ -326,24 +340,24 @@
// requestKey: ["displayExecuted", "snackDisplayExecuted"] // requestKey: ["displayExecuted", "snackDisplayExecuted"]
requestKey: ["displayExecuted"] requestKey: ["displayExecuted"]
}, },
{ // {
"label": "陈列形式是否执行", // "label": "陈列形式是否执行",
"prop": "displayExecuted", // "prop": "displayExecuted",
"visible": true, // "visible": true,
"type": "formula", // "type": "formula",
"fill": true, // "fill": true,
"width": 150, // "width": 150,
func: (row) => { // func: (row) => {
if (!row.plannedDisplay) { // if (!row.plannedDisplay) {
return '-'; // row.displayExecuted = '-'
} // return '-';
// 截取计划陈列形式数据 // }
let plannedDisplay = row.plannedDisplay.split('或') // // 截取计划陈列形式数据
row.displayExecuted = plannedDisplay.includes(row.actualDisplay) ? '是' : '否' // row.displayExecuted = row.actualDisplay // 值为"是"或者“否”
return row.displayExecuted // return row.displayExecuted
}, // },
formulaStr: "实际陈列形式 === 计划陈列形式" // formulaStr: "实际陈列形式 === 计划陈列形式"
}, // },
{ {
"label": "计划 - 端架数量(组)", "label": "计划 - 端架数量(组)",
"prop": "plannedEndCapQty", "prop": "plannedEndCapQty",
...@@ -412,7 +426,7 @@ ...@@ -412,7 +426,7 @@
return '-' return '-'
} }
// 截取计划端架数量数据 // 截取计划端架数量数据
row.endCapQtyExecuted = row.actualEndCapQty === row.plannedEndCapQty ? '是' : '否' row.endCapQtyExecuted = row.actualEndCapQty == row.plannedEndCapQty ? '是' : '否'
return row.endCapQtyExecuted return row.endCapQtyExecuted
}, },
formulaStr: "执行端架数量 == 计划端架数量" formulaStr: "执行端架数量 == 计划端架数量"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论