Commit 18e50f00e722de90553436632fe46169d5708e5e

Authored by chenxt
1 parent 403606e7

手工机台

src/components/Common/CommonComponent/index.js
... ... @@ -3051,9 +3051,10 @@ export default class CommonComponent extends Component {
3051 3051 /* 页面输出 */
3052 3052 const className = iColValue === 24 ? 'input24' : iColValue === 18 ? 'input18' : iColValue === 12 ? 'input12' : 'changeClassName';
3053 3053 const mesInputBlue = enabled && !this.props.bNoMesBlue && this.firstDataIndex !== 'b';
  3054 + const {bManual = false} = this.props?.app?.userinfo
3054 3055 return (
3055 3056 <div ref={this.myRef} className={`${className} ${mesInputBlue ? "mesInputBlue" : ""}`} style={componentStyle}>
3056   - {mesInputBlue ? <div className="mesInputBlueBg" /> : ''}
  3057 + {mesInputBlue ? <div className={`mesInputBlueBg ${bManual ? 'manualOverride' : ''}`} /> : ''}
3057 3058 <div className={`${this.props.className} ${readonlyStyle} ${costomStyle}`}>
3058 3059 {oPreDot}
3059 3060 {commonAssembly}
... ...
src/components/Common/CommonTable/index.js
... ... @@ -2395,28 +2395,28 @@ class CommonTableRc extends React.Component {
2395 2395 colorValue = t.background;
2396 2396 } else {
2397 2397 const sState = commonUtils.isEmpty(t.sState) ? 4 : t.sState;
2398   - switch (Number(sState)) { // 根据状态显示颜色
2399   - case 0:
2400   - colorValue = '#808080'; /* 0:灰色 */
2401   - break;
2402   - case 1:
2403   - colorValue = '#808080'; /* 1:灰色 */
2404   - break;
2405   - case 2:
2406   - colorValue = '#ff4d4f'; /* 2:红色 */
2407   - break;
2408   - case 3:
2409   - colorValue = '#d4b106'; /* 3:黄色 */
2410   - break;
2411   - case 4:
2412   - colorValue = '#000000'; /* 黑色 */
2413   - break;
2414   - case 5:
2415   - colorValue = '#49aa19'; /* 5:绿色 */
2416   - break;
2417   - default:
2418   - colorValue = '#000000';
2419   - }
  2398 + switch (Number(sState)) { // 根据状态显示颜色
  2399 + case 0:
  2400 + colorValue = '#808080'; /* 0:灰色 */
  2401 + break;
  2402 + case 1:
  2403 + colorValue = '#808080'; /* 1:灰色 */
  2404 + break;
  2405 + case 2:
  2406 + colorValue = '#ff4d4f'; /* 2:红色 */
  2407 + break;
  2408 + case 3:
  2409 + colorValue = '#d4b106'; /* 3:黄色 */
  2410 + break;
  2411 + case 4:
  2412 + colorValue = '#000000'; /* 黑色 */
  2413 + break;
  2414 + case 5:
  2415 + colorValue = '#49aa19'; /* 5:绿色 */
  2416 + break;
  2417 + default:
  2418 + colorValue = '#000000';
  2419 + }
2420 2420 }
2421 2421 return (
2422 2422 <div
... ... @@ -12253,6 +12253,7 @@ const useGetTableBtnOprSetting = props =&gt; {
12253 12253 };
12254 12254 const resultTemp = {};
12255 12255 const list = sDefault.split(",");
  12256 + const bManual = props?.app?.userinfo?.bManual
12256 12257 list.forEach(btnType => {
12257 12258 if (btnType.includes("add")) {
12258 12259 resultTemp.mesAdd = params => {
... ... @@ -12274,20 +12275,37 @@ const useGetTableBtnOprSetting = props =&gt; {
12274 12275 icon={<PlusOutlined />}
12275 12276 onClick={e => {
12276 12277 e.stopPropagation();
12277   - props.onMesTableLineAdd &&
12278   - props.onMesTableLineAdd({
12279   - ...params,
12280   - callback: props.bAddFirst
12281   - ? scrollToTop(params.tableClassName)
12282   - : scrollToBottom(params.tableClassName),
12283   - bAddFirst: props.bAddFirst
  12278 + if (bManual) {
  12279 + const btnsConfig =
  12280 + gdsconfigformslave.find(
  12281 + item => item.sControlName?.toLowerCase().includes("add")
  12282 + ) || {};
  12283 + props.parentProps.onExecInstructSet({
  12284 + btnConfig: {
  12285 + ...btnsConfig,
  12286 + sInstruct: btnsConfig.sButtonParam
  12287 + },
  12288 + nextProps: {
  12289 + ...props
  12290 + }
12284 12291 });
  12292 + } else {
  12293 + props.onMesTableLineAdd &&
  12294 + props.onMesTableLineAdd({
  12295 + ...params,
  12296 + callback: props.bAddFirst
  12297 + ? scrollToTop(params.tableClassName)
  12298 + : scrollToBottom(params.tableClassName),
  12299 + bAddFirst: props.bAddFirst
  12300 + });
  12301 + }
  12302 +
12285 12303 }}
12286 12304 />
12287 12305 );
12288 12306 };
12289 12307 } else if (btnType.includes("del")) {
12290   - if (btnType.includes("enventdel")) {
  12308 + if (bManual) {
12291 12309 resultTemp.mesDel = params => {
12292 12310 const { record } = params;
12293 12311 const { sDefault: str } = btnTableDelConfig;
... ... @@ -12312,10 +12330,10 @@ const useGetTableBtnOprSetting = props =&gt; {
12312 12330 item => item.sControlName?.toLowerCase().includes("btnenventdel")
12313 12331 ) || {};
12314 12332 props.parentProps.onExecInstructSet({
12315   - btnConfig: {
12316   - ...btnsConfig,
12317   - sInstruct: btnsConfig.sButtonParam
12318   - },
  12333 + btnConfig: {
  12334 + ...btnsConfig,
  12335 + sInstruct: btnsConfig.sButtonParam
  12336 + },
12319 12337 nextProps: {
12320 12338 ...props
12321 12339 }
... ... @@ -12371,7 +12389,7 @@ const useGetTableBtnOprSetting = props =&gt; {
12371 12389 }
12372 12390 ;
12373 12391 } else if (btnType.includes("save")) {
12374   - if (btnType.includes("enventsave")) {
  12392 + if (bManual) {
12375 12393 resultTemp.mesSave = () => (
12376 12394 <Button
12377 12395 className={styles.mesSave}
... ... @@ -12382,11 +12400,11 @@ const useGetTableBtnOprSetting = props =&gt; {
12382 12400 gdsconfigformslave.find(
12383 12401 item => item.sControlName?.toLowerCase().includes("btnenventsave")
12384 12402 ) || {};
12385   -
  12403 +
12386 12404 props.parentProps.onExecInstructSet({
12387 12405 btnConfig: {
12388 12406 ...btnsConfig,
12389   - sInstruct: btnsConfig.sButtonParam
  12407 + sInstruct: btnsConfig.sButtonParam
12390 12408 },
12391 12409 nextProps: {
12392 12410 ...props
... ...
src/index.less
... ... @@ -4685,3 +4685,7 @@ ton:focus {
4685 4685 height: 32px !important;
4686 4686 }
4687 4687 }
  4688 +:global .manualOverride {
  4689 + width: 100% !important;
  4690 + left: 0 !important;
  4691 +}
4688 4692 \ No newline at end of file
... ...